# Numerical Calibration Method for Vehicle Velocity Data from Electronic Registration Identification of Motor Vehicles Based on Mobile Edge Computing and Particle Swarm Optimization Neural Network

Authors: Jingfeng Yang; Zhiyong Luo; Nanfeng Zhang; Honggang Wang; Ming Li; Jinchao Xiao
Journal: Complexity
 (2020)

---

## Abstract

In the development of technology for smart cities, the installation and deployment of electronic motor vehicle registration identification have attracted great attention in terms of smart transportation in recent years. Vehicle velocity measurement is one of the fundamental data collection efforts for motor vehicles. The velocity detection using electronic registration identification of motor vehicles is constrained by the detection algorithm, the material of the automobile windshield, the placement of the decals, the installation method of the signal reader, and the angle of the antenna. The software and hardware for electronic motor vehicle registration identification produced in the standard manner cannot meet the accuracy of velocity detection for all scenarios. Based on the actual application requirements, we propose a calibration method for the numerical output of the automobile velocity detector based on edge computing of the optimized multiple reader/writer velocity values and based on a particle swarm-optimized radial basis function (RBF) neural network. The proposed method was tested on a two-way eight-lane road, and the test results showed that it can effectively improve the accuracy of velocity detection using electronic registration identification of motor vehicles. Compared with the actual velocity, 87.12% of all the data samples had an error less than 5%, and 91.76% of the data samples for vehicles in the center lane had an error less than 5%. By calibrating the electronic vehicle velocity based on the registration identification, the accuracy of velocity detection in different application environments can be improved. Moreover, the method can establish an accurate foundation for application in traffic flow management, environmental protection, traffic congestion fee collection, and special vehicle traffic management.


---

## Body

## 1. Introduction

As urban development expands, the rapid increase in the number of vehicles on roads has caused various urban management problems and has led to the construction of large-scale, traffic-related infrastructures and the construction and the deployment of extensive vehicle-related facilities and equipment. These are specifically manifested in the use of various traffic sensing and road monitoring techniques and equipment including video cameras, GPS, geomagnetic, and radar. These devices are deployed on the road by local public security departments to ensure the safety and smooth operation of road traffic, strengthen the enforcement of traffic regulations, and ensure the intelligent control of city-level traffic. Intelligent control of traffic has become an important component of smart cities. However, video-based vehicle information recognition technology is susceptible to interference from environmental factors, such as weather, lighting, and distance from the vehicle. As a result, the effective recognition rate of video technology cannot meet the requirements of intelligent traffic management and cannot automatically identify false license plates, overlay plates, and intentionally obscured plates. Electronic registration identification of motor vehicles based on a single video image cannot satisfy the needs of smart traffic and the need to maintain a general social order [1]. To meet these needs, the application of electronic registration identification (ID) is proposed and promoted on a national level by establishing a national standard. Electronic vehicle registration identifications have been promoted in a limited number of cities and is used for intelligent parking [2], smart signal control and application [3, 4], web-linked smart vehicles [5], special vehicle passing management and special electronic registration identification of motor vehicles and control [6], and traffic operation supervision and environmental driving restrictions [7]. However, due to various technical problems, the vehicle velocity data collected using electronic vehicle registration identification still cannot serve for traffic law enforcement; this has restricted the scope of application of electronic vehicle registration identification. In terms of increasing the accuracy of collected data with spatial attributes, many researchers have conducted studies on multiobjective optimization algorithms in recent years. Grid-based methods have found good applications [8–10]. For example, Wu [11], Luo [12], and Kong [13] located robot arm movement by constructing a grid; Leong [14] maintained the diversity of solutions by constructing a grid; Knowles [8] used adaptive grids to store the obtained nondominated vectors; Yang [15] used grid technology to apply evolutionary algorithms to solve high-dimensional multiobjective optimization problems; Li [16] used grids to simultaneously characterize the convergent and distributive characteristics and proposed a multitarget particle swarm optimization algorithm based on grid sorting. The algorithm uses coordinate mapping, ordering of element optimization in the grid coordinate system, and the Euclidean distance between the element and the boundary of the approximate optimum. To improve the accuracy of the velocity data collected using electronic registration identification of motor vehicles, we combine the results of previous researchers and propose a numerical calibration method for vehicle velocity data collected by electronic registration identification of motor vehicles based on a particle swarm optimization neural network. By comparing the optimized vehicle calibration velocity and the data collected by the OBD port of the test vehicle, the reliability of the acquired velocity data is further improved.


## 2. Vehicle Velocity Measurement Method Using Electronic Registration Identification of Motor Vehicles

### 2.1. Installation and Connection Method for Reader/Writer of Electronic Vehicle Registration Identification

The collection of vehicle velocity data based on electronic registration identification of motor vehicles involves installing a comprehensive sensing base station at each key intersection or public security checkpoint, expressway ramp, and checkpoints at city entries. A detection coil should be installed 15 meters away from the law enforcement monitoring station or the key intersection on the main highway. To inspect the vehicles passing through the road, a gantry should be installed at a distance of 15 meters from the detection coil and an electronic registration identification of the motor vehicle device should be installed on the gantry to automatically identify the license plate of the vehicle. The reader/writer antenna installed on the gantry acquires the data from passing vehicles equipped with an electronic registration identification of motor vehicles. When the vehicle comes in contact with the coil, the detection coil emits two signals, one signal goes to the high-definition video camera and the other signal goes to the reader/writer antenna. The vehicle license plate and the electronic registration identification of the motor vehicle signal of the vehicle are captured simultaneously. After the signal is read, it is uploaded to the comprehensive sensing base station for data processing.The system at the comprehensive sensing base station consists of a license plate recognition system and a vehicle electronic registration identification of motor vehicles decal read and write system. The system as a whole performs data collection, verification, transmission, and processing in practical applications. The overall layout is shown in Figures1 and 2.Figure 1
Overall layout diagram.Figure 2
Picture of the actual installation.An appropriate location at the traffic checkpoint or the road junction is chosen to install the gantry. The induction coil is installed 15 meters from the gantry. Installed on the gantry are the electronic registration identification of motor vehicles’ antenna, the high-definition video camera, and the fill-in light. Two trigger signals are sent out through the induction coil, one to the video camera and one to the vehicle electronic antenna. The antenna of the electronic registration identification of motor vehicles is connected to the read/write control of the vehicle. The video camera is connected to a front-end computer through a network or to an exchanger.


### 2.2. Vehicle Velocity Detection Based on Reader/Writer of Electronic Registration Identification of Motor Vehicles

