VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection
Abstract
1. Introduction
2. Materials and Methods
2.1. Sample Preparation
2.2. Task Definition
2.3. Bruise Induction and Annotation
2.4. Data Acquisition
2.5. Radiometric Calibration and Cross-Modal Registration
2.6. Consistency-Driven Fusion and SWIR Super-Resolution via Collaborative Unmixing
2.7. Multi-Task Learning Method for Fusion-Driven Fruit Inspection
2.7.1. Input Representation and Preprocessing
2.7.2. Shared Spectral–Spatial Encoder
2.7.3. Fruit-Level Origin-Category Authentication Head
2.7.4. Pixel-Level Bruise Detection Head
2.7.5. Joint Objective and Optimisation Details
2.8. Model Training, Evaluation Protocol, and Implementation Details
3. Experimental Results and Discussions
3.1. Spectral Analysis
3.2. Quality of Fusion-Driven Reconstruction
3.3. Multi-Task Performance on Origin-Category Authentication and Bruise Detection
3.3.1. Fruit Origin-Category Authentication
3.3.2. Bruise Detection
3.4. Ablation of the Dual-Source Fusion Setting
| Fruit Group | Variant | Origin Acc | Bruise F1/Dice |
|---|---|---|---|
| Apple | Full model | 93.85 ± 0.75 | 93.41 ± 0.92 |
| Apple | Without abundance consistency | 92.67 ± 1.13 | 92.64 ± 0.85 |
| Apple | Without observation consistency | 91.42 ± 1.01 | 92.45 ± 0.82 |
| Apple | Without refinement blocks | 92.86 ± 0.81 | 92.89 ± 0.87 |
| Kiwifruit | Full model | 94.35 ± 0.65 | 94.26 ± 0.83 |
| Kiwifruit | Without abundance consistency | 92.93 ± 0.75 | 93.29 ± 0.71 |
| Kiwifruit | Without observation consistency | 92.37 ± 0.79 | 92.63 ± 0.93 |
| Kiwifruit | Without refinement blocks | 93.16 ± 0.60 | 93.46 ± 0.56 |
3.5. Statistical Robustness and Same-Backbone Input Comparison Analysis
3.6. Discussion
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Nikzadfar, M.; Rashvand, M.; Zhang, H.; Shenfield, A.; Genovese, F.; Altieri, G.; Matera, A.; Tornese, I.; Laveglia, S.; Paterna, G.; et al. Hyperspectral Imaging Aiding Artificial Intelligence: A Reliable Approach for Food Qualification and Safety. Appl. Sci. 2024, 14, 9821. [Google Scholar] [CrossRef]
- Yang, C.; Guo, Z.; Fernandes Barbin, D.; Dai, Z.; Watson, N.; Povey, M.; Zou, X. Hyperspectral Imaging and Deep Learning for Quality and Safety Inspection of Fruits and Vegetables: A Review. J. Agric. Food Chem. 2025, 73, 10019–10035. [Google Scholar] [CrossRef] [PubMed]
- Li, W.; Wu, Y.; Du, L.; Shang, X.; Shi, J. Hyperspectral Imaging for Foreign Matter Detection in Foods: Advances, Challenges, and Future Directions. Foods 2025, 14, 3026. [Google Scholar] [CrossRef] [PubMed]
- Nie, J.; Shuai, M.; Liu, Y.; Li, X.; Liu, M.; Li, A.; Zhao, D.; Chen, Q.; Liu, X.; Li, Z. Geographical Origin Authentication of Fruits: A Decadal Review (2014–2024) of Technological Progress and Outlook. J. Integr. Agric. 2026, 25, 2669–2687. [Google Scholar]
- Zhang, C.; Liu, C.; Zeng, S.; Yang, W.; Chen, Y. Hyperspectral Imaging Coupled with Deep Learning Model for Visualization and Detection of Early Bruises on Apples. J. Food Compos. Anal. 2024, 134, 106489. [Google Scholar] [CrossRef]
- Gai, Z.; Sun, L.; Bai, H.; Li, X.; Wang, J.; Bai, S. Convolutional Neural Network for Apple Bruise Detection Based on Hyperspectral. Spectrochim. Acta Part A Mol. Biomol. Spectrosc. 2022, 279, 121432. [Google Scholar] [CrossRef]
- Liu, D.; Zhang, H.; Lv, F.; Tao, Y.; Zhu, L. Combining Transfer Learning and Hyperspectral Imaging to Identify Bruises of Pears across Different Bruise Types. J. Food Sci. 2024, 89, 2597–2610. [Google Scholar] [CrossRef] [PubMed]
- Long, T.; Tang, X.; Liang, C.; Wu, B.; Huang, B.; Lan, Y.; Xu, H.; Liu, S.; Long, Y. Detecting Bioactive Compound Contents in Dancong Tea Using VNIR-SWIR Hyperspectral Imaging and KRR Model with a Refined Feature-Wavelength Method. Food Chem. 2024, 460, 140579. [Google Scholar] [PubMed]
- Shao, X.; Guo, Z.; Qin, Y.; Zhao, J.; Guo, Y.; Sun, X.; Du, F. Synergistic Multi-Level Fusion Framework of VNIR and SWIR Hyperspectral Data for Soybean Fungal Contamination Detection. Food Chem. 2025, 492, 145559. [Google Scholar] [CrossRef] [PubMed]
- Wu, K.; Hao, C.; Guo, W.; Li, Z.; Zheng, D. Dual-Sensor Hyperspectral Fusion for Prediction of Sorghum Tannin Content Oriented to Liquor Brewing. Foods 2025, 14, 3880. [Google Scholar] [CrossRef] [PubMed]
- Chung, S.; Yoon, S.-C. Detection of Foreign Materials on Broiler Breast Meat Using a Fusion of Visible Near-Infrared and Short-Wave Infrared Hyperspectral Imaging. Appl. Sci. 2021, 11, 11987. [Google Scholar]
- Xia, Y.; Tian, J.; Zhou, Y.; Huang, D.; Xie, L.; Hu, X.; Yang, H.; Shang, J. Rapid Multi-Task Detection of Rice Components Using Convolutional Bidirectional Long Short-Term Fusion Network Combined with Hyperspectral Imaging. Food Control 2026, 181, 111701. [Google Scholar]
- Liu, C.; Xia, Z.; Li, H.; Fan, F.; Ma, Y.; Hu, H.; Zhang, C. Cross-Temporal Egg Variety and Storage Period Classifications via Multi-Task Deep Learning with Near-Infrared Hyperspectral Imaging. Foods 2025, 14, 4140. [Google Scholar] [PubMed]
- Mengucci, C.; Ferranti, P.; Romano, A.; Masi, P.; Picone, G.; Capozzi, F. Food structure, function and artificial intelligence. Trends Food Sci. Technol. 2022, 123, 251–263. [Google Scholar] [CrossRef]
- Jiang, X.; Cao, X.; Liu, Q.; Wang, F.; Fan, S.; Yan, L.; Wei, Y.; Chen, Y.; Yang, G.; Xu, B.; et al. Prediction of Multi-Task Physicochemical Indices Based on Hyperspectral Imaging and Analysis of the Relationship between Physicochemical Composition and Sensory Quality of Tea. Food Res. Int. 2025, 211, 116455. [Google Scholar] [CrossRef] [PubMed]
- Wang, Y.; Tao, W.; Zeng, S.; Xia, S.; Li, B.; Liu, C. Early bruise detection and visualization of apples using geometrical influence correction based on 3D point cloud and hyperspectral imaging. Postharvest Biol. Technol. 2026, 231, 113935. [Google Scholar]










