Plant diseases cause economic losses and health risks, such as aflatoxins linked to liver cancer. These toxins, produced by fungi like Aspergillus flavus in figs, are often detected late through invasive methods or visual inspection. Since Spain, particularly Extremadura, is a key fig producer, alternative detection methods are essential to preventing aflatoxins in the food chain. The aim of this research is the early detection of Aspergillus flavus fungus using non-invasive techniques with hyperspectral imaging and applying artificial intelligence techniques, in particular deep learning. The images were taken after inoculation of the microtoxin using 3 different concentrations, related to three different classes and healthy figs (healthy controls). The analysis of the hyperspectral images was performed at the pixel level. Firstly, a fully connected neural network was used to analyze the spectral signature associated with each pixel; secondly, the wavelet transform was applied to each spectral signature. The resulting images were fed to a convolutional neural network. The hyperparameters of the proposed models were adjusted based on the parameter tuning process that was performed. The results are promising, with 83% accuracy, 82.75% recall, and 83.25% F1-measure for the fully connected neural network. The high F1-measure demonstrates that the model’s performance is good. The model has a low incidence of false positives for samples that contain aflatoxin, while a higher number of false positives appears in healthy controls. Due to the presence of false negatives, this class also has a high recall. The convolutional neural network results, accuracy, recall, and F1 are 77.25%, indicating moderate model performance. Only class 3, with higher aflatoxin concentration, achieves high precision and low false positive incidence. Healthy controls exhibit a high presence of false negatives. In conclusion, we demonstrate the effectiveness of pixel-level analysis in identifying the presence of the fungus and the viability of the non-invasive techniques applied in improving food safety. Although further research is needed, in this study, the fully connected neural network model shows good performance with lower energy consumption.
Read full abstract