The main method of using electronic registration identification of motor vehicles and readers/writers to acquire vehicle velocity data is the ultrahigh-frequency radio frequency identification technology. The radio frequency identification reader, using ultrahigh-frequency identification technology, interacts with the radio frequency electronic registration identification of motor vehicle tag installed on the wind shield of the vehicle through the ultrahigh-frequency horizontally polarized directional antenna. The velocity of the vehicle is calculated by noting the time difference for the vehicle to go through a fixed-length identification zone. Under normal circumstances, the transmission power of the RFID reader is 30–33 dBm, and the antenna gain is 10–12 dBi. Combined with comprehensive factors such as the sensitivity of the reader and the tag, the reading and writing coverage of the RFID reader is usually between 0 and 35 meters. The steps to calculate the velocity of a vehicle using an electronic registration identification of motor vehicle tag and a reader are as follows:Step 1. For an arbitrary vehicle shown in Figure 1, the identification record and time data are recorded as the vehicle enters the identification section of the electronic reader/writer; the same records are also recorded as the vehicle leaves the identification section.Step 2. Interruption in the recognition record is checked to determine that the vehicle has left the identification section.Step 3. The velocity is calculated using the formula: V=S/To−Ti,whereV is the velocity with which the vehicle passes through the recognition section, S is the direct distance according to the electronic registration identification of motor vehicle reader, that is, the length of the recognition section, Ti is the time when the vehicle enters the recognition section, and To is the time when the vehicle leaves the recognition section.However, constrained by factors such as the material and angle of the vehicle’s windshield, any presence of a film, location of the decal, or any other interference, different electronic registration identification of motor vehicle readers/writers often have different maximum reading distances. The differences in the maximum reading distance prevents the electronic reader from determining where the corresponding vehicle enters the recognition section, that is, where it was first read. As a result, the reader cannot accurately calculate the vehicle velocity based on the distance and time it read.Given the various interferences on the maximum read distance of the electronic registration identification of motor vehicle reader/writer, the calculation of the vehicle velocity in actual practice is often combined with the received signal strength indication (RSSI), that is, the strength of the signal returned by the electronic registration identification of the motor vehicle tag. The higher the RSSI value, the closer the vehicle is to the antenna, and vice versa. Specifically, the position of the vehicle at different times may be calculated by using the RSSI value returned from the electronic registration identification of the motor vehicle tag of the vehicle at different times, and the velocity of the vehicle may then be calculated according to the time differences of the corresponding positions. That is, by analyzing the RSSI value of the feedback signal that is first recognized when the corresponding vehicle enters the recognition section, it can be determined whether the vehicle position at the first recognition is at the boundary between the direct shot area and the blind area or at the farthest point in the reflection area. The formulaV=S/To−Ti can then be used to calculate the velocity of the vehicle. In actual implementation, however, the presence of blind spots and the emergence of environmental conditions may affect the results of velocity calculation. Analysis shows that although a blind spot may disappear, the radio frequency identification effect in the cross section of the blind area will still be different from that in the direct area. This is judged by the fluctuation of the number of recognitions per unit time from when the vehicle enters the recognition section to when it leaves the recognition section. If the fluctuation is not large, the vehicle has been recognized in the direct shot area the whole time. If the number of recognitions per unit time varies greatly and if one period shows a very high number of recognitions per unit time and the other period shows a relatively low number of recognitions, or if a vehicle in another lane is recognized and calculated by the electronic registration identification of the motor vehicle reader, then it is possible that a blind spot had disappeared. In a real environment, it is necessary to set up different calculation methods for calculating vehicle velocity in different situations. Since it is often difficult to accurately select the correct calculation method, the calculated vehicle velocity often deviates from the actual values.


## 2.1. Installation and Connection Method for Reader/Writer of Electronic Vehicle Registration Identification

The collection of vehicle velocity data based on electronic registration identification of motor vehicles involves installing a comprehensive sensing base station at each key intersection or public security checkpoint, expressway ramp, and checkpoints at city entries. A detection coil should be installed 15 meters away from the law enforcement monitoring station or the key intersection on the main highway. To inspect the vehicles passing through the road, a gantry should be installed at a distance of 15 meters from the detection coil and an electronic registration identification of the motor vehicle device should be installed on the gantry to automatically identify the license plate of the vehicle. The reader/writer antenna installed on the gantry acquires the data from passing vehicles equipped with an electronic registration identification of motor vehicles. When the vehicle comes in contact with the coil, the detection coil emits two signals, one signal goes to the high-definition video camera and the other signal goes to the reader/writer antenna. The vehicle license plate and the electronic registration identification of the motor vehicle signal of the vehicle are captured simultaneously. After the signal is read, it is uploaded to the comprehensive sensing base station for data processing.The system at the comprehensive sensing base station consists of a license plate recognition system and a vehicle electronic registration identification of motor vehicles decal read and write system. The system as a whole performs data collection, verification, transmission, and processing in practical applications. The overall layout is shown in Figures1 and 2.Figure 1
Overall layout diagram.Figure 2
Picture of the actual installation.An appropriate location at the traffic checkpoint or the road junction is chosen to install the gantry. The induction coil is installed 15 meters from the gantry. Installed on the gantry are the electronic registration identification of motor vehicles’ antenna, the high-definition video camera, and the fill-in light. Two trigger signals are sent out through the induction coil, one to the video camera and one to the vehicle electronic antenna. The antenna of the electronic registration identification of motor vehicles is connected to the read/write control of the vehicle. The video camera is connected to a front-end computer through a network or to an exchanger.


## 2.2. Vehicle Velocity Detection Based on Reader/Writer of Electronic Registration Identification of Motor Vehicles

The main method of using electronic registration identification of motor vehicles and readers/writers to acquire vehicle velocity data is the ultrahigh-frequency radio frequency identification technology. The radio frequency identification reader, using ultrahigh-frequency identification technology, interacts with the radio frequency electronic registration identification of motor vehicle tag installed on the wind shield of the vehicle through the ultrahigh-frequency horizontally polarized directional antenna. The velocity of the vehicle is calculated by noting the time difference for the vehicle to go through a fixed-length identification zone. Under normal circumstances, the transmission power of the RFID reader is 30–33 dBm, and the antenna gain is 10–12 dBi. Combined with comprehensive factors such as the sensitivity of the reader and the tag, the reading and writing coverage of the RFID reader is usually between 0 and 35 meters. The steps to calculate the velocity of a vehicle using an electronic registration identification of motor vehicle tag and a reader are as follows:Step 1. For an arbitrary vehicle shown in Figure 1, the identification record and time data are recorded as the vehicle enters the identification section of the electronic reader/writer; the same records are also recorded as the vehicle leaves the identification section.Step 2. Interruption in the recognition record is checked to determine that the vehicle has left the identification section.Step 3. The velocity is calculated using the formula: V=S/To−Ti,whereV is the velocity with which the vehicle passes through the recognition section, S is the direct distance according to the electronic registration identification of motor vehicle reader, that is, the length of the recognition section, Ti is the time when the vehicle enters the recognition section, and To is the time when the vehicle leaves the recognition section.However, constrained by factors such as the material and angle of the vehicle’s windshield, any presence of a film, location of the decal, or any other interference, different electronic registration identification of motor vehicle readers/writers often have different maximum reading distances. The differences in the maximum reading distance prevents the electronic reader from determining where the corresponding vehicle enters the recognition section, that is, where it was first read. As a result, the reader cannot accurately calculate the vehicle velocity based on the distance and time it read.Given the various interferences on the maximum read distance of the electronic registration identification of motor vehicle reader/writer, the calculation of the vehicle velocity in actual practice is often combined with the received signal strength indication (RSSI), that is, the strength of the signal returned by the electronic registration identification of the motor vehicle tag. The higher the RSSI value, the closer the vehicle is to the antenna, and vice versa. Specifically, the position of the vehicle at different times may be calculated by using the RSSI value returned from the electronic registration identification of the motor vehicle tag of the vehicle at different times, and the velocity of the vehicle may then be calculated according to the time differences of the corresponding positions. That is, by analyzing the RSSI value of the feedback signal that is first recognized when the corresponding vehicle enters the recognition section, it can be determined whether the vehicle position at the first recognition is at the boundary between the direct shot area and the blind area or at the farthest point in the reflection area. The formulaV=S/To−Ti can then be used to calculate the velocity of the vehicle. In actual implementation, however, the presence of blind spots and the emergence of environmental conditions may affect the results of velocity calculation. Analysis shows that although a blind spot may disappear, the radio frequency identification effect in the cross section of the blind area will still be different from that in the direct area. This is judged by the fluctuation of the number of recognitions per unit time from when the vehicle enters the recognition section to when it leaves the recognition section. If the fluctuation is not large, the vehicle has been recognized in the direct shot area the whole time. If the number of recognitions per unit time varies greatly and if one period shows a very high number of recognitions per unit time and the other period shows a relatively low number of recognitions, or if a vehicle in another lane is recognized and calculated by the electronic registration identification of the motor vehicle reader, then it is possible that a blind spot had disappeared. In a real environment, it is necessary to set up different calculation methods for calculating vehicle velocity in different situations. Since it is often difficult to accurately select the correct calculation method, the calculated vehicle velocity often deviates from the actual values.


## 3. Velocity Calibration Method Based on Particle Swarm Optimization Neural Network Algorithm

