Next Article in Journal
Is There a Correlation Between Masticatory Muscle Thickness and Pain After Botulinum Toxin Injections in Myogenic TMD Patients?: A Pilot Study
Previous Article in Journal
TM9SF2 Maintains Golgi Integrity and Regulates Ricin-Induced Cytotoxicity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Review

Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review

1
UniSA STEM, University of South Australia, Mawson Lakes 5095, Australia
2
Department of Electronics and Telecommunication Engineering, Chittagong University of Engineering and Technology, Chittagong 4349, Bangladesh
3
Advanced Post Harvest Technology Centre, Lethbridge College, Lethbridge, AB T1K 1L6, Canada
4
Agricultural and Food Engineering Department, Indian Institute of Technology Kharagpur, Kharagpur 721302, West Bengal, India
*
Author to whom correspondence should be addressed.
Toxins 2025, 17(5), 219; https://doi.org/10.3390/toxins17050219
Submission received: 30 March 2025 / Revised: 24 April 2025 / Accepted: 25 April 2025 / Published: 27 April 2025
(This article belongs to the Special Issue Mycotoxins in Food and Feeds: Human Health and Animal Nutrition)

Abstract

:
Cereal grains and nuts are the world’s most produced food and the economic backbone of many countries. Food safety in these commodities is crucial, as they are highly susceptible to mold growth and mycotoxin contamination in warm, humid environments. This review explores hyperspectral imaging (HSI) integrated with machine learning (ML) algorithms as a promising approach for detecting and quantifying mycotoxins in cereal grains and nuts. This study aims to (1) critically evaluate current non-destructive techniques for processing these foods and the applications of ML in identifying mycotoxins through HSI, and (2) highlight challenges and potential future research directions to enhance the reliability and efficiency of these detection systems. The ML algorithms showed effectiveness in classifying and quantifying mycotoxins in grains and nuts, with HSI systems increasingly adopted in industrial settings. Mycotoxins exhibit heightened sensitivity to specific spectral bands within HSI, facilitating accurate detection. Additionally, selecting only relevant spectral features reduces ML model complexity and enhances reliability in the detection process. This review contributes to a deeper understanding of the integration of HSI and ML for food safety applications in cereal grains and nuts. By identifying current challenges and future research directions, it provides valuable insights for advancing non-destructive mycotoxin detection methods in the food industry using HSI.
Key Contribution: This review provides a comprehensive evaluation of hyperspectral imaging combined with machine learning for non-destructive mycotoxin detection in cereal grains and nuts, emphasizing the effectiveness of ML models in classifying and quantifying contamination. Additionally, it identifies key challenges and future research directions to enhance detection reliability, model efficiency, and industrial applicability.

1. Introduction

Cereal grains and nuts are the most produced and consumed foods all over the world due to their high nutritional value. In warm and humid climates, a variety of fungi can flourish in cereal grains and nuts from cultivation to storage. The fungi can produce numerous mycotoxins through their secondary metabolism [1]. Mycotoxins are toxic, mutagenic, and carcinogenic compounds that pose substantial health risks to humans and animals [2]. Aspergillus and Fusarium are two fungi that are frequently detected in nuts and cereal grains. Aspergillus species produce various life-threatening biotoxins such as aflatoxins (AFs), ochratoxins (OTAs), patulin (PAT), and citrinin (CIT). Aflatoxin B1 is the most dangerous mycotoxin among the four main aflatoxins (B1, B2, G1, and G2) produced by Aspergillus [3]. The major mycotoxins that Fusarium fungi produce are trichothecenes, fumonisins (FM), and zearalenone (ZEN) [4]. These mycotoxins have been associated with hormone-related disorders and may contribute to cancer development in humans [5]. According to the International Agency for Research on Cancer (IARC), fumonisins are classified as possibly carcinogenic to humans (Group 2B), while others such as zearalenone (ZEN), deoxynivalenol (DON), and T-2 toxin are classified as not classifiable as to their carcinogenicity to humans (Group 3) [6]. Besides that, several hundred different mycotoxins have been identified in cereal grains and nuts, which impact human health and livestock. The most commonly found mycotoxins that contaminate cereal grains and nuts include aflatoxins, ochratoxin A, patulin, T-2 toxin, fumonisins, zearalenone, ergot alkaloids, Alternaria toxins, and deoxynivalenol (DON) [7]. The most common mycotoxins that are found in cereal grains and nuts and their possible health threats are tabulated in Table 1.
Mycotoxin contamination is the greatest threat to food and one of the common causes of food poisoning and spoilage. According to the World Health Organization (WHO), around 600 million people become ill from eating contaminated food every year, and around 4.2 million die [23]. Also, contaminated food accounts for USD 110 billion in economic and health losses each year and builds trade barriers in the global market. According to the Food and Agricultural Organization (FAO), about 25% of the world’s crops are contaminated by mycotoxin-producing fungi. Therefore, a fast and reliable framework is required to handle this threat, which can detect and quantify the mycotoxin at a maximum acceptable level from the complex food materials [24]. Mycotoxin detection and quantification procedures must be extremely sensitive, and the capability should be as low as a few parts per billion (ppb), as different nations have varying mycotoxin regulation limitations. However, most current mycotoxin detection and quantification methods are destructive, time-consuming, and costly, and they face challenges related to sampling variability caused by the uneven distribution of contamination within bulk samples. Thus, they do have some limitations [25]. Different tests for the same batch produce different findings because of the sampling issue [26]. As a result, there is a greater need for more efficient and reliable procedures in industrial food processing applications.
The commonly used mycotoxin detection methods are gas chromatography, high-performance liquid chromatography (HPLC), thin-layer chromatography (TLC) [27], rapid test kits, enzyme-linked immunosorbent assay (ELISA) [28], and molecular identification techniques (fluorescence property) [29]. Among these, ELISA and HPLC provide high accuracy and selectivity, and their detection level is as low as 0.01 ppb. Though rapid test kits like ELISA, immunoassay, and membrane flow techniques have a satisfactory quantification capability [30], these rapid kits are only for single use. On the other hand, the ELISA method has sensitivity constraints on the antibodies, which limit the detection range of this method. Besides that, sample preparation is another major problem of the mentioned methods. Some samples may be contaminated at a higher level, and there is a high possibility of random distribution of contaminated samples in the lot. Therefore, the highly contaminated samples may not be selected equally for analysis at each time [31]. Also, the mentioned methods are fast but require some time, which makes them impractical for rapid in-line industrial applications. In-line food safety assessment in the industry requires fast, non-destructive, and cost-effective methods [32].
Over the past few decades, the food processing industry has employed computer vision systems with spectroscopic techniques to detect and quantify diverse contamination in cereal, nuts, and their products [33]. The RGB imaging, X-ray, fluorescence spectroscopy, visible near-infrared (Vis-NIR), and NIR hyperspectral imaging are the primarily used imaging approaches to identify different mycotoxins in cereal grains and nuts, combined with a machine learning algorithm [34]. RGB images make it simple to recognize the external characteristics of foods, such as the size, shape, and texture. However, the RGB images cannot provide any chemical information [35].
Hyperspectral imaging (HSI) is the most promising and powerful imaging approach for the detection of mycotoxins using machine learning and can describe the chemical properties of agricultural foods and food products. This technique, coupled with machine learning (ML) algorithms, is more widely used to identify the mycotoxins in cereal grains and nuts such as almonds [36], peanuts [37], pistachios [38], wheat [39], and corn [40]. However, the amount of data in a hyperspectral image is enormous, and a traditional statistical classifier cannot handle them. In contrast, ML algorithms can learn from complex data. The advancement of ML algorithms opens a way to handle HSIs more conveniently. However, the efficiency and effectiveness of an ML algorithm depend on the learning algorithm’s performance and the characteristics of the data. The spectral responses of various cereal grains and nuts are different due to their complex nutritional structure. Therefore, selecting a suitable ML algorithm for cereal grains and nuts is challenging. The reason is that different learning algorithms have different purposes, and similar types of learning algorithms may provide different outcomes due to the characteristics of the data. Therefore, several literature reviews have been conducted on the spectroscopic techniques coupled with the ML algorithm on food safety applications [36,41]. There are limited reviews of ML algorithms to detect and quantify mycotoxin in cereal grains and nuts using hyperspectral images. Sendin et al. reviewed NIR HSI techniques to detect fungi-contaminated cereals [41]. Wu et al. reviewed the use of different spectroscopic techniques for detecting fungi and aflatoxin in nuts and dried fruits [42]. Optical imaging and spectroscopic methods for mold and mycotoxin detection in grain and nuts were reviewed by [25]. Nevertheless, only a few evaluations of ML methods that use hyperspectral images to identify and measure mycotoxin in nuts and cereal grains have been conducted.
This work comprehensively analyzes ML methods for utilizing HSI to detect and quantify mycotoxins in cereal grains and nuts. It identifies and evaluates the most effective ML techniques for processing and interpreting high-dimensional spectral data, offering practical guidance for researchers and practitioners developing non-destructive food safety solutions. This review synthesizes findings from a wide range of studies, presents comparative insights into algorithm performance across different applications, and discusses real-world challenges such as data variability and contamination heterogeneity. In addition, this paper outlines current advancements, highlights emerging research opportunities, and defines key technical and practical challenges that remain in the field.

2. Search Methodology

This literature review was conducted to assess the application of HSI combined with ML for mycotoxin detection in cereal grains and nuts. As the number of publications in this field has grown rapidly in recent years, the review process involved a comprehensive approach to capture the most relevant studies while maintaining a structured methodology. The methodology followed four distinct steps: (1) review planning, (2) conducting the review, (3) data screening, and (4) result analysis.

2.1. Review Planning

In the planning phase, the objectives, scope, and criteria for article selection were clearly defined to ensure a rigorous and reproducible review process. The primary objective was to examine how machine learning algorithms have been applied to detect mycotoxins in cereal grains and nuts using HSI. The scope focused on research conducted between 2015 and 2024, primarily in English-language articles. The inclusion criteria were articles that developed or used machine learning models to detect mycotoxins in these matrices using hyperspectral images. Exclusion criteria included studies focused on remote sensing, grain-tree- or nut-tree-related papers, and literature reviews.

2.2. Conducting the Review

This review was conducted by systematically gathering literature from the following academic databases: Scopus, ScienceDirect, Springer, and Google Scholar. A variety of keyword combinations, including ‘mycotoxin’, ‘hyperspectral imaging’, ‘cereals grins’, ‘nuts’, and ‘machine learning’, were used to ensure comprehensive coverage of the topic.

2.3. Data Screening

The articles obtained from the initial search were screened based on predefined inclusion/exclusion criteria. The search yielded 83 relevant papers. The selection process involved filtering articles by imaging techniques, study design, and language. Non-experimental papers (e.g., reviews) and studies that were not directly related to mycotoxin detection in cereal grains and nuts were excluded. The focus on cereal grains and nuts was applied as an inclusion/exclusion criterion during the screening stage, meaning that while the initial search string did not explicitly restrict results to these matrices, the focus was applied during screening based on relevance to the review objectives.

2.4. Result Analysis

