Aflatoxin, a toxin produced by Aspergillus flavus, is commonly found in peanuts and poses a significant threat to human health. In this paper, we propose an adjustable Mul-U-Net model, capable of learning both spectral and spatial information in parallel, facilitating rapid detection of aflatoxins by adjusting the number of central spatial U units. First, AFB1 was semantically segmented by inputting hyperspectral image cubes into six semantic segmentation models: Mul-U-Net, U-Net, FCN, SegNet, CNN, and RefineNet. Experimental results demonstrate that Mul-U-Net outperformed the other models, achieving an overall accuracy of 95.64 % and an RMSE of 0.2079. We further examined the influence of different spatial U units on model performance and found that the optimal spatial U count matched the number of labels. In the aflatoxin dataset, the Mul-2 U-Net model achieved the highest accuracy of 96.12 %. Further validation on the Indian Pines and Pavia University datasets showed that Mul-16 U-Net and Mul-9 U-Net achieved the highest accuracies of 98.12 % and 98.01 %, respectively. This study presents a robust, high-performance, and tunable Mul-U-Net semantic segmentation network, offering a valuable new approach for the identification of aflatoxins in peanuts.
Read full abstract