A MELON FRUIT DIAMETER MEASUREMENT METHOD BASED ON AN IMPROVED MASK R-CNN
一种基于改进MASKRCNN的甜瓜果径测量方法
DOI : https://doi.org/10.35633/inmateh-77-09
Authors
Abstract
Measuring melon fruit diameter offers key insights into growth status and maturity. To overcome the limitations of manual measurement—namely high labor demands, time consumption, and large errors—this study introduces a method based on an improved Mask R-CNN algorithm. The model uses ResNet50 as the backbone and incorporates a Channel Prior Convolutional Attention (CPCA) mechanism and a bidirectional feature fusion pyramid network to enhance multi-scale feature extraction. A Self-Attention (SE) mechanism is added to the mask branch to improve segmentation accuracy. Measurement points are determined through contour segmentation, curvature analysis, and bounding rectangle fitting. A binocular camera provides depth information, and Euclidean distance is used to compute actual size. The improved algorithm achieves detection and segmentation precision of 94.2% and 92.7%, with recall rates of 94.5% and 93.6%. The method yields average relative errors of 7.1% (horizontal) and 7.6% (vertical), meeting practical agricultural needs and supporting maturity assessment.
Abstract in Chinese



