Discrimination of unsound soybeans using hyperspectral imaging: A deep learning method based on dual-channel feature fusion strategy and attention mechanism.

Journal: Food research international (Ottawa, Ont.)
PMID:

Abstract

The application of high-level data fusion in the detection of agricultural products still presents a significant challenge. In this study, dual-channel feature fusion model (DCFFM) with attention mechanism was proposed to optimize the utilization of both one-dimensional spectral data and two-dimensional image data in the hyperspectral images for achieving high-level data fusion. A comparative analysis of support vector machine (SVM), convolutional neural network (CNN) with DCFFM, demonstrated that DCFFM exhibited superior results, achieving the accuracy, precision, recall, specificity, and F1-score of 95.13 %, 95.49 %, 94.83 %, 98.97 %, 95.12 % in the visible and near-infrared (Vis-NIR), and 94.00 %, 94.43 %, 94.16 %, 98.67 %, 94.27 % in the short-wave infrared (SWIR). This also indicated that Vis-NIR was more suitable for identifying unsound soybeans than SWIR. Furthermore, visualization was employed to demonstrate classification outcomes, thereby illustrating the generalization capacity of DCFFM through model inversion. In summary, this study is to explore a modeling framework that is capable of the comprehensive acquisition of spectra and images in the hyperspectral images, allowing for high-level data fusion, thereby achieving enhanced levels of accuracy.

Authors

  • Dianyang Sun
    College of Food Science and Technology, Nanjing Agricultural University, No. 1, Weigang Road, Nanjing, Jiangsu 210095, China. Electronic address: 2022108047@stu.njau.edu.cn.
  • Li Zhang
    Department of Animal Nutrition and Feed Science, College of Animal Science and Technology, Huazhong Agricultural University, Wuhan 430070, China.
  • Haitao Li
    Faculty of Material Science and Chemistry, China University of Geosciences, Wuhan 430074, PR China.
  • Weijie Lan
    College of Food Science and Technology, Nanjing Agricultural University, No. 1 Weigang Road, Nanjing 210095, China.
  • Kang Tu
    College of Food Science and Technology, Nanjing Agricultural University, No. 1 Weigang Road, Nanjing 210095, China.
  • Jun Liu
    Department of Radiology, Second Xiangya Hospital, Changsha, Hunan, China.
  • Leiqing Pan
    College of Food Science and Technology, Nanjing Agricultural University, No. 1 Weigang Road, Nanjing 210095, China; Sanya Institute of Nanjing Agricultural University, Sanya 572024, China. Electronic address: pan_leiqing@njau.edu.cn.