Research on the Method of Online Detection of Hollow Watermelons Based on Full-Transmission Near-Infrared Spectroscopy
LI Jia-qi1, 2, 3, TIAN Xi2, 3, WANG Qing-yan2, 3, HE Xin2, 3, HUANG Wen-qian2, 3*
1. Department of Vehicle Engineering, School of Mechanical Engineering, Guangxi University, Nanning 530004, China
2. Intelligent Equipment Research Center, Intelligent-Meaurment, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
3. National Research Center of Intelligent Equipment for Agriculture, Intelligent-Meaurment, Beijing 100097, China
Abstract:Watermelon has high nutritional value and is known for its effectiveness in relieving heat in medical applications. Key indicators for evaluating watermelon include ripeness, sweetness, and whether it is hollow. These factors significantly influence market competitiveness. Screening for hollow watermelons ensures higher quality, thereby enhancing market competitiveness. In this study, 307 watermelon spectra were collected using a fully transmissive near-infrared (NIR) spectroscopy device developed independently in our laboratory. Based on the characteristic that hollow areas in watermelons primarily occur at the center of the fruit, we innovatively propose segmenting and weighting the spectra. The optimal two weighted spectra were selected using Support Vector Machine (SVM) and Partial Least Squares Discriminant Analysis (PLSDA) algorithms. Classification models for hollow watermelons were then built using the original spectra and preprocessed with Multiplicative Scatter Correction (MSC) and Savitzky-Golay Smoothing (SGS) in combination with SVM and PLSDA. The results showed that preprocessing the spectra did not necessarily improve the model performance and could even decrease it compared to models built with the original spectra. The models established using the two weighted spectra achieved the best performance, with accuracies of 96.74% (SVM) and 92.39% (PLSDA). The weighted spectra provided better modeling performance than the original and other preprocessed spectra. The weighted spectra were selected using SVM and PLSDA algorithms, and the original spectra were used to establish classification models with one-dimensional convolutional neural networks (1D-CNN). The model accuracies were 98.92% (SVM), 96.77% (PLSDA), and 95.70% (original spectra). The results indicated that 1D-CNN provided better modeling performance than SVM and PLSDA. Additionally, the segmented and weighted spectra remained effective in 1D-CNN and performed better than the original spectra. This study provides important technical support for non-destructive online grading detection of watermelons.
李佳琪,田 喜,王庆艳,何 鑫,黄文倩. 基于全透射近红外光谱的空心西瓜在线检测方法研究[J]. 光谱学与光谱分析, 2025, 45(05): 1440-1447.
LI Jia-qi, TIAN Xi, WANG Qing-yan, HE Xin, HUANG Wen-qian. Research on the Method of Online Detection of Hollow Watermelons Based on Full-Transmission Near-Infrared Spectroscopy. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2025, 45(05): 1440-1447.
[1] XIAO Guan-lin(肖关林). Modern Rural Science and Technology(现代农村科技), 2012, 8: 17.
[2] WANG Cheng-yun(王成云). Changjiang Vegetable(长江蔬菜), 2015,(7): 53.
[3] Stone M, Armstrong P, Zhang X, et al. Transactions of the ASAE, 1996, 39(6): 2325.
[4] Diezma-Iglesias B, Ruiz-Altisent M, Barreiro P. Biosystems Engineering, 2004, 88(2): 221.
[5] Saito K, Miki T, Hayashi S, et al. Cryogenics, 1996, 36(12): 1027.
[6] PU Shan-shan, ZHENG En-rang, CHEN Bei(蒲姗姗,郑恩让,陈 蓓). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2023, 43(8): 2446.
[7] GAO Wen-qiang, XIAO Zhi-yun(高文强, 肖志云). Chinese Journal of Agricultural Machinery Chemistry(中国农机化学报), 2022, 43(3): 111.
[8] WEI Chao-jie, LI Chao, XIE Hong-xin, et al(魏超杰,李 超,解宏鑫,等). Chinese Inorganic Analytical Chemistry(中国无机分析化学), 2024, 14(1): 104.
[9] Huang Y, Dong W, Chen Y, et al. Chemometrics and Intelligent Laboratory Systems, 2021(8): 104243.
[10] LIU Xiao-liang, JIANG Xiao-jun, WANG Dian-zhong, et al(刘效良,江小均,汪殿钟,等). Bulletin of Mineralogy, Petrology and Geochemistry(矿物岩石地球化学通报),2024,43(3):593.
[11] SUN Jia-hao, ZHANG Wei, SHI Jian-qin, et al(孙嘉豪,张 伟,施鉴芩,等). Journal of Metrology(计量学报), 2023, 44(8): 1284.
[12] CHU Xiao-li(褚小立). Molecular Spectroscopy Analytical Technology Combined with Chemometrics and its Applications(化学计量学方法与分子光谱分析技术). Beijing:Chemical Industry Press(北京:化学工业出版社),2011. 4.
[13] LIANG Yuan-kai, YANG Bao-sheng, LIU Run-an, et al(梁元凯, 杨宝生, 刘润安, 等). Northwest Horticulture (Vegetables)[西北园艺(蔬菜)], 2016,(2): 29.