GPS Position Prediction Method Based on Chaotic Map-Based Flower Pollination Algorithm

GPS position data prediction can eﬀectively alleviate urban traﬃc, population ﬂow, route planning, etc. It has very important research signiﬁcance. Using swarm intelligence optimization algorithm to predict geographic location has important research strategies. Flower pollination algorithm (FPA) is a new swarm intelligence optimization algorithm (SIOA) and easy to implement and has other characteristics; more and more scholars have continuously improved it and applied it to more ﬁelds. Aiming at the fact that FPA leads to the local optimal value in cross-pollination, the chaotic mapping strategy is proposed to optimize related issues that the population is not rich enough in the self-pollination process. The improved ﬂower pollination algorithm has better advantages in testing function convergence and geographic location prediction eﬀect.


Introduction
SIOA is a hot topic in the field of algorithm research in recent years. Because such algorithms are inspired in daily life and production, simple and easy to understand, easy operation and implementation of the algorithm, more accurate test results of the algorithm, and good stability. erefore, both the improvement research of algorithm content and algorithm structure and the exploration of algorithm practical application field have been widely developed. For example, in 2010, Wang et al. [1] proposed an improved particle swarm optimization algorithm (PSO) for solving constrained problems. Cui and He [2] proposed an elite reverse learning strategy, flower pollination algorithm, and applied it to solve engineering optimization problems. Ali [3] proposed an adaptive algorithm based on PSO to solve engineering cases. Chen et al. [4] proposed an adaptive genetic algorithm in 2018 and applied the algorithm to solve function optimization problems, etc. Many scholars have studied the application of intelligent algorithms to engineering optimization problems.
Genetic algorithm [5] is an intelligent algorithm that uses biological genetic rules for selection, a method that can be optimized from generation to generation. Drosophila optimization algorithm (DOA) [6] is an imitation of Drosophila's flying foraging behavior, gray wolf optimization algorithm (GWO) [7] is an imitation of wolf pack's division of labor and cooperative predation behavior, whale optimization algorithm(WOA) [8] is a simulation of humpback whale pack's cooperative predation and competition, and moth extinguishing optimization algorithm [9] is a simulation of moth's positioning and movement in nature according to light sources. FPA [10] is a swarm intelligence algorithm proposed by Cambridge scholar Yang in 2012 by observing and simulating the pollination behavior of plant flowers. e algorithm mainly searches for optimization by simulating cross-pollination and self-pollination in the pollination process. Abdel-Raouf [11] combined Particle Swarm Optimization (PSO), which has similar performance to FPA, with it to optimize the initial solution of FPA. e improvement of the quality of the initial solution improves the performance of the algorithm, including optimization accuracy and convergence speed. Chakraborty et al. [12] proposed the differential evolution FPA. Combine the advantages of the DE algorithm with FPA.

Basic FPA
e pollination process of flowering plants in nature can be divided into two types according to different pollen carriers: self-pollination based on wind medium and water medium and cross-pollination based on insect medium and bird medium. Self-pollination refers to pollination between different flowers of the same plant individual, while crosspollination refers to pollination between different individual flowers of the same plant. Since self-pollination pollinates between different flowers of the same plant individual, the movement range of pollen is small, which is abstracted into the flower pollination algorithm, i.e., local search with small search range. Cross-pollination requires insect or bird vectors to carry pollen for pollination, and these insect and bird pollinators usually use Levy flight mechanism to move. Levy flight is a special kind of random walk. e flying individual moves randomly in a small range with a large probability and jumps to another range far away with a small probability to move randomly. Because Levy flight can move with large steps, cross-pollination is abstracted into flower pollination algorithm, which is a global search with a large search range.
In practice, most plants have many flowers, each containing tens of thousands of pollen. In order to simplify the research, assuming that each flower has only one flower and produces one pollen, there is an optimization plan for each pollen. According to the above principles, the flower pollination process is abstracted into the following model: Step 1: cross-pollination is carried out by insects or birds carrying pollen through Levy flight, which is a global pollination process Step 2: self-pollination is a local pollination process through natural factors Step 3: the pollinator of the flower is an attribute of the flower Step 4: the transition probability between local optimization and global optimization of the transformation probability P control algorithm 2.1. Cross-Pollination of FPA. In FPA, the cross-pollination behavior corresponds to the global search, and the position of pollen individual x i in the tth iteration is represented by x t i ; then, in the t + 1 iteration, the position x t i+1 of crosspollination pollen individual is shown as where F is the proportion coefficient and g * is the optimal individual. e movement of insects or birds is relatively random, with small distances in most cases and long distances occasionally. Distance movement, in order to simulate this movement rule, Levy flight strategy is introduced in global search, and Levy flight random number is used as scaling factor, namely, where L is a random number obeying Levy distribution, and its expression is shown as where λ � 1.5, Γ(λ) is the standard gamma function, and s is the moving step size. s � (U/|V| (1/λ) ), U ∼ N(0, σ 2 ), V ∼ N(0, 1), and U ∼ N(0, σ 2 ) mean that the random variable U obeys with mathematical expectation of 0. σ 2 is Gaussian normal distribution. e variance formula is as follows: where a value is given and a constant is obtained. For example, when In the flower pollination algorithm, the self-pollination behavior corresponds to local search. e position X of the self-pollinated pollen individual can be expressed as where rand ∈ [0, 1], x t j and x t k , respectively, represent two individuals different from x t j in the population. Self-pollination is simulated in a limited area. e pollination behavior of flowers in the region, in which pollen individuals move for a short distance within the region. In theory, local pollination and global pollination can occur randomly in flower pollination activities.
ere is no restriction on pollination. However, the fact is that neighboring flowers are more likely to accept pollination from local flowers than those far away. By imitating this feature and setting the conversion probability p, it can be effectively used for the conversion between global and local. Preliminary parameter studies show that most of the P � 0.8 may be more effective in application.

