# Squeeze-Excitation Attention-Guided 3D Inception ResNet for Aflatoxin B1 Classification in Almonds Using Hyperspectral Imaging

**Authors:** Md. Ahasan Kabir, Ivan Lee, Sang-Heon Lee

PMC · DOI: 10.3390/toxins18020076 · Toxins · 2026-02-02

## TL;DR

This paper introduces a 3D deep learning model for detecting aflatoxin B1 contamination in almonds using hyperspectral imaging, achieving high accuracy and efficiency.

## Contribution

The novel AGIR-3DNet model combines attention mechanisms, multi-scale features, and residual learning for improved AFB1 classification in almonds.

## Key findings

- AGIR-3DNet achieved 93.30% validation accuracy in detecting AFB1 contamination.
- The model outperformed conventional machine learning and deep learning methods with an F1-score of 0.94 and AUC of 0.98.
- AGIR-3DNet offers faster processing, making it suitable for real-time industrial use.

## Abstract

Almonds are a highly valued nut due to their rich protein and nutritional content. However, they are vulnerable to aflatoxin B1 (AFB1) contamination in warm and humid environments. Consumption of AFB1-contaminated almonds can pose serious health risks, including kidney damage, and may lead to significant economic losses. Consequently, a rapid and non-destructive detection method is essential to ensure food safety by identifying and removing contaminated almonds from the supply chain. Hyperspectral imaging (HSI) and 3D deep learning provide a non-destructive, efficient alternative to current AFB1 detection methods. This study presents an attention-guided Inception ResNet 3D Network (AGIR-3DNet) for fast and precise detection of AFB1 contamination in almonds utilizing HSI. The proposed model integrates multi-scale feature extraction, residual learning, and attention mechanisms to enhance spatial-spectral feature representation, enabling more precise classification. The proposed 3D model was rigorously tested, and its performance was compared against 3D Inception and various conventional machine learning models. Compared to conventional machine learning models and deep learning architectures, AGIR-3DNet outperformed and achieved superior validation accuracy of 93.30%, an F1-score (harmonic mean of precision and recall) of 0.94, and an area under the receiver operating characteristic curve (AUC) value of 0.98. Furthermore, the model enhances processing efficiency, making it faster and more suitable for real-time industrial applications.

## Linked entities

- **Chemicals:** aflatoxin B1 (PubChem CID 186907)

## Full-text entities

- **Diseases:** opportunistic infections (MESH:D009894), cancer (MESH:D009369), injury to (MESH:D014947), stunting (MESH:D006130), fungal (MESH:D009181), hepatocellular carcinoma (MESH:D006528), kidney damage (MESH:D007674), SE (MESH:D011595)
- **Chemicals:** water (MESH:D014867), aflatoxin (MESH:D000348), acetonitrile (MESH:C032159), methanol (MESH:D000432), AFB1 (MESH:D016604)
- **Species:** Aspergillus parasiticus (species) [taxon 5067], Arachis hypogaea (goober, species) [taxon 3818], Prunus dulcis (almond, species) [taxon 3755], Homo sapiens (human, species) [taxon 9606], Aspergillus flavus (species) [taxon 5059]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12944700/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12944700/full.md

## References

37 references — full list in the complete paper: https://tomesphere.com/paper/PMC12944700/full.md

---
Source: https://tomesphere.com/paper/PMC12944700