Drone Based Potholes Detection Using Machine Learning On Various Edge AI Devices in Real-Time
Drone Based Potholes Detection Using Machine Learning On Various Edge AI Devices in Real-Time
Nirma University
Ahmedabad, India Ahmedabad, India Ahmedabad, India
aniruddhsinhp2001@[Link] [Link]@[Link] [Link]@[Link]
Abstract— Pothole detection is an important aspect of road vehicles and due to potholes, lots of accidents happened on the
maintenance and safety. The presence of potholes on roads can
roads. So many people get injured in accidents or die due to
cause damage to vehicles, create safety hazards for drivers, and
increase maintenance costs. Timely detection of potholes can these potholes in India every year. The Ministry of Road
alert the driver for better navigation as well as the location of the Transport & Highway have reported that 4775 accidents had
potholes can be shared with the local governing body for taking occurred in 2019 due to potholes, injuring 4012 people and
counteractions. In this paper, we have detected potholes using killing 2140 people. In 2020, there occurred 3,564 accidents
two object detection models, YOLOv5, YOLOv7 & YOLOv8 and where 1471 people got killed and 3064 people got injured due
have employed the trained models on Edge AI Devices for real- to potholes on the roads [1]. The situation worsens during
time inference. We have compared the outcomes of YOLO in monsoon seasons. Sometimes, due to water lodging, these
terms of accuracy, precision and recall. YOLOv8 is giving 78% potholes are not clearly visible and lead to accidents.
of accuracy, YOLOv7 is giving 67% of accuracy and YOLOv5 is
giving 70% of accuracy. These models are deployed on If these potholes can be detected, timely counter measures
Raspberry Pi-4, Nvidia Jetson Nano and Intel UP Squared board. can be taken and these accidents can be avoided. Researchers
The performance of these Edge AI devices is analyzed in terms of and the scientific community are employing various techniques
fps and through experimental results it is observed that the Intel to identify the potholes. Various image processing-based
UP Squared board achieves higher fps. For real-time detection of techniques, machine learning based approaches are reported in
potholes, live videos were collected through drones and were live literature for identification of potholes. The complex object
streamed to the Edge AI devices through the RTMP server for detection architecture like YOLO has been used to detect
real-time inference. Overall, the proposed system is highly pothole [2, 3].
efficient for the reliable detection of potholes under different
road conditions. In this paper we propose a machine learning based
approach to detect the potholes in real time. The pothole is
Keywords – Pothole detection, Machine Learning, Drone detected through live video stream captured via drones and are
Video, Edge AI, YOLO. identified using trained machine learning models ported on
various Edge AI devices. We have created a custom dataset for
I. INTRODUCTION training the machine learning model by capturing images from
various sources such as the internet, manual clicking the photos
One of the basic requirements for development of a Smart of potholes using a camera as well as drone. The trained model
City or a Smart Village is better transportation services. The is then deployed on various embedded devices such as
infrastructure of any nation depends on transportation for better Raspberry Pi, Nvidia Jetson Nano and Intel UP square board,
connectivity, travel and ensuring that necessary requirements for real time inference. A drone sends live video feed to these
timely reach to the people. The growth of economy, education, Edge AI devices, which detect the potholes in real-time. If the
and health sector also rely on the availability of a good GPS coordinates of these potholes are mapped, we can then
transportation system. With the fast-paced life in the modern send them to the governing authorities for taking timely actions
times, the transportation facilities are highly dependent on the against these potholes, in order to avoid accidents.
quality of the roads. Be it a small town or a large city, The main contributions of this work are as follows:
necessary services, emergency services, goods delivery, public
commutation, all can be timely reached to the people if the x Accurate detection of potholes through machine
roads are in good condition. So, the roads must be better and learning, by training the model on custom dataset.
well maintained in order to ensure that these requirements are x Implementation of pothole detection models on Edge
fulfilled. AI devices for performance comparison.
Potholes on roads are causing severe problems with x Real-time surveillance and pothole detection through
transportation connectivity. It is also causing damage to drones.
Table I
Summary of various approaches for pothole detection using machine
learning
23
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on April 24,2025 at [Link] UTC from IEEE Xplore. Restrictions apply.
Once the models are trained, the After the testing is In order to deploy the machine learning models on these
complete, we also do real-time detection of the potholes using Edge AI devices, we need to first check the Edge AI hardware
the drone. It is also detected in the video. We take some online configuration and respective specifications. Deploying DL
videos that help us to show the accuracy of the model that will models on these edge devices needs to have a check on the
be shown in section V. model complexity, frameworks, libraries, computations as well
as memory constraints [8]. Selecting the right device for an
C. Block Diagram of system application depends on the expected outcomes as well as
Figure 2 presents the block diagram of the proposed system evaluation of performance parameters such as inference time,
for pothole detection. The YOLO models are trained with the efficiency, latency [9].
custom created dataset. Once the hyperparameters are tuned To deploy the trained YOLO models on the hardware,
and the models are trained, the trained models are deployed on following steps were taken: Installation of the operating
embedded devices. A drone captures real-time images and system, depending on the choice of device, installation the
videos of the potholes which are then fed to these Edge AI requirements and libraries for the trained model, deployment of
devices. The input gets processed by the trained models and the the trained model and then performing the inference. The
potholes are detected in real-time, as shown in Figure 2. Real- models are tested with images, videos as well as live video
time detection is done by using a drone. However, we can also from camera to compare the outcomes in terms of FPS and the
take the inputs using webcams or a camera on the Edge AI accuracy.
hardware. The drones provide us the advantage of ease of
collection of the data from any location, at any height and E. ML Model with Edge AI Device Using Drone
angle of view. This facilitates detection of potholes on roads,
Drones are used for detection of objects in real-time
irrespective of the traffic, weather or time conditions.
through machine learning models [10-11]. In this work, we are
using a DJI-Mavic Mini 2 drone for real-time pothole
detection. RTMP (Real-Time Messaging Protocol) server is
used to connect the drone to the embedded hardware. For
connectivity, it requires an IP address setup. After completing
the connectivity of the server and the Edge AI device, we
perform inference by the trained model on the live video
stream transmitted by the drone and detect the potholes.
IV. RESULTS
This section is divided into two parts. The first sub-
sections describe the YOLO model training and testing results,
while the last sub-section presents the outcomes of pothole
detection on Edge AI devices in real-time using drone
imaginary.
Fig. 2. Block diagram of the proposed system
The drone controller is connected to the RTMP (Real-time A. Pothole Detection Models Results
Messaging Protocol) server that is connected to the Edge AI The pothole detection models YOLOv5, YOLOv7 and
hardware using the server. RTMP server provide low latency. YOLOv8 are trained on the same custom dataset. The
It is better for Real Time Detection. So, whatever is in the field outcomes are compared in terms of precision, recall and mean
of view of the drone, can be processed on the Edge AI device Average Precision (mAP). mAP is a metric for measuring
and can be viewed on a hardware display. This provides accuracy of object detectors. Table III presents this
portability to the complete system and can be deployed comparison. It can be observed that YOLOv8 has more
anywhere for real-time inference. precision score in comparison to YOLOv5 and YOLOv7 has
less precision score. it is the latest version of YOLO.
D. Pothole Detection model on Edge AI Device
Table III
The capability of object detection models like YOLO and
SSD in detecting multiple objects at a very high accuracy Model comparison in terms of precision, recall and mAP
motivated us to employ YOLO for detection of potholes. We Model Precision Recall mAP
have trained YOLOv5, YOLOv7 and YOLOv8 with the dataset
and then deployed these models on three different hardware - YOLOv5 0.89 0.79 0.70
1) Raspberry Pi-4, 2) Intel UP squared, 3) Nvidia Jetson Nano. YOLOv7 0.70 0.65 0.67
Raspberry Pi-4 is a single board computer with 64-bit quad YOLOv8 0.96 0.81 0.78
core Cortex-A72 processor. It usually employed for IoT, image
and video processing, applications. The Jetson Nano is
specifically designed for AI and ML workloads, providing Fig. 3, Fig. 4 and Fig. 5 presents the pothole detection
excellent performance with its dedicated GPU and CUDA results using YOLOv5, YOLOv7 and YOLOv8. It can be
support. The Intel UP Squared generally offers better CPU observed that both the models are able to efficiently detect the
performance compared to the Raspberry Pi 4 and Jetson Nano, potholes on images as well as videos. The accuracy of the
with its Intel Atom processor. However, the Jetson Nano excels pothole detection in YOLOv8 is 78%, YOLOv7 is 67% and
in GPU performance, making it more suitable for AI and YOLOv5 achieved an accuracy of 70%.
machine learning tasks.
24
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on April 24,2025 at [Link] UTC from IEEE Xplore. Restrictions apply.
Table IV
Comparing the performance on various Edge AI Devices
Devices fps
Raspberry Pi-4 10
Nvidia Jetson Nano 12-15
Intel UP Squared 25-30
(a) (b)
(a) (b) (c)
Fig. 4. Pothole detection results in images using YOLOv7. (a)
potholes detection image, (b) video of the detection and (c)
detection of video.
25
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on April 24,2025 at [Link] UTC from IEEE Xplore. Restrictions apply.
real-time detection of the potholes. From the detection results, [8] D. Kolosov, V. Kelefouras, P. Kourtessis, P. and I. Mporas, “Anatomy
it can be concluded that the said approach is highly efficient in of Deep Learning Image Classification and Object Detection on
Commercial Edge Devices: A Case Study on Face Mask Detection.”
the detection of potholes in real-time. This can be useful in the IEEE Access, 2022, Vol. 10, pp.109167-109186.
timely detection of potholes before they lead to any serious
[9] C. A. A. Valencia, R. S. S. Suliva and J. F. Villaverde, "Hardware
injuries while driving. Also, drone videos can alert the Performance Evaluation of Different Computing Devices on YOLOv5
governing bodies for road repair and filling up of these Ship Detection Model," 2022 IEEE 14th International Conference on
potholes. Humanoid, Nanotechnology, Information Technology, Communication
and Control, Environment, and Management (HNICEM), Boracay
References Island, Philippines, 2022, pp. 1-5, doi:
10.1109/HNICEM57413.2022.10109499
[10] M. Issame and A. Benyounes, "Real Time Object Detection With
[1] Ministry of Road Transport & Highway Report of 2021: Drone Using Deep Learning Algorithm," 2022 International
[Link] Conference of Advanced Technology in Electronic and Electrical
[2] K. P. Rani, M. Arshad and A. Sangeetha, "Pothole Detection Using Engineering (ICATEEE), M'sila, Algeria, 2022, pp. 1-6, doi:
YOLO (You Only Look Once) Algorithm," 2022 International 10.1109/ICATEEE57445.2022.10093104
Conference on Advancements in Smart, Secure and Intelligent [11] J. Park, D. H. Kim, Y. S. Shin and S. -h. Lee, "A comparison of
Computing (ASSIC), Bhubaneswar, India, 2022, pp. 1-6, doi: convolutional object detectors for real-time drone tracking using a PTZ
10.1109/ASSIC55218.2022.10088357. camera," 2017 17th International Conference on Control, Automation
[3] S. Ajmera, C. A. Kumar, P. Yakaiah, B. Kumar and K. Y. Chowdary, and Systems (ICCAS), Jeju, Korea (South), 2017, pp. 696-699, doi:
"Real-time Pothole Detection using YOLOv5," 2022 International 10.23919/ICCAS.2017.8204318.
Conference on Advancements in Smart, Secure and Intelligent [12] K. Ding, X. Li, W. Guo and L. Wu, "Improved object detection
Computing (ASSIC), Bhubaneswar, India, 2022, pp. 1-5, doi: algorithm for drone-captured dataset based on YOLOv5," 2022 2nd
10.1109/ASSIC55218.2022.10088290. International Conference on Consumer Electronics and Computer
[4] Q. Wu, C. Wang, Y. Han, Q. Kang, J. Li and X. Lu, "Object detection Engineering (ICCECE), Guangzhou, China, 2022, pp. 895-899, doi:
of double-sided copper laminates based on YOLOv5," 2023 IEEE 3 rd 10.1109/ICCECE54139.2022.9712813.
International Conference on Power, Electronics and Computer [13] R. Sathya, B. Saleena and B. Prakash, "Pothole Detection Using
Applications (ICPECA), Shenyang, China, 2023, pp. 171-175, doi: YOLOv3 Model," 2023 IEEE International Students' Conference on
10.1109/ICPECA56706.2023.10075704. Electrical, Electronics and Computer Science (SCEECS), Bhopal,
[5] S. B. Choi, S. -S. Lee, J. Park and S. -J. Jang, "Implementation of post India, 2023, pp. 1-7, doi: 10.1109/SCEECS57921.2023.10063116.
processing hardware for real-time object detection in CNN acceleration [14] C. -W. Kuan, W. -H. Chen and Y. -C. Lin, "Pothole Detection and
system," 2021 36th International Technical Conference on Avoidance via Deep Learning on Edge Devices," 2020 International
Circuits/Systems, Computers and Communications (ITC-CSCC), Jeju, Automatic Control Conference (CACS), Hsinchu, Taiwan, 2020, pp. 1-
Korea (South), 2021, pp. 1-4, doi: 10.1109/ITC- 6, doi: 10.1109/CACS50047.2020.9289701.
CSCC52171.2021.9501433
[15] P. Gupta and M. Dixit, "Image-based Road Pothole Detection using
[6] H. Yanagisawa, T. Yamashita and H. Watanabe, "A study on object Deep Learning Model," 2022 14th International Conference on
detection method from manga images using CNN," 2018 International Computational Intelligence and Communication Networks (CICN), Al-
Workshop on Advanced Image Technology (IWAIT), Chiang Mai, Khobar, Saudi Arabia, 2022, pp. 59-64, doi:
Thailand, 2018, pp. 1-4, doi: 10.1109/IWAIT.2018.8369633. 10.1109/CICN56167.2022.10008278.
[7] R. Agrawal, Y. Chhadva, S. Addagarla and S. Chaudhari, "Road [16] E. S. T. K. Reddy and R. V, "Pothole Detection using CNN and YOLO
Surface Classification and Subsequent Pothole Detection Using Deep v7 Algorithm," 2022 6th International Conference on Electronics,
Learning," 2021 2nd International Conference for Emerging Communication and Aerospace Technology, Coimbatore, India, 2022,
Technology (INCET), Belagavi, India, 2021, pp. 1-6, doi: pp. 1255-1260, doi: 10.1109/ICECA55336.2022.10009324.
10.1109/INCET51464.2021.9456126.
26
Authorized licensed use limited to: VIT University- Chennai Campus. Downloaded on April 24,2025 at [Link] UTC from IEEE Xplore. Restrictions apply.