Nondestructive hyperspectral spectroscopic analysis of coconut oil using transformer-enhanced machine learning for advanced food processing applications

The adulteration of coconut oil is a major concern because of its effects on the food, food authenticity and consumer safety. In this study, a novel noninvasive hyperspectral imaging framework (Swin-KRnt) is proposed to detect the coconut oil adulteration and predict the thermal degradation. The proposed model is a combination of Swin Transformer based feature enhancement, SelectKBest based feature optimization and Random Forest learning for improved spectral representation and predictive performance. Nine hyperspectral wavelengths were obtained and used to obtain the meaningful information from coconut oil samples by applying spectral indices and statistical feature engineering. The results of the experiments confirmed the ability of the proposed framework to outperform the traditional machine learning models, attaining an R2 value exceeding 99% and minimal RMSE and MAE values. Ablation studies and feature engineering analyses also underscored the benefits of transformer-based learning and optimal feature selection for enhancing model robustness and accuracy. The results showed that the proposed Swin-KRnt framework is a fast, environmentally friendly and highly accurate approach for intelligent food authentication and precision food quality monitoring applications.

Authors

Institutions

Publication Details

Journal
Spectroscopy Letters
Published
2026-09-30
DOI
https://doi.org/10.1080/00387010.2026.2737374
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

Nondestructive hyperspectral spectroscopic analysis of coconut oil using transformer-enhanced machine learning for advanced food processing applications

Yonis Gulzar, Xinpeng Bai, Anum Mehmood, Hayitov Abdulla Nurmatovich et al.
Spectroscopy Letters
Spectroscopy and Chemometric Analyses
article

Nondestructive hyperspectral spectroscopic analysis of coconut oil using transformer-enhanced machine learning for advanced food processing applications

Yonis Gulzar, Xinpeng Bai, Anum Mehmood, Hayitov Abdulla Nurmatovich, Uzair Aslam Bhatti, Egambergan Xudaynazarov
article en

Abstract

The adulteration of coconut oil is a major concern because of its effects on the food, food authenticity and consumer safety. In this study, a novel noninvasive hyperspectral imaging framework (Swin-KRnt) is proposed to detect the coconut oil adulteration and predict the thermal degradation. The proposed model is a combination of Swin Transformer based feature enhancement, SelectKBest based feature optimization and Random Forest learning for improved spectral representation and predictive performance. Nine hyperspectral wavelengths were obtained and used to obtain the meaningful information from coconut oil samples by applying spectral indices and statistical feature engineering. The results of the experiments confirmed the ability of the proposed framework to outperform the traditional machine learning models, attaining an R2 value exceeding 99% and minimal RMSE and MAE values. Ablation studies and feature engineering analyses also underscored the benefits of transformer-based learning and optimal feature selection for enhancing model robustness and accuracy. The results showed that the proposed Swin-KRnt framework is a fast, environmentally friendly and highly accurate approach for intelligent food authentication and precision food quality monitoring applications.

Spectroscopy Letters
Urgench State University (UZ), Hainan University (CN)
Zero hunger
Openalex Percentile: Top 17%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Nondestructive hyperspectral spectroscopic analysis of coconut oil using transformer-enhanced machine learning for advanced food processing applications — Yonis Gulzar, Xinpeng Bai, et al. · Spectroscopy Letters (2026) | TGRS Research Map | TGRS