Next Article in Journal
Comprehensive Evaluation of Agronomic Traits and Nutritional Composition in Summer-Sown Vegetable Soybean Varieties from Shanghai, China
Previous Article in Journal
Novel Insights into Food Flavor Chemistry and Analysis
Previous Article in Special Issue
A Validation-Driven Explainable Deep Ensemble Framework for Image-Based Saffron Adulteration Detection
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

VNIR-SWIR Hyperspectral Fusion-Based Multi-Task Detection Method: A Case Study on Fruit Origin-Category Authentication and Bruise Detection

School of Mathematics and Computer Science, Wuhan Polytechnic University, Wuhan 430023, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Foods 2026, 15(13), 2381; https://doi.org/10.3390/foods15132381
Submission received: 7 May 2026 / Revised: 26 June 2026 / Accepted: 30 June 2026 / Published: 3 July 2026
(This article belongs to the Special Issue Application of Artificial Intelligence in Food Detection)

Abstract

Artificial intelligence-assisted food detection is increasingly moving from single-task classification toward integrated analytical systems capable of producing multiple quality-related outputs from one sensing workflow. However, most hyperspectral food detection studies still rely on a single spectral range or simple feature concatenation, which limits their ability to exploit complementary physicochemical information from heterogeneous sensors. In this study, an artificial intelligence-enabled visible–near-infrared and short-wave infrared (VNIR-SWIR) hyperspectral fusion framework is proposed for multi-task fruit detection, using origin authentication and bruise localization as representative tasks. The proposed method first constructs an observation-consistent fused representation from high-resolution VNIR images and low-resolution SWIR images. Collaborative spectral unmixing is used to couple cross-modal material distributions, while abundance-consistency and downsampled observation-consistency constraints are introduced to estimate SWIR-informed features on the VNIR spatial grid without assuming measured high-resolution SWIR ground truth. The fused representation is then processed by a shared spectral–spatial deep encoder with two task-specific heads: a fruit-level classification head for origin authentication and a pixel-level segmentation head for bruise detection. Experiments on apple and kiwifruit datasets show that the proposed framework outperforms VNIR-only, SWIR-only, bicubic-fusion, CNMF-style fusion, and TV-regularized fusion baselines under five fruit-level stratified random splits. For origin-category authentication, the proposed method achieved an accuracy of almost 93.85 for apples and almost 94.35 for kiwifruit. For bruise localization, the proposed method achieved higher overall accuracy, average accuracy, and Cohen’s kappa across the evaluated fruit categories.

1. Introduction

Artificial intelligence-assisted food detection is increasingly shifting from single-task quality classification toward integrated analytical systems capable of generating multiple quality-related outputs from one sensing workflow [1,2,3]. Compared with conventional laboratory-based analytical methods, hyperspectral imaging combined with machine learning or deep learning can provide rapid, nondestructive, and spatially resolved information on food quality, authenticity, and safety [1,2]. This capability is particularly important for postharvest fruit inspection, where several analytical decisions may be required for the same sample. For example, fruit origin authentication supports authenticity verification, regional-brand protection, and supply-chain quality control, whereas bruise detection is essential for reducing postharvest loss and preventing damaged products from entering commercial distribution [4,5,6,7]. These two tasks differ substantially in analytical scale and output form: origin authentication is usually performed at the fruit level based on global spectral fingerprints, while bruise detection requires pixel-level localization of weak and spatially heterogeneous tissue damage.
Hyperspectral imaging is attractive for these tasks because it integrates spectral and spatial information within one imaging modality [1,2]. Visible–near-infrared (VNIR) hyperspectral imaging generally provides high spatial sampling and captures pigment-related absorption, peel color, and surface-scattering characteristics, which may reflect differences in cultivar background, maturity, orchard environment, and postharvest handling [2,4]. Short-wave infrared (SWIR) hyperspectral imaging is more sensitive to water, carbohydrates, dry matter, and organic-matrix absorptions, which are closely related to internal tissue properties and bruise-induced changes [8,9,10]. Recent studies have shown that VNIR-SWIR information can improve the analysis of food components, fungal contamination, and quality-related chemical attributes, indicating the value of complementary spectral ranges for food analytical applications [8,9,10].
However, VNIR and SWIR sensors are not two directly interchangeable views of the same signal. They differ in spectral response, spatial resolution, penetration depth, signal-to-noise characteristics, illumination sensitivity, and acquisition geometry. Therefore, dual-sensor fusion is not simply a matter of increasing the number of wavelengths or stacking spectral bands. Previous studies using VNIR-SWIR fusion have demonstrated the potential of multi-source hyperspectral information for food and agricultural product inspection, but many fusion strategies still rely on low-level concatenation, feature-level combination, or decision-level integration [10,11]. For pixel-level bruise detection, small registration errors or SWIR upsampling artifacts may shift lesion boundaries, generate false local structures, or dilute weak bruise responses. This makes observation consistency particularly important when constructing fused hyperspectral representations from heterogeneous sensors.
The fusion problem is therefore deeper than increasing the number of wavelengths. For sample-level origin authentication, a small spatial misregistration may have a limited effect because the decision is based on global spectral statistics. For pixel-level bruise detection, however, even small registration errors or SWIR upsampling artifacts can shift lesion boundaries, create false local structures, or dilute weak bruise signals. Full-spectrum high-resolution acquisition over 400–2500 nm could reduce this problem, but such systems are costly and involve trade-offs among spectral coverage, spatial sampling, scanning speed, and signal-to-noise ratio.
Recent machine learning and deep learning studies have achieved promising results in food detection tasks such as origin identification, quality prediction, bruise detection, and foreign matter detection [2,3,5,6,7]. Nevertheless, many existing approaches still focus on a single spectral range, a single analytical task, or an independent task-specific model. Such designs may increase computational redundancy and limit their applicability in integrated inspection workflows. Multi-task learning provides a natural AI framework for this problem because a shared encoder can extract common spectral–spatial features while task-specific heads can generate heterogeneous outputs, such as fruit-level origin labels and pixel-level bruise maps [12]. Recent discussions on food structure, function, and artificial intelligence have further emphasized the need for integrated AI-based analytical systems in food-quality assessment [13]. Recent studies have also demonstrated the potential of hyperspectral imaging combined with multi-task learning for simultaneous detection or prediction of multiple food quality attributes [14,15].
Despite these advances, dual-sensor VNIR-SWIR fusion has not been sufficiently investigated as the foundation for AI-enabled multi-task fruit detection. Existing origin-category authentication studies mainly emphasize fruit-level classification performance based on global spectral or chemical fingerprints, whereas bruise-detection studies usually focus on local defect segmentation using one spectral range. The novelty of the present work lies in treating dual-sensor fusion as an observation-consistent representation-learning problem rather than a simple input concatenation problem. In particular, the reconstructed SWIR-informed component is constrained to remain consistent with the measured low-resolution SWIR observation after spatial degradation, which helps reduce the risk of generating visually sharpened but spectrally implausible features. Few previous food-inspection studies have explicitly connected this type of physically constrained VNIR-SWIR fusion with a shared multi-task framework that supports both sample-level and pixel-level outputs.
To address this issue, this study proposes an artificial intelligence-enabled VNIR-SWIR hyperspectral fusion framework for multi-task fruit detection, as shown in Figure 1. Origin-category authentication and bruise localization are selected as representative tasks because they require different levels of spectral–spatial information. The proposed method first uses collaborative spectral unmixing to connect cross-modal material distributions between VNIR and SWIR data. Abundance-consistency and downsampled observation-consistency constraints are introduced to estimate SWIR-informed features on the VNIR spatial grid while maintaining agreement with measured SWIR observations. The resulting fused representation is then processed by a shared spectral–spatial encoder with two task-specific heads for fruit-level origin-category authentication and pixel-level bruise detection.
(1) We formulate dual-sensor VNIR-SWIR hyperspectral fusion as an observation-consistent representation-learning problem for multi-task food inspection, rather than as simple band concatenation. The proposed workflow produces both origin-category labels and bruise probability maps from one aligned fused input, demonstrating the potential of hyperspectral fusion for heterogeneous nondestructive quality-assessment tasks.
(2) We introduce an observation-consistent VNIR-guided SWIR estimation strategy based on collaborative spectral unmixing. The method uses abundance consistency to encourage cross-modal structural correspondence and downsampled observation consistency to ensure agreement with measured SWIR data. The estimated SWIR-informed component is therefore interpreted as a physically constrained representation on the VNIR grid, not as directly measured high-resolution SWIR data.
(3) We evaluate the proposed fusion-driven multi-task framework through case studies on apple and kiwifruit origin-labeled categories and induced bruise samples. The validation strategy includes same-backbone input comparisons, input-level ablations, verified repeated random-split analysis, expanded bruise-segmentation metrics, and measured computational profiling.
The remainder of this paper is organized as follows. Section 2 describes the fruit materials, dual-sensor VNIR-SWIR imaging systems, preprocessing, consistency-driven fusion module, and multi-task learning network. Section 3 reports spectral analysis, origin-category-authentication results, bruise-detection results, and ablation analysis. Section 4 discusses the implications and limitations of the proposed framework and concludes the paper.