Since vehicle velocity data are affected by various environmental and equipment factors, we use the velocity data read by the OBD interface on the vehicle as the reference standard. We establish a velocity calibration model based on a particle swarm optimization neural network algorithm and incorporate various types of data influenced by environmental factors. In order to preserve the diversity of velocity data acquisition methods using electronic registration identification of motor vehicles, the source of the velocity data comes from data collected by the electronic registration identification of the motor vehicle reader/writer on vehicles in the lane of interest and in other lanes. On the two-way, eight-lane road section, the velocity of vehicles passing through the recognition section can theoretically be calculated from the data read by four electronic registration identification of motor vehicle readers/writers. This completes the detection network of electronic registration identification of motor vehicle readers/writers set up to improve the accuracy of velocity calibration. In addition, to improve the calculation efficiency of the neural network, attention is given to the distribution efficiency of sensing tasks and the collection efficiency of sensing data in the edge network in order to improve the scope of coverage and sensing efficiency of the reader application. The readers that have deployed the task distribution service will serve as the source of task distribution and continuously distribute vehicle-borne velocity detection tasks to mobile devices. During the data collection process, the vehicle-borne devices serve as the source of the velocity data detection, and the data are transmitted back to the readers involved in data collection [17, 18].


### 3.1. RBF Neural Network

The RBF neural network is an artificial neural network that uses local adjustment to perform function mapping. It has strong input and output mapping functions and is an optimal network for performing mapping functions in feed-forward networks. It has a strong nonlinear approximation capability, a simple network architecture, and a fast learning velocity. The output matrix of the hidden layer after iterative convergence has a linear relationship with the output. It is an ideal algorithm for calculating the degree of influence [19, 20].Using RBF as the “base” of the hidden unit constitutes the hidden layer space, so that the input vector can be directly mapped to the hidden space, without the need for a weighted connection. After the center point of the RBF is determined, this mapping relationship is also determined. The mapping of the hidden layer space to the output space is linear, that is, the output of the network is a linear weighted sum of the output of the hidden unit, and the weights here are the tunable parameters of the network. Here, the role of the hidden layer is to map the vector from a low dimension to a high dimension, so that the linearly inseparable case of the low dimension can become linearly separable in the high dimension. Thus, the network’s mapping from the input to the output is nonlinear, while the network’s output is linear with respect to the adjustable parameters. The weights of the network can be solved directly from the linear equations, which greatly speed up the learning and avoids local minima.In the two-staged learning process of the RBF neural network, unsupervised learning mainly determines the radial basis vector and normalized parameters of the Gaussian basis function of each node of the hidden layer based on the input samples; that is, it determines the center and variance of the hidden layer basis function. In the supervised learning phase, the weights of the hidden layer and the output layer are calculated using the least square method after determining the hidden layer parameters. The output of thei-th hidden layer of the RBF neural network is [20–22](1)hit=ϕixt−ci=exp−∑i=1nxit−ci22si2,where xt is the input vector of the network at time t, ci is the central vector of the i-th unit of the hidden layer, si is the shaper parameter of the Gaussian function, where si>0, 1≤i≤L, and L is the number of nodes of the hidden layer.The overall output of the RBF neural network is as follows:(2)y=∑i=1Lwihi,=∑i=1Lwiϕixt−ci,=HTW,where H=h1,h2,…,hLTandW=w1,w2,…,wL.For an RBF network withk input nodes, m output nodes, and n learning samples, the error objective function is(3)En=12∑k=1nλn−k∑i=1Mδin,=12∑k=1nλn−k∑i=1My¯in−yin2,=λEn−1+12∑i=1My¯in−HTnWin−12,where λ is the forgetting factor and δin, y¯in, and yin are, respectively, the error of the output node, the expected output, and the actual output.The operation performance of the RBF neural network mainly depends on the center and radial basis of the hidden layer function and the weight of the output layer. Additionally, the number and the center of hidden nodes in the RBF network are difficult to determine, which affects the accuracy of the entire network. When the selection of the training samples contains a high degree of randomness, the number of errors will increase rapidly, and it is difficult to meet requirements. These errors will contribute directly to the calculation of the predicted results. In addition, when determining these parameters, the learning strategy of the traditional RBF neural network has a great disadvantage, that is, it can only find the optimal solution in local space. If these parameters are not set properly, the accuracy of the approximation will be reduced or the network will diverge. Furthermore, since the input samples contain various types of data, including discrete values, continuous values, and missing values, the training samples are usually obtained by random extraction. The center of the RBF neural network hidden layer basis function is selected from the input sample set, which has a large dependence on the training samples. In many cases, it is difficult to reflect the true input-output relationship of the system, and it is easy for data pathology to occur when there are too many initial center points. This sample data selection dilemma is a key problem to be solved when an RBF neural network is used for nonlinear system modeling. To this end, we introduce in this paper, a particle swarm optimization algorithm to optimize the parameters of the RBF neural network, and we apply it to the numerical calibration of vehicle velocity detection based on electronic registration identification of motor vehicle reading.


### 3.2. Particle Swarm Optimization Algorithm

Particle swarm optimization (PSO) is an efficient heuristic parallel search algorithm. Since it converges rapidly during optimization and does not require gradient information of the objective function, it enjoys the advantage of being simple and easy to implement, and thus has been applied in the field of engineering technology [23, 24].The solution of the PSO algorithm for the optimization problem is abstracted as an entity, the “particle,” without weight and volume. Each particle has a fitness value determined by the optimized function, and this value is searched in the search space at a certain velocity through the cooperation and competition among the particles. The specific process is to first initialize a group of random particles; these particles update their velocity and position by tracking the two optimal particles. The two optimal particles are the individual optimal particle (the optimal solution found by the particle itself, known as the individual optimal position) and the global optimal particle (the optimal solution found by the entire population up to now, known as the global best position).Let the search space be ann-dimensional space and the particle swarm consists of ns particles; xit=xi,1t,xi,2t,…,xi,nt and vit=vi,1t,vi,2t,…,vi,nt are the position and velocity, respectively, of the i-th particle at time t in the search space, pit=pi,1t,pi,2t,…,pi,nt is the personal best position (referred to as pbest) of the i-th particle at time t, and git=gi,1t,pi,2t,…,gi,nt is the global best position (referred to as gbest) at time t. According to the PSO algorithm, the update formula for particle velocity and position is as follows [23–25]:(4)vi,jt+1=vi,jt+c1r1pi,jt−xi,jt+c2r2git−xi,jt,(5)xi,jt+1=xi,jt+vi,jt+1,where c1 and c2 are the learning factors or acceleration constants, respectively, for adjusting the step size of the particle flying to the personal best position and the global best position. In order to reduce the probability of the particle to flying out of the search space, the velocity of the particle in each dimension is usually limited to a certain value within the range. Also, r1 and r2 are random numbers obeying a uniform distribution in the interval 0,1, i=1,2,…,Ns, Ns is the scale of the particle swarm, and j=1,2,…,n.Traditional PSO algorithms generally follow the following steps to complete the iteration [26]: step one, initializing the velocity and position of the particle swarm; step two, calculating the fitness value of each particle in the particle swarm; step three, updating the personal best position of each particle; step four, updating the global best position of each particle; step five, updating the velocity and position of the particles and taking certain measures to ensure that the particles remain in the search space; step six, determining whether the termination conditions are met (terminate the algorithm if yes, or return to step two).However, in the updating process of the traditional PSO algorithm, the inertia weight, learning factor, and maximum velocity jointly determine the balance between the global exploration and local development capabilities of the algorithm, which has a direct impact on the search performance of the algorithm.


### 3.3. RBF Neural Network Based on Particle Swarm Optimization

The key point of the seeking process is that the parameters of the RBF neural network are combined into a particle vector by coding, and the individual optimal value and the global optimal value of particles are reduced to the corresponding parameters of the RBF neural network after initialization; the individual utility extreme value of particles is calculated by comparison, and the individual optimal value and the global optimal value are updated after comparison with the current individual optimal value and the global optimal value. Finally, the global optimal solution is decoded, restored to the parameters of the network, and the RBF network prediction is carried out. Before neural network training, the convergence of the RBF neural network can be ensured by normalizing all sample data.By combining the calibration requirement vehicle velocity detection data using electronic registration identification of motor vehicles with characteristics of PSO and the RBF neural network, we arrived at the following procedure for optimizing the kernel function parameter of the RBF neural network with the PSO algorithm:Step 1. Data Normalization Processing. In order to improve the generalization ability, the convergence velocity, the correlation between influencing factors, and the fitting effect of the neural network, we use a maximum and minimum value method to normalize the sample data to the 0,1 range: yk=xk−minxn/maxxn−minxn,k=1,2,…,N, where minxn is the minimum value of the sample data and maxxn is the maximum value of the sample data.Step 2. The particle swarm and the neural network are initialized, the scale is determined, i.e., the dimension of the particle swarm, and the mapping is established between the dimensional space of the PSO particles and the connection weight of the neural network. The population size is set as Ns and the maximum number of iterations as Tmax. The population location matrix Randx and the velocity matrix Randv are randomly generated as follows:(6)Randx=x1,1⋯x1,M⋮⋮xN,1⋯xN,M,Randv=v1,1⋯v1,M⋮⋮vN,1⋯vN,M,(7)xi,jt+1=xmint+xmaxt−xmint×Randx,(8)vi,jt+1=−vmaxt+2vmaxt×Randv,whereM=kn+1, k is the number of nodes in the hidden layer, n is the dimension of the input feature vector, xi,ji=1,2,…,N;j=1,2,…,M represents the j-th dimension component of the i-th particle position vector, xi,1,xi,2,…,xi,M corresponds to the radial basis parameter of the RBF neural network, representing the j-th dimension component of the velocity vector of the i-th particle, and the value of vmaxt is related to xmaxt and xmint.Step 3. The fitness of each particle is calculated, the mean square error of the neural network is used as the fitness function of PSO. The fitness function is a measure of the position of particles in space. The greater the value of the fitness function, the better the position of the particle. It is defined as follows:(9)FitnessFunci=11+Dxi,1,xi,2,…,xi,M,whereFitnessFunci is the fitness function value of the i-th particle and Dxi,1,xi,2,…,xi,M is the sum of the average errors squared of the neural network when the kernel function parameter is equal to xi,1,xi,2,…,xi,M.Step 4. For each particle, its fitness is compared with the fitness of the best location it has experienced, and if the former is better, pbest is updated.Step 5. For each particle, its fitness is compared with the fitness of the best location experienced by the swarm, and if the former is better, gbest is updated.Step 6. The velocity and position of the particles are updated, and dynamic adaptive adjustment is performed using the inertial weights. Steps 3 through 5 are repeated until the calculation requirements are met. When the algorithm iteration stops, the weights and thresholds of the neural network correspond to the global optimum, which is the optimal solution to the problem.Step 7. The vehicle velocity data are calibrated using the trained RBF neural network while simultaneously assessing the accuracy of the velocity data.


### 3.4. Numerical Optimization of Multireader Velocity Data Using Mobile Edge Computing

The shortcomings of the RBF neural network, including the local optima and the effects on PSO by inertial weight, learning factor, and maximum velocity, have direct impact on the calibration results in the probability sense. In order to further improve the accuracy of velocity calibration, the capability of having multiple readers simultaneously implementing velocity detection of the same electronic registration identification of the motor vehicle tag had been achieved before our study was conducted. After each reader/writer calibrates the velocity data using the RBF neural network based on the particle swarm optimization algorithm, the k-means method is used to find the cluster center value of different reader/writer values as the final velocity calibration value. The calculation method is as follows.Assuming that the cluster partitioning isc1,c2,…,ck, the goal is to minimize the squared error E:(10)E=∑i=1k∑x∈Cix−μi2,where μi is the mean vector of cluster Ci and μi=1/Ci∑x∈Cix.In order to improve the computing efficiency of the reader/writer, the emphasis of the optimization algorithm is placed on the distribution efficiency of the sensing tasks and the collection efficiency of the sensing data in the edge network of the reader/writer. By designating a certain reader/writer as the main computing reader/writer, readers/writers already deployed for task distribution services will serve as sources for task distribution in the task distribution computation process. The main computing reader/writer will continually distribute the vehicle terminal velocity detection computing tasks to different readers. During the data collection and optimization process, all the readers/writers serve as the source of vehicle-borne devices in acquiring data and return the data of completed computing tasks to the main computing reader/writer for final calculation.


## 3.1. RBF Neural Network

The RBF neural network is an artificial neural network that uses local adjustment to perform function mapping. It has strong input and output mapping functions and is an optimal network for performing mapping functions in feed-forward networks. It has a strong nonlinear approximation capability, a simple network architecture, and a fast learning velocity. The output matrix of the hidden layer after iterative convergence has a linear relationship with the output. It is an ideal algorithm for calculating the degree of influence [19, 20].Using RBF as the “base” of the hidden unit constitutes the hidden layer space, so that the input vector can be directly mapped to the hidden space, without the need for a weighted connection. After the center point of the RBF is determined, this mapping relationship is also determined. The mapping of the hidden layer space to the output space is linear, that is, the output of the network is a linear weighted sum of the output of the hidden unit, and the weights here are the tunable parameters of the network. Here, the role of the hidden layer is to map the vector from a low dimension to a high dimension, so that the linearly inseparable case of the low dimension can become linearly separable in the high dimension. Thus, the network’s mapping from the input to the output is nonlinear, while the network’s output is linear with respect to the adjustable parameters. The weights of the network can be solved directly from the linear equations, which greatly speed up the learning and avoids local minima.In the two-staged learning process of the RBF neural network, unsupervised learning mainly determines the radial basis vector and normalized parameters of the Gaussian basis function of each node of the hidden layer based on the input samples; that is, it determines the center and variance of the hidden layer basis function. In the supervised learning phase, the weights of the hidden layer and the output layer are calculated using the least square method after determining the hidden layer parameters. The output of thei-th hidden layer of the RBF neural network is [20–22](1)hit=ϕixt−ci=exp−∑i=1nxit−ci22si2,where xt is the input vector of the network at time t, ci is the central vector of the i-th unit of the hidden layer, si is the shaper parameter of the Gaussian function, where si>0, 1≤i≤L, and L is the number of nodes of the hidden layer.The overall output of the RBF neural network is as follows:(2)y=∑i=1Lwihi,=∑i=1Lwiϕixt−ci,=HTW,where H=h1,h2,…,hLTandW=w1,w2,…,wL.For an RBF network withk input nodes, m output nodes, and n learning samples, the error objective function is(3)En=12∑k=1nλn−k∑i=1Mδin,=12∑k=1nλn−k∑i=1My¯in−yin2,=λEn−1+12∑i=1My¯in−HTnWin−12,where λ is the forgetting factor and δin, y¯in, and yin are, respectively, the error of the output node, the expected output, and the actual output.The operation performance of the RBF neural network mainly depends on the center and radial basis of the hidden layer function and the weight of the output layer. Additionally, the number and the center of hidden nodes in the RBF network are difficult to determine, which affects the accuracy of the entire network. When the selection of the training samples contains a high degree of randomness, the number of errors will increase rapidly, and it is difficult to meet requirements. These errors will contribute directly to the calculation of the predicted results. In addition, when determining these parameters, the learning strategy of the traditional RBF neural network has a great disadvantage, that is, it can only find the optimal solution in local space. If these parameters are not set properly, the accuracy of the approximation will be reduced or the network will diverge. Furthermore, since the input samples contain various types of data, including discrete values, continuous values, and missing values, the training samples are usually obtained by random extraction. The center of the RBF neural network hidden layer basis function is selected from the input sample set, which has a large dependence on the training samples. In many cases, it is difficult to reflect the true input-output relationship of the system, and it is easy for data pathology to occur when there are too many initial center points. This sample data selection dilemma is a key problem to be solved when an RBF neural network is used for nonlinear system modeling. To this end, we introduce in this paper, a particle swarm optimization algorithm to optimize the parameters of the RBF neural network, and we apply it to the numerical calibration of vehicle velocity detection based on electronic registration identification of motor vehicle reading.


