Non-destructive identification of processing methods of Yunnan coffee beans via portable near-infrared spectrometer and lightweight MobileNetV4

The quality of coffee is significantly influenced by post-harvest processing methods. Conventional analytical techniques for assessing coffee quality are often destructive, time-consuming, and costly. This study explores the non-destructive identification of processing methods applied to Yunnan coffee beans using portable near-infrared (NIR) spectroscopy combined with the lightweight MobileNetV4 model. A comprehensive dataset of 3000 coffee bean samples representing five distinct processing methods was constructed. Spectral data were preprocessed using Savitzky-Golay smoothing, standard normal variate, and detrending algorithms. The proposed MobileNetV4 model, optimized with Bayesian hyperparameter tuning, achieved outstanding performance, with 98.33 % accuracy, 98.39 % precision, 98.33 % recall, and 98.33 % F1-score on the test set. Comparative experiments demonstrated that MobileNetV4 outperformed both traditional machine learning models (Support Vector Machine, Partial Least Squares-Discriminant Analysis, eXtreme Gradient Boosting) and state-of-the-art lightweight deep learning architectures (ShuffleNetV2, EfficientNetV2, GhostNet, MobileNetV3), while maintaining superior computational efficiency. The model has a compact size of 1.53 MB and required only 8 min for training. In conclusion, this research provides a rapid, non-destructive solution for identifying coffee bean processing methods, enabling real-time quality control and fraud detection across production and supply chains. • First use of portable NIR spectroscopy for classifying coffee processing methods. • Lightweight MobileNetV4 enables efficient on-site deployment. • Achieved 98.33 % accuracy in identifying five coffee processing methods. • SHAP analysis identified key wavelengths for model interpretability. • Provides a rapid, non-destructive solution for quality control.

Authors

Institutions

Publication Details

Journal
Journal of Food Composition and Analysis
Published
2025-12-03
DOI
https://doi.org/10.1016/j.jfca.2025.108724
Primary Topic
Coffee research and impacts
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Non-destructive identification of processing methods of Yunnan coffee beans via portable near-infrared spectrometer and lightweight MobileNetV4

Xin Xie, Yan Xin, Jun Sun, Sunli Cong
Journal of Food Composition and Analysis
Coffee research and impacts
article

Non-destructive identification of processing methods of Yunnan coffee beans via portable near-infrared spectrometer and lightweight MobileNetV4

Xin Xie, Yan Xin, Jun Sun, Sunli Cong
article en

Abstract

The quality of coffee is significantly influenced by post-harvest processing methods. Conventional analytical techniques for assessing coffee quality are often destructive, time-consuming, and costly. This study explores the non-destructive identification of processing methods applied to Yunnan coffee beans using portable near-infrared (NIR) spectroscopy combined with the lightweight MobileNetV4 model. A comprehensive dataset of 3000 coffee bean samples representing five distinct processing methods was constructed. Spectral data were preprocessed using Savitzky-Golay smoothing, standard normal variate, and detrending algorithms. The proposed MobileNetV4 model, optimized with Bayesian hyperparameter tuning, achieved outstanding performance, with 98.33 % accuracy, 98.39 % precision, 98.33 % recall, and 98.33 % F1-score on the test set. Comparative experiments demonstrated that MobileNetV4 outperformed both traditional machine learning models (Support Vector Machine, Partial Least Squares-Discriminant Analysis, eXtreme Gradient Boosting) and state-of-the-art lightweight deep learning architectures (ShuffleNetV2, EfficientNetV2, GhostNet, MobileNetV3), while maintaining superior computational efficiency. The model has a compact size of 1.53 MB and required only 8 min for training. In conclusion, this research provides a rapid, non-destructive solution for identifying coffee bean processing methods, enabling real-time quality control and fraud detection across production and supply chains. • First use of portable NIR spectroscopy for classifying coffee processing methods. • Lightweight MobileNetV4 enables efficient on-site deployment. • Achieved 98.33 % accuracy in identifying five coffee processing methods. • SHAP analysis identified key wavelengths for model interpretability. • Provides a rapid, non-destructive solution for quality control.

Journal of Food Composition and AnalysisVol. 149
Jiangsu University (CN)
Openalex Percentile: Top 59%
Coffee research and impacts
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.