Next Article in Journal
Photothermocapillary Method for the Nondestructive Testing of Solid Materials and Thin Coatings
Previous Article in Journal
Bistatic Forward ISAR with DVB-T Transmitter of Opportunity
Previous Article in Special Issue
Extracting Key Traffic Parameters from UAV Video with On-Board Vehicle Data Validation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Speed Management Strategy: Designing an IoT-Based Electric Vehicle Speed Control Monitoring System

1
African Center of Excellence in Internet of Things (ACEIoT), College of Science and Technology, University of Rwanda, Kigali 3900, Rwanda
2
Directorate of Science, Technology and Innovation, Ministry of Education, Lilongwe P/Bag 328, Malawi
3
Department of Computer and Software Engineering, College of Science and Technology, University of Rwanda, Kigali 3900, Rwanda
4
Department of Networking and Communications, School of Computing, College of Engineering and Technology, SRM Institute of Science and Technology, Kattankulathur 603203, India
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(19), 6670; https://doi.org/10.3390/s21196670
Submission received: 20 July 2021 / Revised: 7 September 2021 / Accepted: 15 September 2021 / Published: 7 October 2021
(This article belongs to the Special Issue Sensors Technologies for Intelligent Transportation Systems)

Abstract

:
Road accidents represent the greatest public health burden in the world. Road traffic accidents have been on the rise in Rwanda for several years. Speed has been identified as a core factor in these road accidents. Therefore, understanding road accidents caused by excessive speeding is critical for road safety planning. In this paper, input and out pulse width modulation (PWM) was used to command the metal–oxide–semiconductor field-effect transistor (MOSFET) controller which supplied voltage to the motor. A structural speed control and Internet of Things (IoT)-based online monitoring system was developed to monitor vehicle data in a continuous manner. Two modeling techniques, multiple linear regression (MLR) and random forest (RF) models, were evaluated to find the best model to estimate the required voltage to be supplied to the motors in a particular zone. The built models were evaluated based upon the coefficient of determination R 2 . The RF performs better than the MLR as it reveals a higher R 2 value and it is found to be 98.8%. Based on the results, the proposed method was proven to significantly reduce the supplied voltage to the motor and consequently increase safety.

1. Introduction

Every year, road traffic accidents kill approximately 1.32 million people worldwide, and more than 50 million people sustain non-fatal injuries. Low- and middle-income (LMI) countries account for more than 90% of the world’s fatalities, although they own 60% of the world’s vehicles. The road fatality rate in LMI countries was at 27.5 per 100,000 populations while in high-income countries the road fatality rate was 8.3 per 100,000 [1]. Africa has a fatality rate of 26.6 per 100,000 people while the European region has 9.3 per 100,000 [2]. Road safety brings significant costs to the economy and trauma to society. The average cost of road traffic accidents in LMI countries was estimated to be between 3% and 5% of their gross domestic product (GDP).
In Rwanda, motorcycle drivers represent one of the most at-risk occupational groups, with a significant burden of disability-related vehicular incidents and permanent injuries. Among the motorcycle drivers surveyed, 38.7% said they had been in an accident in their lifetime, and 8.5% said they had gone to the hospital [3]. According to the World Health Organization (WHO), global road traffic crashes in 2018 were the 8th and the 1st leading cause of death for children and young adults, respectively. In the same year, the fatality rate per 100,000 people was 29 for Uganda, 34.7 for Burundi, 29.2 for Tanzania, 27.4 for the Democratic Republic of the Congo (DRC), 27.8 for Kenya, and 29.7 for Rwanda. Considering the fatality rate per 100,000 people, Rwanda was ranked 7th in the world [4]. According to the Rwanda National Police (RNP) for the past four years, reckless driving, wrong maneuvering and excessive speeding have been the major causes of traffic accidents. They account for 32.64%, 25.36%, and 13% of traffic accidents, respectively. Figure 1 depicts the cause factors of road accident cases for the past four years. In a typical year, there have been 5595 road accidents on average, with 603 deaths, 789 serious injuries, 1765 minor injuries, and 2437 property damage.
An increase in average speed is relatively associated with an increase in collision frequency [5]. Figure 2 shows that for the last 4 years, road accidents caused by excessive speeding increased in mean per month with 37.9, 51.1, 68 and 84.6 cases, respectively.
The United States of America (USA) started installing a chip in every entity on the Internet, including vehicles, which will facilitate the Internet of Vehicles (IoV) [6]. The integration of technologies expands the Intelligent Transportation System (ITS) framework, wireless access protocols [7] and GSM [8]. Today’s real-time traffic data available for moving vehicles have enabled the development of ITS applications for traffic control services [9]. The IoT is revolutionizing research by integrating smartness into the existing areas. ITS is tremendously promising to minimize road traffic safety challenges [10]. The IoV allows both collecting and storing vehicles’ movement data in the Cloud [11]. Vehicle data are being sent to the web from any device that can communicate using the representational state transfer application programming interface (REST API) [12]. Building a sensor network for IoT applications implies a higher initial cost.
The GSM cellular network covers 96.4% of Rwanda. The fourth-generation long-term evolution (4G LTE) technology was deployed across 94.2% of its geographic coverage. Developing an application that is cellular communication-based is cost-effective [13]. The in-car navigation system to provide traffic reports through vehicle-to-Cloud communication is crucial in ITS [14]. Police forces along the roads keep continue being employed as the major solution to ensure that road users adhere to the set rules. Nowadays, ITS-based solutions facilitate traveling in a more organized way. One of the approaches has been the variable speed limit (VSL) to optimize traffic flow by adapting the speed limit to real-time conditions [15]. VSL has been used in conjunction with other traffic flow control strategies to improve traffic throughput while reducing bottlenecks [16]. Variable message signs are installed on motorways to notify drivers about the current speed limits [17]. Their contributions are significant in terms of speed harmonization [18]. The presence of an active VSL in the region results in increased traffic density as well as a reduction in flow [19]. The VSL has shown its high influence on traffic flow dynamics such as congestion management [20]. VSLs are being used as an approach to optimize traffic flow in terms of flow harmonization.
The speed of road vehicles is subjected to various parameters such as traffic conditions, vehicle conditions, weather, road curvature, driver behavior, and many others factors [21]. Vehicle speed control can be implemented using the in-vehicle system, e.g., adaptive cruise control (ACC) [22]. Intelligent speed adaptation (ISA) can also be used at a macroscopic level for a whole road segment. Vehicle speed control in related works was based on environment perception [23], road conditions [24], and driver state detection [25]. A gear shift method for the dual clutch transmission (DCT) was proposed for the speed control of automotive motors [26]. However, road traffic accidents are avoidable, and Sub-Saharan African countries lack adequate methods of reporting the tangible and intangible costs of road accidents. This leads to the inappropriate consideration of road accident costs [27]. Human factors related to driving behavior, the driver’s attitude, and driving experience have been demonstrated to have relevant impacts on accident severity [28,29]. Every 1% increase in average speed increases the fatal crash risk by 4%. Hence, there is a need to develop an intelligent system to avoid excessive speeding. Investigating the effect of the change of speed on accidents has shown a strong relationship between speed and road safety [30]. Despite the existing approaches, the variety of factors still challenges the drivers and road accidents keep increasing exponentially. Hence, there is a need to find a reliable and cost-effective system to limit the driver to the specific speed of a particular zone. Speed reduction needs a special focus since it is a priority strategy to reduce the rising fatalities associated with excessive speeding.
This paper was driven by the fact that Rwanda is taking advantage of emerging technologies to address road safety. The transportation sector is one of the major contributors to road safety problems [31]. As a solution, the government has encouraged the use of electric vehicles in its 2050 vision to reduce pollution by up to 38%. Electric vehicles will account for 9% of this target [32]. Various policies are being implemented for the electrification of transport [33]. Electric car sales in 2019 were 2.1 million [34]. Electric vehicles are categorized into battery electric vehicles (BEVs) and hybrid electric vehicles (HEVs) based on the energy type [35]. This paper proposes a dynamic speed adaptation (DAS) method for controlling the operating speed at which the vehicle is observed operating under free flow conditions. Together with the speed sensing module for sensing the maximum lawful speed and predefined road curvature data for a particular zone, the vehicle’s speed limit is adjusted accordingly. The output from the speed limits and road curvature information parameters are presented as explanatory variables to predict the outcome of the response variable, which is the voltage supplied to the electric motor of the vehicle. The data generated by the small setup device was used to evaluate the MLR and RF regression approaches to compute the needed speed limit. The idea of speed control proposed in this paper is based on the working principles of BEVs, where only batteries feed the electric motor. The vehicle thus solely relies on the energy stored in the batteries pack [36].
Motivated by the aforementioned matters, this paper aimed to investigate an adaptive speed control system for road safety. This research provides a data acquisition architecture using IoT technology. It also conducts a comparative analysis of regression models to predict the voltage. The key contributions of this paper are as follows: (i) proposing a hierarchical framework to control the speed and intelligently monitor the vehicle’s data; (ii) validating the efficiency of the proposed speed control system using the developed prototype; (iii) evaluating the effectiveness of the proposed vehicle data logging and monitoring; and (iv) proposing a machine learning model embedded in an in-vehicle device to predict the voltage to be supplied to the motor.
The rest of the paper is organized into the following sections. Section 1 discusses the related literature, Section 2 gives the detailed speed controlling system and an in-depth discussion of the implementation components. Section 3 discusses the experiment and their results. Finally, in Section 4, the conclusion with the future work directions is given.

