scieee AI-readable full text Open interactive document viewer

Development of an Intelligent Road Condition Monitoring System using Citizen Sensing Technique

Musa, A.; Bala, J.A.; Folorunso, T.A.; Abdulrahman, H.S.; Oloyede, M.

Abstract

Road transportation is Nigeria’s most important mode of transportation, due to increase in vehicle ownership and the role of roads in economic activities. Road anomalies, which include potholes and speed bumps, impede the movement of traffic on roads. Therefore, there is a need for an intelligent system to detect these road anomalies and document them. Besides providing real-time assistance to road users and future driverless vehicles, an intelligent road information system can be used to build databases of road conditions across the country and to create road remediation strategies and schemes for costing road repairs. This paper presents the development of an intelligent, end-to-end road condition monitoring system using a citizen sensing approach. The approach was employed because it allows road users to gather road data with dedicated devices rather than installing sensors along the roadway. The system detects potholes using a deep learning-based object detection model (Tiny YOLOv4). The dataset used in validating the approach consisted of 1,265 images for training, 401 images for testing and 118 images for validation. The model had an overall precision of 77.00%, recall of 66.00%, F1-score of 71.00%, average IoU of 58.65% and mean average precision ([email protected]) of 69.99%. Based on the obtained results, the system demonstrated the ability to detect potholes on the road surface. Furthermore, this system establishes a critical first step towards a large-scale, cost-effective remote road monitoring infrastructure. Additionally, the use of citizen data collected by road users significantly reduces the cost of deploying the technique.

Full text

