Benchmarking Dense and Indiscernible Object Counting with Blueberries
Abstract
Lay Summary
Counting fruit in real farm images is important for crop monitoring, yield estimation, and harvest planning, but it is often very difficult. Blueberries, for example, can be tiny, tightly packed together, partly hidden by leaves, and similar in color to their surroundings. To study this challenging problem, we introduce DIOCblueberry, a large benchmark dataset built from difficult real-world blueberry images. Compared with commonly used counting datasets, it contains more objects per image and much smaller fruits, making it a demanding test for AI counting systems. We also propose MaskCount, a new method designed to count fruits more reliably in these crowded and visually confusing scenes. MaskCount first helps the model focus less on background leaves and more on likely fruit regions. It then learns to better distinguish blueberries from surrounding foliage and carefully handles fruits near image edges that may be only partly visible. Experiments show that MaskCount greatly improves counting accuracy on DIOCblueberry and also performs well on other agricultural counting tasks. This work can support more reliable AI tools for precision agriculture.