This study presents a comparative evaluation of traditional machine-learning (ML) and deep-learning (DL) approaches for detecting and counting Varroa destructor mites in hyperspectral images. As Varroa infestations pose a serious threat to honeybee health, accurate and efficient detection methods are essential. The ML pipeline—based on Principal Component Analysis (PCA), k-Nearest Neighbors (kNN), and Support Vector Machine (SVM)—was previously published and achieved high performance (precision = 0.9983, recall = 0.9947), with training and inference completed in seconds on standard CPU hardware. In contrast, the DL approach, employing Faster R-CNN with ResNet-50 and ResNet-101 backbones, was fine-tuned on the same manually annotated images. Despite requiring GPU acceleration, longer training times, and presenting a reproducibility challenges, the deep-learning models achieved precision of 0.966 and 0.971, recall of 0.757 and 0.829, and F1-Score of 0.848 and 0.894 for ResNet-50 and ResNet-101, respectively. Qualitative results further demonstrate the robustness of the ML method under limited-data conditions. These findings highlight the differences between ML and DL approaches in resource-constrained scenarios and offer practical guidance for selecting suitable detection strategies.
This study suggests the use of the third overtone region (675-965 nm) with an NIR hyperspectral camera as a first step toward a non-contact, mobile approach for estimating viscosity in liquid foods-a critical quality parameter. Key spectral features (such as normalized peak intensity, area ratios, FWHM, and peak position) were extracted from selected channel regions and input into a K-Nearest Neighbor (KNR) regression model (k=3), achieving high predictive accuracy (MAE = 0.141 Pa.s, MSE = 0.927 Pa.s², R² = 0.95) and accurately predicting sample viscosity across variations. These findings lay the groundwork for a compact, multi-spectral AMS-based device, supporting in-field quality control and food safety.