Yang Jin-li, Li Bin, Sun Zhao-xiang, Yang A-kun, Ouyang Aiguo, Liu Yan-de
{"title":"Detection the internal quality of watermelon seeds based on terahertz imaging combined with image compressed sensing and improved-real-ESRGAN","authors":"Yang Jin-li, Li Bin, Sun Zhao-xiang, Yang A-kun, Ouyang Aiguo, Liu Yan-de","doi":"10.1016/j.compag.2025.109993","DOIUrl":null,"url":null,"abstract":"<div><div>Traditional watermelon seed detection methods are inefficient, destructive and difficult to accurately identify empty shells or defective seeds. It limits the improvement of market value and planting efficiency. In this study, a non-destructive detection method based on terahertz (THz) imaging combined with compressed sensing and Improved-Real-ESRGAN is proposed for fast and accurate assessment of the internal quality of watermelon seeds. The study is divided into three stages: firstly, THz imaging efficiency is optimised by combining compressed sensing techniques. The THz time-domain imaging system is utilised to acquire images of the interior of the seeds. Different random measurement matrices with sparse reconstruction algorithms are compared. The imaging efficiency and reconstruction quality are optimised. Second, the image quality is improved by super-resolution enhancement modelling. The discriminator upsampling method in Real-ESRGAN is replaced with pixel shuffling. Super-resolution enhancement model is built. This step provides a clearer image input for subsequent seed fullness detection. Thirdly, threshold segmentation is used to calculate seed fullness based on the enhanced image. Its applicability in defect detection is verified. The results show that the combination of BernoulliMtx and ADMM_TV algorithms saves 87.5 % of the imaging time with a measurement ratio of only 12.5 %. THz image after compressed perception combined with Improved-Real-ESRGAN processing: PSNR, SSIM and other indicators show that the image quality have been significantly improved, as well as the authenticity of image details. The fullness detection error is reduced to 3.52 %, and the average detection error of the validation set is 5.79 %. Efficient identification of seed defects is achieved. Compared to the traditional method, the optimised process proposed in this study significantly reduces the detection time. The detection accuracy is improved. It provides theoretical support and technical reference for the quality detection of agricultural products, especially for the evaluation of internal defects of seeds.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"231 ","pages":"Article 109993"},"PeriodicalIF":7.7000,"publicationDate":"2025-01-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925000997","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Traditional watermelon seed detection methods are inefficient, destructive and difficult to accurately identify empty shells or defective seeds. It limits the improvement of market value and planting efficiency. In this study, a non-destructive detection method based on terahertz (THz) imaging combined with compressed sensing and Improved-Real-ESRGAN is proposed for fast and accurate assessment of the internal quality of watermelon seeds. The study is divided into three stages: firstly, THz imaging efficiency is optimised by combining compressed sensing techniques. The THz time-domain imaging system is utilised to acquire images of the interior of the seeds. Different random measurement matrices with sparse reconstruction algorithms are compared. The imaging efficiency and reconstruction quality are optimised. Second, the image quality is improved by super-resolution enhancement modelling. The discriminator upsampling method in Real-ESRGAN is replaced with pixel shuffling. Super-resolution enhancement model is built. This step provides a clearer image input for subsequent seed fullness detection. Thirdly, threshold segmentation is used to calculate seed fullness based on the enhanced image. Its applicability in defect detection is verified. The results show that the combination of BernoulliMtx and ADMM_TV algorithms saves 87.5 % of the imaging time with a measurement ratio of only 12.5 %. THz image after compressed perception combined with Improved-Real-ESRGAN processing: PSNR, SSIM and other indicators show that the image quality have been significantly improved, as well as the authenticity of image details. The fullness detection error is reduced to 3.52 %, and the average detection error of the validation set is 5.79 %. Efficient identification of seed defects is achieved. Compared to the traditional method, the optimised process proposed in this study significantly reduces the detection time. The detection accuracy is improved. It provides theoretical support and technical reference for the quality detection of agricultural products, especially for the evaluation of internal defects of seeds.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.