Spectroscopy and Spectral Analysis, Volume. 45, Issue 5, 1440(2025)

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, and HUANG Wen-qian2,3、*
Author Affiliations
  • 1Department of Vehicle Engineering, School of Mechanical Engineering, Guangxi University, Nanning 530004, China
  • 2Intelligent Equipment Research Center, Intelligent-Meaurment, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
  • 3National Research Center of Intelligent Equipment for Agriculture, Intelligent-Meaurment, Beijing 100097, China
  • show less

    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.

    Tools

    Get Citation

    Copy Citation Text

    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[J]. Spectroscopy and Spectral Analysis, 2025, 45(5): 1440

    Download Citation

    EndNote(RIS)BibTexPlain Text
    Save article for my favorites
    Paper Information

    Received: Jun. 3, 2024

    Accepted: May. 21, 2025

    Published Online: May. 21, 2025

    The Author Email: HUANG Wen-qian (huangwq@nercita.org.cn)

    DOI:10.3964/j.issn.1000-0593(2025)05-1440-08

    Topics