A Novel 2D‐CNN Model Integrating 2D‐Transformed NIR Spectra and Attention Mechanism With Transfer Learning: A Case in SSC Prediction of Pears

ABSTRACT Near‐infrared (NIR) spectroscopy technology has been widely used in agriculture, food, pharmaceuticals, petrochemical, and other fields due to its advantages of high efficiency and nondestructiveness. However, it still faces challenges such as data distribution shifts caused by factors like different spectrometers and spectral acquisition environments. In this study, we propose a GASp2DCNN model that integrates the Gramian Angular Summation Field (GASF) and the adaptive star block (ASB) to address the performance degradation of models when spectrometers or environments change. Firstly, the spectrum is transformed to two‐dimensional data after piecewise aggregation approximation (PAA), polar coordinate transformation, and GASF to capture correlation features with 2D convolution. Then, an ASB module integrating star operation and channel attention mechanism is designed to enhance the model's ability to capture spectral local correlations. Finally, a feature‐vector based transfer learning (FBTL) method is proposed, which dynamically weights the feature vectors of the source and target domains through an attention mechanism to enhance cross‐domain adaptation. The results on a pear dataset indicate that the GASp2DCNN improves R 2 by 5.2% to 24.4% compared to machine learning models (PLSR, SVR) and 1D‐CNN models. In transfer learning experiments, the proposed FBTL method improved R 2 by 4% to 12% compared to global fine‐tuning and head‐freezing fine‐tuning methods and outperformed domain‐adversarial neural networks (DANN) and maximum classifier discrepancy (MCD) by 4% to 9% across all transfer scenarios. Stable transfer effects are achieved when the target domain sample size reaches 40% of the total, reducing reliance on target samples. This also provides an interpretable and highly robust solution for fruit quality detection.

Authors

Institutions

Publication Details

Journal
Journal of Chemometrics
Published
2026-06-18
DOI
https://doi.org/10.1002/cem.70158
Primary Topic
Spectroscopy and Chemometric Analyses
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Novel 2D‐CNN Model Integrating 2D‐Transformed NIR Spectra and Attention Mechanism With Transfer Learning: A Case in SSC Prediction of Pears

趙諳儀, J Z Zhang, Xiaping Fu, Zhangwei Fan
Journal of Chemometrics
Spectroscopy and Chemometric Analyses
article

A Novel 2D‐CNN Model Integrating 2D‐Transformed NIR Spectra and Attention Mechanism With Transfer Learning: A Case in SSC Prediction of Pears

趙諳儀, J Z Zhang, Xiaping Fu, Zhangwei Fan
article en

Abstract

ABSTRACT Near‐infrared (NIR) spectroscopy technology has been widely used in agriculture, food, pharmaceuticals, petrochemical, and other fields due to its advantages of high efficiency and nondestructiveness. However, it still faces challenges such as data distribution shifts caused by factors like different spectrometers and spectral acquisition environments. In this study, we propose a GASp2DCNN model that integrates the Gramian Angular Summation Field (GASF) and the adaptive star block (ASB) to address the performance degradation of models when spectrometers or environments change. Firstly, the spectrum is transformed to two‐dimensional data after piecewise aggregation approximation (PAA), polar coordinate transformation, and GASF to capture correlation features with 2D convolution. Then, an ASB module integrating star operation and channel attention mechanism is designed to enhance the model's ability to capture spectral local correlations. Finally, a feature‐vector based transfer learning (FBTL) method is proposed, which dynamically weights the feature vectors of the source and target domains through an attention mechanism to enhance cross‐domain adaptation. The results on a pear dataset indicate that the GASp2DCNN improves R 2 by 5.2% to 24.4% compared to machine learning models (PLSR, SVR) and 1D‐CNN models. In transfer learning experiments, the proposed FBTL method improved R 2 by 4% to 12% compared to global fine‐tuning and head‐freezing fine‐tuning methods and outperformed domain‐adversarial neural networks (DANN) and maximum classifier discrepancy (MCD) by 4% to 9% across all transfer scenarios. Stable transfer effects are achieved when the target domain sample size reaches 40% of the total, reducing reliance on target samples. This also provides an interpretable and highly robust solution for fruit quality detection.

Journal of ChemometricsVol. 40(7)
Zhejiang Sci-Tech University (CN), Central South University (CN), Zhejiang Lab (CN)
Zero hunger
Openalex Percentile: Top 9%
Spectroscopy and Chemometric Analyses
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.