Complex System Modelling in Engineering Under Industry 4.0View this Special Issue
Research Article | Open Access
Wanjun Yang, Zengwu Sun, "GPS Position Prediction Method Based on Chaotic Map-Based Flower Pollination Algorithm", Complexity, vol. 2021, Article ID 9972701, 8 pages, 2021. https://doi.org/10.1155/2021/9972701
GPS Position Prediction Method Based on Chaotic Map-Based Flower Pollination Algorithm
GPS position data prediction can effectively alleviate urban traffic, population flow, route planning, etc. It has very important research significance. 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 fields. 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 flower pollination algorithm has better advantages in testing function convergence and geographic location prediction effect.
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. Therefore, 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.  proposed an improved particle swarm optimization algorithm (PSO) for solving constrained problems. Cui and He  proposed an elite reverse learning strategy, flower pollination algorithm, and applied it to solve engineering optimization problems. Ali  proposed an adaptive algorithm based on PSO to solve engineering cases. Chen et al.  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  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)  is an imitation of Drosophila’s flying foraging behavior, gray wolf optimization algorithm (GWO)  is an imitation of wolf pack's division of labor and cooperative predation behavior, whale optimization algorithm(WOA)  is a simulation of humpback whale pack's cooperative predation and competition, and moth extinguishing optimization algorithm  is a simulation of moth's positioning and movement in nature according to light sources. FPA  is a swarm intelligence algorithm proposed by Cambridge scholar Yang in 2012 by observing and simulating the pollination behavior of plant flowers. The algorithm mainly searches for optimization by simulating cross-pollination and self-pollination in the pollination process. Abdel-Raouf  combined Particle Swarm Optimization (PSO), which has similar performance to FPA, with it to optimize the initial solution of FPA. The improvement of the quality of the initial solution improves the performance of the algorithm, including optimization accuracy and convergence speed. Chakraborty et al.  proposed the differential evolution FPA. Combine the advantages of the DE algorithm with FPA.
2. Basic FPA
The 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 cross-pollination 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. The 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 in the tth iteration is represented by ; then, in the iteration, the position of cross-pollination pollen individual is shown aswhere F is the proportion coefficient and is the optimal individual. The 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 aswhere , is the standard gamma function, and s is the moving step size. , and mean that the random variable U obeys with mathematical expectation of 0. is Gaussian normal distribution. The variance formula is as follows:where a value is given and a constant is obtained. For example, when , Gamma function , ; then,
In the flower pollination algorithm, the self-pollination behavior corresponds to local search. The position X of the self-pollinated pollen individual can be expressed aswhere , and , respectively, represent two individuals different from in the population. Self-pollination is simulated in a limited area.
The 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.
There 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 may be more effective in application.
2.2. 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. The algorithm is end, the upper limit of iteration times Tmax or the target accuracy. Step 2: initializing the population, calculating the fitness values of all individuals in the population, and recording the individual with the best fitness value and the optimal fitness value . 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 for all individuals in the population and comparing it with the conversion probability p. If , 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 () and corresponding fitness value , and the algorithm ends
3. 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. The 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.
3.1. Logistic Maps
The 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. The most commonly used one is logistic mapping:where t is expressed as the number of iterations, , k is the max value. When = 4, , and, 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 and , 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.
3.2. FPA Based on Chaotic Mapping
The 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. The formula for chaotic search by replacing the old individuals with new individuals is as follows:where is the solution of equation (9). The 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. 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 to select the optimal fitness of the individual. Reassemble into a new optimal location, and update location. Step 5: performe a mutation operation according to equation (5). 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).
4. Performance Comparisons of Algorithms
It should be checked by the test function. The 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.(1)Ackley function: The best values: .(2)Beale function: The best values: .(3)Rastrigin Function: The best values: .(4)Holder table function: The best values: .
f1–f4 functions are shown in Table 1.
The 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. The final iterative effect is shown in Figures 2–5.
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). The position error is valid within a certain range. The 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. The 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. The 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. The 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.
In this paper, the basic principle of flower pollination algorithm is introduced, and the flower pollination algorithm is improved through chaotic mapping strategy. The 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. The next research work mainly tests other test functions to further verify the overall advantages of the algorithm.
The data used to support the findings of the study are available from the corresponding author upon request.
Conflicts of Interest
The authors declared that they have no conflicts of interest regarding this work.
This work was supported in part by the Science and Technology Research Program of Chongqing Municipal Education Commission (Grant no. KJQN201902102).
- W. Wang, Q. Sun, X. Zhao, and F. Yang, “An improved particle swarm optimization algorithm for QoS-aware web service selection in service oriented communication,” International Journal of Computational Intelligence Systems, vol. 3, no. Supplement 1, pp. 18–30, 2010.
- W. Cui and Y. He, “Biological flower pollination algorithm with orthogonal learning strategy and catfish effect mechanism for global optimization problems,” Mathematical Problems in Engineering, vol. 2018, no. 4, Article ID 6906295, 16 pages, 2018.
- Y. M. B. Ali, “Unsupervised clustering based an adaptive particle swarm optimization algorithm,” Neural Processing Letters, vol. 44, no. 1, pp. 221–244, 2016.
- Z. Chen, L. Liu, J. He, and Z. Yu, “A genetic algorithm based framework for local search algorithms for distributed constraint optimization problems,” Autonomous Agents and Multi-Agent Systems, vol. 34, no. 2, pp. 1–31, 2020.
- W. B. Yu and F. Y. Zhao, “Predictive study of ultra-low emissions from dual-fuel engine using artificial neural networks combined with genetic algorithm,” International Journal of Green Energy, vol. 16, no. 12, pp. 938–946, 2020.
- Y. Zhang, X. L. Ma, and X.-L. Ma, “Research on image digital watermarking optimization algorithm under virtual reality technology,” Discrete & Continuous Dynamical Systems - S, vol. 12, no. 4-5, pp. 1427–1440, 2019.
- P. Saxena and A. Kothari, “Optimal pattern synthesis of linear antenna array using grey wolf optimization algorithm,” International Journal of Antennas and Propagation, vol. 2016, Article ID 1205970, 11 pages, 2016.
- M. M. Mafarja and S. Mirjalili, “Hybrid Whale Optimization Algorithm with simulated annealing for feature selection,” Neurocomputing, vol. 260, no. 18, pp. 302–312, 2017.
- A. K. M. Khairuzzaman and S. Chaudhury, “Moth-flame optimization algorithm based multilevel thresholding for image segmentation,” International Journal of Applied Metaheuristic Computing, vol. 8, no. 4, pp. 58–83, 2017.
- E. Nabil, “A modified flower pollination algorithm for global optimization,” Expert Systems with Applications, vol. 57, pp. 192–203, 2016.
- O. Abdel Raouf, M. Abdel-Baset, M. Abdel Baset, and I. El henawy, “An improved chaotic bat algorithm for solving integer programming problems,” International Journal of Modern Education and Computer Science, vol. 6, no. 8, pp. 18–24, 2014.
- D. Chakraborty, S. Saha, and O. Dutta, “DE-FPA: a hybrid differential evolution-flower pollination algorithm for function minimization,” in Proceedings of the 2014 International Conference on High Performance Computing and Applications (ICHPCA), pp. 1–6, Bhubaneswar, India, December 2014.
- J. B. Liu, J. Zhao, and Z. X. Zhu, “On the number of spanning trees and normalized Laplacian of linear octagonal-quadrilateral networks,” International Journal of Quantum Chemistry, vol. 119, no. 17, pp. 1–21, 2019.
- J. B. Liu, J. Zhao, and Z. Cai, “On the generalized adjacency, Laplacian and signless Laplacian spectra of the weighted edge corona networks,” Physica A, vol. 540, pp. 1–11, 2020.
Copyright © 2021 Wanjun Yang and Zengwu Sun. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.