Abstract
Uneaten feed increases production costs and contributes to water-quality deterioration in shrimp farming, while manual feed-tray inspection is labor-intensive and difficult to sustain for continuous monitoring. Effective feeding assessment requires both residual-feed quantity and spatial distribution, because similar pellet counts can conceal different accumulation patterns. However, existing detection methods struggle with tiny, overlapping pellets and do not directly produce continuous density maps, whereas standalone density estimators are susceptible to underwater background interference. To address these limitations, this study proposes YOLO-SPD-LSK-DGD, an end-to-end network that jointly predicts pellet bounding boxes and spatial density maps through a shared backbone. Detail-preserving downsampling and adaptive contextual feature selection strengthen tiny-pellet representations while suppressing interference from tray grids and water-surface reflections. A hybrid bounding-box regression loss combines overlap-based geometric constraints with distribution-based similarity to improve localization stability for densely clustered pellets. Furthermore, density supervision is automatically generated from existing bounding-box centers using bounded Gaussian bandwidths determined by local nearest-neighbor distances. This strategy accommodates variations in pellet spacing without requiring additional manual point annotations. Experiments on a field-collected shrimp feed-tray dataset achieved an mAP50 of 0.9231 for detection and an R² of 0.9004 for counts obtained by integrating predicted density maps. Evaluation across different accumulation conditions and analysis of failure cases further characterize the model’s performance and limitations under challenging field conditions. These results support the feasibility of jointly locating residual feed and describing its spatial accumulation, providing complementary information for quantitative monitoring and supporting more informed feeding decisions in shrimp aquaculture.