Abstract
Rockfill particle gradation significantly influences mechanical performance in earth-rockfill dam construction, yet on-site screening is often time-consuming, labor-intensive, and structurally invasive. This study proposes a rapid and non-destructive detection method using mobile-based photography and an end-to-end image segmentation approach. An enhanced YOLOv8-seg model with an integrated dual-attention mechanism was pre-trained on laboratory images to accurately segment densely stacked particles. Transfer learning was then employed to retrain the model using a limited number of on-site images, achieving high segmentation accuracy. The proposed model attains a mAP50 of 97.8% (base dataset) and 96.1% (on-site dataset), enabling precise segmentation of adhered and overlapped particles with various sizes. A Minimum Area Rectangle algorithm was introduced to compute the gradation, closely matching the results from manual screening. This method significantly contributes to the automation of construction workflows, cutting labor costs, minimizing structural disruption, and ensuring reliable measurement quality in earth-rockfill dam projects.