2. Proposed Approach

In this section, a brief overview of the speed sensing and control mechanism is presented. The control parameters and external disturbances that have an influence on the stability of the control system are not considered. The design and implementation of a decision support mechanism with a low level of abstraction are described. The components used for the system validation are presented. Predictive models such as convolutional neural networks, hidden Markov and deep learning techniques were developed to predict the speed based on previous speeding history. In this work, voltage prediction models were built to show the dependence between vehicle speed, voltage supplied to the vehicle’s motor, and road curvature information.

2.1. Dynamic Speed Adaptation Architecture

Most drivers perceive posted speed limits as unnatural. This leads them to only reduce speed when the risk of an accident is perceived or when to avoid being caught and punished by road authorities. In order to design, build, and test intelligent VSL control systems, integrated hardware was configured along with the software to be able to operate with different types of sensors and actuators. The sensors range from infrared (IR) sensors, voltage sensors, a Global System for Mobile/General Packet Radio Service (GSM/GPRS) module, MOSFETs, and a DC–DC converter. The microcontroller is programmed to run the controller algorithm, sensor fusion, and serial port communication. The control commands are sent to the MOSFETs that control the voltage supplied to the DC motors. Figure 3 depicts the internal vehicle speed control system components that aid in speed control. Real-time vehicle data are transmitted through GSM/GPRS to the web-server database, assumed to reside in the traffic management center (TMC). The road authorities have the privilege of monitoring vehicle data in a particular zone. Vehicle identification, its geographical location, and speed-related data are transmitted and then stored in the remote database.
A Cloud-based IoT platform was developed with the primary goal of tracking and storing the data of moving vehicles. System architecture and interfaces are shown in Figure 4.
Developing an IoT-based solution that allows road users and road authorities to track vehicles’ data in real time would contribute to road safety measurements. Setting speed restrictions is one of the strategies for reducing the increase in speed-related accidents. Therefore, it is important to build responsive and effective decision support mechanisms to handle speeding-related issues.

2.1.1. In-Vehicle Setup