2. Materials and Methods

2.1. Sample Preparation

Apples and kiwifruits were used to construct a dual-sensor hyperspectral dataset for evaluating fusion-driven multi-task learning in fruit origin-category authentication and bruise detection. Four apple origin-labeled categories as shown in Figure 2 were included: Shaanxi Qinyang (Apple A), Shaanxi Luochuan Red Fuji (Apple B), Qixia Red Fuji (Apple C), and Gansu Tianshui Huaniu (Apple D). Four kiwifruit origin-labeled categories were included: Ruiyu (Kiwifruit A), Sichuan Red Heart (Kiwifruit B), Xuxiang (Kiwifruit C), and Shaanxi Zhouzhi Jinfu (Kiwifruit D). In this study, origin-category authentication is implemented as supervised classification among predefined origin-labeled categories. Fruits with visible mechanical damage, decay, or severe shape defects before bruise induction were excluded. A total of 800 samples were collected from fruits.

2.2. Task Definition

This study defines a dual-output setting to examine whether VNIR-SWIR hyperspectral fusion can support multi-task nondestructive fruit inspection. The first task is fruit-level origin-category authentication among predefined origin-labeled categories. Each fruit is assigned to one class according to its sampled provenance category. This task depends on global spectral–spatial fingerprints associated with pigment composition, peel scattering, maturity-related chemistry, cultivar background, and production-region effects. The second task is bruise detection, implemented as pixel-level binary mapping of bruised versus sound tissue. This task requires localized sensitivity to weak tissue damage and boundary-preserving spatial detail. VNIR information is expected to be useful for surface-related cues and fine spatial structure, whereas SWIR information may provide complementary absorption responses associated with water, carbohydrates, and tissue-matrix changes. The proposed framework, therefore, treats these two tasks as a controlled case study for assessing the broader potential of hyperspectral fusion in multi-task food inspection, while avoiding over-interpretation as full real-world traceability.

2.3. Bruise Induction and Annotation

Fruits were stored at 1.0 ± 0.5 °C and 90 ± 5% relative humidity to maintain quality before experiments. Imaging experiments were conducted at 25 ± 1 °C and 60 ± 5% relative humidity. Bruises were induced using a vertical guiding device with an inner diameter of 25.0 ± 0.1 mm and a length of 500 ± 1 mm. An AGCr15 steel ball was guided through the tube to impact the apple and kiwifruit surfaces at a controlled impact speed of approximately 3.13 m/s. The guiding tube reduced lateral deviation from the target impact position, and the same impact protocol was used across samples to obtain localized mechanical bruises for pixel-level detection. The time interval between bruise induction and hyperspectral imaging was 3 min, and this interval was kept consistent for all samples. Because biological variability can affect bruise size and visibility, lesion locations were marked after impact and used for subsequent annotation and evaluation [16].
Pixel-wise bruise annotations were produced on VNIR-resolution grids. A false-colour image generated from bruise-sensitive bands was used only as an annotation aid. All masks were manually delineated by two trained annotators using ENVI 6.2 software following the same annotation guidelines. The annotators independently delineated bruise boundaries and were blinded to the model predictions. Disagreements were resolved by consensus to obtain the final binary bruise masks. Background pixels were removed using a binary fruit mask obtained by Otsu thresholding on a VNIR intensity image, followed by morphological closing. The resulting masks were used as reference labels for the pixel-level bruise-detection task, and all segmentation metrics were calculated only within the fruit mask.

2.4. Data Acquisition