## 3.2. Particle Swarm Optimization Algorithm

Particle swarm optimization (PSO) is an efficient heuristic parallel search algorithm. Since it converges rapidly during optimization and does not require gradient information of the objective function, it enjoys the advantage of being simple and easy to implement, and thus has been applied in the field of engineering technology [23, 24].The solution of the PSO algorithm for the optimization problem is abstracted as an entity, the “particle,” without weight and volume. Each particle has a fitness value determined by the optimized function, and this value is searched in the search space at a certain velocity through the cooperation and competition among the particles. The specific process is to first initialize a group of random particles; these particles update their velocity and position by tracking the two optimal particles. The two optimal particles are the individual optimal particle (the optimal solution found by the particle itself, known as the individual optimal position) and the global optimal particle (the optimal solution found by the entire population up to now, known as the global best position).Let the search space be ann-dimensional space and the particle swarm consists of ns particles; xit=xi,1t,xi,2t,…,xi,nt and vit=vi,1t,vi,2t,…,vi,nt are the position and velocity, respectively, of the i-th particle at time t in the search space, pit=pi,1t,pi,2t,…,pi,nt is the personal best position (referred to as pbest) of the i-th particle at time t, and git=gi,1t,pi,2t,…,gi,nt is the global best position (referred to as gbest) at time t. According to the PSO algorithm, the update formula for particle velocity and position is as follows [23–25]:(4)vi,jt+1=vi,jt+c1r1pi,jt−xi,jt+c2r2git−xi,jt,(5)xi,jt+1=xi,jt+vi,jt+1,where c1 and c2 are the learning factors or acceleration constants, respectively, for adjusting the step size of the particle flying to the personal best position and the global best position. In order to reduce the probability of the particle to flying out of the search space, the velocity of the particle in each dimension is usually limited to a certain value within the range. Also, r1 and r2 are random numbers obeying a uniform distribution in the interval 0,1, i=1,2,…,Ns, Ns is the scale of the particle swarm, and j=1,2,…,n.Traditional PSO algorithms generally follow the following steps to complete the iteration [26]: step one, initializing the velocity and position of the particle swarm; step two, calculating the fitness value of each particle in the particle swarm; step three, updating the personal best position of each particle; step four, updating the global best position of each particle; step five, updating the velocity and position of the particles and taking certain measures to ensure that the particles remain in the search space; step six, determining whether the termination conditions are met (terminate the algorithm if yes, or return to step two).However, in the updating process of the traditional PSO algorithm, the inertia weight, learning factor, and maximum velocity jointly determine the balance between the global exploration and local development capabilities of the algorithm, which has a direct impact on the search performance of the algorithm.


## 3.3. RBF Neural Network Based on Particle Swarm Optimization

The key point of the seeking process is that the parameters of the RBF neural network are combined into a particle vector by coding, and the individual optimal value and the global optimal value of particles are reduced to the corresponding parameters of the RBF neural network after initialization; the individual utility extreme value of particles is calculated by comparison, and the individual optimal value and the global optimal value are updated after comparison with the current individual optimal value and the global optimal value. Finally, the global optimal solution is decoded, restored to the parameters of the network, and the RBF network prediction is carried out. Before neural network training, the convergence of the RBF neural network can be ensured by normalizing all sample data.By combining the calibration requirement vehicle velocity detection data using electronic registration identification of motor vehicles with characteristics of PSO and the RBF neural network, we arrived at the following procedure for optimizing the kernel function parameter of the RBF neural network with the PSO algorithm:Step 1. Data Normalization Processing. In order to improve the generalization ability, the convergence velocity, the correlation between influencing factors, and the fitting effect of the neural network, we use a maximum and minimum value method to normalize the sample data to the 0,1 range: yk=xk−minxn/maxxn−minxn,k=1,2,…,N, where minxn is the minimum value of the sample data and maxxn is the maximum value of the sample data.Step 2. The particle swarm and the neural network are initialized, the scale is determined, i.e., the dimension of the particle swarm, and the mapping is established between the dimensional space of the PSO particles and the connection weight of the neural network. The population size is set as Ns and the maximum number of iterations as Tmax. The population location matrix Randx and the velocity matrix Randv are randomly generated as follows:(6)Randx=x1,1⋯x1,M⋮⋮xN,1⋯xN,M,Randv=v1,1⋯v1,M⋮⋮vN,1⋯vN,M,(7)xi,jt+1=xmint+xmaxt−xmint×Randx,(8)vi,jt+1=−vmaxt+2vmaxt×Randv,whereM=kn+1, k is the number of nodes in the hidden layer, n is the dimension of the input feature vector, xi,ji=1,2,…,N;j=1,2,…,M represents the j-th dimension component of the i-th particle position vector, xi,1,xi,2,…,xi,M corresponds to the radial basis parameter of the RBF neural network, representing the j-th dimension component of the velocity vector of the i-th particle, and the value of vmaxt is related to xmaxt and xmint.Step 3. The fitness of each particle is calculated, the mean square error of the neural network is used as the fitness function of PSO. The fitness function is a measure of the position of particles in space. The greater the value of the fitness function, the better the position of the particle. It is defined as follows:(9)FitnessFunci=11+Dxi,1,xi,2,…,xi,M,whereFitnessFunci is the fitness function value of the i-th particle and Dxi,1,xi,2,…,xi,M is the sum of the average errors squared of the neural network when the kernel function parameter is equal to xi,1,xi,2,…,xi,M.Step 4. For each particle, its fitness is compared with the fitness of the best location it has experienced, and if the former is better, pbest is updated.Step 5. For each particle, its fitness is compared with the fitness of the best location experienced by the swarm, and if the former is better, gbest is updated.Step 6. The velocity and position of the particles are updated, and dynamic adaptive adjustment is performed using the inertial weights. Steps 3 through 5 are repeated until the calculation requirements are met. When the algorithm iteration stops, the weights and thresholds of the neural network correspond to the global optimum, which is the optimal solution to the problem.Step 7. The vehicle velocity data are calibrated using the trained RBF neural network while simultaneously assessing the accuracy of the velocity data.


## 3.4. Numerical Optimization of Multireader Velocity Data Using Mobile Edge Computing

The shortcomings of the RBF neural network, including the local optima and the effects on PSO by inertial weight, learning factor, and maximum velocity, have direct impact on the calibration results in the probability sense. In order to further improve the accuracy of velocity calibration, the capability of having multiple readers simultaneously implementing velocity detection of the same electronic registration identification of the motor vehicle tag had been achieved before our study was conducted. After each reader/writer calibrates the velocity data using the RBF neural network based on the particle swarm optimization algorithm, the k-means method is used to find the cluster center value of different reader/writer values as the final velocity calibration value. The calculation method is as follows.Assuming that the cluster partitioning isc1,c2,…,ck, the goal is to minimize the squared error E:(10)E=∑i=1k∑x∈Cix−μi2,where μi is the mean vector of cluster Ci and μi=1/Ci∑x∈Cix.In order to improve the computing efficiency of the reader/writer, the emphasis of the optimization algorithm is placed on the distribution efficiency of the sensing tasks and the collection efficiency of the sensing data in the edge network of the reader/writer. By designating a certain reader/writer as the main computing reader/writer, readers/writers already deployed for task distribution services will serve as sources for task distribution in the task distribution computation process. The main computing reader/writer will continually distribute the vehicle terminal velocity detection computing tasks to different readers. During the data collection and optimization process, all the readers/writers serve as the source of vehicle-borne devices in acquiring data and return the data of completed computing tasks to the main computing reader/writer for final calculation.


## 4. Tests and Results

### 4.1. Test Method and Data Description