The in-vehicle device, with the help of the microcontroller, packs the data and then uploads the vehicle’s data to the Cloud web platform through the GSM/GPRS module. The speed of the vehicle, the voltage supplied to the motor, and the current and geolocation data are collected. The microcontroller is programmed to send these data to a remote database. Road authorities and drivers will use various intelligent terminals to access the Cloud platform as well as obtain data in real time. Figure 5 shows the different components required by the moving vehicle.
(1)
IR Sensor: infrared sensors are electronic devices that measure infrared radiation in their environment. They have been used to investigate occupancy [37].
(2)
Microcontroller: this is the central part of the acquisition of the variable speed control design. The physical programmable board serves as the brain, and the flow chart logic occurs here. The GSM/GPRS module is connected to the microcontroller as it has a set of analogue/digital input/output pins that enable different sensors to be connected to the microcontroller. The GSM/GPRS module transmits the vehicle’s location and details the web storage in real time [38].
(3)
GSM/GPRS Module: to allow data transmission to a remote web server, an Arduino Uno module interface is used. This GSM/GPRS module works with GSM frequencies in the range of 850 MHz–1900 MHz. The module, through its protocol, enables data transfer to the database via the GSM network [39].
(4)
GPS module: the GPS module compatible with Arduino Uno utilizes data from satellites to locate the moving vehicle at a specific trajectory. The data of the moving vehicle are used to know the exact location of the beginning of the speed limit zone [40]. Data have important applications for road managers and people in transportation research fields such as the detection of the movement of drivers, traffic flows in an area, and predicting the number of accident cases in a specific zone [41].
Color information has been used for the detection of traffic signs [42]. Road sign recognition systems were developed to increase driving safety. However, developing automated methods that recognize the speed limit have been challenged by various factors including dynamics in the environment, uncontrolled illumination caused by solar radiation, camera resolution, and blurred traffic signs [43]. Road sign detection and recognition are the most challenging tasks for the automatic recognition of speed limits. The detection accuracy and recognition rate become challenging when the partial obscuring, blurring, and fading of traffic signs occurs, particularly in a real-time changing environment. Furthermore, fast algorithms during the recognition process and the computational complexity are required [42]. Precise measurements for relative positioning remain challenging when it comes to precise relative tracking results. Global navigation satellite system (GNSS) signals are often blocked in the challenging environments. This leads to the discontinuous carrier phase which has effects on the use of GNSS precise positioning [44].
In order to avoid the failure of the proposed system which might be caused by poor GNNS signal coverage, particularly in multi-layer super ways, a contingency sensor system was used. The IR sensor to measure the reflection of the light for the color painted at the entrance of the speed limit zone was considered. The assumption is that the colors are painted on the road surface. Each color intensity corresponds to a certain speed limit of that particular zone (a voltage that is linearly proportional to light intensity). The IR sensors mounted on the moving vehicle read the road surface and interpret the defined reflected measured wavelengths (the reflection light depends on the color of the surface) when entering the speed limit zone. The information sensed is transferred to the microcontroller for further instructions, interpretation, as well as determining the voltage to be supplied to the motors. The voltage to be supplied to the motors is proportionally assigned to the colors.
Figure 6 shows the flowchart of the program that was running on the Arduino Uno microcontroller board. The physical programmable board serves as the brain, and the flow chart logic takes place there.

2.1.2. IoT System Design

Figure 7 shows the IoT system design. The layers of the architecture are the sensing layer (moving car equipped with the sensors), network connectivity layer (the GSM communication), and service layer (the users). The data collected at the sensing layer are obtained in a variety of formats, including comma-separated values (CSV). Data-based models fully become actionable at this level. Hence, the data might be analyzed to become valuable information to road traffic authorities or health personnel’s specific requirements and patterns. Based on the functional requirements, data-driven models that learn data might be developed to make use of the vehicle’s data [45].

2.1.3. Web Front-End and Web Back-End

The remote database was used to keep the collected vehicle data for data analysis services and user-oriented application services [46]. Different groups of users access all tracking information in real-time from a web-based application. These users may include an admin facility to contact the driver, update color meaning, and the user to track their driving history. This application/service layer is where industry-specific applications such as predictive models can be developed based on a custom application. This module is to be developed using an HTML5 Web app. Cloud servers can be used for planning based on gained knowledge of units (speed versus location, speed versus cases, as well as accident cases versus location) due to faster and flexible data processing features.

2.2. Modeling the Supplied Voltage from Battery to the Motor

In driving scenarios, speed is one of the major causes of accidents. Various variables such as road geometry, sight distance, and road surface type were found to have a big contribution to speed. Hence, these factors that influence speed-related accidents were considered to develop DAS systems. Location and geometric information about road curvature [47,48], curve speed warning systems [49], and road curvature with speed limits can be used to adjust the vehicle’s speed [50]. In this work, we proposed a predictive model that can be embedded in the developed smart device installed in the vehicle to keep displaying the speed and inform the internal devices about the voltage to be supplied to the motor. The data used in the modeling are the data collected by the in-vehicle components described in Section 2.1.1. Rwanda follows the policy on the Geometric Design of Highways and Streets [51]. Due to the shortage of data, standards require that curvature is used to set up speed limit [51,52]. The voltage, which is the electrical energy from the car’s batteries supplied to the motors to cause the rotation of the car’s wheels, was predicted. Controlling the operating speed requires following the roadside-imposed maximum speed limit together with the road curvature information. A comparison between the two models, MLR and RF, was performed to find the best model to predict the required voltage to be supplied to the motors. The correlation between voltage with imposed speed limits and road curvature information were transformed to linearize the speeding function. The driver’s operating speed depends on the supplied voltage from the batteries, which in turn depends on the maximum lawful speed posted on the regulatory sign and road curvature information. If the voltage increases, the speed increases. In contrast, the decrease in voltage is equal to the magnitude of the operating speed.

2.2.1. Multiple Linear Regression Model

The MLR technique can be used to model the voltage data for the speed control of the EV in terms of other parameters of the imposed speed limit and the curvature information. For the MLR model, the dependent variable y (voltage) is assumed to be a function of k independent variables x 1 , x 2 x n , here referred to as the speed limit and road curvature data. Hence, the model is expressed as
y i = b 0 + b 1 x 1 + b 2 x 2 + + b k x i + e i ,
where y is an independent variable, b 0 , b 1 , b 2 b k are fitting constants, x i ( i = 1 , 2 , k ) are predictor variables, and e i is a random error.

2.2.2. Random Forest Model