FPA Flow.
For the minimization problem, the specific flow of FPA is as follows: Step 1 (initialization algorithm parameters): flower number, i.e., population number, n, transformation probability p, and fitness value function f. e algorithm is end, the upper limit of iteration times T max or the target accuracyT a .
Step 2: initializing the population, calculating the fitness values of all individuals in the population, and 2 Complexity recording the individual g * with the best fitness value and the optimal fitness value f(g * ).
Step 3: judging whether the algorithm meets the condition of stopping the iteration, stopping the iteration, and transferring to step 8, otherwise transferring to step 4.
Step 4: generating a random number rand ∈ [0, 1] for all individuals in the population and comparing it with the conversion probability p. If p > rand, apply formula (2) to update the individual position and carry out global search, otherwise apply formula (6) to update the individual position and carry out local search. Proceed to step 5.
Step 5: carrying out cross-border processing on individual and transferring to step 6.
Step 6: calculating each position fitness value after the cross-border processing in step 5, comparing with the fitness value of the current individual, if the fitness value of the updated solution is better, replacing the current solution with the new solution, and transferring to step 7, otherwise transferring to step 8.
Step 7: comparing that new solution with the current global optimal solution and updating the data.
Step 8: judging whether the current individual is the last individual in the population; if so, transferring to step 3 to end the current iteration, otherwise returning to step 4 to continue updating other individuals.
Step 9: output the global optimal value (g * ) and corresponding fitness value f(g * ), and the algorithm ends

Improve FPA Algorithm Strategies
By analyzing the pollination strategy of FPA, it is not difficult to find that gametes aim at the global optimal plan through global comparison. In the process of catching up with the global optimal particles, as the particles gradually approach the global optimal solution, most particles show obvious "homogeneity," which makes the algorithm fall into the local optimal and appear premature.
In the process of local search, gametes do not refer to the global optimal solution, but only take the difference between two arbitrary individuals in the pollen group as the catch-up target, showing obvious randomness, blindness, and uncertainty, thus reducing the update speed of the global optimal solution. At the same time, the switching probability p remains constant in the whole optimization process, resulting in too small a proportion of global search in the initial stage of the algorithm and too large a proportion in the later stage, thus reducing the search efficiency of the algorithm.
In addition, due to the random selection of initial pollen gametes in FPA, it is difficult for gametes to be relatively evenly distributed in the solution space, thus reducing the efficiency of FPA search. e above defects limit the optimization accuracy and convergence speed of FPA to a certain extent. Chaotic variables can use their unique nonlinear laws to traverse all feasible solutions in the target space. At the same time, reverse learning strategy can increase the diversity of pollen gametes. Using reverse learning chaotic mapping to initialize gametes of FPA algorithm can make gametes evenly distributed and maintain the diversity of gametes, thus improving the distribution quality of initial gametes. In the global search of FPA algorithm, chaotic search can help FPA algorithm search in the whole solution space to avoid global search falling into local optimization. In terms of local search, by defining an operator, the search range is related to the algorithm iterations times, and the range of local search can be reduced with the progress of the algorithm, which makes the algorithm more targeted. At the same time, the switching probability p is linked with the algorithm iterations times so that the algorithm can dynamically adjust the proportion of local and global search in different stages, thus improving the optimization accuracy and convergence speed.