Following data screening, the selected articles were analyzed to assess the effectiveness of the machine learning algorithms used for mycotoxin detection in cereal grains and nuts. This phase involved interpreting the findings from the papers, analyzing trends in the data, and evaluating the performance of the various algorithms. The most recent and relevant studies were chosen for further discussion in the subsequent sections.

3. Hyperspectral Analysis of Mycotoxins in Cereal and Nuts

Cereal grains and nuts are commonly infected by mold, which creates various mycotoxins in the later stages. Some mycotoxins are highly toxic and carcinogenic, and certain types cannot be eliminated from food through heating, cooking, or other conventional processing methods. Continuous consumption of these mycotoxins poses a significant health risk to both humans and animals. The following subsections discuss the hyperspectral responses and various approaches for detecting mycotoxins in cereal grains and nuts.

3.1. Hyperspectral Response of Different Mycotoxins

HSI provides distinct spectral characteristics in multiple wavelengths to detect mycotoxins in cereals and nuts. Key wavelengths were identified in the visible–near infrared (Vis-NIR) and shortwave infrared (SWIR) regions, which correlate with the chemical properties of different mycotoxins.
HSI has proven to be an effective method for detecting aflatoxin B1 (AFB1) in various agricultural products by identifying key spectral bands. Studies have demonstrated that specific wavelengths are highly predictive of AFB1 contamination. For instance, wavelengths at 956, 984, 1046, 1149, 1317, 1400, 1459, and 1729 nm were found to be particularly significant for AFB1 detection [32,36,43]. Additionally, [44] emphasized the role of the 1200 nm wavelength, which is associated with the N-H bonds in amino acids and the benzene rings in AFB1, further confirming its utility for AFB1 detection in cereals.
For detecting DON in wheat, hyperspectral imaging has a significant response at wavelengths of 1408 nm, 1904 nm, and 1919 nm, especially at higher concentrations [45]. These bands capture changes in starch and protein content caused by Fusarium infections, which are related to DON contamination. The wavelengths 1300, 1350, and 1480 nm have proven essential for detecting OTA in wheat [46]. Wavelengths 1300 and 1350 nm correspond to fungal infection and carbohydrate presence, the 1480 nm wavelength is particularly significant for identifying protein content and OTA contamination. The most characteristic wavelengths for T-2 toxin, identified from the regression coefficients, were 1038, 1110, and 1393 nm [47].
The FM is detectable using hyperspectral imaging techniques across the Vis-NIR and SWIR regions. The SWIR showed higher peaks and valleys at 1320, 1870, and 2254 nm and 1208, 1474, and 1940 nm, respectively [48]. The absorption at wavelengths 1208 nm (C-H stretching) [49], 1474, 1870 nm (O-H vibrations associated with starch) [50], and 1895 nm (C-O-H and C-O-C deformations) [51] are significant for identifying fumonisin contamination in cereals.

3.2. Detection of Mycotoxins in Wheat

Wheat is one of the largest-grown and -consumed cereal grains worldwide. Also, it is susceptible to a toxin-producing fungal strain. These toxic compounds are produced by molds such as Fusarium, Aspergillus, and Alternaria species. Fusarium head blight (FHB) is a fungal-infected disease, and wheat is commonly affected by FHB. The FHB produces mycotoxin by secondary metabolism, especially DON [52]. The DON mycotoxin mainly infects the wheat’s organic properties like carbohydrates, proteins, and lipids [53]. Besides that, wheat is commonly contaminated with ZEN, AFB1, and OTA mycotoxins.
In recent years, several studies have employed HSI integrated with ML techniques to detect and quantify mycotoxins such as DON, OTA, and aflatoxin B1 in wheat, as summarized in Table 2. These approaches leverage specific spectral bands and advanced preprocessing techniques to enhance detection accuracy. Various spectral ranges have been explored specifically for detecting DON in wheat. Femenias et al. investigated the 900–1700 nm range using MSC, SG smoothing, first and second derivatives, and SNV preprocessing and applied LDA, NB, and KNN [54,55]. These models achieved high classification accuracies, with LDA and KNN models obtaining 100% accuracy. Similarly, [39] applied KNN classifiers in the 960–1700 nm range, achieving 80% accuracy in detecting DON in Canadian Western Red Spring wheat, demonstrating the potential of HSI and KNN for rapid, reliable DON detection.
Other studies, such as Liang et al., compared detection methods within the 400–2500 nm range, using SNV and MSC preprocessing with ML models like SVM and SAE [58]. Their models achieved an accuracy of 96% for DON classification in wheat samples. Similarly, Shen et al. applied PLSR and SVR models using the 970–1623 nm range and achieved a coefficient of regression (R2) value of 0.88, further confirming the effectiveness of HSI combined with advanced ML models for DON detection [49].
For aflatoxin B1 detection, Jiang et al. developed a PLSR model using wavelengths between 899 and 1725 nm, with second derivative and SNV preprocessed data. The model obtained a high R2 value of 0.9935, illustrating the model’s robust performance in quantifying aflatoxin B1 in wheat [60]. Senthilkumar et al. employed the 1000–1600 nm range and developed a discriminant analysis (DA) model for OTA detection [61]. Their models achieved remarkable classification accuracies (Acc) of 99.8% and 100%, respectively, showcasing the reliability of HSI with ML techniques for detecting OTA contamination in wheat.

3.3. Detection of Mycotoxins in Corn

Corn is one of the highly consumed cereal grains and grows throughout the world. For mycotoxin detection in corn, various studies have utilized HSI within specific wavelength ranges, applying a combination of preprocessing methods and ML models to enhance accuracy. The summarized key findings to detect mycotoxin in corn using HSI are tabulated in Table 3.
AFB1 detection has been widely explored across multiple spectral ranges, with 327–2500 nm being the most effective. Tian et al. used PLSR within the 327–1098 nm and 930–2548 nm ranges, achieving a high R2 value of 0.924 [64]. Similarly, Zhou et al. employed LDA on the 1100–2000 nm range, achieving an accuracy of 95.56% by focusing on critical spectral features [69]. In contrast, Gao et al. achieved an optimal accuracy of 99.38% with RF and KNN models using the 292–865 nm range with MSC and PCA preprocessing [70]. Other approaches, such as PLS-DA and SVM on 900–2500 nm with SNV and SG preprocessing, consistently provided a high accuracy of 95.7% [48]. These findings indicate that both narrow and broad spectral ranges can be highly effective with robust preprocessing and feature selection.
DON detection has shown effectiveness in the 893–1730 nm spectral range with MSC, SNV, and SG preprocessing techniques. Borràs-Vallverdú et al. reported an accuracy of 98.6% with RF and neural network classifiers [71]. Additionally, Parrag et al. achieved an R2 of 0.974 and a 98.8% accuracy using PLSR and PLS-DA within the 900–1700 nm range [72]. These methods illustrate the potential of combining comprehensive preprocessing techniques with ensemble models to improve DON detection accuracy, particularly for complex corn samples.
To detect FM, the 1000–2100 nm range proved effective with SNV preprocessing and PLSR, yielding an R2 of 0.98 [73]. This suggests a strong correlation of FM spectral features within the NIR region. ZEN detection was performed within 400–1000 nm, achieving an accuracy of 93.33% using various models, including SVM, DA, PLSR, and neural networks [74]. The success of these models highlights the ability of HSI, combined with appropriate ML techniques, to detect a range of mycotoxins in corn.

3.4. Detection of Mycotoxin in Other Cereals and Grains

Food processing is essential for cereal grains and crops to reduce mycotoxin levels and ensure compliance with regulatory safety limits. The parametric literature review of mycotoxin detection in various cereal grains is tabulated in Table 4.
To detect DON contamination in barley, Fan et al. applied a CNN on HSI data in the 367–1048 nm range, achieving an accuracy of 89.81% [75]. Similarly, Su et al. employed a partial least squares discriminant analysis (PLSDA) with wavelengths ranging from 382 to 1030 nm for detecting DON, achieving an R2 of 0.931 [76]. For OTA detection in barley, Senthilkumar et al. developed a DA model in the 1000–1600 nm range, yielding a perfect classification accuracy of 100% [77].
Focusing on DON and T-2 toxin in oats, Teixido-Orries et al. developed models in the 900–1700 nm spectral range, using preprocessing techniques such as SNV and first derivatives [47]. The author tested multiple ML models, including PLSR, RF, KNN, and NB. Their model for T-2 toxin detection achieved a high accuracy of 94.1%, while DON detection in oats reached an accuracy of 77.8%. In a separate study, Tekle et al. used normalization and PLSR with the 1000–2500 nm range, achieving an R2 value of 0.8 for DON in oats [78]. This review suggests that CNN and PLDA perform particularly well for DON detection in barley, with CNN showing superior accuracy. For DON and T-2 toxins in oats, the combination of SNV, first derivatives, and PLSR/RF appears effective.

3.5. Detection of Mycotoxins in Peanuts