The tests were conducted in a road section where the electronic registration identification of the motor vehicle reader has already been installed for testing. The road was a two-way, eight-lane urban expressway, with a gantry equipped with internet-connected testing instruments. There were eight sets of electronic registration identification of the motor vehicles readers, with each traffic lane aligned with at least one reader for direct acquisition of the electronic registration identification of motor vehicle data in the vertical direction.Since the automobile electronic registration identification of the motor vehicle reader has already acquired the capability of group acquisition, data can be collected simultaneously when multiple electronic registration identification of motor vehicles pass through at the same time, and we placed 1000 electronic registration identification of motor vehicles simultaneously on the test vehicles and scattered them at different locations inside the vehicles. In this manner, we demonstrated the interference immunity performance between the electronic registration identification of motor vehicles.The data read by the OBD interface on the vehicle is the true velocity of the moving vehicle. With the temporal data of the OBD interface synchronized with the temporal data of the reader, we selected three sedans as test vehicles, each carrying 1000 automotive electronic registration identification of motor vehicle cards, to pass under the gantry’s readers with different velocity. The sample data set was formed with the data read from the 1000 vehicle-borne electronic registration identification of motor vehicles as the input, with the actual velocity data read by the OBD interface as the output, all matched with the time data. It should be noted that when the vehicles passed under the gantry, the velocity data of the electronic registration identification of motor vehicles in the vehicles were read by multiple readers, and each electronic registration identification of motor vehicles can form velocity data in different readers. The final complete sample data set was obtained by testing the three sedans in different lanes at different velocity, and with the data from repeated tests matched. A comparison of the true values of the velocity and the measured values of the velocity is shown in Figure3. The abscissa is for the measured value of the velocity and the ordinate is for the true value of the velocity. If the two values are the same, the point falls on the straight line of y=x. If the true value is less than the measured value, the point falls below the straight line, and vice versa.Figure 3
Actual velocity value and the detected velocity value.Based on the data distribution shown in Figure3, the differences between the true velocity and the measured velocity are shown in Figure 4.Figure 4
The error distribution.


### 4.2. Test Results and Analysis

The experimental results show that the best effect is that the number of hidden layer centers of the RBF neural network is 9, and the network structure is 4-12-1. PSO algorithm parameters are divided intoc1=c2=2.0, the number of particle population is 46, and the maximum times of iterations is set to 500. Before neural network training, the convergence of the RBF neural network can be ensured by normalizing all sample data. After many experiments, when the control accuracy is 0.005, the average times of iterations using only the RBF neural network is about 320, while the average times of iterations using the PSO-RBF neural network is about 95.The errors in the collected detection data reflects the difference between the data collected by the traditional velocity detection method and the true values. Most of the data had an error rate within 5%, which can fully meet the needs of practical applications; to a certain extent, this is better than the error rate of video, geomagnetic, and other methods for collecting velocity data and is closer to the needs of practical applications. However, in some industries or specific applications, detected data need to be closer to the actual velocity, and higher requirements for controlling the data error rate are imposed. In this paper, we use the particle swarm optimization neural network method to calibrate the velocity detected with electronic registration identification of motor vehicles so as to obtain a detected velocity that is closer to the actual data.Test data for different velocity and different lanes were screened for perfect time matches; a total of 11086 sets of complete data were obtained. The data acquired for the eight lanes showed an approximately uniform distribution. It should be noted that since the driver can only control the velocity at a certain interval when driving the vehicle through the gantry and the velocity on urban expressways is not less than 20 km/h, all data values below 20 km/h were discarded. In the meantime, requirements for safe driving forbids drivers from driving over 100 km/h under normal circumstances (although the electronic registration identification of motor vehicle readers/writers can accurately detect velocities up to 180 km/h), and therefore no tests were carried out over 100 km/h.Using the same display method as in Figure3, the actual velocity and the detected velocity are displayed for four lanes of the selected side of the road (Figure 5). Figures 5(a)–5(d) show, respectively, the velocity values of vehicles on the four lanes. The lane in Figure 5(a) is the closest to the center line of the road.Figure 5
Actual velocity value and the detected velocity value for four different lanes.
(a)(b)(c)(d)It can be seen from Figure5 that, after the detection position of the electronic registration identification of the motor vehicle reader is fixed on the gantry, the detection results are also relatively fixed; detection in different lanes would not cause a large difference. However, since all the velocity values are detected by hardware, the velocity calculation method belongs to a generic algorithm. As long as its error is within a preset range, it meets the user requirement. For this reason, the error rate is still too high for certain specific applications. In addition, the distribution results of the detected velocity also showed that the errors of the two lanes near the center line and the emergency lane are slightly higher than that of the middle two lanes. It can also be seen that the faster the velocity, the lower the error. And, the errors are slightly larger at lower velocities.The tests are conducted on a selected middle lane, and the velocity detection results are calibrated using the following methods. The RBF neural network is based on particle swarm optimization, and multireader/writer velocity values are optimized with the RBF neural network based on PSO. The calibration results are shown in Figures6–9.Figure 6
Actual velocity value and the detected velocity value for one lane.Figure 7
Actual velocity value and the detected velocity value calibrating based on the RBF neural network.Figure 8
Actual velocity value and the detected velocity value calibrating based on the RBF neural network based on particle swarm optimization.Figure 9
Actual velocity value and the detected velocity value calibrating based on numerical optimization of multireader velocity based on the particle swarm-optimized RBF neural network.As can be seen from Figures6–9, the optimal output calibration result is the value of the multireader velocity with numerical optimization based on the particle swarm-optimized RBF neural network. Especially in the low-velocity stage, the detected velocity value can be better calibrated, and the velocity error value can be further reduced. The four scatter plots above show that, in the 25–40 km/h range, the detected velocity values and the actual velocity values are greater than those in other regions. The mean square error value for all data is 0.0965, and the Pearson coefficient r=∑xi−x¯yi−y¯/∑xi−x¯2∑yi−y¯2, a measure of correlation, is calculated to be 0.9301.In order to further compare the differences in the calibration process of velocity detection in different lanes, we statistically analyzed all the test data. The statistical results are shown in Table1. It should be noted that in the second column of the table, labeled “optimization algorithm,” “uncalibrated” represents data obtained without calibration, “Algorithm 1” represents the detected velocity output value calibrated by the RBF neural network, “Algorithm 2” represents the detected velocity output value calibrated by the RBF neural network based on particle swarm optimization, and “Algorithm 3” represents the detected velocity output value calibrated by the RBF neural network based on particle swarm optimization and on multireader velocity numerical optimization.Table 1
The calibration results of detected velocity values under different algorithms.
Lane number (number of samples)Optimization methodNumber of samples with error ≤1%Proportion of samples with error ≤1%Number of samples with error ≤3%Proportion of samples with error ≤3%Number of samples with error ≤5%Proportion of samples with error ≤5%Number of samples with error >5%Proportion of samples with error >5%Lane no. 1 (1256)Uncalibrated28422.6153942.9179863.5445836.46Algorithm 130224.0467453.6687869.9037830.10Algorithm 233226.4369955.6590972.3734727.63Algorithm 338630.7375960.43105383.8420316.16Lane no. 2 (1432)Uncalibrated33223.1868347.7099569.4843730.52Algorithm 139927.8679655.59109276.2634023.74Algorithm 244831.2880756.35124586.9418713.06Algorithm 349834.7889362.36132392.391097.61Lane no. 3 (1494)Uncalibrated35323.6369846.72100267.0749232.93Algorithm 138725.9076951.47110473.9039026.10Algorithm 247231.5982154.95126584.6722915.33Algorithm 353135.5490160.31137692.101187.90Lane no. 4 (1379)Uncalibrated30121.8359242.9387963.7450036.26Algorithm 134424.9567348.8095369.1142630.89Algorithm 238027.5673353.15103474.9834525.02Algorithm 341329.9585361.86114382.8923617.11Lane no. 5 (1402)Uncalibrated26719.0458241.5194967.6945332.31Algorithm 130922.0467247.93101272.1839027.82Algorithm 235024.9674953.42104474.4735825.53Algorithm 340128.6082959.13109778.2530521.75Lane no. 6 (1386)Uncalibrated34124.6060343.51101573.2337126.77Algorithm 142230.4569249.93109879.2228820.78Algorithm 247834.4979557.36116483.9822216.02Algorithm 350336.2983260.03126791.411198.59Lane no. 7 (1429)Uncalibrated33223.2358641.0199869.8443130.16Algorithm 144130.8668948.22108676.0034324.00Algorithm 247633.3180756.47123986.7019013.30Algorithm 351335.9084158.85130291.111278.89Lane no. 8 (1308)Uncalibrated29022.1749037.4687867.1343032.87Algorithm 130423.2457243.7395472.9435427.06Algorithm 234326.2268952.68100376.6830523.32Algorithm 337628.7577259.02109783.8721116.13Table1 lists the calibration results of the detected velocity values for different lanes using different algorithms. As far as the trend of calibration accuracy is concerned, the accuracy of the data from the one-way middle lane is relatively high. For detected velocity values calibrated with multireader numerical optimization based on the PS-optimized RBF neural network, the percentages of data with errors less than or equal to 5% are 92.39%, 92.10%, 91.41%, and 91.11% for lane nos. 2, 3, 6, and 7, respectively. The average percentage of data with errors less than or equal to 5% is 91.76% for the middle lane, 82.13% for the edge lane, and 87.12% for all lanes combined. In terms of actual applications, results with an error rate less than 10% have an application value, and the calibrated velocity detection data have met this requirement. A lower error rate not only is indicative of the method’s application value, but also reflects the real traffic condition more realistically. In the comprehensive statistical analysis of the error rate of the detected velocity value, the rate for the middle lane is lower than that for the edge lane. After calibration, the error values for different testing velocities are statistically consistent.We calculated the mean square error and the Pearson coefficient of the detected and calibrated velocity values with multireader numerical optimization based on the PS-optimized RBF neural network. From lane nos. 1 through 8, the mean square error values are 0.0856, 0.0653, 0.0623, 0.0841, 0.0901, 0.0679, 0.0688, and 0.0831, respectively; the corresponding Pearson coefficients are 0.9116, 0.9412, 0.9332, 0.9193, 0.9113, 0.9401, 0.939, and 0.9128, respectively. The mean square error value and the Pearson coefficient value both demonstrate that the velocity calibration value in the middle lane is accurate.To further analyze the test results, we plot in Figure10 the error values of the uncalibrated detected velocity values and compare them with the error values of the calibrated detected velocity values using multireader numerical optimization based on the particle swarm optimization of the RBF neural network. The blue circle represents the error value of the uncalibrated detected velocity values and the red circle represents the error of the detected velocity values calibrated by the RBF neural network based on particle swarm optimization after multireader numerical optimization.Figure 10
The calibration error distribution.The scatter plot of the error distribution for the uncalibrated and calibrated detected velocity values shows that the algorithm proposed here can achieve accurate calibration of the velocity detected by electronic registration identification of motor vehicles and that the error value can be controlled within an acceptable range. In actual application, if the various influencing factors are fully considered, including the external environment, electromagnetic interference, windshield material, angle, different vehicle types, presence of film, decal placement location, and other interference factors, then the test results can accurately reflect the value of the real velocity, and the algorithm can provide data even closer to the real situation of practical application scenarios for improving traffic management efficiency such as in traffic rule enforcement, traffic status detection, traffic congestion index calculation, and navigation and parking guidance.


