1. Introduction
Ultra wide band (UWB) localization technology [1] [2] [3] provides good location information for location-based service applications and has encouraged their widespread use. During the UWB localization process, the localization problem is treated as an optimization problem. This problem is then commonly solved using genetic optimization algorithms [4] [5] [6] or particle swarm optimization (PSO) algorithms [7] [8] [9]. Genetic optimization algorithms are typically preferred because they offer stronger global convergence and are more robust. For example, Literature [10] proposed a UWB localization algorithm based on genetic optimization, which can well realize global search. Literature [11] proposed an indoor positioning optimization algorithm combining genetic algorithm and RBF neural network to improve positioning accuracy. The fitness of an individual in the genetic optimization algorithm is a measure of the individual’s viability in a population. This is used to distinguish whether an individual is “good” or “bad”. However, for the above positioning, this is only based on the ranging information between the base station and the tag. The ranging information between tags is not considered. This amounts to an incomplete use of ranging information and limits positioning accuracy. Therefore, an improved genetic localization algorithm is proposed, which can make full use of ranging information, combined with Brownian motion search, avoid falling into a local optimal solution, and improve the convergence speed and localization accuracy.
2. Traditional Genetic Localization Algorithm
In a UWB localization system, let us assume that the location of the base station is
and the location of the tag is
. The actual distance between the
tag and the k-th base station is
and the ranging distance
is
. According to the ranging distance data, a localization equation set can be established:
(1)
where
denotes the ranging error.
If we now randomly generate N populations and let the n-th individual be located as
, from Equation (1), its fitness function will be [12]:
(2)
From Equation (2), it can be observed that the fitness function is only related to the ranging information between the tag and the base station. This conventional genetic localization algorithm can only determine the position of a single tag by genetic manipulation such as selection, crossover, and mutation operations.
3. Improved Genetic Localization Algorithm
In traditional genetic localization algorithm, the ranging information between the tags is not utilized, although this can reduce localization errors. Thus, an improved genetic localization algorithm is proposed, which can make full use of all the ranging information to improve the accuracy.
Let us take a UWB network with I tags and K base stations. Let the location of the i-th tag is
and the location of the k-th base station is
.
and
indicates the tag-to-base station ranging error and tag-to-tag ranging error, respectively. The actual distance between the i-th tag and the k-th base station is
and the measured distance is given by
. The actual distance between the i-th tag and the j-th tag is
and the measured distance is given by
.
From this, we can build the following mathematical model for localization:
(3)
The specific steps are as follows:
Step 1. Randomly initialize the population, such as the population size, individual length etc. Let the n-th individual’s location be denoted as
. From Equation (3), its fitness can be established as follows:
(4)
where,
is the number of distances measured, and C means combination in mathematics.
Step 2. Calculate the fitness value of each individual and find the best individual.
Step 3. Generate a new population through selection, crossover, and mutation operations.
Step 4. The search method based on Brownian motion [13] [14] [15] is adopted to ensure that individuals can jump out of the local optimal solution and find the global optimal solution. Based on the Brownian motion search method, the location update equation is
(5)
RB is the step size of the search method based on Brownian motion determined by a normally distributed probability density function with mean μ= 0
and adaptive variance
, where 1 is the number of iterations,
Lmax is the max number of iterations.
Step 5. Update fitness value and group.
Step 6. Go to Step 2 until the maximum evolution number is reached. After the evolution has ended, all of the locations of the tags can be calculated.
Unlike Equation (2), the fitness function in Equation (4), takes into account the ranging information between the tags, thus improving localization precision. By employing the new method, all of the tags locations can also be calculated at the same time. Figure 1 shows the flow chart of the localization process.
4. Experimental Results and Analysis
To verify the localization performance of our proposed algorithm, we carried out simulations and compared its performance against the traditional genetic algorithm, trilateral localization algorithm and the PSO algorithm. In the simulation it is assumed that I tags are randomly distributed in a D*D square localization area, where D is the edge length value. The four anchor nodes are respectively located at the four top corners of the localization area. The main parameters for the genetic algorithm and the improved algorithm are: population size N= 30; maximum number of iterations L1 = 200; probability of select Pg = 0.95; probability of crossover Pc = 0.7; and probability of mutation Pm = 0.01. The PSO algorithm parameters are: population size N= 30, maximum number of iterations L2 = 200, acceleration factor C1= C2= 1.5, weighting factor ω= 0.7. The UWB ranging error is supposed to obey a Gaussian distribution with a zero mean and a variance of σ2. To evaluate the localization performance, the localization error is calculated as follows:
(6)
where,
represents the estimate location, I is the number of tags.
As shown in Figure 2(a) and Figure 2(b), the blue circle indicates the location of the base station, and the red star indicates the true location of the tag. The tag location estimated by the traditional genetic localization algorithm is represented by the green circle, and the tag location estimated by the improved genetic localization algorithm is represented by the yellow triangle. The difference between the estimated location of the tag and the true location is indicated by the solid blue line. With I= 16, K= 4, D= 12 m, σ2= 1, the localization error of the traditional genetic localization algorithm in the figure is 0.8929 m and the localization error of the improved genetic localization algorithm is 0.6156 m, which indicates that the improved genetic localization algorithm has better localization effect than the traditional genetic localization algorithm.
Figure 3 shows the localization performance with different range error variances. As we can see, the localization error decreases as the variance of the ranging error decreases. However, the proposed algorithm has lower localization error than the traditional genetic algorithm, trilateral localization algorithm and PSO algorithm. This is because the proposed algorithm takes into account the range of information between the tags and uses the Brownian motion search method. Therefore, the localization accuracy is improved.
The effect of the Brownian motion-based search method on the convergence performance of the localization results is plotted in Figure 4, respectively. For the improved genetic localization algorithm, the convergence speed of the localization result using the Brownian motion search method is lower than that without the Brownian motion search method. This indicates that the search method based on Brownian motion can speed up the convergence speed of the
Figure 2. The effect of traditional and improved genetic localization. (a) The effect of traditional genetic localization. (b) The effect of improved genetic localization.
localization result.
5. Conclusion
In this paper, an improved genetic localization algorithm is proposed. By constructing a new fitness function, the distance information between tags is fully
Figure 3. Variation of positioning error with distance measurement error. (a) I = 8, K = 4, D = 12 m. (b) I = 16, K = 4, D = 12 m.
utilized to improve the localization accuracy, and at the same time, the Brownian motion is added to prevent falling into local optimal solutions. The simulation results show that compared with the traditional algorithm, the improved genetic localization algorithm can reduce the influence of ranging error on the localization error, improve the localization accuracy, and meet the needs of precise localization. The next step will continue to study the application of UWB localization,
Figure 4. Effect of Brownian motion-based search method on the convergence performance of localization results. (a) I = 8, K = 4, D = 12 m. (b) I = 16, K = 4, D = 12 m.
and verify the effectiveness of the improved genetic localization algorithm in the actual environment.