VNIR hyperspectral images were acquired from 400 to 1000 nm (224 bands) using a SPECIM FX10 camera which sourced from Specim, Spectral Imaging Ltd. (Oulu, Finland) with 1024 spatial samples and a pixel size of 8 × 8 μm. SWIR images were acquired from 1000 to 2500 nm (273 bands) using a SPECIM SWIR camera which sourced from Specim, Spectral Imaging Ltd. (Oulu, Finland) with 384 spatial samples and a pixel size of 24 × 24 μm. Two 50 W halogen lamps were positioned symmetrically at 300 mm from the sample surface to reduce specular reflections. The working distance from the camera to the sample was set to 300 mm for both cameras. Line-scan acquisition was used. Exposure times were set to 6 ms for VNIR and 8 ms for SWIR, and the conveyor/scan speed was set to 15 mm/s. These settings were selected to avoid saturation while maintaining sufficient SNRs across the usable bands. For each imaging session, dark current and white reference images were recorded for radiometric calibration. The specific parameters of the hyperspectral imaging instruments are shown in Table 1.

2.5. Radiometric Calibration and Cross-Modal Registration

All processing was implemented in Python (v3.11) on a workstation equipped with an NVIDIA RTX 4090 GPU (24 GB) sourced from NVIDIA Corporation (Santa Clara, CA, USA). To obtain reliable spectral data, original images require correction through dark background subtraction and white reference calibration [15], as presented in Equation (1):
I h c i , j = I i , j D j W i , j D j
where I h c i , j denotes the corrected relative reflectance spectrum at a certain position, i , j represents the raw spectral data, W i , j corresponds to the white reference data, and D j indicates the dark current data. The variables i and j represent the row and column pixel positions within the spatial dimensions of the image, respectively. The VNIR and SWIR cubes were then registered to a common spatial coordinate system and used as the input for the subsequent fusion and multi-task learning procedures. VNIR and SWIR cubes were first registered to a common spatial coordinate system. A VNIR reference image was formed by averaging bands within 700–900 nm, and an SWIR reference image was formed by averaging bands within 1100–1300 nm. An affine transform T ( ) mapping SWIR to VNIR coordinates was estimated using Enhanced Correlation Coefficient optimisation. The SWIR cube was then warped to VNIR coordinates and resampled onto the VNIR grid using bicubic interpolation. The downsampling operator D ( ) used later in the loss functions was implemented by area-based resizing from the VNIR size H , W to SWIR size h , w , ensuring consistent forward and inverse mappings.

2.6. Consistency-Driven Fusion and SWIR Super-Resolution via Collaborative Unmixing

The purpose of the fusion module is to construct a task-usable full-spectrum representation from two heterogeneous sensors without assuming access to measured high-resolution SWIR ground truth. Let the calibrated VNIR cube and SWIR cube be unfolded into matrix forms. A collaborative unmixing formulation was used to connect cross-modal material distributions with modality-specific spectral signatures. This design is motivated by the observation that fruit tissues may share coarse spatial material structures across sensors, while their spectral responses differ between the VNIR and SWIR ranges. A linear mixing model was adopted as a regularised approximation:
X ^ = A x E x , Y ^ = A y E y ,
where A x R H W × p and A y R h w × p are abundance matrices, and E x R p × c , E y R p × C are endmember matrices. The number of endmembers was set to p , which provided stable reconstruction while avoiding over-fragmentation of tissue components. E y was initialised by VCA-derived SWIR endmembers and then fine-tuned during optimisation.
To enforce cross-modal material consistency, abundance maps were constrained after scale matching:
L a b = D ( A x ) A y F 2 .
The unmixing loss was defined as
L u n m i x = X A x E x F 2 + Y A y E y F 2 + μ L a b ,
With μ = 1.0 , a high-resolution SWIR estimate was then synthesised by combining VNIR-guided abundances with SWIR endmembers:
Z = A x E y R H W × C .
A lightweight refinement network consisting of three residual blocks with 64 channels was applied to suppress artefacts. Because measured high-resolution SWIR ground truth was unavailable, the reconstruction was constrained by observation consistency: After degradation to the native SWIR grid, the estimated SWIR-informed representation should agree with the measured SWIR cube. A total-variation penalty was also used to reduce spurious spatial oscillations introduced by upsampling and cross-sensor registration uncertainty:
L s r = Y D Z ~ F 2 + ν L t v , ν = 10 4 .
Finally, the fusion-related loss is defined as L fus   = L unmix   + L s r ; moreover, the fusion-related loss was defined as a weighted combination of unmixing, abundance-consistency, observation-consistency, and regularisation terms. A virtual full-spectrum representation was then formed by concatenating the calibrated VNIR cube with the estimated SWIR-informed component on the VNIR grid. This representation is designed for downstream learning; it should not be interpreted as a directly measured high-resolution full-spectrum image.
Z = C o n c a t X , Z ~ R H × W × c + C .
The resulting fused input provides a geometrically aligned representation for both tasks. For origin-category authentication, it supplies broader spectral coverage for global provenance-related fingerprints. For bruise detection, it introduces SWIR-informed absorption cues while retaining the VNIR spatial grid needed for pixel-level mapping. The architecture of the fusion module and the overall multi-task network are illustrated in Figure 3 and Figure 4.

2.7. Multi-Task Learning Method for Fusion-Driven Fruit Inspection

2.7.1. Input Representation and Preprocessing

The multi-task network was fed with the fused VNIR-SWIR representation. Each band was standardised using the mean and standard deviation computed from the training set only to prevent information leakage. The fused representation was used because the two target tasks require complementary information: origin-category authentication benefits from global full-spectrum fingerprints, whereas bruise detection benefits from local spatial detail and SWIR-informed responses related to tissue damage. Feeding both tasks with one aligned representation also avoids inconsistent preprocessing between independent task-specific models.

2.7.2. Shared Spectral–Spatial Encoder

A shared encoder was designed to support fruit origin-category authentication and bruise detection within one model. The encoder had to capture weak global provenance-related fingerprints while remaining sensitive to fine local anomalies. Origin cues may be spatially diffuse and influenced by pigment, peel scattering, and compositional differences, whereas early bruises are local, boundary-sensitive, and easily confounded by surface non-uniformity. A hybrid backbone was therefore adopted. Local spectral–spatial features were first extracted by a 3D convolutional pathway, and long-range dependencies and cross-band interactions were then modelled by Transformer blocks, allowing the two tasks to share a coherent fused feature space.

