Parameter- and Compute-Efficient Spatial–Spectral Transformer Framework for Pixel-Level Classification of Foreign Plastic Objects on Broiler Meat Using NIR–Hyperspectral Imaging

Foreign plastic objects (FPOs) in poultry products present significant food safety risks and cause economic losses for the industry. Conventional detection methods, including X-rays and color imaging, often struggle to identify small or low-density plastics. Hyperspectral imaging (HSI) offers both spatial and spectral information but suffers from high computational cost when applied for FPO identification in industrial environments. This study introduces a parameter-efficient and computationally efficient spatial-spectral transformer framework for pixel-level classification of FPOs on broiler meat using NIR-HSI (1000-1700 nm). The framework integrates three innovations: (1) center-focused linear attention (CFLA) to reduce computational complexity from O(n2) to O(n); (2) patch-local mixed-axis 2D rotary position embedding to preserve geometric relationships within hyperspectral patches; and (3) low-rank factorized projection (LRP) matrices to reduce parameters by approximately 50% within projection weight matrices. The framework was trained and evaluated on a dataset of 52 chicken fillets, comprising 295,340 labeled target hyperspectral pixels from 12 common polymer types and 1 fillet class. The model achieved 99.39% overall accuracy, 99.57% average accuracy, and a 99.31 Kappa coefficient across 248,540 test pixels. Per-class precision, recall, and F1-score exceeded 98.05%, 98.59%, and 98.76%, respectively, across all classes. Efficiency analyses showed an 83% reduction in multiply-accumulate operations (MACs), a 22% reduction in trainable parameters, and a model size reduction from 1.72 MB to 1.35 MB relative to the baseline configuration. These gains also translated into practical inference benefits, with the final model achieving a throughput of 212,971.5 hyperspectral patch cubes/s and a 4.19× speedup over the baseline. These results demonstrate that the proposed framework combines strong classification performance with high efficiency, supporting high-throughput inference for real-time monitoring and enabling contamination source traceability and preventive quality control in industrial poultry processing. The approach provides a benchmark for applying transformer-based models to food safety inspection tasks.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2026-04-16
DOI
https://doi.org/10.3390/s26082459
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Parameter- and Compute-Efficient Spatial–Spectral Transformer Framework for Pixel-Level Classification of Foreign Plastic Objects on Broiler Meat Using NIR–Hyperspectral Imaging

Seung-Chul Yoon, Zirak Khan, Suchendra M. Bhandarkar
Sensors
Spectroscopy and Chemometric Analyses
article

Parameter- and Compute-Efficient Spatial–Spectral Transformer Framework for Pixel-Level Classification of Foreign Plastic Objects on Broiler Meat Using NIR–Hyperspectral Imaging

Seung-Chul Yoon, Zirak Khan, Suchendra M. Bhandarkar
article en

Abstract

Foreign plastic objects (FPOs) in poultry products present significant food safety risks and cause economic losses for the industry. Conventional detection methods, including X-rays and color imaging, often struggle to identify small or low-density plastics. Hyperspectral imaging (HSI) offers both spatial and spectral information but suffers from high computational cost when applied for FPO identification in industrial environments. This study introduces a parameter-efficient and computationally efficient spatial-spectral transformer framework for pixel-level classification of FPOs on broiler meat using NIR-HSI (1000-1700 nm). The framework integrates three innovations: (1) center-focused linear attention (CFLA) to reduce computational complexity from O(n2) to O(n); (2) patch-local mixed-axis 2D rotary position embedding to preserve geometric relationships within hyperspectral patches; and (3) low-rank factorized projection (LRP) matrices to reduce parameters by approximately 50% within projection weight matrices. The framework was trained and evaluated on a dataset of 52 chicken fillets, comprising 295,340 labeled target hyperspectral pixels from 12 common polymer types and 1 fillet class. The model achieved 99.39% overall accuracy, 99.57% average accuracy, and a 99.31 Kappa coefficient across 248,540 test pixels. Per-class precision, recall, and F1-score exceeded 98.05%, 98.59%, and 98.76%, respectively, across all classes. Efficiency analyses showed an 83% reduction in multiply-accumulate operations (MACs), a 22% reduction in trainable parameters, and a model size reduction from 1.72 MB to 1.35 MB relative to the baseline configuration. These gains also translated into practical inference benefits, with the final model achieving a throughput of 212,971.5 hyperspectral patch cubes/s and a 4.19× speedup over the baseline. These results demonstrate that the proposed framework combines strong classification performance with high efficiency, supporting high-throughput inference for real-time monitoring and enabling contamination source traceability and preventive quality control in industrial poultry processing. The approach provides a benchmark for applying transformer-based models to food safety inspection tasks.

SensorsVol. 26(8)
Agricultural Research Service (US), University of Georgia (US), U.S. National Poultry Research Center (US)
University of Georgia
Openalex Percentile: Top 26%
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.