Abstract
DSORT-MCU introduces an adaptive tiling method that enables resource-constrained microcontrollers (MCUs) to detect small objects with high accuracy and real-time performance. By intelligently splitting high-resolution images into overlapping sub-tiles, the system achieves significant improvements in F1-scores and object counting accuracy compared to standard lightweight models.
Introduction
Object detection on low-power microcontrollers (MCUs) involves extreme trade-offs between resolution and memory. While lightweight models like FOMO and TinyissimoYOLO exist, they struggle with small objects. High-resolution images are necessary to capture small details, but MCUs typically have less than 2MB of RAM, making it impossible to process full high-res frames. Furthermore, standard CNN operations like striding and pooling often cause small objects to disappear from internal feature maps.
Methods
The DSORT-MCU system addresses these challenges through three primary innovations:
- Adaptive Tiling: The system splits high-resolution images into smaller, overlapping tiles. Tile size is dynamically calculated based on a "Target Normalized Bounding Box Area" (NBA), effectively zooming in on objects to improve the signal-to-noise ratio without increasing memory requirements.
- Soft F1 Loss for FOMO: By utilizing a "Soft F1 Loss" during training, the network learns to produce cleaner, single-point predictions. This acts as an implicit form of Non-Maximum Suppression (NMS), reducing post-processing overhead.
- Smart Prediction Fusion: To handle objects appearing in multiple overlapping tiles, the authors use a "one-way matching" strategy based on an Intersection Ratio. This method is more robust than standard Intersection over Union (IoU) for objects partially visible at tile edges.
The system was deployed on the GAP9 microcontroller, a RISC-V based processor designed for edge AI acceleration.
Experimental Results
The system was evaluated using the CARPK (Car Parking Lot) dataset, which contains nearly 90,000 small cars captured from drone imagery.
Accuracy and Error Reduction
On the CARPK dataset, the tiling method improved the F1-score from a baseline of 0.28 to 0.91. The Mean Absolute Error (MAE) in car counting dropped by 89%, from 54.32 to 6.2 when using TinyissimoYOLO with tiling.
Performance and Efficiency
On GAP9 hardware, DSORT-MCU achieved inference speeds exceeding 30 FPS for FOMO-based configurations. Even the more complex TinyissimoYOLO reached nearly 3 FPS. Power consumption remained extremely low, ranging from 31 µJ to 1.27 mJ per inference, making the system ideal for battery-powered IoT applications.
Conclusion
While adaptive tiling significantly improves accuracy on MCUs, it introduces a latency penalty proportional to the number of tiles processed. The authors identified a "sweet spot" at approximately 4% Target NBA where accuracy and efficiency are optimally balanced. Future work will explore selective tiling, using low-resolution previews to identify regions of interest for high-resolution processing, further optimizing the trade-off between power, speed, and precision.
Summary updated