2.7.3. Fruit-Level Origin-Category Authentication Head

Origin-category authentication was formulated as fruit-level classification over predefined origin-labelled categories. The head was designed to emphasise global category-related characteristics while reducing interference from local bruises. The shared feature map was aggregated by global average pooling over spatial dimensions, producing a 128-dimensional fruit-level embedding for each sample. This embedding summarised overall spectral–textural statistics potentially associated with regional production conditions, cultivar background, maturity, and postharvest handling. The embedding was then mapped to origin-category logits by a lightweight two-layer MLP with a 128-64-K configuration, where K is the number of origin-labelled categories. GELU activation and dropout were used to improve optimisation stability and reduce overfitting. Training was supervised by cross-entropy loss.

2.7.4. Pixel-Level Bruise Detection Head

Bruise localisation was formulated as a pixel-level binary detection task. Spatial detail had to be preserved while computational cost remained low for practical inspection workflows. A shallow pixel decoder was applied to enhance local anomaly patterns from the shared feature map F. The decoder consisted of two 3 × 3 convolutions with 64 channels. BatchNorm and GELU were applied after each convolution. A single-channel logit map was then produced by a 1 × 1 convolution, and a sigmoid activation yielded a bruise probability map at the input resolution. Early bruises often show low contrast and fragmented responses; therefore, centre–neighbour self-similarity reweighting was introduced on the decoder features. A 15 × 15 window was used. Cosine similarity was computed between the centre-pixel feature and neighbouring features, and softmax-normalised weights were used to aggregate neighbourhood information. To address class imbalance, weighted binary cross-entropy was used, with the positive class weight set to 5.0.

2.7.5. Joint Objective and Optimisation Details

Model optimisation followed a staged protocol. First, the fusion module was trained in an unsupervised manner using paired VNIR-SWIR data only so that abundance-consistent unmixing and VNIR-guided SWIR estimation could be learned without high-resolution SWIR ground truth. After convergence, the reconstructed full-spectrum cube was generated and used to train the multi-task network. Origin-category authentication was supervised by fruit-level labels, and bruise localization was supervised by pixel-wise masks. A unified objective was used, L = λ f u s L f u s + λ c l s L c l s + λ d e t L d e t , where L f u s was defined in Section 2.6 and included abundance-consistency unmixing and self-supervised super-resolution consistency, L c l s was the cross-entropy loss for origin-category authentication, and L d e t was the weighted binary cross-entropy loss for bruise localisation. The training objective combines fusion loss, cross-entropy loss for origin-category authentication, and weighted binary cross-entropy loss for bruise localisation. The loss weights were set to λ_fusion = 0.1, λ_cls = 1.0, and λ_seg = 1.0 for all reported results. Optimisation was conducted with AdamW. The initial learning rate was 1 × 10−4, and the weight decay was 1 × 10−4. A cosine learning-rate schedule was adopted to improve convergence. Training was run for up to 100 epochs. Early stopping was applied with a patience of 10 using validation loss as the primary monitoring criterion. Gradient clipping with an L2-norm threshold of 1.0 was applied to stabilise Transformer training.

2.8. Model Training, Evaluation Protocol, and Implementation Details

All pixels and patches extracted from the same fruit were kept within the same split to avoid data leakage. Model optimisation followed a staged procedure. First, the fusion module was trained in an unsupervised manner using paired VNIR–SWIR data only so that abundance-consistent unmixing and VNIR-guided SWIR estimation could be learned without high-resolution SWIR ground truth. After fusion training converged, the reconstructed full-spectrum cube was generated and used to train the multi-task network. Cultivar identification was supervised by fruit-level labels, and bruise localisation was supervised by pixel-wise masks. If end-to-end fine-tuning is used, it should be reported as a separate experimental setting with its own loss weights and validation criterion.
Baseline methods were implemented under identical data partitions and preprocessing. VNIR-only baselines were trained for both origin-category authentication and bruise detection using the same train/validation/test splits as the proposed method, and all hyperparameters were tuned exclusively on the validation set. Cultivar recognition performance was assessed using overall accuracy and macro-averaged F1 scores, and confusion matrices were reported to analyse inter-cultivar confusions. Bruise localisation performance was evaluated using overall accuracy, average accuracy, and Cohen’s kappa, following common practice in hyperspectral inspection studies. Because bruise pixels are a minority class, reporting bruise-class F1 or IoU in the final version would further strengthen the evaluation. All models were implemented in PyTorch (Python 3.11) and trained on an NVIDIA RTX 4090 GPU (24 GB).

3. Experimental Results and Discussions

3.1. Spectral Analysis

Origin-labelled category authentication and bruise detection are expected to rely on partially different hyperspectral ranges. Category authentication may be influenced by provenance-associated, cultivar-associated, maturity-associated, and batch-associated differences in pigment composition, peel scattering, and organic-matrix composition. Bruise detection is associated with moisture redistribution, cell rupture, and tissue-structure disruption, which can alter absorption and scattering responses in the near-infrared and SWIR domains. These task-dependent spectral requirements provide the rationale for evaluating VNIR-SWIR fusion as the sensing basis for multi-output inspection while avoiding over-interpretation of the current classes as pure geographic-origin effects or as complete real-world traceability.
To make this spectral rationale explicit, Table 2 summarises representative wavelength intervals reported in the literature as relevant to provenance/category authentication and bruise formation, together with their biochemical or structural attribution. The wavelength intervals provide mechanistic support for using complementary VNIR and SWIR observations.

3.2. Quality of Fusion-Driven Reconstruction

A critical requirement for using fused data in downstream learning is that the reconstructed high-resolution SWIR cube preserves the spectral fidelity of the measured SWIR data while inheriting the spatial structure from the high-resolution branch. The proposed module achieves this by collaborative spectral unmixing with an abundance-consistency constraint, followed by VNIR-guided super-resolution of SWIR features and band concatenation to form a virtual full-spectrum cube.
Fusion quality was assessed using the downsample-consistency principle adopted in the reconstruction loss. Specifically, the reconstructed high-resolution SWIR cube was spatially downsampled to the native SWIR grid and compared with the measured SWIR cube using RMSE and a spectral angle mapper (SAM):
R M S E = 1 N n = 1 N y n z ~ n 2 2 , S A M = 1 N n = 1 N a r c c o s y n z ~ n y n 2 z ~ n 2 ,
where the two spectra denote the measured SWIR observation and the downsampled reconstructed SWIR estimate at pixel i. Across all fruit categories, the VNIR-guided SWIR estimate achieved RMSE = 0.0217 ± 0.0043 and SAM = 3.42 ± 0.76 on the validation set. These metrics evaluate whether the reconstruction remains consistent with the observed SWIR measurements after downsampling. Qualitative observations, such as sharper defect boundaries and fewer block-like artefacts, should be interpreted together with RMSE/SAM because visual sharpness alone does not prove spectral fidelity. Therefore, the fused cube is described as a reconstruction-assisted concatenation rather than a simple raw concatenation of heterogeneous inputs.