The RF model is a machine learning model that combines the algorithm of classification to make output predictions from a sequence of regression decision trees. The model is based on the concept of ensemble learning, independently constructed based on a random vector sampled from the input data. Prediction built on the classifier in the assembly. The number of trees in the forest and the number of variables utilized to develop each tree are the two primary characteristics that influence the RF model’s capacity to estimate. The model’s mean square error calculation is calculated by the out of bag (OOB) and this is the method for measuring the prediction error. Equation (2) is used to calculate the error:
MSE O O B = 1 n i = 1 n O i P i O O B 2 ,
where n is the observation number and P i O O B is the average of the OOB’s predictions across all the trees.

2.3. Validation of the Models

For both the MLR and RF models presented, the informativeness of the models can be considered as sufficient based on the selected number of metrics for evaluating each selected model. In this paper, the training dataset consisted of 70%, whereas the remaining 30% of the records were used for a test. This produces better error results, compared to the 80% testing and 20% training method. To evaluate the performance of both the models, the results were assessed by the mean absolute error (MAE), mean squared error (MSE), root-mean-square error (RMSE), and R squared ( R 2 ) [53,54,55]. The voltage modeling scenario used in this paper was considered a regression problem, which is a set of statistical processes for estimating the relationships between the response variable and predictor variables, hereby referred to as the posted maximum speed and the road curvature information. The MAE is a risk metric corresponding to the expected value of the absolute error given by the Equation (3). The MSE, which is the average of a set of errors, is given by the Equation (4). The RMSE is the standard deviation of the residuals (prediction errors). RMSE is defined by the Equation (5). The R 2 is a statistical metric used to measure how much of the outcome to be expected (voltage to be supplied). The R 2 values range from zero to one [0, 1]. Hence, zero (0) illustrates that the voltage to be supplied to the motor cannot be predicted by the speed and curvature values, while one (1) implies the perfect prediction of both predictors without the error Equation (6):
MAE = 1 n i = 1 n y i y ^ i
MSE = 1 n i = 1 n y i y ^ i 2
RMSE = 1 n y i y ^ i n
R 2 = 1 i = 1 n y i y ^ i 2 i = 1 n ( y i y ¯ i ) 2
In Equations (3)–(6), y ^ i is the predicted value of the ith sample and y i is the corresponding true value for the total n sample.

3. Results and Discussions

3.1. Data Acquisition

In the experimental setup configuration, the sensors were connected to a microcontroller board with the GSM/GPRS module enabled to send data to the configured database server. The EV was built with four (4) 12 V batteries linked in parallel. The electric motor only drives the vehicle. The positive and negative terminals of all batteries were connected in the same manner to maintain a constant voltage (12 V). Together with the mentioned sensors, the brain of the prototype is the microcontroller that has the responsibility of regulating the inputs. The MOSFET’s responsibility is to execute the control law. To validate that the designed control system has the desired behavior, a voltage divider rule was used to convert a higher input voltage to a lower output voltage to control the speed of the motor. Input and out pulse width modulation (PWM) generated variable-width pulses to represent the amplitude of an analogue input signal. The flow of the current was controlled by regulating the amount of voltage across the motors, assumed to be measured in kilometers per hour (km/h). The microcontroller uses the PWM technique to control the speed of the motor based on the Equation (7). In order to vary the speed of the motor, the duty cycle of the PWM signal (PWM wave) is on a score of 0-255V. From the Equation (9), the MOSFET changes the amount of applied voltage to the motor that varies in the range of 0–12 V. As detailed in Table 1, a call to analogWrite (100) was applied for speed limit of 40 km/h, analogWrite (150) for 60 km/h, analogWrite (200) for 80 km/h and analogWrite (255) for 100 km/h respectively, such that analogWrite (255) requested a 100% duty cycle equivalent to 12 V. Figure 8 presents the layout of the data transmitted by in the database. Both prediction models were tested using the acquired sensor data captured by the developed IoT system and the curvature data defined in [48].
P W M = ( D / 256 ) 12 V ,
where D presents the duty cycle, PW is the pulse width and T is the total period of the signal. However, the duty cycle is calculated by
D = P W / T ,
with T being the total period of the signal:
v O U T = v I N / ( R 2 / ( R 1 + R 2 ) ) ,
where vOUT = output voltage, vIN = input voltage and R1, R2 values of two resistors.
As mentioned previously, the responsibility of the MOSFET controller is to execute the control law by controlling the voltage flow between the batteries and the motor. The simulation scenarios presented in the Table 2, Table 3 and Table 4 were chosen at random with the aim of validating of the functionality of the system.
Furthermore, in these different scenarios, voltage thresholds to obtain the speed limit were required due to some errors that might be caused by the sensors. Furthermore, from experience, the in-vehicle device, when kept running for a long time period, some errors could be produced, consequently affecting the proposed controller performance.

3.2. Preparation of Data for Multivariate Forecast Model

Before the ML models, data preparation in Anaconda Python was performed. A separate environment was created by the installation of Keras, Pandas, NumPy, and Matplotlib libraries for data preprocessing and visualization.

3.3. Collinearity of the Data

The collinearity was computed to assess the correlation between the speed, voltage, and curvature variables. Thus, implying a direct relationship between the discussed variables is necessary to predict the voltage based on the combination of the variables. Figure 9 shows the correlation of the variables. It also shows how all parameters are related to controlling the speed of the vehicle through the quantity of voltage to be supplied to the motors. This reveals that the correlation between speed, curvature of the road, and voltage supplied to the motors occurs in a coincidental manner.
The correlation between both pairs of variables has determined that the correlation between the two variables is high. To control the speed, there is a dependent phenomenon that includes the correlation between voltage and speed. Thus, the results show that the linear regression model to predict the voltage by using the imposed features, i.e., speed limit and curvature, which have a correlation coefficient of r = 0.97, and r = 0.98, respectively, in the degree of the association of measured variables. Figure 10 indicates that for every positive increase in voltage, the speed increases proportionally. The function box plot in the seaborn library to produce the plots that are used to determine whether the imposed speed limit and road curvature have more voltage outliers.
Figure 11 shows the pair’s plot that visualizes the distribution of speed and voltage, as the focus is on reducing speed by reducing the amount of voltage supplied to the motors. Despite the fact that power supply is a significant challenge, the higher the speed, the higher the power supplied to the motor is. This affects the system’s functionality, according to our observations during simulation.

