Hari Chandana Pichhika, Priyambada Subudhi, Raja Vara Prasad Yerra
{"title":"On-tree mango detection and size estimation using attention-enhanced mangoYOLO5 and XGBoost regression","authors":"Hari Chandana Pichhika, Priyambada Subudhi, Raja Vara Prasad Yerra","doi":"10.1007/s11694-025-03114-y","DOIUrl":null,"url":null,"abstract":"<div><p>Accurate estimation of mango size during harvesting is essential for optimizing harvest timing, resource allocation, quality control, and profitability in mango cultivation. This paper presents a computer vision based on-tree mango detection using an upgraded MangoYOLO5 model and size estimation from the detected bounding boxes using XGBoost regression analysis. As the accuracy of size estimation depends on the precision of the rendered bounding box, we have focused on improving the detection accuracy by adding spatial and channel attention modules into the MangoYOLO5, a customized YOLOv5 model for mango detection proposed in our previous work. The proposed Attention Enhanced MangoYOLO5 (AE-MangoYOLO5) model focuses on the most relevant parts of the input image, reducing false positives and improving detection accuracy in scenarios involving occlusion and overlapping. The detected bounding box parameters, such as height and width, are correlated with the actual mango dimensions measured using a Vernier Caliper. XGBoost regression with positional loss is used to get the correlation, and an empirical study is conducted by comparing its results with traditional XGBoost, linear, and logistic regression models. A coefficient of determination (<span>\\(R^2\\)</span>) of 0.91 is obtained in the proposed approach, reflecting a robust alignment between estimated and actual mango sizes which is higher than that of the conventional regression models.</p></div>","PeriodicalId":631,"journal":{"name":"Journal of Food Measurement and Characterization","volume":"19 4","pages":"2333 - 2349"},"PeriodicalIF":2.9000,"publicationDate":"2025-01-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Food Measurement and Characterization","FirstCategoryId":"97","ListUrlMain":"https://link.springer.com/article/10.1007/s11694-025-03114-y","RegionNum":3,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"FOOD SCIENCE & TECHNOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
Accurate estimation of mango size during harvesting is essential for optimizing harvest timing, resource allocation, quality control, and profitability in mango cultivation. This paper presents a computer vision based on-tree mango detection using an upgraded MangoYOLO5 model and size estimation from the detected bounding boxes using XGBoost regression analysis. As the accuracy of size estimation depends on the precision of the rendered bounding box, we have focused on improving the detection accuracy by adding spatial and channel attention modules into the MangoYOLO5, a customized YOLOv5 model for mango detection proposed in our previous work. The proposed Attention Enhanced MangoYOLO5 (AE-MangoYOLO5) model focuses on the most relevant parts of the input image, reducing false positives and improving detection accuracy in scenarios involving occlusion and overlapping. The detected bounding box parameters, such as height and width, are correlated with the actual mango dimensions measured using a Vernier Caliper. XGBoost regression with positional loss is used to get the correlation, and an empirical study is conducted by comparing its results with traditional XGBoost, linear, and logistic regression models. A coefficient of determination (\(R^2\)) of 0.91 is obtained in the proposed approach, reflecting a robust alignment between estimated and actual mango sizes which is higher than that of the conventional regression models.
期刊介绍:
This interdisciplinary journal publishes new measurement results, characteristic properties, differentiating patterns, measurement methods and procedures for such purposes as food process innovation, product development, quality control, and safety assurance.
The journal encompasses all topics related to food property measurement and characterization, including all types of measured properties of food and food materials, features and patterns, measurement principles and techniques, development and evaluation of technologies, novel uses and applications, and industrial implementation of systems and procedures.