3.3. Multi-Task Performance on Origin-Category Authentication and Bruise Detection

This section evaluates fruit-level origin-category authentication and pixel-level bruise detection using the fused VNIR-SWIR representation. The proposed method refers to the corresponding branches within the multi-task framework. The original comparison with KNN, SVM, and 1D-CNN is retained as a simple baseline reference, while controlled input-level comparisons are used to conservatively assess the contribution of VNIR-SWIR fusion and consistency-constrained reconstruction.

3.3.1. Fruit Origin-Category Authentication

Origin-category authentication was evaluated under the fruit-level protocol described in Section 2.8. Overall accuracy (Acc) and macro-F1 are reported in Table 2, and class-wise precision, recall, and F1 are reported in Table 3. Confusion matrices are provided in Figure 5 to visualise the dominant inter-category errors. The reported values correspond to one fixed stratified train/validation/test split.
As shown in Table 3, the proposed multi-task model trained on the fused full-spectrum representation outperforms the VNIR-only KNN baseline for both fruit groups under the fixed-split evaluation. For apples, Acc increases from 88.13% to 94.13%, and macro-F1 increases from 88.12% to 94.15%. For kiwifruit, Acc improves from 88.88% to 94.50%, while macro-F1 improves from 88.86% to 94.52%. Because the test set is class-balanced, Acc is numerically aligned with the mean per-class recall. The simultaneous improvement in macro-F1 indicates improved origin-category authentication across classes rather than a gain confined to one category.
Table 4 shows that both precision and recall increase relative to KNN for all origin categories, leading to consistent F1 gains. The confusion matrices in Figure 5 show stronger diagonal dominance under the proposed method, while residual errors are concentrated among spectrally similar provenance categories within each fruit group. Nevertheless, because the baseline uses KNN whereas the proposed method uses a deep multi-task network, additional same-backbone ablations are needed to isolate the respective contributions of spectral fusion, model capacity, and multi-task learning.
Class-wise F1 gains range from 1.52 to 9.45 percentage points. For example, Apple A increases from 86.67% to 93.20%, and Kiwifruit A increases from 87.24% to 96.69%. Even for the category with the smallest improvement, which is Kiwifruit D, the F1 score increases from 92.31% to 93.83%. These results indicate consistent origin-category gains under the present dataset, but they should not be interpreted as generalised traceability beyond the tested origins, seasons, and sampling conditions.
To further characterise the remaining errors, confusion matrices are shown in Figure 5. Count matrices (left) and row-normalised matrices (right) are reported for the VNIR-only KNN baseline and the proposed multi-task model using the fused full-spectrum input. Panels (a–d) correspond to apples, and panels (e–h) correspond to kiwifruits. Row-normalised values represent per-class recall (%), highlighting the distribution of residual errors across provenance categories. Misclassifications are mainly concentrated among spectrally similar categories within each fruit group, while the proposed model strengthens diagonal dominance and reduces off-diagonal confusions.

3.3.2. Bruise Detection

The effectiveness of the proposed dual-source fusion framework for bruise localisation was evaluated by comparing SVM and 1D-CNN baselines trained on HR VNIR HSI with the proposed complete system using HR VNIR HSI and LR SWIR HSI. The comparison evaluates practical performance under the current baseline setting; however, same-input and same-backbone comparisons are required to isolate the effect of fusion from network architecture, decoder design, and model capacity. Hyperspectral data from different apple categories were used to validate bruise-area detection. In Figure 6, the first row displays HR VNIR HSI images within the 400–1000 nm spectral range as true-colour images, and the second row shows the corresponding LR SWIR HSI images covering 1000–2500 nm as false-colour images.
In Figure 6a–d, the side regions of Apple A, Apple B, Apple C, and Apple D exhibit six, three, four, and four bruise spots, respectively. Although the true-colour and false-colour images in Figure 6 faintly reveal the bruise areas, the boundaries of the bruise regions are difficult to discern. Figure 7 visualises bruise detection performance for the different apple cultivars. Figure 7a shows the ground-truth map, where green indicates healthy tissue, red marks bruised tissue, and black denotes background. Figure 7b,c present the outputs of SVM and 1D-CNN, respectively, using HR VNIR HSI as input. In the first row, both models miss the lesion centre and falsely identify several spurious lesion regions. Across rows 2–4, SVM performs poorly on lateral lesions. The 1D-CNN reduces some errors but still misclassifies healthy tissue as bruise and misses part of the lesion centre. Figure 7d shows that the proposed joint reconstruction and bruise-detection design produces more spatially coherent apple bruise maps under the tested conditions.
Table 5 further verifies the performance advantage of the proposed complete system in apple bruise detection under the selected metrics. Across all apple datasets, the proposed method attains higher OA, AA, and Cohen’s kappa than the SVM and 1D-CNN baselines. In the Shaanxi Qinyang lateral-bruise set, the proposed method achieves an AA of 96.3%, κ × 100 of 91.8, and OA of 98.3%. The AA surpasses those of SVM and 1D-CNN by 11.3 and 7.2 percentage points, respectively. Because κ accounts for chance agreement, it is more informative than OA when severe class imbalance produces high random concordance. However, OA, AA, and kappa are still insufficient for a complete pixel-level lesion evaluation; bruise-class precision, recall, F1, Dice, IoU, and AUPRC should be reported to demonstrate minority-class and boundary performance. The weaker performance of SVM and 1D-CNN is likely related to their limited ability to jointly exploit spatial context and SWIR-related information, although this interpretation must be confirmed using the same-input and same-backbone ablations.
Hyperspectral images of bruised kiwifruit from four predefined categories are shown in Figure 8. The Ruiyu, Sichuan Red-Heart, Xuxiang, and Shaanxi Zhouzhi Jinfu samples contain one, three, three, and two lateral bruises, respectively. Figure 9 contrasts the bruise-detection maps produced by the competing methods. When only HR VNIR HSI is supplied, both the SVM and 1D-CNN misclassify two closely spaced lesions: the healthy tissue between them is erroneously labelled as a bruise, revealing weak discrimination near lesion boundaries and interiors.
The SVM further under-detects bruise pixels, whereas the 1D-CNN over-detects them and, in the Ruiyu sample, falsely marks peripheral healthy pixels as bruise area. By contrast, our method yields markedly cleaner maps. More true bruise pixels are recovered, virtually no peripheral healthy tissue is mislabelled, and only minor boundary shifts relative to the ground truth remain. Crucially, the model’s ability to resolve the narrow gap between adjacent lesions is substantially improved.
Table 5 further evaluates the classifiers on the kiwifruit bruise dataset. Averaged over the four kiwifruit cultivars, the proposed method achieves OA = 98.23%, AA = 96.48%, and κ × 100 = 92.50. These average values exceed those of SVM by 2.48, 7.55, and 14.68 percentage points, respectively, and exceed those of the HR-VNIR-only 1D-CNN by 1.53, 4.88, and 9.05 percentage points, respectively. For the Kiwifruit A subset, the proposed method obtains OA = 99.6%, AA = 97.9%, and κ × 100 = 95.1. These results indicate that the proposed framework improves early kiwifruit bruise localisation under the current dataset. The improvement is consistent with the use of complementary VNIR-SWIR information; however, because the current experiment compares input settings rather than isolated spectral bands, the band-level contribution of SWIR absorptions should be interpreted conservatively.