Logistic Maps.
e chaotic system is a random and irregular motion, and its behavior is mainly characterized by uncertainty, nonrepeatability, and unpredictability. Many chaotic maps have appeared in the development of chaos, such as logistic mapping, tent mapping, and Chebyshev mapping. e most commonly used one is logistic mapping: where t is expressed as the number of iterations, t � 1, . . . , k, k is the max value. When μ � 4, μ ∈ (0, 1), andμ ≠ 0.25, 0.5, 0.75 { }, equation (7) is in a chaotic state, and the above chaotic range is between (0, 1). Another chaotic mapping is adopted in this paper: When the values α � 0.4 and β � 2.8, equation (8) is in a chaotic state, and the chaotic solution generated by equation (8) is in a range of (−0.9, 0.9) larger than that of logistic mapping solution, which is more conducive to searching. All algorithms in this paper adopt this parameter setting.

FPA Based on Chaotic Mapping.
e principle of CFPA is to use the value generated by chaotic mapping to replace the random value probability of rand to generate [0, 1] in the process of migration operation. When the search ability is not strong in the later stage of the algorithm, each group of solutions will be searched for k times to obtain new individuals. e formula for chaotic search by replacing the old individuals with new individuals is as follows: where X k is the solution of equation (9). e flow of chaotic mapping flower pollination algorithm is expressed as follows: Step 1: initialize the population, the size p, the max iteration number k, the transformation probability p, and the fitness value function f are set.

Complexity 3
Step 2: calculate the fitness function f of the habitat in which the population is located, and compare and retain the optimal fitness value f, determining whether the condition is satisfied, and if the condition is satisfied, output it; otherwise, continue with the following steps.
Step 3: from equations (1) and (2) calculate the position and optimal position of each individual.
Step 4 (position of the individual): the optimal fitness is compared with the chaotic mapping probability X k to select the optimal fitness of the individual. Reassemble into a new optimal location, and update location.
Step 6: carry out chaotic search according to that chaotic map of formula (7).
Step 7: if it is judged that the stop condition is met, stop; if not met, repeat step (3).

Performance Comparisons of Algorithms
It should be checked by the test function. e choice of test function is based on the properties. Ideally [13,14], a good set of test functions should have multiple attributes, unimodal and multimodal, so that the optimization algorithm can be tested comprehensively. Based on this principle, this paper selects four typical and widely used standard test functions for testing.
e above f1-f4 functions are tested, and their function image is shown in Figure 1: In order to verify the change of convergence and fitness of CFPA algorithm, the execution efficiency of intelligent optimization algorithm is verified by continuously iterating the value of function. In this paper, GA, PSO, FPA, and CFPA algorithms are taken as comparison objects, and the fitness value changes of [100, 1000] are set through constant iteration. e final iterative effect is shown in Figures 2-5.

Comparison of GPS Position Prediction
Considering the experimental application capability of CFPA algorithm, this paper selects GPS data as the application scenario to predict the position change in GPS.
GPS data is derived from city taxi positioning data in Chengdu, Sichuan, China, including road ID, vehicle ID, transit time, longitude, dimension, real-time speed, and location number. Details from August 1, 2014, to August 31, 2014, are shown in Table 2.
From Table 2, the location number is to number the GPS position (longitude and latitude). e position error is valid within a certain range. e longitude and dimension position numbers within the valid range for some hot spots (e.g., railway stations, hospitals, schools, and bus stations) are the same. In this lab, the number of position numbers is about 120. e location information with less location information and small amount of data is deleted.
Adjust and calculate GPS data, calculate the time and position relationship of vehicles at different positions, and count related information of different road sections. e main data are shown in Table 3.
In the process of geographical position prediction, due to traffic conditions in the road, i.e., congestion, slow movement, and comfort. In this paper, the average speed of the vehicle is used as the judgment standard, and its threshold intervals are, respectively, set: less than 12 km/h is jam, 12∼25 km/h is slow, and more than 25 km/h is comfortable. To verify the prediction effect of the algorithm proposed in this paper on geographical position, CFPA is compared with GA, PSO, and FPA algorithms with real geographical location information as the reference standard. e figure shows the comparison effect of geographical position prediction with other algorithms, as shown in Figure 6.
Select one day as the time point for position prediction, and select different time periods to evaluate the GPS position. GA performs poorly in algorithm, and its error is relatively large, with an average value of about 4.56 units. PSO and FPA are close in prediction effect, but the effect is general, with error values of 4.12 and 3.67, respectively. CFPA algorithm has obvious advantages in prediction effect, with an error unit of 1.89. Comparing the above four algorithms, it is found that CFPA algorithm has obvious advantages in prediction accuracy and error and has good convergence in the fitness value.

Conclusion
In this paper, the basic principle of flower pollination algorithm is introduced, and the flower pollination algorithm is improved through chaotic mapping strategy. e improved CFPA algorithm compares the test efficiency under four test functions, and the convergence of CFPA's fitness value has obvious advantages. Finally, GPS position data are used to predict the geographical position. CFPA also has the best prediction effect in the prediction effect. e next research work mainly tests other test functions to further verify the overall advantages of the algorithm.

Data Availability
e data used to support the findings of the study are available from the corresponding author upon request.