Peanut is a nut that contains 30% protein and 50% oil; it also contains vitamin E, resveratrol, and other important health-improving substances [79]. The consumption of peanuts reduces the possibility of cardiovascular and inflammatory diseases [80]. Much like peanuts, almonds, pistachios, and other nuts are sought after by consumers due to their excellent nutritional value. However, nuts are also affected by fungi in a natural way, which can produce mycotoxins through a secondary metabolism process. The peanut, almond, and pistachio industries rely on HSI and ML techniques to detect mycotoxin contamination, particularly AFB1, due to its high toxicity and carcinogenic nature. The following overview summarizes recent approaches, wavelengths, and ML methods used to quantify mycotoxin in these nuts, as detailed in Table 5.
The use of CNN and PLSR has shown high accuracy across different spectral ranges to detect AFB1 in peanut kernels. Zhu et al. used CNNs (e.g., ResNet18 and AlexNet) in the 292–865 nm and 415–799 nm ranges, achieving R2 values of 0.88 and a classification accuracy of 91.3% [81,82]. This approach highlights CNNs’ strength in handling complex data, especially for pixel-level analysis. Alternatively, Guo et al. used traditional regression models, including PLS and principal component regression (PCR), over a broader 900–2500 nm range [83]. This achieved 100% classification accuracy, indicating that broader spectral ranges, with simpler ML models like PLS, can provide robust classification with effective feature extraction. For high specificity, He et al. and Tao et al. demonstrated that SVM and PLSDA, respectively, achieved high accuracy (up to 94.8%) with targeted wavelengths around 400–1000 nm [84]. This suggests that SVM and PLSDA could be more efficient when computational simplicity and specificity are prioritized.
For almonds, which also face a significant aflatoxin contamination risk, studies using 900–1700 nm with SVR, Gaussian process regression (GPR), and PLSR yield excellent results. Kabir et al. achieved R2 values of 0.966 using SVR and GPR, indicating that SVR excels with broad spectral data [85]. Additionally, Mishra et al. applied PLSR and multiple linear regression (MLR) within the same range, achieving similar precision (R2 of 0.958), showing that for quantification tasks, regression models are particularly effective in identifying aflatoxin in almonds with high reliability [36].
Aflatoxin B1 contamination is also a concern in pistachios, with studies suggesting high efficacy with wider spectral ranges. Wu and Xu employed LDA and sparse multivariate linear regression (SMLR) within 694–988 nm, reaching a 90% accuracy [38], while Wu et al. used SVM and PLSR within 408–1007 nm, achieving an impressive 98% accuracy [86].
Table 5. ML techniques to detect mycotoxin in nuts using hyperspectral images.
Table 5. ML techniques to detect mycotoxin in nuts using hyperspectral images.
NutsMycotoxinSample NumberWavelength (nm)PreprocessingML MethodsPerformanceReference
PeanutAFB120415–799Noise fractionCNNAcc: 91.3%[82]
PeanutAFB11260900–2500SG, 1st devPLS, PCRAcc: 100%[83]
PeanutAFB173292–865N-FINDRResNet18, LeNet, AlexNetR2: 0.88[81]
PeanutAFB11501000–2500SNV, 1st and 2nd devSVR, PLSRR2: 0.95[37]
PeanutAFB1150400–1000SG, SNV, 1st dev, MSCPCA-LDA, SVMAcc: 93%[84]
PeanutAFB1250400–720RI, DRI, RRI, NDRISVMAcc: 93.1%[87]
PeanutAFB1210400–2500SNVPLS-DAAcc: 94.8%[88]
PeanutAFB173292–865Raw ImageCNN,Acc: 95%[89]
PeanutAFB113,000415–799PCADCNNAcc: 97.87%[90]
AlmondAFB1400900–1700SNV, SG, 1st and 2nd devSVM, LR, LDA, QDAAcc: 95%[91]
AlmondAFB1500900–1700SNV, SG, 1st and 2nd devRF, QDAACC: 96. 37%[92]
AlmondAFB11520900–1700SNV, SG, 1st and 2nd devResNet, InceptionNet, Inception ResNet ACC: 95.91%[93]
AlmondAFB11832900–1700SNV, SG, 1st and 2nd devSVM, Subspace, RusboostACC: 96%[94]
AlmondAFB13596900–1700Raw Image3D CNNACC: 90.81%[95]
AlmondAFB1500900–1700SNV, SG, 1st and 2nd devSVR, GPRR2: 0.966[85]
AlmondAFB1936900–1700SNV, SG, 1st and 2nd devSVMAcc: 98.7%[96]
AlmondAFB1465900–1700SNV, SG, 1st and 2nd devPLSR, MLRR2: 0.958[36]
PistachioAFB1300694–988SNV, SGLDA, SMLRAcc: 90%[38]
PistachioAFB1300408–1007SGSVM, PLSRAcc: 98%[86]
PistachioAFB300400–1000Raw ImageResNetAcc: 96.67%[97]
AFB1 (aflatoxin B1); SNV (standard normal variate); MSC (multiplicative scatter correction); SG (Savitzky–Golay); LDA (linear discriminant analysis); SVM (support vector machine); PLSR (partial least squares regression); SVR (support vector regression); GPR (Gaussian process regression); MLR (multiple linear regression); KNN (k-nearest neighbors); RF (random forest); CNN (convolutional neural network); QDA (quadratic discriminant analysis); SMLR (sparse multivariate linear); PCR (principal component regression).

4. ML Techniques for Detection of Mycotoxin in Cereals and Nuts Using HSI

Machine learning algorithms play a crucial role in analyzing and classifying cereals and nuts based on their physicochemical properties and spectral data. The following section provides a detailed analytical overview of various supervised machine learning algorithms used in recent studies, discussing their applications and performance in different cereal and nut classifications. The percentage usage of the most common ML algorithms for mycotoxin detection using HSI is illustrated in Figure 1. The most frequently used ML algorithms include PLSR, DA, KNN, and SVM. However, other supervised ML algorithms, such as RF, NB, artificial neural networks (ANNs), decision trees (DT), and MLR, are also widely utilized. A visualization of some of these ML algorithms is presented in Figure 2.

4.1. Partial Least Squares Regression

Partial least squares regression is widely utilized for mycotoxin detection in agricultural products due to its ability to process high-dimensional and collinear spectral data effectively. By projecting both spectral data and mycotoxin concentration levels into a lower-dimensional latent space, PLSR enhances the extraction of relevant spectral features while reducing data dimensionality. This makes it particularly effective for HSI-based mycotoxin quantification, as it mitigates noise and addresses overlapping spectral bands. PLSR has demonstrated a strong predictive performance in detecting aflatoxins and fumonisins in maize and corn, where its ability to capture critical spectral variations has led to the accurate classification of contaminated samples [72,98]. Similarly, its application in peanut classification has provided rapid and non-destructive screening for aflatoxin contamination, reinforcing its practicality for food safety monitoring [37,83]. Additionally, studies on wheat and barley highlight PLSR’s effectiveness in distinguishing between contaminated and non-contaminated grains based on spectral signatures linked to chemical composition [78,99]. However, selecting the optimal number of latent variables remains a critical challenge—too few can lead to underfitting, while too many may introduce noise and reduce model robustness. PLSR is a powerful tool for mycotoxin quantification when sufficient training data are available and the contaminant’s spectral features are well defined within the HSI range, allowing for precise and reliable detection.

4.2. Multiple Linear Regression

Multiple linear regression is a statistical method frequently used for mycotoxin detection in HSI due to its interpretability and ability to model linear relationships between spectral features and contamination levels. MLR has been applied in maize and corn classification to predict aflatoxin and fumonisins contamination with notable accuracy [100]. It has also been used in peanut classification to model chemical variations caused by mycotoxin-producing fungi [84]. While MLR assumes linearity and is sensitive to multicollinearity and outliers, these challenges can be mitigated through feature selection and data transformations to enhance model reliability.

4.3. Support Vector Machine

Support vector machine is another widely used algorithm for mycotoxin detection due to its ability to handle high-dimensional and nonlinear data. By transforming data into a higher-dimensional space, SVM constructs an optimal hyperplane that maximizes the separation between contaminated and non-contaminated samples, reducing classification errors. Kernel functions, such as the radial basis function (RBF) and polynomial kernels, help capture complex spectral patterns associated with mycotoxins. SVM has demonstrated high accuracy in detecting mycotoxin contamination in maize and corn using HSI [63,67,101] and has been effectively applied to wheat classification for identifying fungal infections linked to mycotoxin production [49,58]. Additionally, SVM has proven reliable for aflatoxin detection in peanuts, enabling the precise identification of contaminated samples [37,84]. However, SVM’s performance depends on selecting optimal kernel parameters and managing sensitivity to outliers. These challenges can be mitigated through cross-validation, regularization techniques, and effective spectral data preprocessing, such as normalization and noise reduction.

4.4. Discriminant Analysis

The discriminant analysis classifier leverages spectral features from hyperspectral and multispectral imaging to differentiate contaminated from non-contaminated samples. By projecting data into a lower-dimensional space, DA reduces complexity while identifying key variables that contribute to class separation. It employs functions such as linear discriminant analysis (LDA) and quadratic discriminant analysis (QDA) to classify new observations based on predefined groups. LDA, the most common variant, assumes a Gaussian distribution for class observations with a shared covariance matrix, allowing for efficient classification with linear decision boundaries. DA has been successfully applied in maize and corn classification to distinguish mycotoxin-contaminated samples [100,102], as well as in wheat classification to detect fungal contamination affecting mycotoxin levels [57,58]. Additionally, it has been used in peanut classification for identifying aflatoxin-contaminated samples [84,88]. The effectiveness of DA depends on the choice of discriminant functions and the quality of training data, ensuring accurate classification across different agricultural products.

4.5. Decision Tree

Decision tree algorithms are used for mycotoxin detection in cereals and nuts due to their interpretability and ability to model complex decision boundaries in hyperspectral imaging data. A DT continuously splits data from root to leaf nodes based on attribute values, commonly using Gini impurity or entropy for decision making, while DT models effectively classify mycotoxin-contaminated samples in maize, corn, and peanuts [81,103,104]. They are prone to overfitting and sensitive to minor data variations. These limitations can be mitigated through pruning techniques, feature selection, and data preprocessing to improve model robustness and accuracy. Advanced ensemble approaches, such as RF and gradient boosting decision trees (GBDTs), further enhance detection performance in almonds and walnuts by aggregating multiple trees to improve generalization [38,91]. These models offer a rapid, non-invasive method for mycotoxin screening, improving food safety assessments.

4.6. Random Forest

Random forest is a powerful ensemble learning algorithm widely used for mycotoxin detection using hyperspectral imaging due to its high accuracy and robustness against overfitting. It constructs multiple decision trees in parallel and predicts contamination based on majority voting or averaging, effectively handling nonlinear relationships and spectral interactions. RF has been successfully applied to maize and corn classification, distinguishing contaminated from non-contaminated samples with high precision [70,105]. Its effectiveness extends to wheat and barley classification, where it reliably identifies mycotoxin-contaminated grains [47]. By leveraging feature importance metrics, RF enhances interpretability and optimizes mycotoxin detection by identifying key spectral wavelengths. Techniques such as bootstrapping and effective feature selection further improve model accuracy while reducing overfitting.

4.7. K-Nearest Neighbors

K-nearest neighbors is a simple yet effective machine learning algorithm frequently used in mycotoxin detection due to its ability to recognize spectral patterns. It operates on instance-based learning, classifying samples based on their proximity to k-nearest neighbors using distance metrics such as Euclidean or Manhattan distance. KNN has been successfully applied to identify mycotoxin contamination in maize, corn, and peanuts using hyperspectral imaging data [70,101,104,106]. However, its performance depends on data quality, optimal k selection, and feature scaling. While computational inefficiency and sensitivity to noise remain challenges, these can be mitigated through cross-validation and preprocessing techniques to improve accuracy and robustness.

4.8. Naive Bayes

Naive Bayes is a probabilistic classification algorithm based on Bayes’ theorem, widely used for mycotoxin detection due to its efficiency in handling high-dimensional hyperspectral imaging data. It assumes feature independence, enabling fast classification with minimal data and computational resources. NB has been applied in wheat classification, demonstrating reliable accuracy in predicting mycotoxin contamination from spectral data [57]. It has also been used to classify grains based on fungal infection levels, supporting early mycotoxin detection. While its feature independence assumption may not always hold in HSI data, NB remains effective by leveraging prior probability distributions to enhance classification performance.

4.9. Ensemble Boosting

Ensemble boosting is an effective ML technique for quantifying mycotoxins using HSI data. It capitalizes on its ability to improve prediction accuracy by combining multiple weak learners into a strong predictive model. Therefore, it enhances performance in capturing the complex spectral features associated with mycotoxins, which often exhibit subtle variations in HSI data that can be challenging to detect. However, high dimensionality, noise in spectral data, and the need for extensive labeled datasets complicate the trained model [107]. The boosting algorithm addresses these challenges by iteratively focusing on misclassified samples, thus refining its predictions and managing the intricacies of HSI data. Higher prediction accuracy is typically achieved when the model is trained on a diverse dataset that includes a range of mycotoxin concentrations and environmental conditions and when advanced preprocessing techniques are used to reduce noise and enhance spectral quality.