3.4. Ablation of the Dual-Source Fusion Setting

Removing any of the three fusion components reduces performance for both fruit groups, as shown in Table 6. The largest accuracy drop is observed when observation consistency is removed, indicating that constraining the reconstructed SWIR-informed representation to remain compatible with the measured SWIR observation after downsampling is important for robust dual-sensor fusion.
Table 6. Component-level ablation of the proposed fusion module.
Table 6. Component-level ablation of the proposed fusion module.
Fruit GroupVariantOrigin AccBruise F1/Dice
AppleFull model93.85 ± 0.7593.41 ± 0.92
AppleWithout abundance consistency92.67 ± 1.1392.64 ± 0.85
AppleWithout observation consistency91.42 ± 1.0192.45 ± 0.82
AppleWithout refinement blocks92.86 ± 0.8192.89 ± 0.87
KiwifruitFull model94.35 ± 0.6594.26 ± 0.83
KiwifruitWithout abundance consistency92.93 ± 0.7593.29 ± 0.71
KiwifruitWithout observation consistency92.37 ± 0.7992.63 ± 0.93
KiwifruitWithout refinement blocks93.16 ± 0.6093.46 ± 0.56

3.5. Statistical Robustness and Same-Backbone Input Comparison Analysis

To strengthen statistical robustness, the key same-backbone comparisons were evaluated using repeated fruit-level stratified random splits. Table 7 reports the controlled input comparison for origin-category authentication. Compared with the VNIR-only 3D-CNN + Transformer setting, the proposed observation-consistent VNIR-SWIR fusion improved apple accuracy from 90.52 ± 1.15% to 93.85 ± 0.75% and kiwifruit accuracy from 91.20 ± 1.25% to 94.35 ± 0.65%. The proposed method also showed higher mean accuracy than the bicubic VNIR-SWIR fusion comparator across the repeated splits.
For bruise localization, Table 8 expands the evaluation from OA, AA, and kappa to metrics that are more informative under severe class imbalance. Precision, recall, F1-score/Dice coefficient, IoU, and AUPRC were calculated within the fruit mask and averaged over repeated splits. The proposed method achieved F1/Dice values of 93.41 ± 0.92% for apples and 94.26 ± 0.83% for kiwifruit, outperforming both SVM and 1D-CNN baselines. Its AUPRC values reached 0.958 ± 0.008 for apples and 0.965 ± 0.006 for kiwifruit, indicating stronger robustness for minority bruise pixels.

3.6. Discussion

This study shows that observation-consistent VNIR-SWIR fusion can provide a more effective representation for multi-task fruit inspection than single-range imaging or simple interpolation-based fusion. The advantage of the proposed method lies not only in combining wider spectral information but also in constraining the reconstructed SWIR-informed component to remain consistent with the measured low-resolution SWIR observation. This is important because VNIR and SWIR sensors differ in spatial resolution, spectral response, penetration depth, and acquisition geometry. Without such constraints, fused data may contain visually enhanced but spectrally unreliable information.
The comparative results indicate that VNIR and SWIR information play complementary roles. VNIR data provide high spatial detail and surface-related cues, which are useful for boundary-sensitive bruise localization and appearance-related category differences. SWIR data provide additional absorption information associated with water, carbohydrates, dry matter, and tissue-matrix changes, which can support both category discrimination and bruise detection. Compared with bicubic fusion and representative hyperspectral fusion baselines, the proposed method better balances spatial enhancement and spectral consistency.
The single-task and multi-task comparisons suggest that the shared spectral–spatial encoder contributes to the final performance. Origin-category authentication depends mainly on global fruit-level spectral–spatial fingerprints, whereas bruise detection requires local pixel-level sensitivity to tissue damage. Although the two tasks differ in output form, they share relevant information related to pigment distribution, peel scattering, water status, and tissue structure. Therefore, the multi-task framework can learn common features while retaining task-specific prediction heads.
The component-level ablation further confirms the necessity of the main fusion components. Abundance consistency helps maintain cross-modal structural correspondence between VNIR and SWIR data. Observation consistency is particularly important because it prevents the reconstructed SWIR-informed representation from deviating from the measured SWIR observation. The refinement blocks help reduce spatial artifacts caused by registration, upsampling, and reconstruction uncertainty. These components jointly improve the reliability of the fused representation.
Several limitations should also be noted. First, the generated SWIR-informed component is a reconstructed representation rather than directly measured high-resolution SWIR data. Second, the current origin-category authentication task is based on predefined fruit categories and should not be over-interpreted as complete real-world traceability. Third, the bruises were induced under controlled experimental conditions, whereas natural bruises may vary in severity, depth, visibility, and time after impact. Future work should include broader multi-season and multi-origin validation, naturally bruised samples, stronger biochemical interpretation, and deployment-oriented model optimization for online food inspection.

