Introduction
The proliferation of machine learning at the "edge" has led to the deployment of models on microcontrollers (MCUs) within IoT devices. However, these deployments are often hindered by a "power wall," particularly in extreme environments such as the deep ocean or remote wilderness where battery replacement is impractical. Traditional machine learning models are typically too resource-intensive for the minuscule amounts of energy provided by ambient harvesters.
This research addresses the challenge of battery-free inference. The goal is to develop a system efficient enough to operate on the fleeting milliwatts (mW) generated by ambient sources—such as underwater acoustic signals—while adhering to the strict kilobyte-level memory constraints of standard MCUs.
System Architecture
The proposed system integrates energy harvesting, edge processing, and cloud-based modeling to achieve autonomous operation.
As illustrated in Figure 1, the "Edge" processor handles preprocessing and ML inference, powered by an energy harvesting system. The "Cloud" is utilized for heavy-duty modeling and quantization tasks, delivering the optimized model back to the edge device for local execution.
Methodology
The researchers developed a four-stage end-to-end pipeline to maximize performance on minimal hardware:
- Preprocessing: To accommodate the input constraints of tiny neural networks, high-resolution images (1920x1080) are downsampled to 32x32 pixels.
- Neural Architecture Search (ProxylessNAS): Instead of standard models, the team employed ProxylessNAS to find a network structure optimized for the target hardware. This approach uses binary gates to ensure only one network path is loaded into memory at a time, preventing memory overflows.
- Static Quantization: Model weights are converted from 32-bit floating-point to 8-bit integers. This static approach pre-calculates value ranges, enabling faster integer arithmetic and drastically reducing power consumption.
- Deployment: The optimized model is converted into C code via X-CUBE-AI and deployed on an STM32L4R5 microcontroller.
As shown in Figure 2, the NAS process involves defining a search space of blocks, using gradient-based optimization to navigate that space, and evaluating candidates through partial training to arrive at the final optimal architecture.
Experimental Results
The pipeline was evaluated using the DeepFish dataset, consisting of 40,000 images for fish recognition tasks. The transition from a baseline model to the optimized version demonstrated significant efficiency gains with minimal impact on accuracy:
- Accuracy: Maintained at 97.78% (a negligible 0.1% drop from the baseline).
- Energy Consumption: Reduced by 82.67%, dropping from 3.29 mJ to 0.57 mJ per inference.
- Memory Footprint: Flash memory usage dropped by 64.17% (from 1350.25 KB to 483.82 KB).
- Latency: Inference time improved significantly, from 248 ms to 118 ms.
- Power Draw: The optimized power draw of 4.83 mW aligns with the capabilities of existing underwater ultrasonic energy harvesters, bridging the gap between theoretical low power and battery-free reality.
Discussion and Future Work
The study proves that complex tasks like fish recognition can run solely on harvested energy. However, challenges remain regarding data heterogeneity, as changes in water clarity or species could affect performance. Future work will explore model personalization to adapt to specific deployment sites. Additionally, the researchers plan to investigate intermittency—how the system handles power failures during inference—and scale the pipeline to more complex sensing tasks and diverse hardware platforms.
Summary updated