4.10. Artificial Neural Network

Artificial neural network models have revolutionized mycotoxin detection in cereals and nuts by leveraging hyperspectral imaging to extract complex spectral–spatial features for precise contamination identification. It effectively models nonlinear relationships within high-dimensional HSI data, enabling the accurate detection of subtle mycotoxin variations. However, ANN requires extensive labeled data and is prone to overfitting, which can be mitigated through techniques like dropout, regularization, and data augmentation.
Deep convolutional neural networks (DCNNs) enhance mycotoxin classification in maize and corn by capturing intricate spectral patterns [103]. Three-dimensional convolutional neural networks (3D-CNNs) further improve aflatoxin detection in peanuts and almonds by preserving spectral dependencies across multiple bands [81,95,104]. Inception and Inception-ResNet architectures optimize feature extraction for contamination identification in almonds and walnuts [86,95], while ResNet, with its deep residual learning framework, enhances classification accuracy for various cereals and nuts. These deep learning models facilitate rapid, non-destructive screening, improving food safety assessments. Their effectiveness depends on comprehensive training datasets that cover diverse mycotoxin types and concentrations, along with robust preprocessing techniques to minimize noise and enhance model reliability.

5. Research Scope

Detecting mycotoxins in cereals and nuts remains a major food safety challenge, even with recent progress in machine learning and hyperspectral imaging technologies. HSI has been widely adopted in food processing industries due to its ability to capture chemical information at the molecular level, enabling rapid, non-destructive analysis without the use of harmful chemicals. HSI combined with ML algorithms, such as SVM, RF, ANN, etc., has demonstrated promising results in detecting and quantifying mycotoxins, particularly in cereal grains and nuts.
However, despite these advancements, several challenges persist, including model robustness, accuracy, real-time applicability, feature selection, and regulatory compliance. Improving these aspects is essential for developing scalable, interpretable, and high-performance AI-driven mycotoxin detection systems. Further research is needed to refine feature extraction techniques, enhance classification accuracy, and optimize computational efficiency to ensure practical implementation in industrial food safety workflows.

5.1. Enhancing Model Accuracy and Generalization

One of the key challenges in ML-based mycotoxin detection is the generalization of models across different environmental conditions, geographic regions, and sample variations. Current models trained on specific datasets may not perform well when applied to new datasets collected from different storage conditions, humidity levels, or grain varieties [106]. To improve accuracy and generalization, future research should focus on transfer learning and domain adaptation techniques, enabling ML models to adapt to diverse datasets with minimal retraining [60].
Furthermore, combining multi-sensor fusion techniques such as HSI, near-infrared spectroscopy, and fluorescence spectroscopy can provide more robust feature sets for mycotoxin detection. By fusing multiple spectral modalities, ML models can extract more relevant information, reducing false positives and false negatives in mycotoxin classification [56].

5.2. Optimized Feature Selection for Mycotoxin Detection

The high-dimensional spectral data generated by HSI and NIR spectroscopy present significant challenges, including computational complexity, redundancy, and the risk of overfitting in ML models. To enhance model efficiency, interpretability, and detection accuracy, effective feature selection techniques are essential [94,96,104]. Future research should focus on hybrid feature selection methods that integrate filter-based, wrapper-based, and embedded approaches [94]. Advanced techniques such as wavelet transforms, PCA, and Non-Negative Matrix Factorization can help extract meaningful spectral features while reducing data dimensionality. To further optimize mycotoxin classification, Genetic algorithms, sparse partial least squares, and principal component regression can be explored for refining spectral feature selection [84,96]. Integrating these strategies will make HSI-based mycotoxin detection models more robust, efficient, and suitable for real-time applications in food safety monitoring.

5.3. Integration of Advanced Algorithms

Traditional machine learning methods, such as PLSR, DA, and SVM, rely on handcrafted spectral features, which may not fully capture the intricate spectral–spatial patterns associated with mycotoxin contamination. Deep-learning-based approaches [95], particularly convolutional neural networks (CNNs), recurrent neural networks (RNNs) [38], and vision transformers (ViTs), offer significant advantages by automatically learning hierarchical feature representations from raw hyperspectral data, thereby improving classification accuracy [38]. Hybrid models that integrate deep learning with traditional ML techniques, such as CNN-SVM or 3D-CNN-RF, further enhance detection capabilities by leveraging the strengths of both methodologies. CNNs excel at extracting spatial and spectral features while RNNs effectively capture sequential dependencies in spectral data, enabling the more precise classification and quantification of mycotoxins, especially when their spectral signatures are subtle [108]. Also, recent studies demonstrate that HSI, combined with machine learning, can detect multiple mycotoxins. Kim et al. investigated the feasibility of identifying aflatoxin and fumonisin co-contaminated maize using SWIR imaging and SVM [48]. Similarly, Stasiewicz et al. used a low-cost multispectral sorter to reduce both toxins by 83%, highlighting its practical dual-detection capability [109]. Despite these promising results, the simultaneous detection of multiple mycotoxins remains challenging. Spectral signatures of different toxins often overlap, and their concentrations may be too low relative to other dominant biochemical components to be directly distinguishable. As such, robust chemometric and machine learning models are essential to extract relevant spectral features and improve detection performance.
However, one of the primary barriers to AI adoption in food safety is the lack of model interpretability. Regulatory bodies such as the European Food Safety Authority (EFSA), and the United States Food and Drug Administration (FDA), require transparency in AI-driven mycotoxin detection systems [110]. Future research should prioritize Explainable AI frameworks, including Shapley Additive Explanations (SHAP), Local Interpretable Model-Agnostic Explanations (LIME), and Grad-CAM (Gradient-weighted Class Activation Mapping), to provide clear justifications for model predictions. By advancing hybrid deep learning models and incorporating explainability techniques, AI-driven mycotoxin detection systems can achieve higher accuracy, regulatory compliance, and greater trust among industry stakeholders, ultimately enhancing food safety and agricultural monitoring [57].

5.4. High-Dimensional Imbalanced Data

A significant challenge in hyperspectral imaging for mycotoxin detection lies in the limited availability of naturally contaminated samples, which restricts the development and validation of robust detection models. Class imbalance is a fundamental issue, as different contamination classes occur with varying frequencies in real-world scenarios. This uneven distribution can bias model accuracy, favoring more prevalent classes over rare ones [111]. Furthermore, obtaining naturally contaminated samples in a non-destructive manner is often not feasible, necessitating the artificial contamination of cereal grains and nuts. However, replicating all possible mycotoxin concentrations is challenging, creating data deficiencies that can adversely impact machine learning algorithms. Studies like those by [112,113] illustrate this limitation, using only a few concentrations for aflatoxin B1 detection in corn. The characteristics of artificially contaminated data may differ from those of naturally infected samples, complicating model training [114]. To address these issues, future research could explore synthetic data generation and augmentation techniques, such as generative adversarial networks (GANs), enabling models to generalize better for rare contamination cases.

5.5. Real-Time Mycotoxin Detection Systems

Most existing ML-based mycotoxin detection methods rely on laboratory-based analysis, limiting their practicality for large-scale industrial applications. To enhance food safety monitoring in grain storage facilities, processing plants, and border inspection checkpoints, there is a growing need for real-time, portable mycotoxin detection systems [72]. Edge computing and real-time processing play a vital role in HSI-based mycotoxin detection, enabling faster decision making in agricultural monitoring and food safety. By processing data closer to the source, these technologies minimize latency and allow for the immediate analysis of hyperspectral data, enhancing efficiency and responsiveness. However, achieving a balance between accuracy and computational efficiency remains a key challenge.
Future research should prioritize the development of lightweight deep learning models optimized for embedded edge devices with limited processing power. Model compression techniques, such as pruning, quantization, and knowledge distillation, can help reduce model size while maintaining detection accuracy. Additionally, integrating IoT sensors with HSI systems can enable real-time data collection, remote monitoring, and automated mycotoxin assessment [70]. Enhancing these capabilities will improve the practicality of AI-driven detection systems, expanding their use in agriculture, food processing, and quality control.

6. Conclusions

This review underscores the significant progress in integrating machine learning with hyperspectral imaging for mycotoxin detection in cereals and nuts. HSI has proven to be a powerful, non-destructive imaging tool for detecting contamination at the molecular level, yet challenges persist in managing the vast amounts of redundant spectral data it generates. This highlights the importance of efficient data processing and feature extraction techniques to enhance detection accuracy. Among the ML models reviewed, PLSR has shown an exceptional performance in quantifying mycotoxin levels, particularly for correlated spectra, while SVM effectively mitigates overfitting and DA offers fast, precise classification. In contrast, simpler models like DT and NB struggle with small or collinear datasets. The growing adoption of deep learning has significantly enhanced detection accuracy, particularly with 3D models for hyperspectral images; however, these models often require large training datasets. To address this, pre-trained neural networks are gaining traction, enabling more efficient learning from limited data. Moving forward, optimizing feature selection and refining ML models will be crucial to enhancing the reliability and applicability of mycotoxin detection systems for real-world food safety monitoring.

Author Contributions

Conceptualization, M.A.K. and S.-H.L.; methodology, M.A.K.; validation, M.A.K. and S.-H.L.; formal analysis, M.A.K.; data curation, M.A.K.; writing—original draft preparation, M.A.K.; writing—review and editing, M.A.K., I.L., C.B.S., G.M., B.K.P. and S.-H.L.; visualization, M.A.K.; supervision, I.L., C.B.S. and S.-H.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the Research Training Program International (RTPi) scholarship from the Commonwealth of Australia, which provided crucial funding and support throughout this study.

Data Availability Statement

No new data were created or analyzed in this study.

Acknowledgments