4. Conclusions

This study proposed an observation-consistent VNIR-SWIR hyperspectral fusion framework for multi-task nondestructive fruit inspection, using origin-category authentication and bruise localization as representative tasks. The proposed method constructs a SWIR-informed representation on the VNIR spatial grid through collaborative spectral unmixing, abundance consistency, observation consistency, and lightweight refinement. This design avoids treating heterogeneous dual-sensor data as simple band concatenation and instead emphasizes physically constrained representation learning. The experimental results demonstrate that the proposed fusion-driven multi-task framework provides more effective spectral–spatial representations than single-range inputs, simple interpolation-based fusion, and representative hyperspectral fusion baselines. The single-task and multi-task comparisons further indicate that shared spectral–spatial encoding can provide consistent benefits for heterogeneous fruit-level and pixel-level detection tasks. Component-level ablation results confirm the importance of abundance consistency, observation consistency, and refinement blocks in constructing a reliable fused representation. Overall, this work shows the potential of consistency-constrained VNIR-SWIR hyperspectral fusion for integrated food-quality inspection. The framework provides a feasible route for generating both sample-level classification outputs and pixel-level defect maps from one unified sensing and learning workflow. Nevertheless, the present study remains a controlled case study based on selected fruit categories and induced bruising conditions. Future work should expand the validation to more seasons, orchards, cultivars, natural bruising scenarios, and online inspection environments.

Author Contributions

Conceptualization, W.T., B.L., and Z.Y.; methodology, W.T., C.H., Y.W., and Z.Y.; software, C.H., Y.W., and S.Z.; validation, W.T., S.Z., C.H., Y.W., and C.L.; formal analysis, W.T., S.Z., C.H., Y.W., and B.L.; investigation, S.Z., C.H., Y.W., C.L., and Z.Y.; resources, W.T., B.L., C.L., and Z.Y.; data curation, S.Z., C.H., Y.W., and C.L.; writing—original draft preparation, W.T., S.Z., C.H., and Y.W.; writing—review and editing, W.T., B.L., S.Z., C.L., and Z.Y.; visualization, S.Z., C.H., and Y.W.; supervision, W.T., B.L., and Z.Y.; project administration, W.T., B.L., and Z.Y.; funding acquisition, B.L. All authors have read and agreed to the published version of this manuscript.

Funding

This work is supported by the Excellent young and middle-aged scientific and technological innovation teams in colleges and universities of Hubei Province: Grant T2021009 and the 2025 Hubei Grain Science & Technology Tender Project: Grant 532109025601.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. 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]
  2. 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]
  3. 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]
  4. 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]
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. 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]
  10. 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]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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]
  16. 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]