## 4.1. Test Method and Data Description

The tests were conducted in a road section where the electronic registration identification of the motor vehicle reader has already been installed for testing. The road was a two-way, eight-lane urban expressway, with a gantry equipped with internet-connected testing instruments. There were eight sets of electronic registration identification of the motor vehicles readers, with each traffic lane aligned with at least one reader for direct acquisition of the electronic registration identification of motor vehicle data in the vertical direction.Since the automobile electronic registration identification of the motor vehicle reader has already acquired the capability of group acquisition, data can be collected simultaneously when multiple electronic registration identification of motor vehicles pass through at the same time, and we placed 1000 electronic registration identification of motor vehicles simultaneously on the test vehicles and scattered them at different locations inside the vehicles. In this manner, we demonstrated the interference immunity performance between the electronic registration identification of motor vehicles.The data read by the OBD interface on the vehicle is the true velocity of the moving vehicle. With the temporal data of the OBD interface synchronized with the temporal data of the reader, we selected three sedans as test vehicles, each carrying 1000 automotive electronic registration identification of motor vehicle cards, to pass under the gantry’s readers with different velocity. The sample data set was formed with the data read from the 1000 vehicle-borne electronic registration identification of motor vehicles as the input, with the actual velocity data read by the OBD interface as the output, all matched with the time data. It should be noted that when the vehicles passed under the gantry, the velocity data of the electronic registration identification of motor vehicles in the vehicles were read by multiple readers, and each electronic registration identification of motor vehicles can form velocity data in different readers. The final complete sample data set was obtained by testing the three sedans in different lanes at different velocity, and with the data from repeated tests matched. A comparison of the true values of the velocity and the measured values of the velocity is shown in Figure3. The abscissa is for the measured value of the velocity and the ordinate is for the true value of the velocity. If the two values are the same, the point falls on the straight line of y=x. If the true value is less than the measured value, the point falls below the straight line, and vice versa.Figure 3
Actual velocity value and the detected velocity value.Based on the data distribution shown in Figure3, the differences between the true velocity and the measured velocity are shown in Figure 4.Figure 4
The error distribution.


## 4.2. Test Results and Analysis