594 Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 p ISSN: 2635-3342; e ISSN: 2635-3350 Original Research Article Development of an Intelligent Road Condition Monitoring System using Citizen Sensing Technique *1Musa, A., 2Bala, J.A., 2Folorunso, T.A., 3Abdulrahman, H.S. and 2Oloyede, M. 1Department of Surveying and Geoinformatics, Federal University of Technology, Minna, Nigeria. 2Department of Mechatronics Engineering, Federal University of Technology Minna, Minna, Nigeria. 3Department of Civil Engineering, Federal University of Technology Minna, Minna, Nigeria. *[email protected]; [email protected] http://doi.org/10.5281/zenodo.18062038 ARTICLE INFORMATION ABSTRACT Article history: Received 24 Oct. 2025 Revised 28 Nov. 2025 Accepted 11 Dec. 2025 Available online 30 Dec. 2025 Road transportation is Nigeria’s most important mode of transportation, due to increase in vehicle ownership and the role of roads in economic activities. Road anomalies, which include potholes and speed bumps, impede the movement of traffic on roads. Therefore, there is a need for an intelligent system to detect these road anomalies and document them. Besides providing real-time assistance to road users and future driverless vehicles, an intelligent road information system can be used to build databases of road conditions across the country and to create road remediation strategies and schemes for costing road repairs. This paper presents the development of an intelligent, end-to-end road condition monitoring system using a citizen sensing approach. The approach was employed because it allows road users to gather road data with dedicated devices rather than installing sensors along the roadway. The system detects potholes using a deep learning-based object detection model (Tiny YOLOv4). The dataset used in validating the approach consisted of 1,265 images for training, 401 images for testing and 118 images for validation. The model had an overall precision of 77.00%, recall of 66.00%, F1-score of 71.00%, average IoU of 58.65% and mean average precision ([email protected]) of 69.99%. Based on the obtained results, the system demonstrated the ability to detect potholes on the road surface. Furthermore, this system establishes a critical first step towards a large-scale, cost-effective remote road monitoring infrastructure. Additionally, the use of citizen data collected by road users significantly reduces the cost of deploying the technique. © 2025 RJEES. All rights reserved. Keywords: Citizen sensing Deep learning Pothole detection Road condition monitoring YOLOv4 1. INTRODUCTION Road transportation is one of the major and most important modes of transportation (Rodrigue, 2020). Road transportation has become popular due to the increased number of vehicle owners (Ukonze et al, 2020). Farmers and traders mainly transport their goods and farm produce to the market by road (Yusuf, 595 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 2020). However, over the years, road transportation has been plagued with a series of road accidents, especially in the developing world. The World Health Organization (WHO) reported in 2022 that every year around 1.3 million individuals die due to road accidents, while 20-50 million people experience injuries and traumas that could potentially result in disabilities or serious health issues. Additionally, road accidents also have adverse socio-economic consequences for nations. According to the WHO’s 2022 data, road accidents have inflicted a financial toll of approximately 3% of the Gross Domestic Product (GDP) in numerous countries. The United Nations’ Sustainable Development Goal 3, Target 3.6 aims to reduce the global number of deaths caused by road accidents by 50% by the year 2030. Deme (2019) highlights that in Africa, road accidents are predominantly caused by factors such as excessive speeding, driving under the influence of alcohol, and poor road conditions. In attempts to prevent road crashes, various techniques for road accident prevention have been introduced. One of the techniques is the alcohol detection system that will prevent automobiles from starting if it detects the presence of ethanol in the air (Ahmad et al, 2019), which might mean that the driver is drunk. Other techniques include an over-speeding detection system (Kotagi et al, 2020), and improved traffic sign detection algorithms (Cao et al, 2019). Bad road conditions have also been a major cause of road accidents (Bello-Salau et al, 2019). Bad road conditions refer to the existence of road irregularities like potholes, speed bumps, rutting, and cracks on the road surface (Bello-Salau et al, 2019). The problem is that most government agencies in charge of the maintenance of roads and also road users do not know where these anomalies are, and presently these anomalies are regularly found and reported manually by qualified inspectors which can be time-consuming and stressful (Fan et al, 2020). Therefore, there is a need for intelligent road condition monitoring systems to automatically detect and report these anomalies. Additionally, the use of intelligent road fault detections methods provides an economically cheap and cost-effective method for road maintenance and road data acquisition. Road condition monitoring systems are systems that detect the presence of road anomalies (Bello-Salau et al, 2019). Some of the popular road condition monitoring techniques use accelerometers and smartphones acceleration sensors (Bidgoli et al, 2018; Edwan et al, 2019; van Khang and Renault, 2019; Bello-Salau et al, 2020; Du et al, 2020) to detect anomalies due to the vibration of vehicles when these anomalies are encountered. However, most of these techniques suffer from limitations such as inaccuracy due to irregularly measured acceleration signals from the accelerometer and also the variation in sensitivity of acceleration sensors from different phone platforms. Moreover, the existing systems do not incorporate position tagging in their images. Due to these shortcomings, an intelligent road condition monitoring system using citizen sensing technique is proposed in this study. This system utilizes deep learning, specifically Tiny YOLOv4 object detection, to identify road defects. Most of the reviewed literature (Anaissi et al, 2019; Kyriakou et al, 2019; Bansal et al, 2020; Chen et al, 2020; Kumar et al, 2020; Ping et al, 2020; Varona et al, 2020; Al-Shaghouri et al, 2021; Kamalesh et al, 2021) used image processing for the detection of road anomalies and recorded reasonably high efficiency. However, most of these works were unable to detect other road anomalies, while others require a large number of images to train the model for optimal performance. Other road anomaly detection techniques used accelerometers or smartphones acceleration sensors. However, these methods suffer from low accuracy due to noise from the sensors and also due to reasons like driver behaviour and pothole size. Crucially, many of the reviewed systems are designed as isolated detection tools rather than integrated components of a larger road infrastructure management ecosystem. They often lack the emphasis on scalable data collection, precise geotagging for actionable maintenance reports, or the architecture for long-term data aggregation necessary for predictive analysis. The proposed system seeks to address these limitations by developing an intelligent road condition monitoring system using citizen sensing technique that accurately monitors road conditions with a lesser number of input images. Citizen sensing is when citizens own and use low-cost sensors to collect data about their environment, share those data with others, and also use those data to offer solutions to environmental issues (Coulson and Woods, 2021). In the prototype developed, an electronic device was mounted on the dashboard of 596 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 a vehicle which provided live feeds of the road. Anomalies on the road were then detected from the feeds using image processing. Images of the anomalies and their Global Positioning System (GPS) locations were logged on a database and were viewed and analyzed on a desktop application. This system can be extended to simultaneously accommodate many motorists. While detecting potholes is a crucial and immediate need, the ultimate objective of this research was to develop a comprehensive, intelligent system for the remote monitoring of road conditions. Such a system would serve a dual purpose: (1) providing real-time driver assistance and warnings, and (2) generating actionable, data-driven insights for government agencies to plan and prioritize maintenance operations. By aggregating geotagged defect data over time, it becomes possible to not only identify problem areas but also to monitor the deterioration of road surfaces, estimate the scope and potential cost of repairs, and optimize resource allocation. The citizen sensing technique adopted here is the most viable and scalable method to populate this system with the vast amount of data required, dramatically reducing the capital expenditure associated with traditional sensor networks. The images used in the study vary with camera height, vehicle speed, weather, lighting, road type and pothole size. The sample images used in the study were selected with a view to permitting representativeness of the samples across these dimensions. 2. MATERIALS AND METHODS 2.1. System Description The development of an intelligent road condition monitoring system using citizen sensing technique involves numerous components. These components include a Raspberry Pi microcomputer, Pi camera, power supply, wire and case. The designed system makes use of the camera as the input source to the Raspberry Pi microcomputer when acquiring the road surface images. The Raspberry Pi then performs the anomaly detection process on the input stream from the camera, generates a stream with bounding boxes around the anomalies and sends the generated stream to the desktop application along with the GPS location of the anomalies which are stored in a database and displayed for the user. Figures 1 and 2 show the block diagram and the system operation flowchart respectively. Figure 1 shows the block diagram of how the various components interact with one another. The input stream is supplied to the Raspberry Pi which is a microcontroller that serves as the brain of the system. The generated stream after the detection process and the GPS location of the detected anomalies from the input stream, are then sent to the Desktop application to be displayed and the relevant information is stored in the database for later retrieval and analysis. Figure 2 shows the whole process involved in acquiring, gathering, processing and transmitting information from one part of the system to others. Road anomalies were detected from the images of the road surface using Tiny YOLOv4 object detection algorithm. The algorithm generates a video stream with bounding boxes around detected anomalies. The generated stream is then sent to the desktop application. If anomalies are detected, their GPS locations are captured, and the anomaly information is then sent to the database and also displayed on the desktop application. 2.2. Tiny YOLOv4 Object Detection Model Development This section describes the methods employed in the detection of anomalies from the video feed of the road. The anomalies are detected using a deep learning model trained using the Tiny YOLOv4 object detection algorithm. Figure 3 shows the processes employed in training the model and finally using the model for realtime detection of the anomalies. The data acquisition process involved the collection of pothole images to train the model. The dataset used consisted of 1,784 images collected both manually and online. The dataset was then split into 1265 images for training, 401 for testing and 118 for validation. Figure 4 shows a pothole image from the dataset. 597 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 Figure 1: Architecture of intelligent road condition monitoring system Figure 2: System flowchart Figure 3: Model training and anomaly detection steps After data acquisition, the next step was image annotation. This process involved drawing bounding boxes and generating the coordinates of the potholes in the training, testing and validation images from the dataset. The annotation process was carried out using LabelImg, an open-source image annotation tool. The dataset was labeled by one annotator to identify potholes according to predefined criteria. A pothole was defined as a surface depression on the road pavement with visible edges caused by material loss. Images could contain multiple potholes, and bounding boxes were drawn tightly around visible regions of damage. A quality check was conducted after annotation to remove ambiguous or inconsistent labels. These annotations give 598 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 information to the deep learning model about the images that it is being fed. Figure 4 shows the image after annotation. Figure 4: Pothole image with annotation After image annotation, the next step was training the model. The model was trained through transfer learning using a pre-trained Tiny YOLOV4 weight model, which was trained on the COCO (Common Objects in Context) dataset for detecting different objects. This enabled the training process to be faster as it was not training from scratch, and also because the number of images in the project’s own dataset were not sufficient for training from scratch. The model was trained using the Tiny YOLOV4, which is suitable for edge devices such as Raspberry Pi. The selection of Tiny YOLOv4 was a deliberate compromise that prioritized high-speed inference suitable for edge devices like the Raspberry Pi over the marginal accuracy gains of larger models. Furthermore, initializing the network with pre-trained weights via transfer learning was essential to circumvent the constraints of a limited dataset, enabling efficient and effective training for the specific object detection task. The training process was configured to enable training for 8000 steps with a batch size of 32. The learning rates were also scheduled to be reduced at steps 6400 and 7200. The training was done on Google Colaboratory using Darknet, an open-source neural network framework. The training process took approximately 7 hours to complete. After the training, the trained weight model files were obtained. Table 1 shows the model hyperparameters implemented in the model development. After the model training process, the obtained model files were deployed on the Raspberry Pi for anomaly detection. Real-time video stream was collected from the pi camera using the Open-CV (Open-Source Computer Vision) Python Library. The anomaly detection process was then carried out on the live video stream, generating a stream with bounding boxes around the potholes and the confidence level above the bounding boxes. Figure 5 shows a frame from a stream generated from the anomaly detection process, showing bounding boxes around potholes and their confidence levels. 2.3. Desktop Application and IoT Platform Development The Desktop application is used to retrieve the generated stream and GPS locations of the anomalies from the Raspberry Pi in real time. The application was designed using PyQt5, a Python framework for designing cross-platform GUI applications. After the stream and their GPS locations are retrieved, they will appear in the application for viewing by the user. After the anomaly detection process, the generated stream and the GPS locations of the anomalies are sent from the Raspberry Pi to the desktop application through network sockets. The Raspberry Pi and the desktop have to be connected to the same network for the stream and the GPS location to be sent and received successfully. If the anomalies are detected, the relevant information is stored on a database locally on the desktop. Figure 6 shows the interaction between the Raspberry Pi and the desktop through the internet. 599 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 Table 1: Selected model hyperparameters Parameter Value Role Network input size 416x416 Defines the resolution of input images fed into the CNN. Total images 1784 The dataset size used for training. Number of classes 1 Specifies the target categories to be detected. In this case, only one class (pothole) is being classified. Batch size 32 Determines how many samples are processed before updating model weights. Affects training stability and speed. Subdivision 1 Splits the batch into smaller mini-batches for memory efficiency. Lower values require more GPU memory but speed up training. Maximum batches 8000 Defines the total number of training iterations. Higher values allow more learning but may risk overfitting. Learning rate 0.00261 Controls the step size during weight updates. Value ensures efficient convergence without overshooting. Activation Leaky ReLU Defines how neurons transform inputs into outputs in the network. The choice of activation function introduces non-linearity, enabling the model to learn complex patterns. Burn in 1000 A phase where the learning rate gradually increases from a small value to the specified maximum. Helps stabilize training and avoid large weight updates at the beginning. Training-validation testing Split 71:7:22 Determines how data is divided: training for learning patterns, validation for tuning hyperparameters, and testing for evaluating final model performance. Ensures generalization and prevents overfitting. Weight decay 0.0005 Prevents overfitting by penalizing large weights, encouraging the model to learn simpler patterns for object detection. Regularizes the network by penalizing large weights, reducing overfitting. Momentum 0.9 Helps accelerate gradient descent in the right direction, improving convergence speed and stability during training. Data augmentation Angle = 0, Saturation = 1.5, exposure = 1.5, hue = 0.1 Increases dataset diversity by applying transformations, enhancing the model’s robustness to variations in object appearance and orientation. Input normalization 1 Ensures consistent data scale, leading to faster convergence and more stable object detection performance. Learning rate schedule policy Steps = 6400 and 7200 Adjusts the learning rate over time to balance fast learning early on and fine-tuning later for optimal object detection accuracy. Figure 5: Frame from generated stream 600 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 Figure 6: Interaction between Raspberry Pi and desktop application 2.4. Prototype Development of Intelligent Road Condition Monitoring 2.4.1. Hardware design The hardware components consist of a Raspberry Pi camera module to get and send images of the road to the processing unit of the system, a Raspberry Pi microcomputer for the processing of images and control of the system, a GPS module, a battery, and a case to house all the components. The Raspberry Pi camera module is a compact and lightweight camera designed to be compatible with Raspberry Pi boards. It utilizes the MIPI camera serial interface protocol to establish communication with the Raspberry Pi. The camera module is commonly employed in various applications such as image processing, machine learning, and surveillance projects. In the context of road-related projects, the Raspberry Pi camera can be utilized to capture images of the road, which can then be transmitted to the Raspberry Pi for further analysis and processing. The Raspberry Pi is an affordable and compact computer that can be connected to a monitor or TV and operated with a standard keyboard and mouse. Despite its small size, the Raspberry Pi is a powerful device that can be utilized for various projects, particularly in the fields of Internet of Things (IoT) and general computing. In the context of detecting road anomalies in images captured by the camera, the Raspberry Pi can play a crucial role. It can process and analyse the captured images using various algorithms and techniques, allowing for the detection of road anomalies such as potholes or speed bumps. The Raspberry Pi’s capabilities and flexibility make it a suitable platform for implementing road anomaly detection systems. A 5 V battery was used to power the whole system, which is suitable for the Raspberry Pi. 2.4.2. Software design The software components of the system comprise a Python program to implement the road anomaly detection algorithms and a MATLAB program that was used for system modelling simulation. The components are described below: i. Python: Python is a popular high-level programming language created by Guido Van Rossum in 1991. Python was used in retrieving the live stream from the Pi camera and for carrying out the object detection process on it. It was also used in the desktop application development. ii. MATLAB: MATLAB, short for Matrix Laboratory, is a high-level programming language focused on numerical computation and simulation. In this project, MATLAB was used for model simulation of the system to test how the system would work. iii. Darknet: Darknet is an open-source neural network framework written in C and CUDA and used to train YOLO models. It is known for its speed and efficiency in implementing deep neural networks for computer vision tasks. In this project, the deep learning model was trained using Darknet. iv. Google Colaboratory: Google Colaboratory (Colab) is a free service created by Google Research. It is a Linux machine that has an interface based on the Jupyter Notebook service. This virtual computer features a 2-core CPU, 12GB of RAM, and is upgradeable for free to 25GB if additional memory is required. When using the notebook, the GPU was selected at random. Available GPUs 601 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 include Nvidia Tesla K80s, T4s, P4s, and P100s. In this project, the deep learning model was trained on Colab as it has more computational resources than a regular PC. 2.5. Performance Evaluation The system was tested for its precision, recall, F1-score, average precision, and mean average precision in detecting the road anomalies. Precision is a performance metric used to evaluate the quality of predictions made by a deep learning model. The mathematical expression for precision is given in Equation (1). Recall is used to evaluate the completeness or ability of a deep learning model to identify all relevant instances of a particular class. It is represented mathematically in Equation (2). The F1-score is a performance metric commonly used in deep learning to assess the balance between precision and recall. The mathematical expression for F1-score is given in Equation (3). Average Precision (AP) is a performance metric commonly used in object detection tasks to evaluate the quality of ranked lists or detection results. It is represented mathematically in Equation (4). The Average Precision measures a model’s accuracy by summarizing its performance across different recall levels, essentially calculating the area under the Precision-Recall (PR) curve for a single object class, indicating how well it balances finding objects (recall) with being correct (precision). Mean average precision (mAP) is a performance metric commonly used in object detection tasks to evaluate the average precision across multiple classes or categories. The mathematical expression for mean average precision is given in Equation (5). Precision = TP TP+FP (1) Recall = TP TP+FN (2) F1 Score = 2 ∗ Precision∗Recall Presicion+Recall (3) Average Precision(AP) =∫𝑝(𝑟)𝑑𝑟 1 0 (4) Mean Average Precision (mAP) = 1 N∑APi N i=1 (5) Here True Positive (TP) indicates a positive instance that is correctly predicted as positive; False Positive (FP) refers to a negative instance that is incorrectly predicted as positive; True Negative (TN) represents a negative instance that is correctly predicted as negative; and False Negative (FN) denotes a positive instance that is incorrectly predicted as negative. N is the number of object classes or categories. 3. RESULTS AND DISCUSSION In this section, results obtained from the design, development and testing of the road condition monitoring system are presented and discussed. The section comprises of the result achieved from training the deep learning model, the hardware and software implementation of the system and the performance of the system obtained from the result of the performance evaluation metrics. 3.1. Tiny YOLOv4 Object Detection Algorithm During the training of the Tiny YOLOv4 object detection model, the performance of the network is often monitored through the use of a loss plot. This plot provides a visual representation of how well the model is learning over time by tracking changes in the loss function across training iterations. Figure 7 presents the loss plot obtained throughout the training process. A loss plot illustrates the evolution of the loss function, which measures the difference between predicted outputs and the actual ground truth labels. In the case of Tiny YOLOv4, a deep neural network-based algorithm, the model’s parameters are updated during training to minimize this difference. A steadily 602 A. Musa et al. / Nigerian Research Journal of Engineering and Environmental Sciences 10(2) 2025 pp. 594-607 decreasing loss indicates effective learning and improved predictions, while a plateau or rising loss may suggest challenges such as overfitting or stagnation in the learning process. As shown in Figure 7, the loss value decreases progressively as training iterations increase. This downward trend confirms that the Tiny YOLOv4 model was successfully learning from the training data and improving its prediction accuracy. The observed pattern highlights the effectiveness of the training process and indicates that the model was converging toward optimal performance. Figure 7: Loss plot during training 3.2. Intelligent Road Condition Monitoring Prototype For the practical implementation of the road condition monitoring system, all hardware components were assembled and connected to form a complete unit. This integration ensured that each component worked together to support the system’s functionality. Figure 8(a) illustrates the assembled system with all the hardware components properly connected. Once assembled, the system was enclosed within a casing to protect the internal components, improve durability, and enhance the overall appearance. Figure 8(b) presents the prototype after casing, showing a more compact and portable design. Figure 8: Developed prototype (a) before casing, and (b) after casing The Raspberry Pi, embedded within the device, serves as the central processing unit, while an 8500 mAh power bank provides power for standalone operation. When powered on, the system automatically connects to a dedicated internet service shared with the desktop application. It continuously captures image frames of the road environment and employs the Tiny YOLOv4 algorithm to detect potholes in real time. The identified potholes, along with their GPS coordinates, are transmitted to the desktop application for monitoring.