Figure 1. Schematic diagram of the proposed framework.
Figure 1. Schematic diagram of the proposed framework.
Foods 15 02381 g001
Figure 2. Hyperspectral imaging instruments and data collection process.
Figure 2. Hyperspectral imaging instruments and data collection process.
Foods 15 02381 g002
Figure 3. The architecture of the reconstruction module.
Figure 3. The architecture of the reconstruction module.
Foods 15 02381 g003
Figure 4. Schematic diagram of the hyperspectral fusion and multi-task learning network.
Figure 4. Schematic diagram of the hyperspectral fusion and multi-task learning network.
Foods 15 02381 g004
Figure 5. Confusion matrices for fruit origin-category authentication on apples and kiwifruits. (a) count results of KNN on apple; (b) row-normalized results of KNN on apple; (c) count results of ours method on apple; (d) row-normalized results of ours method on apple; (e) count results of KNN on kiwifruit; (f) row-normalized results of KNN on kiwifruit; (g) count results of ours method on kiwifruit; (h) row-normalized results of ours method on kiwifruit.
Figure 5. Confusion matrices for fruit origin-category authentication on apples and kiwifruits. (a) count results of KNN on apple; (b) row-normalized results of KNN on apple; (c) count results of ours method on apple; (d) row-normalized results of ours method on apple; (e) count results of KNN on kiwifruit; (f) row-normalized results of KNN on kiwifruit; (g) count results of ours method on kiwifruit; (h) row-normalized results of ours method on kiwifruit.
Foods 15 02381 g005aFoods 15 02381 g005b
Figure 6. True-color and false-color images of apples.
Figure 6. True-color and false-color images of apples.
Foods 15 02381 g006
Figure 7. Detection results of different varieties of apple data using various bruise detection methods.
Figure 7. Detection results of different varieties of apple data using various bruise detection methods.
Foods 15 02381 g007
Figure 8. True-color and false-color images of kiwifruits.
Figure 8. True-color and false-color images of kiwifruits.
Foods 15 02381 g008
Figure 9. Detection results of different varieties of kiwifruit data using various bruise detection methods.
Figure 9. Detection results of different varieties of kiwifruit data using various bruise detection methods.
Foods 15 02381 g009
Table 1. The specific parameters of the hyperspectral imaging instrument.
Table 1. The specific parameters of the hyperspectral imaging instrument.
Hyperspectral Imaging InstrumentSPECIM FX10SPECIM SWIR
Spectral range400–1000 nm1000–2500 nm
Spectral bands224273
Spectral resolution5.5 nm10 nm
Spectral sampling/pixels2.7 nm5.6 nm
Spatial samples1024384
Pixel size8 × 8 μm24 × 24 μm
Maximum frame rate330 FPS450 FPS
Table 2. Representative wavelength intervals and mechanistic attribution for fruit origin-category authentication and bruise detection.
Table 2. Representative wavelength intervals and mechanistic attribution for fruit origin-category authentication and bruise detection.
Wavelength Interval (nm)Primary Attribution (Dominant Mechanism)Relevance to Origin-Category AuthenticationRelevance to Bruise Detection
400–550Pigments (anthocyanins/carotenoids), epidermal colourStrong: colour/pigment provenance cuesIndirect: may reveal surface discoloration in late bruises
650–750Chlorophyll absorption/red-edge shift; scattering transitionStrong: red-edge/scatter differencesModerate: damaged tissue may alter the red-edge slope
800–1000NIR scattering, cell structure, water overtone shoulderModerate: structure and water statusStrong: water redistribution and structural disruption affect reflectance
~970O–H overtone (free/weakly bound water)Supplementary: water-status variationStrong: moisture-related changes under bruising
1050–1200C–H/O–H combinations and overtones; matrix compositionModerate–strong: dry matter/matrix cuesStrong: bruise-related matrix changes often amplify differences
~1450O–H first overtone (water)Supplementary: hydration differencesStrong: sensitive to tissue hydration and bruise evolution
1900–2000O–H combination band (water) and strong absorptionLimited: SNR-dependent water responseOften informative if SNR allows; reflects water status
2100–2350C–H/C–O/N–H combinations (carbohydrates, organic matrix)Moderate: carbohydrate/matrix cuesModerate: tissue degradation can shift/reshape absorptions
Table 3. Fruit origin-category authentication performance.
Table 3. Fruit origin-category authentication performance.
Fruit GroupInputMethodOverall Accuracy (%)Macro-F1 (%)
Apple (4 origin-labeled categories)HR VNIR HSIKNN (baseline)88.12588.120
Apple (4 origin-labeled categories)Fused VNIR-SWIR representationOurs (multi-task)94.12594.145
Kiwifruit (4 origin-labeled categories)HR VNIR HSIKNN (baseline)88.87588.863
Kiwifruit (4 origin-labeled categories)Fused VNIR-SWIR representationOurs (multi-task)94.50094.515
Table 4. Class-wise fruit origin-category authentication performance.
Table 4. Class-wise fruit origin-category authentication performance.
Fruit GroupMethodOrigin CategoryRecall (%)Precision (%)F1 (%)
AppleKNN (baseline)Apple A84.588.986.67
AppleKNN (baseline)Apple B87.085.386.14
AppleKNN (baseline)Apple C89.587.388.40
AppleKNN (baseline)Apple D91.591.091.27
AppleOurs (multi-task)Apple A92.593.993.20
AppleOurs (multi-task)Apple B93.589.591.44
AppleOurs (multi-task)Apple C96.096.096.00
AppleOurs (multi-task)Apple D94.597.495.94
KiwifruitKNN (baseline)Kiwi A85.589.187.24
KiwifruitKNN (baseline)Kiwi B87.586.286.85
KiwifruitKNN (baseline)Kiwi C89.588.689.05
KiwifruitKNN (baseline)Kiwi D93.091.692.31
KiwifruitOurs (multi-task)Kiwi A95.098.496.69
KiwifruitOurs (multi-task)Kiwi B94.093.593.77
KiwifruitOurs (multi-task)Kiwi C94.093.593.77
KiwifruitOurs (multi-task)Kiwi D95.092.793.83
Table 5. Pixel-level bruise-detection evaluation results for apple and kiwifruit datasets.
Table 5. Pixel-level bruise-detection evaluation results for apple and kiwifruit datasets.
DatasetSVM
(HR VNIR HSI)
1D-CNN
(HR VNIR HSI)
Our Method
(HR VNIR HSI and LR SWIR HSI)
OA (%)AA (%) K × 100OA (%)AA (%) K × 100OA (%)AA (%) K  × 100
AppleA94.785.070.095.889.178.2 98.3 96.391.8
B98.696.292.598.797.593.099.398.296.2
C97.293.286.497.393.787.498.596.893.4
D97.389.478.798.695.089.999.095.992.7
KiwifruitA98.086.472.898.390.181.299.697.995.1
B97.492.785.497.994.288.498.897.193.8
C92.989.278.395.292.985.896.595.190.0
D94.787.474.895.489.278.498.095.891.1
Table 7. Same-backbone comparison of different input and fusion settings.
Table 7. Same-backbone comparison of different input and fusion settings.
Evaluation SettingMethod/VariantInput/Fusion SettingBackboneApple Acc (%)Apple Macro-F1/F1-Dice (%)Kiwifruit Acc (%)Kiwifruit Macro-F1/F1-Dice (%)
Same-backbone comparisonSame backboneVNIR only3D-CNN + Transformer90.52 ± 1.1590.48 ± 1.1291.20 ± 1.2591.15 ± 1.28
Same-backbone comparisonSame backboneSWIR only3D-CNN + Transformer85.60 ± 1.8585.55 ± 1.8286.45 ± 1.7086.40 ± 1.74
Same-backbone comparisonSame backboneBicubic VNIR-SWIR3D-CNN + Transformer92.15 ± 0.9592.10 ± 0.9892.85 ± 0.9092.80 ± 0.92
Same-backbone comparisonOurs/full modelObservation-consistent VNIR-SWIR3D-CNN + Transformer93.85 ± 0.7593.88 ± 0.7294.35 ± 0.6594.38 ± 0.62
Same-backbone comparisonCNMF-style fusionCoupled matrix factorization-based fusion3D-CNN + Transformer92.46 ± 0.8492.73 ± 0.8692.91 ± 0.7993.21 ± 0.76
Same-backbone comparisonTV-regularized fusionVariational/TV-regularized fusion3D-CNN + Transformer93.05 ± 0.8093.02 ± 0.8393.21 ± 0.7793.52 ± 0.70
Table 8. Expanded bruise-segmentation metrics for repeated-split evaluation.
Table 8. Expanded bruise-segmentation metrics for repeated-split evaluation.
Fruit GroupMethodInputPrecision (%)Recall (%)F1/Dice (%)IoU (%)AUPRC
AppleSVMVNIR76.43 ± 2.2772.18 ± 2.9174.12 ± 2.5158.42 ± 3.350.715 ± 0.024
Apple1D-CNNVNIR73.86 ± 2.6284.47 ± 2.1878.65 ± 2.2464.38 ± 3.120.782 ± 0.018
AppleOursObservation-consistent VNIR-SWIR92.18 ± 1.0794.82 ± 0.9893.41 ± 0.9287.21 ± 1.650.958 ± 0.008
KiwifruitSVMVNIR78.07 ± 2.1975.34 ± 2.4376.54 ± 2.3161.55 ± 3.180.734 ± 0.020
Kiwifruit1D-CNNVNIR75.28 ± 2.3686.13 ± 1.9180.18 ± 1.9866.43 ± 2.850.805 ± 0.015
KiwifruitOursObservation-consistent VNIR-SWIR93.47 ± 0.9795.18 ± 0.8394.26 ± 0.8388.82 ± 1.450.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.

Share and Cite

MDPI and ACS Style

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

AMA Style

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 Style

Li, 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 Style

Li, 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

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