3.4. Comparative Analysis of Models

The results of the preferred model were compared for the two machine learning algorithms to evaluate the efficiency of the proposed models. To verify the prediction capability of the proposed models, the evaluation of their results is shown in Table 5. The accuracy of the RF model had a significant improvement over the MLR model. With the highest R 2 = 0.988 and lowest MAE = 0.194, MSE = 0.066, RMSE = 0.258, respectively, compared to the MLR model which has a lower R 2 = 0.986 and higher MAE = 0.223, MSE = 0.074, RMSE = 0.273. Hence, the RF-based prediction model showed the highest prediction accuracy in terms of performance with regard to R 2 , with an R 2 of 98.82% compared to MLR, which has an R 2 of 98.68%.
Table 6 presents the comparative values for the performance accuracy of the proposed model. The results show that the RF has a high accuracy compared to the MLR model. The table shows the performance values for both the training and test of the proposed models and the optimal parameter values described present the best model.
Figure 12 and Figure 13 present the result showing that RF model performs well comparing to MLR model.

4. Conclusions and Future Works

A data acquisition and communication system based on GSM/GPRS was introduced. The design as well as the execution of all the voltage measures were analyzed in order to maintain speed. Synchronization between software applications and hardware features has been successfully programmed. The transmission synchronization tests carried out demonstrated that the GSM/GPRS-based real-time monitoring was successful. The predictive models of machine learning algorithms, RF and MLR, were applied to the recorded vehicle data to estimate the required voltage per specific speed limit. The RF has proven to be a more powerful modeling approach than the MLR model. The MAE, MSE, RMSE, and higher R 2 value were more favorable for the RF than for MLR for the prediction of voltage. However, according to our observations during the experiment, there were effects on the system’s functionality when it was kept running for a certain period of time. The voltage sensor would behave unexpectedly. There is an opportunity to extend this work by implementing the method in hybrid vehicles, which combine the use of electric motors and internal combustion engines. The future development will be the integration of several GSM/GPRS terminals with various modeling variables that might interrupt the speed limit. Rain, road damage and unusual events are among these factors. The speed control model proposed demonstrates that the system can be applied to both other systems for parameter monitoring. In this work, the statistical significance of the differences in performance between the three scenarios was not considered, but with potential consideration in future studies.

Author Contributions

Conceptualization, G.A.; Formal analysis, G.A.; Methodology, G.A.; Project administration, C.M., G.B. and K.J.; Software, G.A.; Supervision, C.M., G.B. and K.J.; Validation, G.A.; Writing—original draft, G.A., C.M., G.B. and K.J.; Writing—review and editing, C.M., G.B. and K.J. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the African Center of Excellence in Internet of Things (ACEIoT), College of Science and Technology, University of Rwanda.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used to support the findings of this study are available from the corresponding author upon request.

Acknowledgments

The authors recognize and appreciate the financial support from the African Center of Excellence in Internet of Things running under the University of Rwanda at the College of Science and Technology (UR-CST), and the article processing charge (APC) was funded by the same center. The authors appreciate the administrative assistance provided by Rwanda National Police’s Road Traffic and Safety Department during data collection.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
ACEIoTAfrican Center of Excellence in Internet of Things
ACCAdaptive Cruise Control
BEVBattery Electric Vehicle
DASDynamic Speed Adaptation
DCDirect Current
DCTDual Clutch Transmission
GDPGross Domestic Product
GSM/GPRSGlobal System for Mobile/General Packet Radio Service
HEVHybrid Electric Vehicle
ITSIntelligent Transportation System
IoTInternet of Things
IoVInternet of Vehicle
MOSFETMetal Oxide Semiconductor Field Effect Transistor
RFRandom Forest
RNPRwanda National Police
MLRMultiple Linear Regression
LTELong-Term Evolution
LMILow-Income and Middle-Income
WHOWorld Health Organization