The experimental results show that the best effect is that the number of hidden layer centers of the RBF neural network is 9, and the network structure is 4-12-1. PSO algorithm parameters are divided intoc1=c2=2.0, the number of particle population is 46, and the maximum times of iterations is set to 500. Before neural network training, the convergence of the RBF neural network can be ensured by normalizing all sample data. After many experiments, when the control accuracy is 0.005, the average times of iterations using only the RBF neural network is about 320, while the average times of iterations using the PSO-RBF neural network is about 95.The errors in the collected detection data reflects the difference between the data collected by the traditional velocity detection method and the true values. Most of the data had an error rate within 5%, which can fully meet the needs of practical applications; to a certain extent, this is better than the error rate of video, geomagnetic, and other methods for collecting velocity data and is closer to the needs of practical applications. However, in some industries or specific applications, detected data need to be closer to the actual velocity, and higher requirements for controlling the data error rate are imposed. In this paper, we use the particle swarm optimization neural network method to calibrate the velocity detected with electronic registration identification of motor vehicles so as to obtain a detected velocity that is closer to the actual data.Test data for different velocity and different lanes were screened for perfect time matches; a total of 11086 sets of complete data were obtained. The data acquired for the eight lanes showed an approximately uniform distribution. It should be noted that since the driver can only control the velocity at a certain interval when driving the vehicle through the gantry and the velocity on urban expressways is not less than 20 km/h, all data values below 20 km/h were discarded. In the meantime, requirements for safe driving forbids drivers from driving over 100 km/h under normal circumstances (although the electronic registration identification of motor vehicle readers/writers can accurately detect velocities up to 180 km/h), and therefore no tests were carried out over 100 km/h.Using the same display method as in Figure3, the actual velocity and the detected velocity are displayed for four lanes of the selected side of the road (Figure 5). Figures 5(a)–5(d) show, respectively, the velocity values of vehicles on the four lanes. The lane in Figure 5(a) is the closest to the center line of the road.Figure 5
Actual velocity value and the detected velocity value for four different lanes.
(a)(b)(c)(d)It can be seen from Figure5 that, after the detection position of the electronic registration identification of the motor vehicle reader is fixed on the gantry, the detection results are also relatively fixed; detection in different lanes would not cause a large difference. However, since all the velocity values are detected by hardware, the velocity calculation method belongs to a generic algorithm. As long as its error is within a preset range, it meets the user requirement. For this reason, the error rate is still too high for certain specific applications. In addition, the distribution results of the detected velocity also showed that the errors of the two lanes near the center line and the emergency lane are slightly higher than that of the middle two lanes. It can also be seen that the faster the velocity, the lower the error. And, the errors are slightly larger at lower velocities.The tests are conducted on a selected middle lane, and the velocity detection results are calibrated using the following methods. The RBF neural network is based on particle swarm optimization, and multireader/writer velocity values are optimized with the RBF neural network based on PSO. The calibration results are shown in Figures6–9.Figure 6
Actual velocity value and the detected velocity value for one lane.Figure 7
Actual velocity value and the detected velocity value calibrating based on the RBF neural network.Figure 8
Actual velocity value and the detected velocity value calibrating based on the RBF neural network based on particle swarm optimization.Figure 9
Actual velocity value and the detected velocity value calibrating based on numerical optimization of multireader velocity based on the particle swarm-optimized RBF neural network.As can be seen from Figures6–9, the optimal output calibration result is the value of the multireader velocity with numerical optimization based on the particle swarm-optimized RBF neural network. Especially in the low-velocity stage, the detected velocity value can be better calibrated, and the velocity error value can be further reduced. The four scatter plots above show that, in the 25–40 km/h range, the detected velocity values and the actual velocity values are greater than those in other regions. The mean square error value for all data is 0.0965, and the Pearson coefficient r=∑xi−x¯yi−y¯/∑xi−x¯2∑yi−y¯2, a measure of correlation, is calculated to be 0.9301.In order to further compare the differences in the calibration process of velocity detection in different lanes, we statistically analyzed all the test data. The statistical results are shown in Table1. It should be noted that in the second column of the table, labeled “optimization algorithm,” “uncalibrated” represents data obtained without calibration, “Algorithm 1” represents the detected velocity output value calibrated by the RBF neural network, “Algorithm 2” represents the detected velocity output value calibrated by the RBF neural network based on particle swarm optimization, and “Algorithm 3” represents the detected velocity output value calibrated by the RBF neural network based on particle swarm optimization and on multireader velocity numerical optimization.Table 1
The calibration results of detected velocity values under different algorithms.
Lane number (number of samples)Optimization methodNumber of samples with error ≤1%Proportion of samples with error ≤1%Number of samples with error ≤3%Proportion of samples with error ≤3%Number of samples with error ≤5%Proportion of samples with error ≤5%Number of samples with error >5%Proportion of samples with error >5%Lane no. 1 (1256)Uncalibrated28422.6153942.9179863.5445836.46Algorithm 130224.0467453.6687869.9037830.10Algorithm 233226.4369955.6590972.3734727.63Algorithm 338630.7375960.43105383.8420316.16Lane no. 2 (1432)Uncalibrated33223.1868347.7099569.4843730.52Algorithm 139927.8679655.59109276.2634023.74Algorithm 244831.2880756.35124586.9418713.06Algorithm 349834.7889362.36132392.391097.61Lane no. 3 (1494)Uncalibrated35323.6369846.72100267.0749232.93Algorithm 138725.9076951.47110473.9039026.10Algorithm 247231.5982154.95126584.6722915.33Algorithm 353135.5490160.31137692.101187.90Lane no. 4 (1379)Uncalibrated30121.8359242.9387963.7450036.26Algorithm 134424.9567348.8095369.1142630.89Algorithm 238027.5673353.15103474.9834525.02Algorithm 341329.9585361.86114382.8923617.11Lane no. 5 (1402)Uncalibrated26719.0458241.5194967.6945332.31Algorithm 130922.0467247.93101272.1839027.82Algorithm 235024.9674953.42104474.4735825.53Algorithm 340128.6082959.13109778.2530521.75Lane no. 6 (1386)Uncalibrated34124.6060343.51101573.2337126.77Algorithm 142230.4569249.93109879.2228820.78Algorithm 247834.4979557.36116483.9822216.02Algorithm 350336.2983260.03126791.411198.59Lane no. 7 (1429)Uncalibrated33223.2358641.0199869.8443130.16Algorithm 144130.8668948.22108676.0034324.00Algorithm 247633.3180756.47123986.7019013.30Algorithm 351335.9084158.85130291.111278.89Lane no. 8 (1308)Uncalibrated29022.1749037.4687867.1343032.87Algorithm 130423.2457243.7395472.9435427.06Algorithm 234326.2268952.68100376.6830523.32Algorithm 337628.7577259.02109783.8721116.13Table1 lists the calibration results of the detected velocity values for different lanes using different algorithms. As far as the trend of calibration accuracy is concerned, the accuracy of the data from the one-way middle lane is relatively high. For detected velocity values calibrated with multireader numerical optimization based on the PS-optimized RBF neural network, the percentages of data with errors less than or equal to 5% are 92.39%, 92.10%, 91.41%, and 91.11% for lane nos. 2, 3, 6, and 7, respectively. The average percentage of data with errors less than or equal to 5% is 91.76% for the middle lane, 82.13% for the edge lane, and 87.12% for all lanes combined. In terms of actual applications, results with an error rate less than 10% have an application value, and the calibrated velocity detection data have met this requirement. A lower error rate not only is indicative of the method’s application value, but also reflects the real traffic condition more realistically. In the comprehensive statistical analysis of the error rate of the detected velocity value, the rate for the middle lane is lower than that for the edge lane. After calibration, the error values for different testing velocities are statistically consistent.We calculated the mean square error and the Pearson coefficient of the detected and calibrated velocity values with multireader numerical optimization based on the PS-optimized RBF neural network. From lane nos. 1 through 8, the mean square error values are 0.0856, 0.0653, 0.0623, 0.0841, 0.0901, 0.0679, 0.0688, and 0.0831, respectively; the corresponding Pearson coefficients are 0.9116, 0.9412, 0.9332, 0.9193, 0.9113, 0.9401, 0.939, and 0.9128, respectively. The mean square error value and the Pearson coefficient value both demonstrate that the velocity calibration value in the middle lane is accurate.To further analyze the test results, we plot in Figure10 the error values of the uncalibrated detected velocity values and compare them with the error values of the calibrated detected velocity values using multireader numerical optimization based on the particle swarm optimization of the RBF neural network. The blue circle represents the error value of the uncalibrated detected velocity values and the red circle represents the error of the detected velocity values calibrated by the RBF neural network based on particle swarm optimization after multireader numerical optimization.Figure 10
The calibration error distribution.The scatter plot of the error distribution for the uncalibrated and calibrated detected velocity values shows that the algorithm proposed here can achieve accurate calibration of the velocity detected by electronic registration identification of motor vehicles and that the error value can be controlled within an acceptable range. In actual application, if the various influencing factors are fully considered, including the external environment, electromagnetic interference, windshield material, angle, different vehicle types, presence of film, decal placement location, and other interference factors, then the test results can accurately reflect the value of the real velocity, and the algorithm can provide data even closer to the real situation of practical application scenarios for improving traffic management efficiency such as in traffic rule enforcement, traffic status detection, traffic congestion index calculation, and navigation and parking guidance.


## 5. Conclusion

Based on vehicle velocity values collected by electronic registration identification of motor vehicles and by on-board (OBD) equipment and combined with actual application needs, we calibrated the detected velocity output value of electronic registration identification of motor vehicles using an RBF neural network, particle swarm optimization-based RBF neural network, and multireader numerical optimization based on a particle swarm-optimized RBF neural network and compared the data with that data collected by OBD. We then analyzed the errors. The method proposed here can greatly improve the accuracy of the velocity detected by the electronic registration identification of motor vehicles and make it closer to the real value through the use of an algorithm. The test results show that the results predicted by the method can more accurately reflect the actual driving velocity. The proposed method can be an important reference for improving the manufacture and application of electronic registration identification of motor vehicle software and hardware. In addition, since the two methods of data collection using electronic registration identification of motor vehicles and using on-board (OBD) devices both have their limitations, such as data acquisition cycle and time matching, the method proposed here is established on the velocity values selected from the same data by time matching. As a result, part of the time series data is incomplete, and less than 30% of all the data collected are used as test samples. With only 30% of the data, it is difficult to fit or predict velocity values using the time series method, and thus the data analyzed in this paper are slightly lacking in the time dimension. This would be one area to strengthen in future studies, and the focus should be on the fitting of velocity data with different time stamps. The fitted velocity detection data, together with the algorithm described here, would then be able to completely describe the vehicle trajectory and provide important guidance for algorithm selection and model optimization.



---

*Source: 2413564-2020-08-30.xml*