← Papers

Paper record

Nondestructive Detection of Soluble Solids Content in Apples Based on Multi-Attention Convolutional Neural Network and Hyperspectral Imaging Technology.

Tian Y, Sun J, Zhou X, Cong S, Dai C, Shi L.

Foods (Basel, Switzerland) · 9 Nov 2025 · 10.3390/foods14223832

Abstract

Soluble solids content is the most important attribute related to the quality and price of apples. The objective of this study was to detect the soluble solids content (SSC) in 'Fuji' apples using hyperspectral imaging combined with a deep learning algorithm. The hyperspectral images of 570 apple samples were obtained and the whole region of apple sample hyperspectral data was collected and preprocessed. In addition, a method involving multi-attention convolutional neural network (MA-CNN) is proposed, which extracts spectral and spatial features from hyperspectral images by embedding channel attention (CA) and spatial attention (SA) modules in a convolutional neural network. The CA and SA modules help the network adaptively focus on important spectral-spatial features while reducing the interference of redundant information. Additionally, the Bayesian optimization algorithm (BOA) is used for model hyperparameter optimization. A comprehensive evaluation is conducted by comparing the proposed model with CA-CNN models, SA-CNN, and the current mainstream models. Furthermore, the best prediction performances for detecting SSC in apple samples were obtained from the MA-CNN model, with an Rp2 value of 0.9602 and an RMSEP value of 0.0612 °Brix. The results of this study indicated that the MA-CNN algorithm combined with hyperspectral imaging technology can be used as an effective method for rapid detection of apple quality parameters.

Code and data availability

The paper's hyperspectral apple images, SSC reference values, and MA-CNN code are not publicly deposited. The Data Availability Statement only offers contact with the corresponding author, and the sole URL (Keras) is a generic third-party library, not a paper-specific asset.

No evidence-backed public reproduction asset is currently recorded.