References

  1. Global Status Report on Road Safety. 2018. Available online: https://apps.who.int/iris/bitstream/handle/10665/277370/WHO-NMH-NVI-18.20-eng.pdf?ua=1 (accessed on 19 December 2020).
  2. Decade of Action for Road Safety, 2011–2020. Available online: https://www.who.int/publications/i/item/decade-of-action-for-road-safety-2011-2020 (accessed on 3 October 2020).
  3. Nickenig Vissoci, J.R.; Krebs, E.; Meier, B.; Vieira, I.F.; de Andrade, L.; Byiringiro, F.; Rulisa, S.; Staton, C.A. Road traffic crash experience among commercial motorcyclists in Kigali, Rwanda. Int. J. Inj. Control Saf. Promot. 2020, 27, 181–187. [Google Scholar] [CrossRef]
  4. Rwanda: Road Traffic Accidents. Available online: https://www.worldlifeexpectancy.com/rwanda-road-traffic-accidents (accessed on 22 August 2021).
  5. Elvik, R.; Vadeby, A.; Hels, T.; van Schagen, I. Updated estimates of the relationship between speed and road safety at the aggregate and individual levels. Accid. Anal. Prev. 2019, 123, 114–122. [Google Scholar] [CrossRef]
  6. Kaiwartya, O.; Abdullah, A.H.; Cao, Y.; Altameem, A.; Prasad, M.; Lin, C.T.; Liu, X. Internet of vehicles: Motivation, layered architecture, network model, challenges, and future aspects. IEEE Access 2016, 4, 5356–5373. [Google Scholar] [CrossRef]
  7. Christopher, C. An Introduction to LTE: LTE, LTE-Advanced, SAE and 4G Mobile Communications, 1st ed.; John Wiley & Sons: New York, NY, USA, 2012. [Google Scholar]
  8. Maral, G.; Bousquet, M.; Sun, Z. Satellite Communications Systems: Systems, Techniques and Technology, 6th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2020; ISBN 978-1-119-94353-2. [Google Scholar]
  9. Gregurić, M.; Vujić, M.; Alexopoulos, C.; Miletić, M. Application of Deep Reinforcement Learning in Traffic Signal Control: An Overview and Impact of Open Traffic Data. Appl. Sci. 2020, 10, 4011. [Google Scholar] [CrossRef]
  10. Yang, F.; Wang, S.; Li, J.; Liu, Z.; Sun, Q. An overview of internet of vehicles. China Commun. 2014, 11, 1–15. [Google Scholar] [CrossRef]
  11. Xu, W.; Zhou, H.; Cheng, N.; Lyu, F.; Shi, W.; Chen, J.; Shen, X. Internet of vehicles in big data era. IEEE/CAA J. Autom. Sin. 2017, 5, 19–35. [Google Scholar] [CrossRef]
  12. Toquica, J.S.; Benavides, D.; Motta, J.M.S. Web compliant open architecture for teleoperation of industrial robots. In Proceedings of the 2019 IEEE 15th International Conference on Automation Science and Engineering (CASE), Vancouver, BC, Canada, 22–26 August 2019; pp. 1408–1414. [Google Scholar] [CrossRef]
  13. Rwanda Utilities Regulatory Authority (RURA), Annual Report 2017–2018. Available online: https://rura.rw/fileadmin/Documents/docs/report/RURA_ANNUAL_REPORT_2017-2018.pdf (accessed on 2 January 2021).
  14. Wu, B.H.; Huang, S.J. A New In-Car Navigation System Based on V2C2V and Data Science. IT Prof. 2018, 20, 68–73. [Google Scholar] [CrossRef]
  15. Smulders, S. Control of freeway traffic flow by variable speed signs. Transp. Res. Part B Methodol. 1990, 24, 111–132. [Google Scholar] [CrossRef]
  16. Kušić, K.; Ivanjko, E.; Gregurić, M.; Miletić, M. An Overview of Reinforcement Learning Methods for Variable Speed Limit Control. Appl. Sci. 2020, 10, 4917. [Google Scholar] [CrossRef]
  17. Müller, E.R.; Carlson, R.C.; Kraus, W.; Papageorgiou, M. Microsimulation analysis of practical aspects of traffic control with variable speed limits. Trans. Intell. Transp. Syst. 2015, 16, 512–523. [Google Scholar] [CrossRef]
  18. Hegyi, A.; De Schutter, B.; Hellendoorn, J. Optimal coordination of variable speed limits to suppress shock waves. IEEE Trans. Intell. Transp. Syst. 2005, 6, 102–112. [Google Scholar] [CrossRef] [Green Version]
  19. Khondaker, B.; Kattan, L. Variable speed limit: An overview. Transp. Lett. 2015, 7, 264–278. [Google Scholar] [CrossRef]
  20. Zaidi, Z.; Radwan, E.; Harb, R. Evaluating variable speed limits and dynamic lane merging systems in work zones: A simulation study. Int. Sch. Res. Not. 2012, 2012, 435618. [Google Scholar] [CrossRef] [Green Version]
  21. Zhang, Z.; Luo, D.; Rasim, Y.; Li, Y.; Meng, G.; Xu, J.; Wang, C. A Vehicle Active Safety Model: Vehicle Speed Control Based on Driver Vigilance Detection Using Wearable EEG and Sparse Representation. Sensors 2016, 16, 242. [Google Scholar] [CrossRef] [PubMed]
  22. Martinez, J.J.; Canudas-de-Wit, C. A safe longitudinal control for adaptive cruise control and stop-and-go scenarios. IEEE Trans. Control Syst. Technol. 2007, 15, 15246–15258. [Google Scholar] [CrossRef]
  23. Tang, X.F.; Gao, F.; Xu, G.Y.; Ding, N.G.; Cai, Y.; Ma, M.M.; Liu, J.X. Sensor systems for vehicle environment perception in a highway intelligent space system. Sensors 2014, 14, 8513–8527. [Google Scholar] [CrossRef] [Green Version]
  24. Chen, Y.; Wang, J.M. Adaptive vehicle speed control with input injections for longitudinal motion independent road frictional condition estimation. IEEE Trans. Veh. Technol. 2011, 60, 839–848. [Google Scholar] [CrossRef]
  25. Li, Z.; Chen, L.; Peng, J.; Wu, Y. Automatic Detection of Driver Fatigue Using Driving Operation Information for Transportation Safety. Sensors 2017, 17, 1212. [Google Scholar] [CrossRef] [Green Version]
  26. Huang, W.; Zhang, J.; Huang, J.; Yin, C.; Wang, L. Optimal Speed Regulation Control of the Hybrid Dual Clutch Transmission Shift Process. World Electr. Veh. J. 2020, 11, 11. [Google Scholar] [CrossRef] [Green Version]
  27. Wijnen, W.; Stipdonk, H. Social costs of road crashes: An international analysis. Accid. Anal. Prev. 2016, 94, 97–106. [Google Scholar] [CrossRef]
  28. Papadakaki, M.; Stamouli, M.A.; Ferraro, O.E.; Orsi, C.; Otte, D.; Tzamalouka, G.; von der Geest, M.; Lajunen, T.; Özkan, T.; Morandi, A.; et al. Hospitalization costs and estimates of direct and indirect economic losses due to injury sustained in road traffic crashes: Results from a one-year cohort study in three European countries (The REHABILAID project). Trauma 2017, 19, 264–276. [Google Scholar] [CrossRef]
  29. Gargoum, S.A.; El-Basyouny, K. Exploring the association between speed and safety: A path analysis approach. Accid. Anal. Prev. 2016, 93, 32–40. [Google Scholar] [CrossRef]
  30. Jurewicz, C.; Sobhani, A.; Woolley, J.; Dutschke, J.; Corben, B. Exploration of vehicle impact speed–injury severity relationships for application in safer road design. Transp. Res. Procedia 2016, 14, 4247–4256. [Google Scholar] [CrossRef] [Green Version]
  31. Rwanda Environment Management Authority (REMA). Rwanda: State of Environment and Outlook Report. 2017. Available online: https://www.researchgate.net/publication/327041096_Rwanda_State_of_Environment_and_Outlook_Report_2017_-_Achieving_Sustainable_Urbanization (accessed on 5 September 2021).
  32. Electric Vehicle to Support Rwanda’s Environmental Protection Efforts. Available online: https://www.rema.gov.rw/index.php?id=77&tx_news_pi1%5Bnews%5D=103&tx_news_pi1%5Bday%5D=18&tx_news_pi1%5Bmonth%5D=1&tx_news_pi1%5Byear%5D=2021&cHash=98ecdba4e095ded9af7b72535bed20bf#:~:text=The%20Rwanda%20Environment%20Management%20Authority,the%20REMA%20office%20in%20Kacyiru (accessed on 21 January 2021).
  33. Yong, J.Y.; Ramachandaramurthy, V.K.; Tan, K.M.; Mithulananthan, N. A review on the state-of-the-art technologies of electric vehicle, its impacts and prospects. Renew. Sustain. Energy Rev. 2015, 49, 365–385. [Google Scholar] [CrossRef]
  34. IEA. Electric Vehicles; IEA: Paris, France, 2020; Available online: https://www.iea.org/reports/electric-vehicles (accessed on 31 March 2021).
  35. Skouras, T.A.; Gkonis, P.K.; Ilias, C.N.; Trakadas, P.T.; Tsampasis, E.G.; Zahariadis, T.V. Electrical vehicles: Current state of the art, future challenges, and perspectives. Clean Technol. 2020, 2, 1–16. [Google Scholar] [CrossRef] [Green Version]
  36. Grunditz, E.A.; Thiringer, T. Performance analysis of current BEVs based on a comprehensive review of specifications. IEEE Trans. Transp. Electrif. 2016, 2, 270–289. [Google Scholar] [CrossRef]
  37. Woodstock, T.K.; Karlicek, R.F. RGB color sensors for occupant detection: An alternative to PIR sensors. IEEE Sens. J. 2020, 20, 12364–12373. [Google Scholar] [CrossRef]
  38. Vukelic, B.M.; Stancic, R.; Graovac, S.G. Microcontroller Based Implementation of an Integrated Navigation System for Ground Vehicles. IFAC Proc. Vol. 2013, 46, 139–144. [Google Scholar] [CrossRef]
  39. Górak, R.; Luckner, M.; Okulewicz, M.; Porter-Sobieraj, J.; Wawrzyniak, P. Indoor localisation based on GSM signals: Multistorey building study. Mob. Inf. Syst. 2016, 2016, 2719576. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  40. Li, J.; Pei, X.; Wang, X.; Yao, D.; Zhang, Y.; Yue, Y. Transportation mode identification with GPS trajectory data and GIS information. Tsinghua Sci. Technol. 2021, 26, 403–416. [Google Scholar] [CrossRef]
  41. Naboureh, A.; Feizizadeh, B.; Naboureh, A.; Bian, J.; Blaschke, T.; Ghorbanzadeh, O.; Moharrami, M. Traffic accident spatial simulation modeling for planning of road emergency services. ISPRS Int. J. Geo-Inf. 2019, 8, 371. [Google Scholar] [CrossRef] [Green Version]
  42. Lin, H.Y.; Chang, C.C.; Tran, V.L.; Shi, J.H. Improved traffic sign recognition for in-car cameras. J. Chin. Inst. Eng. 2020, 3, 300–307. [Google Scholar] [CrossRef]
  43. Seraj, M.; Rosales-Castellanos, A.; Shalkamy, A.; El-Basyouny, K.; Qiu, T.Z. The implications of weather and reflectivity variations on automatic traffic sign recognition performance. J. Adv. Transp. 2021, 2021, 5513552. [Google Scholar] [CrossRef]
  44. Li, Z.; Zhang, T.; Qi, F.; Tang, H.; Niu, X. Carrier phase prediction method for GNSS precise positioning in challenging environment. Adv. Space Res. 2019, 7, 2164–2174. [Google Scholar] [CrossRef]
  45. Lana, I.; Sanchez-Medina, J.J.; Vlahogianni, E.I.; Del Ser, J. From data to actions in intelligent transportation systems: A prescription of functional requirements for model actionability. Sensors 2021, 21, 1121. [Google Scholar] [CrossRef]
  46. García-Valls, M.; Dubey, A.; Botti, V. Introducing the new paradigm of social dispersed computing: Applications, technologies and challenges. J. Syst. Archit. 2018, 91, 83–102. [Google Scholar] [CrossRef]
  47. Li, Z.; Chitturi, M.; Bill, A.; Noyce, D. Automated identification and extraction of horizontal curve information from geographic information system roadway maps. Transp. Res. Rec. 2012, 2291, 80–92. [Google Scholar] [CrossRef] [Green Version]
  48. Hans, Z.; Souleyrette, R.; Bogenreif, C. Horizontal Curve Identification and Evaluation; Technical Report; Iowa State University: Ames, IA, USA, 2012. [Google Scholar]
  49. Lee, J.W.; Prabhuswamy, S. A Unified Framework of Adaptive Cruise Control for Speed Limit Follower and Curve Speed Control Function; SAE Technical Paper; SAE: Detroit, MI, USA, 2013. [Google Scholar]
  50. Gámez Serna, C.; Ruichek, Y. Dynamic Speed Adaptation for Path Tracking Based on Curvature Information and Speed Limits. Sensors 2017, 17, 1383. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  51. American Association of State Highway and Transportation Officials (AASHTO). A Policy on Geometric Design of Highways and Streets; AASHTO: Washington, DC, USA, 2011. [Google Scholar]
  52. Donnell, E.T.; Himes, S.C.; Mahoney, K.M.; Porter, R.J. Understanding speed concepts: Key definitions and case study examples. Transp. Res. Rec. 2009, 1, 3–11. [Google Scholar] [CrossRef]
  53. Chai, T.; Draxler, R.R. Root mean square error (RMSE) or mean absolute error (MAE)?—Arguments against avoiding RMSE in the literature. Geosci. Model Dev. 2014, 7, 1247–1250. [Google Scholar] [CrossRef] [Green Version]
  54. RMSE: Root Mean Square Error—Statistics How to. Available online: https://www.statisticshowto.com/probability-and-statistics/regression-analysis/rmse-root-mean-square-error/ (accessed on 25 June 2021).
  55. Dancer, D.; Tremayne, A. R-squared and prediction in regression with ordered quantitative response. J. Appl. Stat. 2005, 5, 483–493. [Google Scholar] [CrossRef]