We are grateful for the top-up scholarship provided by SureNut Ltd., whose contribution significantly enhanced the resources available for this research.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Whetton, R.L.; Waine, T.W.; Mouazen, A.M. Evaluating management zone maps for variable rate fungicide application and selective harvest. Comput. Electron. Agric. 2018, 153, 202–212. [Google Scholar] [CrossRef]
  2. Khan, R.; Ghazali, F.M.; Mahyudin, N.A.; Samsudin, N.I. Aflatoxin Biosynthesis, Genetic Regulation, Toxicity, and Control Strategies: A Review. J. Fungi 2021, 7, 606. [Google Scholar] [CrossRef] [PubMed]
  3. Battilani, P.; Camardo Leggieri, M.; Rossi, V.; Giorni, P. AFLA-maize, a mechanistic model for Aspergillus flavus infection and aflatoxin B1 contamination in maize. Comput. Electron. Agric. 2013, 94, 38–46. [Google Scholar] [CrossRef]
  4. Borzekowski, A.; Anggriawan, R.; Auliyati, M.; Kunte, H.-J.; Koch, M.; Rohn, S.; Karlovsky, P.; Maul, R. Formation of Zearalenone Metabolites in Tempeh Fermentation. Molecules 2019, 24, 2697. [Google Scholar] [CrossRef]
  5. Rogowska, A.; Pomastowski, P.; Sagandykova, G.; Buszewski, B. Zearalenone and its metabolites: Effect on human health, metabolism and neutralisation methods. Toxicon 2019, 162, 46–56. [Google Scholar] [CrossRef]
  6. International Agency for Research on Cancer. IARC Monographs on the Evaluation of Carcinogenic Risks to Humans: Volume 82—Some Traditional Herbal Medicines, Some Mycotoxins, Naphthalene and Styrene; World Health Organization, International Agency for Research on Cancer: Lyon, France, 2002; Volume 86. [Google Scholar]
  7. Almoujahed, M.B.; Rangarajan, A.K.; Whetton, R.L.; Vincke, D.; Eylenbosch, D.; Vermeulen, P.; Mouazen, A.M. Detection of fusarium head blight in wheat under field conditions using a hyperspectral camera and machine learning. Comput. Electron. Agric. 2022, 203, 107456. [Google Scholar] [CrossRef]
  8. Bbosa, G.S.; Kitya, D.; Lubega, A.; Ogwal-Okeng, J.; Anokbonggo, W.W.; Kyegombe, D.B. Review of the Biological and Health Effects of Aflatoxins on Body Organs and Body Systems; Aflatoxins, R.-A.M., Ed.; IntechOpen: Rijeka, Croatia, 2013; Chapter 12. [Google Scholar]
  9. European Union. Commission Regulation (EU) No 165/2010 Amending Regulation (EC) No 1881/2006 Setting Maximum Levels for Certain Contaminants in Foodstuffs as Regards Aflatoxins (Text with EEA Relevance). 2010. Available online: http://data.europa.eu/eli/reg/2010/165/oj (accessed on 24 April 2025).
  10. Yu, J.; Pedroso, I.R. Mycotoxins in Cereal-Based Products and Their Impacts on the Health of Humans, Livestock Animals and Pets. Toxins 2023, 15, 480. [Google Scholar] [CrossRef] [PubMed]
  11. EFSA Panel on Contaminants in the Food Chain (CONTAM); Schrenk, D.; Bodin, L.; Chipman, J.K.; Del Mazo, J.; GraslKraupp, B.; Hogstrand, C.; Hoogenboom, L.R.; Leblanc, J.-C.; Nebbia, C.S.; et al. Risk assessment of ochratoxin A in food. EFSA J. 2020, 18, e06113. [Google Scholar] [CrossRef]
  12. European Union. Commission Regulation (EU) 2022/1370 Amending Regulation (EC) No 1881/2006 as Regards Maximum Levels of Ochratoxin A in Certain Foodstuffs. 2022. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32022R1370 (accessed on 24 April 2025).
  13. Pal, S.; Singh, N.; Ansari, K.M. Toxicological effects of patulin mycotoxin on the mammalian system: An overview. Toxicol. Res. 2017, 6, 764–771. [Google Scholar] [CrossRef]
  14. Verbrugghe, E.; Vandenbroucke, V.; Dhaenens, M.; Shearer, N.; Goossens, J.; De Saeger, S.; Eeckhout, M.; D’Herde, K.; Thompson, A.; Deforce, D.; et al. T-2 toxin induced Salmonella Typhimurium intoxication results in decreased Salmonella numbers in the cecum contents of pigs, despite marked effects on Salmonella-host cell interactions. Veter-Res. 2012, 43, 22. [Google Scholar] [CrossRef]
  15. European Union. Commission Regulation (EU) 2024/1038 Amending Regulation (EU) 2023/915 as Regards Maximum Levels of T-2 and HT-2 Toxins in Food. 2024. Available online: http://data.europa.eu/eli/reg/2024/1038/oj (accessed on 24 April 2025).
  16. Kamle, M.; Mahato, D.K.; Devi, S.; Lee, K.E.; Kang, S.G.; Kumar, P. Fumonisins: Impact on Agriculture, Food, and Human Health and their Management Strategies. Toxins 2019, 11, 328. [Google Scholar] [CrossRef] [PubMed]
  17. Hodgson, E. Chapter Fourteen—Toxins and Venoms. In Progress in Molecular Biology and Translational Science; Hodgson, E., Ed.; Academic Press: Cambridge, MA, USA, 2012; pp. 373–415. [Google Scholar]
  18. European Union. Commission Regulation (EU) 2024/1808 Amending Regulation (EU) 2023/915 as Regards the Application Date of Lower Maximum Levels for Ergot Sclerotia and Ergot Alkaloids in Food. 2024. Available online: http://data.europa.eu/eli/reg/2024/1808/oj (accessed on 24 April 2025).
  19. Sobrova, P.; Adam, V.; Vasatkova, A.; Beklova, M.; Zeman, L.; Kizek, R. Deoxynivalenol and its toxicity. Interdiscip. Toxicol. 2010, 3, 94–99. [Google Scholar] [CrossRef]
  20. European Union. Commission Regulation (EU) 2024/1022 Amending Regulation (EU) 2023/915 as Regards Maximum Levels of Deoxynivalenol in Food. 2024. Available online: http://data.europa.eu/eli/reg/2024/1022/oj (accessed on 24 April 2025).
  21. Puvača, N.; Avantaggiato, G.; Merkuri, J.; Vuković, G.; Bursić, V.; Cara, M. Occurrence and Determination of Alternaria Mycotoxins Alternariol, Alternariol Monomethyl Ether, and Tentoxin in Wheat Grains by QuEChERS Method. Toxins 2022, 14, 791. [Google Scholar] [CrossRef]
  22. European Union. Commission Regulation (EU) 2022/553 on Monitoring the Presence of Alternaria toxins in Food. 2022. Available online: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32022H0553 (accessed on 24 April 2025).
  23. WHO. Food Safety. 2022. Available online: https://www.who.int/news-room/fact-sheets/detail/food-safety (accessed on 1 April 2023).
  24. Rasch, C.; Kumke, M.; Löhmannsröben, H.-G. Sensing of Mycotoxin Producing Fungi in the Processing of Grains. Food Bioprocess Technol. 2010, 3, 908–916. [Google Scholar] [CrossRef]
  25. Mishra, G.; Panda, B.K.; Ramirez, W.A.; Jung, H.; Singh, C.B.; Lee, S.; Lee, I. Research advancements in optical imaging and spectroscopic techniques for nondestructive detection of mold infection and mycotoxins in cereal grains and nuts. Compr. Rev. Food Sci. Food Saf. 2021, 20, 4612–4651. [Google Scholar] [CrossRef] [PubMed]
  26. Whitaker, T.B.; Slate, A.; Birmingham, T.; Adams, J.; Jacobs, M.; Gray, G. Correlation Between Aflatoxin Contamination and Various USDA Grade Categories of Shelled Almonds. J. AOAC Int. 2010, 93, 943–947. [Google Scholar] [CrossRef]
  27. Santiago, M.; Strobel, S. Chapter Twenty-Four—Thin Layer Chromatography, in Methods in Enzymology; Lorsch, J., Ed.; Academic Press: Cambridge, MA, USA, 2013; pp. 303–324. [Google Scholar]
  28. Li, P.; Zhou, Q.; Wang, T.; Zhou, H.; Zhang, W.; Ding, X.; Zhang, Z.; Chang, P.-K.; Zhang, Q. Development of an Enzyme-Linked Immunosorbent Assay Method Specific for the Detection of G-Group Aflatoxins. Toxins 2015, 8, 5. [Google Scholar] [CrossRef]
  29. Gorran, A.; Farzaneh, M.; Shivazad, M.; Rezaeian, M.; Ghassempour, A. Aflatoxin B1-reduction of Aspergillus flavus by three medicinal plants (Lamiaceae). Food Control 2013, 31, 218–223. [Google Scholar] [CrossRef]
  30. Krska, R.; Molinelli, A. Rapid test strips for analysis of mycotoxins in food and feed. Anal. Bioanal. Chem. 2009, 393, 67–71. [Google Scholar] [CrossRef]
  31. Chavez, R.A.; Cheng, X.; Stasiewicz, M.J. A Review of the Methodology of Analyzing Aflatoxin and Fumonisin in Single Corn Kernels and the Potential Impacts of These Methods on Food Security. Foods 2020, 9, 297. [Google Scholar] [CrossRef]
  32. Wang, W.; Heitschmidt, G.W.; Ni, X.; Windham, W.R.; Hawkins, S.; Chu, X. Identification of aflatoxin B1 on maize kernel surfaces using hyperspectral imaging. Food Control 2014, 42, 78–86. [Google Scholar] [CrossRef]
  33. Huang, M.; Wan, X.; Zhang, M.; Zhu, Q. Detection of insect-damaged vegetable soybeans using hyperspectral transmittance image. J. Food Eng. 2013, 116, 45–49. [Google Scholar] [CrossRef]
  34. Tu, K.; Wu, W.; Cheng, Y.; Zhang, H.; Xu, Y.; Dong, X.; Wang, M.; Sun, Q. AIseed: An automated image analysis software for high-throughput phenotyping and quality non-destructive testing of individual plant seeds. Comput. Electron. Agric. 2023, 207, 107740. [Google Scholar] [CrossRef]
  35. Du, C.-J.; Sun, D.-W. Recent developments in the applications of image processing techniques for food quality evaluation. Trends Food Sci. Technol. 2004, 15, 230–249. [Google Scholar] [CrossRef]
  36. Mishra, G.; Panda, B.K.; Ramirez, W.A.; Jung, H.; Singh, C.B.; Lee, S.-H.; Lee, I. Application of SWIR hyperspectral imaging coupled with chemometrics for rapid and non-destructive prediction of Aflatoxin B1 in single kernel almonds. LWT 2022, 155, 112954. [Google Scholar] [CrossRef]
  37. Zhang, H.; Jia, B.; Lu, Y.; Yoon, S.-C.; Ni, X.; Zhuang, H.; Guo, X.; Le, W.; Wang, W. Detection of Aflatoxin B1 in Single Peanut Kernels by Combining Hyperspectral and Microscopic Imaging Technologies. Sensors 2022, 22, 4864. [Google Scholar] [CrossRef]
  38. Wu, Q.; Xu, H. Detection of Aflatoxin B1 in Pistachio Kernels Using Visible/Near-Infrared Hyperspectral Imaging. Trans. ASABE 2019, 62, 1065–1074. [Google Scholar] [CrossRef]
  39. Nadimi, M.; Brown, J.; Morrison, J.; Paliwal, J. Examination of wheat kernels for the presence of Fusarium damage and mycotoxins using near-infrared hyperspectral imaging. Meas. Food 2021, 4, 100011. [Google Scholar] [CrossRef]
  40. Tao, F.; Yao, H.; Hruska, Z.; Kincaid, R.; Rajasekaran, K. Near-infrared hyperspectral imaging for evaluation of aflatoxin contamination in corn kernels. Biosyst. Eng. 2022, 221, 181–194. [Google Scholar] [CrossRef]
  41. Sendin, K.; Williams, P.J.; Manley, M. Near infrared hyperspectral imaging in quality and safety evaluation of cereals. Crit. Rev. Food Sci. Nutr. 2017, 58, 575–590. [Google Scholar] [CrossRef]
  42. Wu, Q.; Xie, L.; Xu, H. Determination of toxigenic fungi and aflatoxins in nuts and dried fruits using imaging and spectroscopic techniques. Food Chem. 2018, 252, 228–242. [Google Scholar] [CrossRef]
  43. Chu, X.; Wang, W.; Yoon, S.-C.; Ni, X.; Heitschmidt, G.W. Detection of aflatoxin B1 (AFB1) in individual maize kernels using short wave infrared (SWIR) hyperspectral imaging. Biosyst. Eng. 2017, 157, 13–23. [Google Scholar] [CrossRef]
  44. Pearson, T.C.; Wicklow, D.T.; Pasikatan, M.C. Reduction of aflatoxin and fumonisin contamination in yellow corn by high-speed dual-wavelength sorting. Cereal Chem. 2004, 81, 490–498. [Google Scholar] [CrossRef]
  45. Peiris, K.H.; Pumphrey, M.O.; Dowell, F.E. NIR absorbance characteristics of deoxynivalenol and of sound and Fusarium-damaged wheat kernels. J. Near Infrared Spectrosc. 2009, 17, 213–221. [Google Scholar] [CrossRef]
  46. Senthilkumar, T.; Jayas, D.; White, N.; Fields, P.; Gräfenhan, T. Detection of fungal infection and Ochratoxin A contamination in stored wheat using near-infrared hyperspectral imaging. J. Stored Prod. Res. 2016, 65, 30–39. [Google Scholar] [CrossRef]
  47. Teixido-Orries, I.; Molino, F.; Gatius, F.; Sanchis, V.; Marín, S. Near-infrared hyperspectral imaging as a novel approach for T-2 and HT-2 toxins estimation in oat samples. Food Control 2023, 153, 109952. [Google Scholar] [CrossRef]
  48. Kim, Y.-K.; Baek, I.; Lee, K.-M.; Kim, G.; Kim, S.; Kim, S.-Y.; Chan, D.; Herrman, T.J.; Kim, N.; Kim, M.S. Rapid Detection of Single- and Co-Contaminant Aflatoxins and Fumonisins in Ground Maize Using Hyperspectral Imaging Techniques. Toxins 2023, 15, 472. [Google Scholar] [CrossRef]
  49. Shen, G.; Cao, Y.; Yin, X.; Dong, F.; Xu, J.; Shi, J.; Lee, Y.-W. Rapid and nondestructive quantification of deoxynivalenol in individual wheat kernels using near-infrared hyperspectral imaging and chemometrics. Food Control 2022, 131, 108420. [Google Scholar] [CrossRef]
  50. Sirisomboon, C.D.; Wongthip, P.; Sirisomboon, P. Potential of near infrared spectroscopy as a rapid method to detect aflatoxins in brown rice. J. Near Infrared Spectrosc. 2019, 27, 232–240. [Google Scholar] [CrossRef]
  51. da Conceição, R.R.P.; Simeone, M.L.F.; Queiroz, V.A.V.; de Medeiros, E.P.; de Araújo, J.B.; Coutinho, W.M.; da Silva, D.D.; Miguel, R.d.A.; Lana, U.G.d.P.; Stoianoff, M.A.d.R. Application of near-infrared hyperspectral (NIR) images combined with multivariate image analysis in the differentiation of two mycotoxicogenic Fusarium species associated with maize. Food Chem. 2021, 344, 128615. [Google Scholar] [CrossRef]
  52. Visconti, A.; Pascale, M. REVIEW: An Overview on Fusarium Mycotoxins in the Durum Wheat Pasta Production Chain. Cereal Chem. 2010, 87, 21–27. [Google Scholar] [CrossRef]
  53. Jaillais, B.; Roumet, P.; Pinson-Gadais, L.; Bertrand, D. Detection of Fusarium head blight contamination in wheat kernels by multivariate imaging. Food Control 2015, 54, 250–258. [Google Scholar] [CrossRef]
  54. Femenias, A.; Llorens-Serentill, E.; Ramos, A.J.; Sanchis, V.; Marín, S. Near-infrared hyperspectral imaging evaluation of Fusarium damage and DON in single wheat kernels. Food Control 2022, 142, 109239. [Google Scholar] [CrossRef]
  55. Femenias, A.; Bainotti, M.B.; Gatius, F.; Ramos, A.J.; Marín, S. Standardization of near infrared hyperspectral imaging for wheat single kernel sorting according to deoxynivalenol level. Food Res. Int. 2021, 139, 109925. [Google Scholar] [CrossRef] [PubMed]
  56. Vicens-Sans, A.; Pascari, X.; Molino, F.; Ramos, A.; Marín, S. Near infrared hyperspectral imaging as a sorting tool for deoxynivalenol reduction in wheat batches. Food Res. Int. 2024, 178, 113984. [Google Scholar] [CrossRef]
  57. Wang, C.; Fu, X.; Zhou, Y.; Fu, F. Deoxynivalenol Detection beyond the Limit in Wheat Flour Based on the Fluorescence Hyperspectral Imaging Technique. Foods 2024, 13, 897. [Google Scholar] [CrossRef]
  58. Liang, K.; Huang, J.; He, R.; Wang, Q.; Chai, Y.; Shen, M. Comparison of Vis-NIR and SWIR hyperspectral imaging for the non-destructive detection of DON levels in Fusarium head blight wheat kernels and wheat flour. Infrared Phys. Technol. 2020, 106. [Google Scholar] [CrossRef]
  59. Femenias, A.; Gatius, F.; Ramos, A.J.; Sanchis, V.; Marín, S. Standardisation of near infrared hyperspectral imaging for quantification and classification of DON contaminated wheat samples. Food Control 2020, 111, 107074. [Google Scholar] [CrossRef]
  60. Jiang, H.; Wang, J.; Chen, Q. Comparison of wavelength selected methods for improving of prediction performance of PLS model to determine aflatoxin B1 (AFB1) in wheat samples during storage. Microchem. J. 2021, 170. [Google Scholar] [CrossRef]
  61. Senthilkumar, T.; Jayas, D.; White, N.; Fields, P.; Gräfenhan, T. Detection of ochratoxin A contamination in stored wheat using near-infrared hyperspectral imaging. Infrared Phys. Technol. 2017, 81, 228–235. [Google Scholar] [CrossRef]
  62. Tao, F.; Yao, H.; Hruska, Z.; Rajasekaran, K.; Qin, J.; Kim, M.; Chao, K. Raman Hyperspectral Imaging as a Potential Tool for Rapid and Nondestructive Identification of Aflatoxin Contamination in Corn Kernels. J. Food Prot. 2024, 87, 100335. [Google Scholar] [CrossRef] [PubMed]
  63. Wang, Z.; An, T.; Wang, W.; Fan, S.; Chen, L.; Tian, X. Qualitative and quantitative detection of aflatoxins B1 in maize kernels with fluorescence hyperspectral imaging based on the combination method of boosting and stacking. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2023, 296, 122679. [Google Scholar] [CrossRef] [PubMed]
  64. Tian, X.; Yao, J.; Yu, H.; Wang, W.; Huang, W. Early contamination warning of Aflatoxin B1 in stored maize based on the dynamic change of catalase activity and data fusion of hyperspectral images. Comput. Electron. Agric. 2024, 217, 108615. [Google Scholar] [CrossRef]
  65. Guo, X.; Jia, B.; Zhang, H.; Ni, X.; Zhuang, H.; Lu, Y.; Wang, W. Evaluation of Aspergillus flavus Growth and Detection of Aflatoxin B1 Content on Maize Agar Culture Medium Using Vis/NIR Hyperspectral Imaging. Agriculture 2023, 13, 237. [Google Scholar] [CrossRef]
  66. Lu, Y.; Jia, B.; Yoon, S.-C.; Zhuang, H.; Ni, X.; Guo, B.; Gold, S.E.; Fountain, J.C.; Glenn, A.E.; Lawrence, K.C.; et al. Spatio-temporal patterns of Aspergillus flavus infection and aflatoxin B1 biosynthesis on maize kernels probed by SWIR hyperspectral imaging and synchrotron FTIR microspectroscopy. Food Chem. 2022, 382, 132340. [Google Scholar] [CrossRef]
  67. Kim, Y.-K.; Baek, I.; Lee, K.-M.; Qin, J.; Kim, G.; Shin, B.K.; Chan, D.E.; Herrman, T.J.; Cho, S.-K.; Kim, M.S. Investigation of reflectance, fluorescence, and Raman hyperspectral imaging techniques for rapid detection of aflatoxins in ground maize. Food Control 2021, 132, 108479. [Google Scholar] [CrossRef]
  68. Zhang, J.; Xu, B.; Wang, Z.; Cheng, F. Application of hyperspectral imaging in the detection of aflatoxin B1 on corn seed. J. Food Meas. Charact. 2021, 16, 448–460. [Google Scholar] [CrossRef]
  69. Zhou, Q.; Huang, W.; Liang, D.; Tian, X. Classification of Aflatoxin B1 Concentration of Single Maize Kernel Based on Near-Infrared Hyperspectral Imaging and Feature Selection. Sensors 2021, 21, 4257. [Google Scholar] [CrossRef]
  70. Gao, J.; Ni, J.; Wang, D.; Deng, L.; Li, J.; Han, Z. Pixel-level aflatoxin detecting in maize based on feature selection and hyperspectral imaging. Spectrochim. Acta Part A: Mol. Biomol. Spectrosc. 2020, 234, 118269. [Google Scholar] [CrossRef]
  71. Borràs-Vallverdú, B.; Marín, S.; Sanchis, V.; Gatius, F.; Ramos, A.J. NIR-HSI as a tool to predict deoxynivalenol and fumonisins in maize kernels: A step forward in preventing mycotoxin contamination. J. Sci. Food Agric. 2024, 104, 5495–5503. [Google Scholar] [CrossRef]
  72. Parrag, V.; Gillay, Z.; Kovács, Z.; Zitek, A.; Böhm, K.; Hinterstoisser, B.; Krska, R.; Sulyok, M.; Felföldi, J.; Firtha, F.; et al. Application of hyperspectral imaging to detect toxigenic Fusarium infection on cornmeal. Prog. Agric. Eng. Sci. 2020, 16, 51–60. [Google Scholar] [CrossRef]
  73. Conceição, R.R.P.; Queiroz, V.A.V.; Medeiros, E.P.; Araújo, J.B.; Araújo, D.D.S.; Miguel, R.A.; Stoianoff, M.A.R.; Simeone, M.L.F. Determination of fumonisin content in maize using near-infrared hyperspectral imaging (NIR-HSI) technology and chemometric methods. Braz. J. Biol. 2024, 84, e277974. [Google Scholar] [CrossRef] [PubMed]
  74. Liu, W.; Deng, H.; Shi, Y.; Liu, C.; Zheng, L. Application of multispectral imaging combined with machine learning methods for rapid and non-destructive detection of zearalenone (ZEN) in maize. Measurement 2022, 203, 111944. [Google Scholar] [CrossRef]
  75. Fan, K.-J.; Liu, B.-Y.; Su, W.-H. Discrimination of Deoxynivalenol Levels of Barley Kernels Using Hyperspectral Imaging in Tandem with Optimized Convolutional Neural Network. Sensors 2023, 23, 2668. [Google Scholar] [CrossRef] [PubMed]
  76. Su, W.-H.; Yang, C.; Dong, Y.; Johnson, R.; Page, R.; Szinyei, T.; Hirsch, C.D.; Steffenson, B.J. Hyperspectral imaging and improved feature variable selection for automated determination of deoxynivalenol in various genetic lines of barley kernels for resistance screening. Food Chem. 2021, 343, 128507. [Google Scholar] [CrossRef]
  77. Senthilkumar, T.; Jayas, D.S.; White, N.D.; Fields, P.G.; Gräfenhan, T. Detection of fungal infection and Ochratoxin A contamination in stored barley using near-infrared hyperspectral imaging. Biosyst. Eng. 2016, 147, 162–173. [Google Scholar] [CrossRef]
  78. Tekle, S.; Måge, I.; Segtnan, V.H.; Bj, Å. Near-Infrared Hyperspectral Imaging of Fusarium-Damaged Oats (Avena sativa L.). Cereal Chem. 2015, 92, 73–80. [Google Scholar] [CrossRef]
  79. Janila, P.; Manohar, S.S.; Patne, N.; Variath, M.T.; Nigam, S.N. Genotype × Environment Interactions for Oil Content in Peanut and Stable High-Oil-Yielding Sources. Crop Sci. 2016, 56, 2506–2515. [Google Scholar] [CrossRef]
  80. Wang, K.-H.; Lai, Y.-H.; Chang, J.-C.; Ko, T.-F.; Shyu, S.-L.; Chiou, R.Y.-Y. Germination of Peanut Kernels to Enhance Resveratrol Biosynthesis and Prepare Sprouts as a Functional Vegetable. J. Agric. Food Chem. 2005, 53, 242–246. [Google Scholar] [CrossRef]
  81. Zhu, H.; Yang, L.; Gao, J.; Gao, M.; Han, Z. Quantitative detection of Aflatoxin B1 by subpixel CNN regression. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 268, 120633. [Google Scholar] [CrossRef]
  82. Zhu, H.; Yang, L.; Han, Z. Quantitative aflatoxin B1 detection and mining key wavelengths based on deep learning and hyperspectral imaging in subpixel level. Comput. Electron. Agric. 2023, 206, 107561. [Google Scholar] [CrossRef]
  83. Guo, Z.; Zhang, J.; Dong, H.; Sun, J.; Huang, J.; Li, S.; Ma, C.; Guo, Y.; Sun, X. Spatio-temporal distribution patterns and quantitative detection of aflatoxin B1 and total aflatoxin in peanut kernels explored by short-wave infrared hyperspectral imaging. Food Chem. 2023, 424, 136441. [Google Scholar] [CrossRef] [PubMed]
  84. He, X.; Yan, C.; Jiang, X.; Shen, F.; You, J.; Fang, Y. Classification of aflatoxin B1 naturally contaminated peanut using visible and near-infrared hyperspectral imaging by integrating spectral and texture features. Infrared Phys. Technol. 2021, 114, 103652. [Google Scholar] [CrossRef]
  85. Kabir, A.; Lee, I.; Mishra, G.; Singh, C.B.; Panda, B.K.; Lee, S.-H. Quantifying Aflatoxin B1 Contamination Levels in Almonds Using Hyperspectral Imaging Utilizing Gaussian Process and Support Vector Regression. In Proceedings of the 2024 IEEE Symposium on Wireless Technology & Applications (ISWTA), Kuala Lumpur, Malaysia, 20–21 July 2024. [Google Scholar]
  86. Wu, Q.; Tian, H.; Xu, H. Laser Induced Fluorescence Hyperspectral Imaging (LIF-HSI) for Aflatoxin B1 Detection in Pistachio Kernels. In Proceedings of the 2019 ASABE Annual International Meeting, St. Joseph, MI, USA, 7–10 July 2019; ASABE: St. Joseph, MI, USA; p. 1. [Google Scholar]
  87. Zhongzhi, H.; Limiao, D. Aflatoxin contaminated degree detection by hyperspectral data using band index. Food Chem. Toxicol. 2020, 137, 111159. [Google Scholar] [CrossRef]
  88. Tao, F.; Yao, H.; Hruska, Z.; Liu, Y.; Rajasekaran, K.; Bhatnagar, D. Use of Visible–Near-Infrared (Vis-NIR) Spectroscopy to Detect Aflatoxin B1 on Peanut Kernels. Appl. Spectrosc. 2019, 73, 415–423. [Google Scholar] [CrossRef]
  89. Han, Z.; Gao, J. Pixel-level aflatoxin detecting based on deep learning and hyperspectral imaging. Comput. Electron. Agric. 2019, 164, 104888. [Google Scholar] [CrossRef]
  90. Zhu, H.; Zhao, Y.; Gu, Q.; Zhao, L.; Yang, R.; Han, Z. Spectral intelligent detection for aflatoxin B1 via contrastive learning based on Siamese network. Food Chem. 2024, 449, 139171. [Google Scholar] [CrossRef]
  91. Mishra, G.; Panda, B.K.; Ramirez, W.A.; Jung, H.; Singh, C.B.; Lee, S.-H.; Lee, I. Detection of aflatoxin contamination in single kernel almonds using multispectral imaging system. J. Food Compos. Anal. 2024, 125, 105701. [Google Scholar] [CrossRef]
  92. Kabir, A.; Lee, I.; Mishra, G.; Panda, B.K.; Singh, C.B.; Lee, S.-H. Classification of Aflatoxin B1 Contamination Level Using Hyperspectral Images with Random Forest and QDA. In Proceedings of the 2024 IEEE International Conference on Big Data, Cloud Computing, and Data Science (BCD), Kitakyushu, Japan, 16–18 July 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
  93. Kabir, A.; Lee, I.; Singh, C.B.; Mishra, G.; Panda, B.K.; Lee, S.-H. Aflatoxin B1 Contamination Level Detection in Almond Kernels Through Short Wave Infrared Hyperspectral Image Analysis. Adv. Agrochem. 2025, in press. [CrossRef]
  94. Kabir, A.; Lee, I.; Singh, C.B.; Mishra, G.; Panda, B.K.; Lee, S.-H. Correlation awareness evolutionary sparse hybrid spectral band selection algorithm to detect aflatoxin B1 contaminated almonds using hyperspectral images. Food Chem. 2025, 476, 143381. [Google Scholar] [CrossRef]
  95. Kabir, A.; Lee, I.; Lee, S.-H. Deep Learning-Based Detection of Aflatoxin B1 Contamination in Almonds Using Hyperspectral Imaging: A Focus on Optimized 3D Inception–ResNet Model. Toxins 2025, 17, 156. [Google Scholar] [CrossRef] [PubMed]
  96. Kabir, A.; Lee, I.; Singh, C.B.; Mishra, G.; Panda, B.K.; Lee, S.-H. Multilayer Perception-Based Hybrid Spectral Band Selection Algorithm for Aflatoxin B1 Detection Using Hyperspectral Imaging. Appl. Sci. 2024, 14, 9313. [Google Scholar] [CrossRef]
  97. Williams, L.; Shukla, P.; Sheikh-Akbari, A.; Mahroughi, S.; Mporas, I. Measuring the Level of Aflatoxin Infection in Pistachio Nuts by Applying Machine Learning Techniques to Hyperspectral Images. Sensors 2025, 25, 1548. [Google Scholar] [CrossRef] [PubMed]
  98. Fernández-Ibañez, V.; Soldado, A.; Martínez-Fernández, A.; de la Roza-Delgado, B. Application of near infrared spectroscopy for rapid detection of aflatoxin B1 in maize and barley as analytical quality assessment. Food Chem. 2009, 113, 629–634. [Google Scholar] [CrossRef]
  99. Putthang, R.; Sirisomboon, P.; Sirisomboon, C.D. Shortwave Near-Infrared Spectroscopy for Rapid Detection of Aflatoxin B1 Contamination in Polished Rice. J. Food Prot. 2019, 82, 796–803. [Google Scholar] [CrossRef]
  100. Yao, H.; Hruska, Z.; Kincaid, R.; Brown, R.; Cleveland, T.; Bhatnagar, D. Correlation and classification of single kernel fluorescence hyperspectral data with aflatoxin concentration in corn kernels inoculated with Aspergillus flavus spores. Food Addit. Contam. Part A 2010, 27, 701–709. [Google Scholar] [CrossRef]
  101. Zhu, F.; Yao, H.; Hruska, Z.; Kincaid, R.; Brown, R.L.; Bhatnagar, D.; Cleveland, T.E. Integration of Fluorescence and Reflectance Visible Near-Infrared (VNIR) Hyperspectral Images for Detection of Aflatoxins in Corn Kernels. Trans. ASABE 2016, 59, 785–794. [Google Scholar] [CrossRef]
  102. Tao, F.; Yao, H.; Hruska, Z.; Liu, Y.; Rajasekaran, K.; Bhatnagar, D. Detection of aflatoxin B1 on corn kernel surfaces using visible-near infrared spectroscopy. J. Near Infrared Spectrosc. 2020, 28, 59–69. [Google Scholar] [CrossRef]
  103. Firrao, G.; Torelli, E.; Gobbi, E.; Raranciuc, S.; Bianchi, G.; Locci, R. Prediction of milled maize fumonisin contamination by multispectral image analysis. J. Cereal Sci. 2010, 52, 327–330. [Google Scholar] [CrossRef]
  104. Zhongzhi, H.; Limiao, D. Application driven key wavelengths mining method for aflatoxin detection using hyperspectral data. Comput. Electron. Agric. 2018, 153, 248–255. [Google Scholar] [CrossRef]
  105. Cheng, X.; Vella, A.; Stasiewicz, M.J. Classification of aflatoxin contaminated single corn kernels by ultraviolet to near infrared spectroscopy. Food Control 2019, 98, 253–261. [Google Scholar] [CrossRef]
  106. Zhang, P.; Shen, B.; Ji, H.; Wang, H.; Liu, Y.; Zhang, X.; Ren, C. Nondestructive Prediction of Mechanical Parameters to Apple Using Hyperspectral Imaging by Support Vector Machine. Food Anal. Methods 2022, 15, 1397–1406. [Google Scholar] [CrossRef]
  107. Kim, J.; Kang, J.; Sohn, M. Ensemble learning-based filter-centric hybrid feature selection framework for high-dimensional imbalanced data. Knowl.-Based Syst. 2021, 220, 106901. [Google Scholar] [CrossRef]
  108. Deng, J.; Zhang, X.; Yang, Z.; Zhou, C.; Wang, R.; Zhang, K.; Lv, X.; Yang, L.; Wang, Z.; Li, P.; et al. Pixel-level regression for UAV hyperspectral images: Deep learning-based quantitative inverse of wheat stripe rust disease index. Comput. Electron. Agric. 2023, 215, 108434. [Google Scholar] [CrossRef]
  109. Stasiewicz, M.J.; Falade, T.D.O.; Mutuma, M.; Mutiga, S.K.; Harvey, J.J.W.; Fox, G.; Pearson, T.C.; Muthomi, J.W.; Nelson, R.J. Multi-spectral kernel sorting to reduce aflatoxins and fumonisins in Kenyan maize. Food Control 2017, 78, 203–214. [Google Scholar] [CrossRef]
  110. Levasseur-Garcia, C. Updated Overview of Infrared Spectroscopy Methods for Detecting Mycotoxins on Cereals (Corn, Wheat, and Barley). Toxins 2018, 10, 38. [Google Scholar] [CrossRef]
  111. Quan, Y.; Zhong, X.; Feng, W.; Chan, J.C.-W.; Li, Q.; Xing, M. SMOTE-Based Weighted Deep Rotation Forest for the Imbalanced Hyperspectral Data Classification. Remote. Sens. 2021, 13, 464. [Google Scholar] [CrossRef]
  112. Yao, H.; Hruska, Z.; Kincaid, R.; Brown, R.L.; Bhatnagar, D.; Cleveland, T.E. Detecting maize inoculated with toxigenic and atoxigenic fungal strains with fluorescence hyperspectral imagery. Biosyst. Eng. 2013, 115, 125–135. [Google Scholar] [CrossRef]
  113. Kandpal, L.M.; Lee, S.; Kim, M.S.; Bae, H.; Cho, B.-K. Short wave infrared (SWIR) hyperspectral imaging technique for examination of aflatoxin B1 (AFB1) on corn kernels. Food Control 2015, 51, 171–176. [Google Scholar] [CrossRef]
  114. Wynants, L.; Vergouwe, Y.; Van Huffel, S.; Timmerman, D.; Van Calster, B. Does ignoring clustering in multicenter data influence the performance of prediction models? A simulation study. Stat. Methods Med. Res. 2016, 27, 1723–1736. [Google Scholar] [CrossRef]
Figure 1. ML algorithms are used to detect mycotoxin using HSI.
Figure 1. ML algorithms are used to detect mycotoxin using HSI.
Toxins 17 00219 g001
Figure 2. Visual representation of commonly used machine learning algorithms for classification and regression tasks. Top: (1) SVM with margin-based classification, (2) SVR with ε-tube regression. Middle: (3) PLSR for predicted vs. observed fit, (4) KNN by neighbor proximity, (5) DT with majority voting, (6) RF as an ensemble of DTs. Bottom: (7) ensemble learning via weighted weak classifiers, (8) ANN with hidden layer and SoftMax output.
Figure 2. Visual representation of commonly used machine learning algorithms for classification and regression tasks. Top: (1) SVM with margin-based classification, (2) SVR with ε-tube regression. Middle: (3) PLSR for predicted vs. observed fit, (4) KNN by neighbor proximity, (5) DT with majority voting, (6) RF as an ensemble of DTs. Bottom: (7) ensemble learning via weighted weak classifiers, (8) ANN with hidden layer and SoftMax output.
Toxins 17 00219 g002
Table 1. Most common mycotoxins in cereal grains and nuts and possible health issues.
Table 1. Most common mycotoxins in cereal grains and nuts and possible health issues.
MycotoxinMain ProducersCommonly Affected FoodsPossible Health IssuesMRLs in Cereals and Nuts (µg/kg)
AflatoxinAspergillus flavus, A. parasiticusPeanut, pistachio, almond, wheat, corn, and riceLiver damage, high hemorrhage, DNA damage, impaired body immune function, etc. [8]Total aflatoxins (nuts): EU: 4–10 [9]; US: 20 [10]
Ochratoxin AAspergillus ochraceus, A. carbonariusWheat, corn, and barleyKidney toxicity in both animals and humans, kidney tumor in rodents [11]EU: 5–10 (pistachio); 3–5 (cereals) [10,12]
PatulinPenicillium and Byssochlamys Wheat breadDamaged liver, kidney, immune system, and intestinal tissues [13]--
T-2 toxinFusarium, MyroteciumWheat, barley, rye, oats, and maize Reduces weight, weakens the immune system [14]EU: 50 (UP cereal); 150 (UP barley); 100 (UP maize); 1250 (UP oats) [15]
FumonisinsFusarium verticillioidesCorn and corn-based food products Can create defects in the neural tube and esophageal cancer [16]EU: 1000–4000; US: 2000–4000 (cereal) [10]
Ergot alkaloidsClaviceps spp.Wheat, oats, barley, and rye It can create pulse variation, decrease blood circulation, etc. [17]EU: 50 (barley, oats, and wheat) [18]
DeoxynivalenolFusarium graminearumWheat, corn, oats, barley, and other cereal grainsIt causes vomiting and short-term nausea issues [19]EU: 150 (P cereal); 1000 (UP cereal), 1500 (UP wheat), 1750 (UP oats) [20]
Alternaria toxinsAlternariaWheat, corn, and other cereal DNA strands can be broken, reducing cell proliferation [21]EU (recommended in cereal, not MRLs): 2 (Alternariol); 500 (Tenuazonic acid) [22]
ZearalenoneFusarium graminearum and F. culmorum Wheat, rice, oats, barley, and ryeCan have an impact on hormonal balance [5]EU: 100–350 (cereal) [10]
MRLs (maximum residue limits); EU (European Union); US (United States); P (processed); UP (unprocessed).
Table 2. ML techniques to detect mycotoxins in wheat using hyperspectral images.
Table 2. ML techniques to detect mycotoxins in wheat using hyperspectral images.
MycotoxinSample NumberWavelength (nm)PreprocessingML MethodsPerformanceReference
DON6001000–16,000SNV, MSCLDAAcc: 83%[56]
DON72250–2500SG, MSCRF, SVM, CNNAcc: 98.95%[57]
DON300900–1700MSC, SG, 1st and 2nd dev, SNVPLSRR2: 0.88[54]
DON120970–1623MSC, 1st and 2nd dev, SNVPLSR, SVRR2: 0.88[49]
DON480960–1700RawKNNAcc: 80%[39]
DON50900–1700MSC, 1st and 2nd dev, SNVLDA, NB, KNNAcc: 100%[55]
DON96400–2500SNV, MSCSVM, SAEAcc: 96%[58]
DON150900–1700MSC, 1st and 2nd dev, SNVPLSR, LDAAcc: 62.7%[59]
AFB1150899–1725SG, SNVPLSRR2: 0.99[60]
OTA20 kg1000–1600RawDAAcc: 99.8%[61]
OTA10 kg1000–1600RawDAAcc: 100%[46]
DON (deoxynivalenol); AFB1 (aflatoxin B1); OTA (ochratoxins); SNV (standard normal variate); MSC (multiplicative scatter correction); SG (Savitzky–Golay); LDA (linear discriminant analysis); SVM (support vector machine); PLSR (partial least squares regression); SVR (support vector regression); KNN (k-nearest neighbors); RF (random forest); CNN (convolutional neural network); NB (Naive Bayes); SAE (sparse autoencoder).
Table 3. ML techniques to detect mycotoxin for corn using hyperspectral images.
Table 3. ML techniques to detect mycotoxin for corn using hyperspectral images.
MycotoxinSample NumberWavelength (nm)PreprocessingML MethodsPerformanceReference
AFB1900786–824SGLDAAcc: 89.6%[62]
AFB1958380–814SNVSVRAcc: 98%[63]
AFB1228900–2500SNV, SGSVM, PLS-DAAcc: 95.7%[48]
AFB1968327–1098
930–2548
RawPLSRR2: 0.924[64]
AFB126400–1000SNVSVM, PLSRR2: 0.95[65]
AFB1300900–2500SNV, SG, 1st and 2nd devPLS-DAAcc: 90.4%[40]
AFB13201000–2500SNVPLSR, SVRR2: 0.97[66]
AFB1122785SG, SNVSVMAcc: 95.7%[67]
AFB1958460–929SNV, MSCKNN, SVM, LDAAcc: 87.3%[68]
AFB12501100–2000SG, 1st and 2nd devLDAAcc: 95.56%[69]
AFB16292–865MSC, PCA,RF, KNNAcc: 99.38%[70]
DON98893–1730MSC, SNV, SGRF, NN, LR, KNNAcc: 98.6%
R2: 81.9
[71]
DON176900–1700SNV, SG smoothingPLSR, PLS-DAR2: 0.974,
Acc: 98.8%
[72]
FM581000–2100SNVPLSRR2: 0.98[73]
ZEN1890400–1000RawSVM, DA, PLSR, NNAcc: 93.33 %[74]
DON (deoxynivalenol); AFB1 (aflatoxin B1); FM (fumonisins); ZEN (zearalenone); SNV (standard normal variate); MSC (multiplicative scatter correction); SG (Savitzky–Golay); PCA (principal component analysis); LDA (linear discriminant analysis); SVM (support vector machine); PLSR (partial least squares regression); SVR (support vector regression); RF (random forest).
Table 4. ML techniques to detect mycotoxin for various cereal grains using hyperspectral images.
Table 4. ML techniques to detect mycotoxin for various cereal grains using hyperspectral images.
Other CerealMycotoxinSample NumberWavelength (nm)PreprocessingML MethodsPerformanceReference
BarleyDON590367–1048MAFCNNAcc: 89.81%[75]
BarleyDON1004382–1030RawPLDAR2: 0.931[76]
BarleyOTA101 kg1000–1600RawDAAcc: 100%[77]
OatsDON119900–1700SNV, 1st devPLSR, RF, KNN, NBAcc: 77.8%[47]
OatsDON2201000–2500NormalizationPLSR, LDAR2: 0.8[78]
OatsT-2119900–1700SNV, 1st devPLSR, RF, KNN, NBAcc: 94.1%[47]
DON (deoxynivalenol); OTA (ochratoxins); T-2 (T-2 toxin); SNV (standard normal variate); MAF (moving-average filtering); LDA (linear discriminant analysis); PLDA (partial least squares discriminant analysis); PLSR (partial least squares regression); KNN (k-nearest neighbors); RF (random forest); CNN (convolutional neural network); NB (Naive Bayes); DA (discriminant analysis).
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kabir, M.A.; Lee, I.; Singh, C.B.; Mishra, G.; Panda, B.K.; Lee, S.-H. Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Toxins 2025, 17, 219. https://doi.org/10.3390/toxins17050219

AMA Style

Kabir MA, Lee I, Singh CB, Mishra G, Panda BK, Lee S-H. Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Toxins. 2025; 17(5):219. https://doi.org/10.3390/toxins17050219

Chicago/Turabian Style

Kabir, Md. Ahasan, Ivan Lee, Chandra B. Singh, Gayatri Mishra, Brajesh Kumar Panda, and Sang-Heon Lee. 2025. "Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review" Toxins 17, no. 5: 219. https://doi.org/10.3390/toxins17050219

APA Style

Kabir, M. A., Lee, I., Singh, C. B., Mishra, G., Panda, B. K., & Lee, S.-H. (2025). Detection of Mycotoxins in Cereal Grains and Nuts Using Machine Learning Integrated Hyperspectral Imaging: A Review. Toxins, 17(5), 219. https://doi.org/10.3390/toxins17050219

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop