{"title":"Real-time weight estimation of Zucchini using laser-based 3D matrix and deep learning","authors":"Mojtaba Taheri , Mohammad Amin Nematollahi , Alimohammad Shirzadifar , Mahmoud Omid","doi":"10.1016/j.measurement.2025.118542","DOIUrl":null,"url":null,"abstract":"<div><div>Accurate and efficient weight-based grading systems are essential for maintaining quality standards and improving productivity in modern agriculture. However, traditional methods are often manual, time-consuming, and prone to inaccuracies. This study presents a machine vision-based system for automated Zucchini weight estimation using a cost-effective laser-assisted 3D imaging method combined with deep learning. A red line laser, aligned perpendicular to a moving conveyor, captures video frames of Zucchinis. Height deviations from the laser profile are analyzed to generate a 3D matrix for each Zucchini. These data are resized, augmented, and used via transfer learning as inputs for pre-trained deep learning models, VGG16, ResNet101, and MobileNetV2. The study also compares this laser-based volumetric approach with traditional RGB image-based estimation. Among the models, MobileNetV2 using 3D matrix input achieved the highest accuracy, with an R<sup>2</sup> of 0.96 ± 0.03, root mean squared error of 19.01 ± 6.29 g, and mean absolute percentage error of 7.04 ± 2.63 %. The 3D matrix-based approach significantly outperformed the image-only method in accuracy and processing speed. Nevertheless, limitations such as sensitivity to ambient light, surface moisture, and the need for controlled imaging conditions must be considered for real-world deployment. This research introduces a scalable, low-cost solution for real-time weight grading of Zucchinis, with the potential for adaptation to other irregularly shaped horticultural crops. Furthermore, the system architecture can be extended to assess other practical applications of postharvest traits, such as ripeness, surface damage, or frostbite. Future work will focus on validating the system across diverse environmental conditions and expanding its functionality for broader use in precision agriculture.</div></div>","PeriodicalId":18349,"journal":{"name":"Measurement","volume":"256 ","pages":"Article 118542"},"PeriodicalIF":5.6000,"publicationDate":"2025-07-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Measurement","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0263224125019013","RegionNum":2,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ENGINEERING, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0
Abstract
Accurate and efficient weight-based grading systems are essential for maintaining quality standards and improving productivity in modern agriculture. However, traditional methods are often manual, time-consuming, and prone to inaccuracies. This study presents a machine vision-based system for automated Zucchini weight estimation using a cost-effective laser-assisted 3D imaging method combined with deep learning. A red line laser, aligned perpendicular to a moving conveyor, captures video frames of Zucchinis. Height deviations from the laser profile are analyzed to generate a 3D matrix for each Zucchini. These data are resized, augmented, and used via transfer learning as inputs for pre-trained deep learning models, VGG16, ResNet101, and MobileNetV2. The study also compares this laser-based volumetric approach with traditional RGB image-based estimation. Among the models, MobileNetV2 using 3D matrix input achieved the highest accuracy, with an R2 of 0.96 ± 0.03, root mean squared error of 19.01 ± 6.29 g, and mean absolute percentage error of 7.04 ± 2.63 %. The 3D matrix-based approach significantly outperformed the image-only method in accuracy and processing speed. Nevertheless, limitations such as sensitivity to ambient light, surface moisture, and the need for controlled imaging conditions must be considered for real-world deployment. This research introduces a scalable, low-cost solution for real-time weight grading of Zucchinis, with the potential for adaptation to other irregularly shaped horticultural crops. Furthermore, the system architecture can be extended to assess other practical applications of postharvest traits, such as ripeness, surface damage, or frostbite. Future work will focus on validating the system across diverse environmental conditions and expanding its functionality for broader use in precision agriculture.
期刊介绍:
Contributions are invited on novel achievements in all fields of measurement and instrumentation science and technology. Authors are encouraged to submit novel material, whose ultimate goal is an advancement in the state of the art of: measurement and metrology fundamentals, sensors, measurement instruments, measurement and estimation techniques, measurement data processing and fusion algorithms, evaluation procedures and methodologies for plants and industrial processes, performance analysis of systems, processes and algorithms, mathematical models for measurement-oriented purposes, distributed measurement systems in a connected world.