Figure 1. Number of confirmed road accident cases in Rwanda by causing factor (2016–2019).
Figure 1. Number of confirmed road accident cases in Rwanda by causing factor (2016–2019).
Sensors 21 06670 g001
Figure 2. (a) Monthly variation of excessive speeding road accidents; and (b) cumulative number of excessive speeding due accidents by year (2016–2019).
Figure 2. (a) Monthly variation of excessive speeding road accidents; and (b) cumulative number of excessive speeding due accidents by year (2016–2019).
Sensors 21 06670 g002
Figure 3. Architecture of the speed control system.
Figure 3. Architecture of the speed control system.
Sensors 21 06670 g003
Figure 4. Fundamental layout of IoT-based speed monitoring.
Figure 4. Fundamental layout of IoT-based speed monitoring.
Sensors 21 06670 g004
Figure 5. The embedded speed control device.
Figure 5. The embedded speed control device.
Sensors 21 06670 g005
Figure 6. A program running into Arduino Uno.
Figure 6. A program running into Arduino Uno.
Sensors 21 06670 g006
Figure 7. Sample of captured data appealing in the database.
Figure 7. Sample of captured data appealing in the database.
Sensors 21 06670 g007
Figure 8. Data presentation in the database.
Figure 8. Data presentation in the database.
Sensors 21 06670 g008
Figure 9. Pearson correlation between speed, voltage, and curvature variables.
Figure 9. Pearson correlation between speed, voltage, and curvature variables.
Sensors 21 06670 g009
Figure 10. Relationship between variables.
Figure 10. Relationship between variables.
Sensors 21 06670 g010
Figure 11. Pair plot of the used variable.
Figure 11. Pair plot of the used variable.
Sensors 21 06670 g011
Figure 12. Fitting accuracy: actual and predicted results.
Figure 12. Fitting accuracy: actual and predicted results.
Sensors 21 06670 g012
Figure 13. Prediction results: comparison of the RF and MLR model.
Figure 13. Prediction results: comparison of the RF and MLR model.
Sensors 21 06670 g013
Table 1. Relationship between color, speed, curvature radius and PWM.
Table 1. Relationship between color, speed, curvature radius and PWM.
ColourSpeed (km/h)Curvature Radius (m)PWM
BLUE4095100
WHITE60215150
BROWN80380200
BLACK100590255
Table 2. Scenario 1.
Table 2. Scenario 1.
SpeedLatitudeLongitudeVoltageCurrentTimeDate
40−1.979273730.1076414.730.411:27:47 a.m.5 May 2021
60−1.9792896230.1076715.740.6811:28:42 a.m.5 May 2021
80−1.979304530.1076889.490.9411:29:32 a.m.5 May 2021
100−1.9792875230.10766912.311.411:30:13 a.m.5 May 2021
Table 3. Scenario 2.
Table 3. Scenario 2.
SpeedLatitudeLongitudeVoltageCurrentTimeDate
40−1.979329130.1077194.970.433:21:19 a.m.8 May 2021
60−1.979327230.1076795.730.713:21:08 a.m.8 May 2021
80−1.979304530.1076889.480.943:56:44 a.m.8 May 2021
100−1.9794662430.10762512.271.133:20:11 a.m.8 May 2021
Table 4. Scenario 3.
Table 4. Scenario 3.
SpeedLatitudeLongitudeVoltageCurrentTimeDate
40−1.979273730.1076414.890.3911:57:37 a.m.9 May 2021
60−1.9795143130.1076395.750.6912:04:58 p.m.9 May 2021
80−1.979273730.1076419.57112:02:30 p.m.9 May 2021
100−1.9793257730.10759112.51.1812:06:22 p.m.9 May 2021
Table 5. Fitting accuracy of the data.
Table 5. Fitting accuracy of the data.
Testing Data
ModelMAEMSERMSE R 2
Multiple Linear Regression0.2234990.0745730.2730810.986874
Random Forest Regression0.1947040.0666070.2580830.988276
Training Data
ModelMAEMSERMSE R 2
Multiple Linear Regression0.2720160.1145180.3384060.982988
Random Forest Regression0.2549600.1117800.3343350.983395
Table 6. Fitting accuracy of the regression models.
Table 6. Fitting accuracy of the regression models.
ModelMAEMSERMSE R 2
Multiple Linear Regression0.2235000.0745740.2730820.986874
Random Forest Regression0.1947050.0666070.2580840.988276
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Antoine, G.; Mikeka, C.; Bajpai, G.; Jayavel, K. Speed Management Strategy: Designing an IoT-Based Electric Vehicle Speed Control Monitoring System. Sensors 2021, 21, 6670. https://doi.org/10.3390/s21196670

AMA Style

Antoine G, Mikeka C, Bajpai G, Jayavel K. Speed Management Strategy: Designing an IoT-Based Electric Vehicle Speed Control Monitoring System. Sensors. 2021; 21(19):6670. https://doi.org/10.3390/s21196670

Chicago/Turabian Style

Antoine, Gatera, Chomora Mikeka, Gaurav Bajpai, and Kayalvizhi Jayavel. 2021. "Speed Management Strategy: Designing an IoT-Based Electric Vehicle Speed Control Monitoring System" Sensors 21, no. 19: 6670. https://doi.org/10.3390/s21196670

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop