Back To Projects

Drone Obstacle Detection Using YOLOv5

Vihaan B.

This project was built with the goal of performing real-time obstacle detection on a drone.


This project was built with the goal of performing real-time obstacle detection on a drone. In order to achieve this given the lack of pre-existing drone image datasets, I had to collect images, label them, and train a functional model. I collected my dataset using the DJI Mavic Mini Drone and labeled the images on Roboflow, a computer vision data labeling website. I resorted to creating my own dataset focused around 6 different classes: buildings, houses, fences, poles, street signs, and trees. Based on these goals, I picked 3 locations to take pictures: Brandywine Drive, Saratoga High School, and downtown Los Gatos. I flew my drone at a varying range of altitudes from around 5-30 meters off the ground and altered the angle of the gimbal from looking straight down (90°) to horizontal views at around (10°). Throughout the process of labeling, I did not label minute objects which did not directly affect the flight path of the drone. Hence, I did not label many trees/buildings/poles/etc. in the background where I did not find it necessary to do so. Data augmentation has been key to the success I have had throughout this project. Labeling is a lengthy process requiring excessive labor, and a quick way to easily upscale the size of my dataset was through augmentation. I used Roboflow’s threefold (3x) augmentation and ended up settling on 4 types of image-level augmentation: noise, exposure, brightness, and blur. I trained my model using transfer learning on YOLOv5, and was able to achieve proficient results. Albeit mediocre training accuracies, my models performed well on test datasets, correctly creating bounding boxes with high confidences. In the near future, I will look to increase the size of my dataset and balance the label count in order to improve my model and address the skew in my dataset. Additionally, I intend to open-source my current dataset along with my best model on Kaggle and Github to help others dive into the relatively unexplored domain of drone AI.

Explore More!

Source Code
Vihaan B.

Related Projects

Quantifying the True Trade Value of NBA Players: A Data Driven Approach

This study investigates the drivers of NBA player valuation by analyzing performance metrics, advanced statistics, and salaries from the 2022–2023 season, using regression models to assess how performance relates to trade value. The findings show that while team payroll strongly correlates with team performance, individual player salaries often diverge from statistical output, highlighting the influence of factors beyond on-court performance.
Ali Q.
Mentored by Rami Abi-Akl
Evaluating Autonomous Vehicle Safety: A Comparative Analysis of ADS and ADAS Incident Data Using Machine Learning Models

This research evaluates the safety performance of Advanced Driver Assistance Systems (ADAS) and Automated Driving Systems (ADS) by training supervised machine learning models on incident report data to predict injury severity. The best results were achieved using a fine-tuned Random Forest model, offering insights to improve autonomous systems and enhance road safety.
Quang M.
Mentored by Edoardo Contente
Predicting Unplanned Electric Vehicle Breakdowns using Machine Learning on Sensor and Diagnostic Data

This study explores the use of artificial intelligence (AI) for fault prediction in electric vehicles (EVs) to reduce unexpected breakdowns and improve reliability. Using sensor, driving, and diagnostic data from 2020–2024, the research found that tree-based models, particularly Decision Tree and Random Forest, achieved over 90% predictive accuracy, demonstrating AI’s potential to enable proactive maintenance and enhance user confidence in EV technology.
Richa K.
Mentored by Rami Abi-Akl