TL;DR
This paper tackles the challenge of enabling nano-drones with extremely limited computational resources to perform autonomous obstacle avoidance using computer vision. They achieve this by developing a highly efficient, lightweight depth estimation network and employing knowledge distillation to transfer capabilities from a larger model, successfully deploying it on a Crazyflie nano-drone.
What Problem Does This Paper Address?
Autonomous navigation for drones, especially in complex indoor environments like those found after disasters, is a critical area of research. While powerful computer vision techniques exist, they typically require significant computational power and memory, making them unsuitable for nano-drones. These small, affordable drones are ideal for exploring tight spaces but are severely constrained by their processors (like the GAP8 with only 22.65 GOPS and 512 KB RAM) and storage. Existing methods often rely on multiple sensors or heavy onboard processing, which nano-drones cannot support. This paper aims to bridge this gap by enabling effective vision-based obstacle avoidance on these resource-constrained platforms.
Methods
The core of the solution is a novel, lightweight Convolutional Neural Network (CNN) for depth estimation, named DDND (Distilled Depth for Nano-Drones). To overcome the limitations of the nano-drone's hardware, several key strategies are employed:
- Grayscale Images: Instead of using RGB images, the system processes single-channel grayscale images. This significantly reduces memory requirements, saving two-thirds of the storage space compared to RGB, allowing for larger CNN models.
- Lightweight Architecture: The network is a streamlined version of the Lite-Mono architecture, reducing the number of trainable parameters from 3.1 million to just 310,000. This makes it feasible for the GAP8 processor.
- Self-Supervised Depth Estimation (SSDE): The network is trained using a self-supervised approach, which doesn't require manually labeled depth data. This relies on photometric loss, comparing reconstructed images to actual ones using adjacent frames and estimated poses.
- Knowledge Distillation (KD): To compensate for the reduced capacity of the lightweight student model, knowledge distillation is used. A larger, pre-trained "teacher" model (Lite-Mono) transfers its knowledge to the smaller "student" model (DDND).
- Channel-Aware Distillation Transformer (CADiT): A novel KD technique is introduced, CADiT, which helps the student model learn geometric cues from the teacher's feature channels more effectively. This is achieved by building a channel correlation map and reconfiguring student features based on these correlations.
- Behavior Arbitration (BA): For actual drone control, a behavior arbitration scheme is used, adapted to work with the generated depth maps. This scheme translates depth information into steering commands to avoid obstacles.
Datasets
- KITTI Dataset: Used for training and evaluating the self-supervised depth estimation model. The paper specifically uses the Eigen split, with 39,810 monocular triplets for training, 4421 for evaluation, and 697 for testing. For training, RGB images were resized to 192x640 and converted to grayscale.
- Gray Campus Indoor Dataset: An in-house dataset collected by the authors using a Crazyflie drone in various campus buildings. It comprises 17 sequences totaling 9140 grayscale images (original resolution 244x324), resized to 128x160 for faster processing.
Key Insights and Ideas
- Grayscale is Sufficient for Depth: The research demonstrates that self-supervised depth estimation is feasible and effective even with single-channel grayscale images, significantly reducing the computational burden for resource-constrained platforms.
- Knowledge Distillation is Crucial for Small Models: Simply creating a smaller model isn't enough; knowledge distillation is essential to imbue these tiny networks with the necessary understanding of depth and scene geometry, especially when there's a large capacity gap between teacher and student.
- CADiT Enhances KD: The proposed CADiT module offers a more sophisticated way to perform knowledge distillation by focusing on channel correlations, leading to improved feature matching and better student model performance.
- End-to-End Deployment is Achievable: The paper successfully demonstrates the deployment of a vision-based depth estimation and obstacle avoidance system on a real nano-drone with a very limited processor, showcasing the practical viability of the approach.
- Offline Reconstruction Enables Mapping: By streaming images to a laptop, the system can create 3D reconstructions of the environment, providing valuable mapping capabilities that are impossible to achieve onboard.
Key Results
- Accuracy: The DDND model, especially with CADiT and L1 distillation, achieves competitive accuracy on the KITTI dataset, demonstrating that the lightweight model can learn effectively. For instance, the best DDND configuration achieved an Abs Rel error of 0.147 and an RMSE of 5.394 on grayscale KITTI.
- Inference Speed: On the GAP8 processor, the DDND model achieves an inference speed of 1.24 FPS for 128x160 images, which is considered acceptable for low-speed drone flight. This is a significant improvement over what would be possible with larger models.
- Memory Reduction: The model's parameter count is reduced to 310K, and using grayscale images further minimizes memory footprint, making it suitable for the GAP8's 512 KB RAM.
- Qualitative Results: The generated depth maps, both on KITTI and the indoor dataset, show that DDND can successfully learn features and produce reasonable depth estimations, often with sharper edges than models trained without KD.
Limitations and Future Work
- Failure Cases: The method struggles with transparent objects like glass and when the drone is too close to walls. This is a known limitation of self-supervised depth estimation methods.
- Low Inference Speed: While 1.24 FPS is acceptable for low-speed flight, it limits the drone's agility. Future work could explore more efficient algorithms or more powerful hardware like the GAP9 chip.
- Offline Reconstruction: The current 3D reconstruction pipeline is offline. Future work could involve real-time SLAM on the drone or more efficient bilateral communication for faster processing.
- Integration of Sensors: To overcome limitations with glass and close proximity to walls, the authors suggest integrating additional sensors like ultrasonic sonar.
- Path Planning: The current obstacle avoidance is reactive. Future work could leverage the generated depth maps and 3D reconstructions for more sophisticated path planning.
Summary updated