| Hyperspectral Imaging Instrument | SPECIM FX10 | SPECIM SWIR |
|---|---|---|
| Spectral range | 400–1000 nm | 1000–2500 nm |
| Spectral bands | 224 | 273 |
| Spectral resolution | 5.5 nm | 10 nm |
| Spectral sampling/pixels | 2.7 nm | 5.6 nm |
| Spatial samples | 1024 | 384 |
| Pixel size | 8 × 8 μm | 24 × 24 μm |
| Maximum frame rate | 330 FPS | 450 FPS |
| Wavelength Interval (nm) | Primary Attribution (Dominant Mechanism) | Relevance to Origin-Category Authentication | Relevance to Bruise Detection |
|---|---|---|---|
| 400–550 | Pigments (anthocyanins/carotenoids), epidermal colour | Strong: colour/pigment provenance cues | Indirect: may reveal surface discoloration in late bruises |
| 650–750 | Chlorophyll absorption/red-edge shift; scattering transition | Strong: red-edge/scatter differences | Moderate: damaged tissue may alter the red-edge slope |
| 800–1000 | NIR scattering, cell structure, water overtone shoulder | Moderate: structure and water status | Strong: water redistribution and structural disruption affect reflectance |
| ~970 | O–H overtone (free/weakly bound water) | Supplementary: water-status variation | Strong: moisture-related changes under bruising |
| 1050–1200 | C–H/O–H combinations and overtones; matrix composition | Moderate–strong: dry matter/matrix cues | Strong: bruise-related matrix changes often amplify differences |
| ~1450 | O–H first overtone (water) | Supplementary: hydration differences | Strong: sensitive to tissue hydration and bruise evolution |
| 1900–2000 | O–H combination band (water) and strong absorption | Limited: SNR-dependent water response | Often informative if SNR allows; reflects water status |
| 2100–2350 | C–H/C–O/N–H combinations (carbohydrates, organic matrix) | Moderate: carbohydrate/matrix cues | Moderate: tissue degradation can shift/reshape absorptions |
| Fruit Group | Input | Method | Overall Accuracy (%) | Macro-F1 (%) |
|---|---|---|---|---|
| Apple (4 origin-labeled categories) | HR VNIR HSI | KNN (baseline) | 88.125 | 88.120 |
| Apple (4 origin-labeled categories) | Fused VNIR-SWIR representation | Ours (multi-task) | 94.125 | 94.145 |
| Kiwifruit (4 origin-labeled categories) | HR VNIR HSI | KNN (baseline) | 88.875 | 88.863 |
| Kiwifruit (4 origin-labeled categories) | Fused VNIR-SWIR representation | Ours (multi-task) | 94.500 | 94.515 |
| Fruit Group | Method | Origin Category | Recall (%) | Precision (%) | F1 (%) |
|---|---|---|---|---|---|
| Apple | KNN (baseline) | Apple A | 84.5 | 88.9 | 86.67 |
| Apple | KNN (baseline) | Apple B | 87.0 | 85.3 | 86.14 |
| Apple | KNN (baseline) | Apple C | 89.5 | 87.3 | 88.40 |
| Apple | KNN (baseline) | Apple D | 91.5 | 91.0 | 91.27 |
| Apple | Ours (multi-task) | Apple A | 92.5 | 93.9 | 93.20 |
| Apple | Ours (multi-task) | Apple B | 93.5 | 89.5 | 91.44 |
| Apple | Ours (multi-task) | Apple C | 96.0 | 96.0 | 96.00 |
| Apple | Ours (multi-task) | Apple D | 94.5 | 97.4 | 95.94 |
| Kiwifruit | KNN (baseline) | Kiwi A | 85.5 | 89.1 | 87.24 |
| Kiwifruit | KNN (baseline) | Kiwi B | 87.5 | 86.2 | 86.85 |
| Kiwifruit | KNN (baseline) | Kiwi C | 89.5 | 88.6 | 89.05 |
| Kiwifruit | KNN (baseline) | Kiwi D | 93.0 | 91.6 | 92.31 |
| Kiwifruit | Ours (multi-task) | Kiwi A | 95.0 | 98.4 | 96.69 |
| Kiwifruit | Ours (multi-task) | Kiwi B | 94.0 | 93.5 | 93.77 |
| Kiwifruit | Ours (multi-task) | Kiwi C | 94.0 | 93.5 | 93.77 |
| Kiwifruit | Ours (multi-task) | Kiwi D | 95.0 | 92.7 | 93.83 |
| Dataset | SVM (HR VNIR HSI) | 1D-CNN (HR VNIR HSI) | Our Method (HR VNIR HSI and LR SWIR HSI) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| OA (%) | AA (%) | × 100 | OA (%) | AA (%) | × 100 | OA (%) | AA (%) | × 100 | ||
| Apple | A | 94.7 | 85.0 | 70.0 | 95.8 | 89.1 | 78.2 | 98.3 | 96.3 | 91.8 |
| B | 98.6 | 96.2 | 92.5 | 98.7 | 97.5 | 93.0 | 99.3 | 98.2 | 96.2 | |
| C | 97.2 | 93.2 | 86.4 | 97.3 | 93.7 | 87.4 | 98.5 | 96.8 | 93.4 | |
| D | 97.3 | 89.4 | 78.7 | 98.6 | 95.0 | 89.9 | 99.0 | 95.9 | 92.7 | |
| Kiwifruit | A | 98.0 | 86.4 | 72.8 | 98.3 | 90.1 | 81.2 | 99.6 | 97.9 | 95.1 |
| B | 97.4 | 92.7 | 85.4 | 97.9 | 94.2 | 88.4 | 98.8 | 97.1 | 93.8 | |
| C | 92.9 | 89.2 | 78.3 | 95.2 | 92.9 | 85.8 | 96.5 | 95.1 | 90.0 | |
| D | 94.7 | 87.4 | 74.8 | 95.4 | 89.2 | 78.4 | 98.0 | 95.8 | 91.1 | |
| Evaluation Setting | Method/Variant | Input/Fusion Setting | Backbone | Apple Acc (%) | Apple Macro-F1/F1-Dice (%) | Kiwifruit Acc (%) | Kiwifruit Macro-F1/F1-Dice (%) |
|---|---|---|---|---|---|---|---|
| Same-backbone comparison | Same backbone | VNIR only | 3D-CNN + Transformer | 90.52 ± 1.15 | 90.48 ± 1.12 | 91.20 ± 1.25 | 91.15 ± 1.28 |
| Same-backbone comparison | Same backbone | SWIR only | 3D-CNN + Transformer | 85.60 ± 1.85 | 85.55 ± 1.82 | 86.45 ± 1.70 | 86.40 ± 1.74 |
| Same-backbone comparison | Same backbone | Bicubic VNIR-SWIR | 3D-CNN + Transformer | 92.15 ± 0.95 | 92.10 ± 0.98 | 92.85 ± 0.90 | 92.80 ± 0.92 |
| Same-backbone comparison | Ours/full model | Observation-consistent VNIR-SWIR | 3D-CNN + Transformer | 93.85 ± 0.75 | 93.88 ± 0.72 | 94.35 ± 0.65 | 94.38 ± 0.62 |
| Same-backbone comparison | CNMF-style fusion | Coupled matrix factorization-based fusion | 3D-CNN + Transformer | 92.46 ± 0.84 | 92.73 ± 0.86 | 92.91 ± 0.79 | 93.21 ± 0.76 |
| Same-backbone comparison | TV-regularized fusion | Variational/TV-regularized fusion | 3D-CNN + Transformer | 93.05 ± 0.80 | 93.02 ± 0.83 | 93.21 ± 0.77 | 93.52 ± 0.70 |
| Fruit Group | Method | Input | Precision (%) | Recall (%) | F1/Dice (%) | IoU (%) | AUPRC |
|---|---|---|---|---|---|---|---|
| Apple | SVM | VNIR | 76.43 ± 2.27 | 72.18 ± 2.91 | 74.12 ± 2.51 | 58.42 ± 3.35 | 0.715 ± 0.024 |
| Apple | 1D-CNN | VNIR | 73.86 ± 2.62 | 84.47 ± 2.18 | 78.65 ± 2.24 | 64.38 ± 3.12 | 0.782 ± 0.018 |
| Apple | Ours | Observation-consistent VNIR-SWIR | 92.18 ± 1.07 | 94.82 ± 0.98 | 93.41 ± 0.92 | 87.21 ± 1.65 | 0.958 ± 0.008 |
| Kiwifruit | SVM | VNIR | 78.07 ± 2.19 | 75.34 ± 2.43 | 76.54 ± 2.31 | 61.55 ± 3.18 | 0.734 ± 0.020 |
| Kiwifruit | 1D-CNN | VNIR | 75.28 ± 2.36 | 86.13 ± 1.91 | 80.18 ± 1.98 | 66.43 ± 2.85 | 0.805 ± 0.015 |
| Kiwifruit | Ours | Observation-consistent VNIR-SWIR | 93.47 ± 0.97 | 95.18 ± 0.83 | 94.26 ± 0.83 | 88.82 ± 1.45 | 0.965 ± 0.006 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Li, B.; Huang, C.; Tao, W.; Zeng, S.; Liu, C.; Wang, Y.; Yang, Z. VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection. Foods 2026, 15, 2381. https://doi.org/10.3390/foods15132381
Li B, Huang C, Tao W, Zeng S, Liu C, Wang Y, Yang Z. VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection. Foods. 2026; 15(13):2381. https://doi.org/10.3390/foods15132381
Chicago/Turabian StyleLi, Bing, Chaofan Huang, Wei Tao, Shan Zeng, Chaoxian Liu, Yixiao Wang, and Zhiguang Yang. 2026. "VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection" Foods 15, no. 13: 2381. https://doi.org/10.3390/foods15132381
APA StyleLi, B., Huang, C., Tao, W., Zeng, S., Liu, C., Wang, Y., & Yang, Z. (2026). VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection. Foods, 15(13), 2381. https://doi.org/10.3390/foods15132381

