食品科学 ›› 2026, Vol. 47 ›› Issue (4): 39-48.doi: 10.7506/spkx1002-6630-20250921-152

• 基础研究 • 上一篇    下一篇

基于CARS-1D-CNN与Vis/NIRS的贡梨SSC检测温度校正方法

吴至境,刘富强,欧阳爱国,刘燕德   

  1. (华东交通大学机电与车辆工程学院,江西 南昌 330013)
  • 出版日期:2026-02-25 发布日期:2026-03-16
  • 基金资助:
    “十四五”国家重点研发计划重点专项(2022YFD2001804)

Temperature Correction Method for the Detection of Soluble Solids Content in Gongli Pears Based on Vis/NIRS and CARS-1D-CNN

WU Zhijing, LIU Fuqiang, OUYANG Aiguo, LIU Yande   

  1. (School of Mechatronics and Vehicle Engineering, East China Jiaotong University, Nanchang 330013, China)
  • Online:2026-02-25 Published:2026-03-16

摘要: 本研究针对可见-近红外光谱(visible/near infrared spectroscopy,Vis/NIRS)检测贡梨可溶性固形物含量(soluble solid contents,SSC)时易受样品温度波动干扰的问题,采用一种融合竞争性自适应重加权采样(competitive adaptive reweighted sampling,CARS)和一维卷积神经网络(1D convolutional neural network,1D-CNN)回归模型的温度校正方法,并设置6 个温度梯度(5、10、15、20、25、30 ℃)进行验证。模型输入中引入温度标签作为辅助变量,有助于神经网络感知并适应不同温度条件下的光谱变化,从而提升模型对温度扰动的鲁棒性。将该方法与全局校准、广义最小二乘加权法(generalized least squares weighting,GLSW)、外部参数正交法(external parameter orthogonal,EPO)等温度校正方法进行对比验证。结果显示,CARS-1D-CNN在预测精度与鲁棒性方面优于EPO等传统方法,预测集的相关系数(Rp)和均方根误差分别达到0.885 9和0.548 3。相比本研究中的传统方法EPO,CARS-1D-CNN相关系数提升了2.96%,预测均方根误差降低了2.73%。该方法有效减轻了温度对光谱模型的干扰,提高了模型的稳定性和预测性能。

关键词: 竞争性自适应重加权采样-一维卷积神经网络;可见-近红外光谱;可溶性固形物含量;温度校正

Abstract: In response to the problem that the detection of soluble solids content (SSC) in Gongli pears using visible/near-infrared spectroscopy (Vis/NIRS) is vulnerable to interferences from sample temperature fluctuations, a temperature correction method was proposed by integrating competitive adaptive reweighted sampling (CARS) with a one-dimensional convolutional neural network (1D-CNN) regression model, and six temperature gradients (5, 10, 15, 20, 25, and 30 ℃) were established for validation. The introduction of temperature labels as auxiliary variables in the model input helped the neural network perceive and adapt to spectral changes under different temperature conditions, thereby enhancing the robustness of the model to temperature perturbation. This method was compared and validated against other temperature correction methods such as global calibration, generalized least squares weighting (GLSW), and external parameter orthogonalization (EPO). The results showed that CARS-1D-CNN outperformed traditional methods such as EPO in terms of prediction accuracy and robustness, with correlation coefficient of prediction (Rp) of 0.885 9 and root mean square error (RMSE) of 0.548 3. Compared with the traditional method EPO used in this study, CARS-1D-CNN improved the correlation coefficient by 2.96% and reduced the prediction root mean square error of prediction by 2.73%. This method effectively mitigates the interference of temperature on the spectral model, improving its stability and prediction performance.

Key words: competitive adaptive reweighted sampling combined with 1D convolutional neural network; visible/near infrared spectroscopy; soluble solids content; temperature correction

中图分类号: