Learning Spatial Density Functions of Random Waypoint Mobility over Irregular Triangles and Convex Quadrilaterals
Abstract
:1. Introduction
- We propose a Dirichlet-based mixture model (DMM) to address, for the first time, the problem of approximating the spatial density functions of the classic RWP mobility over irregular triangles (i.e., 3-gons). Since the trivariate Dirichlet distribution used for mixture has a support that is not defined in the Cartesian plane, where the movement area resides, we also employ the techniques of conversion between (Cartesian and barycentric) coordinate systems and change of variables to make it feasible to evaluate density values of RWP based on the Dirichlet distribution.
- Extending the framework of DMM proposed for triangles, we also address the density fitting problem over irregular convex quadrilaterals (i.e., 4-gons). For the extension, we propose a decomposition method that enables approximating the density distribution over a (convex) polygon by decomposing the polygon (together with its overall distribution) into multiple sub-triangles. This method can also be applied for n-gons with by conflating more sub-triangles.
- To demonstrate the performance of DMM, we conduct experiments in comparison to the classic Gaussian-based mixture model (GMM) as the benchmark. The experimental results show that the DMM we have proposed can effectively and efficiently approximate the spatial density distribution of RWP over triangular and quadrilateral movement areas, in the sense that it (1) respects the border of any polygonal area exactly, and (2) can achieve markedly lower approximation errors than GMM, (3) while requiring only a sparse sample set of examples for training.
2. Related Work
3. Mixture Density Networks Based on Dirichlet Distributions
3.1. Mixture Density Learning for Triangles
3.2. Mixture Density Learning for Convex Quadrilaterals
4. Experimental Evaluation
4.1. Overall Settings
4.2. Evaluation Results for Triangles
4.3. Evaluation Results for Convex Quadrilaterals
5. Additional Discussion
- Appendix B.1 gives the analyses of time and memory overheads consumed for training the two mixture models for triangular and quadrilateral areas, respectively.
- Appendix B.2 gives a brief discussion of the implications when non-convex polygons are considered for the movement area.
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
CNF | Conditional Normalizing Flow |
DMM | Dirichlet Mixture Model |
EM | Expectation Maximization |
FANET | Flying Ad hoc NETwork |
GMDN | Graph Mixture Density Network |
GMM | Gaussian Mixture Model |
KL | Kullback–Leibler |
MANET | Mobile Ad hoc NETwork |
MDN | Mixture Density Network |
MSE | Mean Squared Error |
PSMM | Periodic and Social Mobility Model |
RWP | Random WayPoint |
UAV | Unmanned Aerial Vehicle |
Appendix A
Appendix A.1
Appendix A.2
Appendix B
Appendix B.1
Appendix B.2
References
- Hyytia, E.; Lassila, P.; Virtamo, J. Spatial node distribution of the random waypoint mobility model with applications. IEEE Trans. Mob. Comput. 2006, 5, 680–694. [Google Scholar] [CrossRef]
- Gao, W.; Nikolaidis, I.; Harms, J.J. On the interaction of charging-aware mobility and wireless capacity. IEEE Trans. Mob. Comput. 2020, 19, 654–663. [Google Scholar] [CrossRef]
- Gao, W.; Nikolaidis, I.; Harms, J.J. On the impact of recharging behavior on mobility. IEEE Trans. Mob. Comput. 2023, 22, 4103–4118. [Google Scholar] [CrossRef]
- Chriki, A.; Touati, H.; Snoussi, H.; Kamoun, F. FANET: Communication, mobility models and security issues. Comput. Netw. 2019, 163, 106877. [Google Scholar] [CrossRef]
- Johnson, D.B.; Maltz, D.A. Dynamic source routing in ad hoc wireless networks. In Mobile Computing; Springer: Boston, MA, USA, 1996; pp. 153–181. [Google Scholar]
- Le Boudec, J.Y.; Vojnovic, M. Perfect simulation and stationarity of a class of mobility models. In Proceedings of the IEEE 24th Annual Joint Conference of the IEEE Computer and Communications Societies, Miami, FL, USA, 13–17 March 2005; Volume 4, pp. 2743–2754. [Google Scholar]
- Bettstetter, C.; Resta, G.; Santi, P. The node distribution of the random waypoint mobility model for wireless ad hoc networks. IEEE Trans. Mob. Comput. 2003, 2, 257–269. [Google Scholar] [CrossRef]
- Camp, T.; Boleng, J.; Davies, V. A survey of mobility models for ad hoc network research. Wirel. Commun. Mob. Comput. 2002, 2, 483–502. [Google Scholar] [CrossRef]
- Blough, D.M.; Resta, G.; Santi, P. A statistical analysis of the long-run node spatial distribution in mobile ad hoc networks. In Proceedings of the 5th ACM International Workshop on Modeling Analysis and Simulation of Wireless and Mobile Systems, Atlanta, GA, USA, 28 September 2002; pp. 30–37. [Google Scholar]
- Nain, P.; Towsley, D.; Liu, B.; Liu, Z. Properties of random direction models. In Proceedings of the IEEE 24th Annual Joint Conference of the IEEE Computer and Communications Societies, Miami, FL, USA, 13–17 March 2005; IEEE: Piscataway, NJ, USA, 2005; Volume 3, pp. 1897–1907. [Google Scholar]
- Soltani, M.D.; Purwita, A.A.; Zeng, Z.; Chen, C.; Haas, H.; Safari, M. An orientation-based random waypoint model for user mobility in wireless networks. In Proceedings of the 2020 IEEE International Conference on Communications Workshops (ICC Workshops), Dublin, Ireland, 7–11 June 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 1–6. [Google Scholar]
- Ammar, H.A.; Adve, R.; Shahbazpanahi, S.; Boudreau, G.; Srinivas, K.V. RWP+: A new random waypoint model for high-speed mobility. IEEE Commun. Lett. 2021, 25, 3748–3752. [Google Scholar] [CrossRef]
- Le Boudec, J.Y.; Vojnovic, M. The random trip model: Stability, stationary regime, and perfect simulation. IEEE/ACM Trans. Netw. 2006, 14, 1153–1166. [Google Scholar] [CrossRef]
- Bishop, C.M. Mixture Density Networks; Technical Report; Aston University: Birmingham, UK, 1994. [Google Scholar]
- Ng, K.W.; Tian, G.L.; Tang, M.L. Dirichlet and Related Distributions: Theory, Methods and Applications; John Wiley & Sons: Hoboken, NJ, USA, 2011. [Google Scholar]
- Pal, S.; Heumann, C. Revisiting Dirichlet mixture model: Unraveling deeper insights and practical applications. Stat. Pap. 2025, 66, 2. [Google Scholar] [CrossRef]
- Gao, W.; Nikolaidis, I.; Harms, J. Beyond normal: Learning spatial density models of node mobility. arXiv 2024, arXiv:2411.10 997. [Google Scholar]
- Navidi, W.; Camp, T. Stationary distributions for the random waypoint mobility model. IEEE Trans. Mob. Comput. 2004, 3, 99–108. [Google Scholar] [CrossRef]
- Le Boudec, J.Y. Understanding the simulation of mobility models with palm calculus. Perform. Eval. 2007, 64, 126–147. [Google Scholar] [CrossRef]
- Hyytia, E.; Lassila, P.; Virtamo, J. A markovian waypoint mobility model with application to hotspot modeling. Proc. IEEE Int. Conf. Commun. 2006, 3, 979–986. [Google Scholar]
- Cho, E.; Myers, S.A.; Leskovec, J. Friendship and mobility: User movement in location-based social networks. In Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Diego, CA, USA, 21–24 August 2011; pp. 1082–1090. [Google Scholar]
- Lichman, M.; Smyth, P. Modeling human location data with mixtures of kernel densities. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA, 24–27 August 2014; pp. 35–44. [Google Scholar]
- Zhou, Z.; Wang, J.; Li, Y.H.; Huang, Y.K. Query-centric trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 17863–17873. [Google Scholar]
- Makansi, O.; Ilg, E.; Cicek, O.; Brox, T. Overcoming limitations of mixture density networks: A sampling and fitting framework for multimodal future prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 7144–7153. [Google Scholar]
- Li, X.; Normandin-Taillon, H.; Wang, C.; Huang, X. Demand Density Forecasting in Mobility-on-Demand Systems Through Recurrent Mixture Density Networks. In Proceedings of the 2023 IEEE 26th International Conference on Intelligent Transportation Systems (ITSC), Bilbao, Spain, 24–28 September 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 250–255. [Google Scholar]
- Errica, F.; Bacciu, D.; Micheli, A. Graph mixture density networks. In Proceedings of the International Conference on Machine Learning. PMLR, Online, 18–24 July 2021; pp. 3025–3035. [Google Scholar]
- Corso, G.; Stark, H.; Jegelka, S.; Jaakkola, T.; Barzilay, R. Graph neural networks. Nat. Rev. Methods Prim. 2024, 4, 17. [Google Scholar] [CrossRef]
- Winkler, C.; Worrall, D.; Hoogeboom, E.; Welling, M. Learning likelihoods with conditional normalizing flows. arXiv 2019, arXiv:1912.00042. [Google Scholar]
- Gammelli, D.; Rodrigues, F. Recurrent flow networks: A recurrent latent variable model for density estimation of urban mobility. Pattern Recognit. 2022, 129, 108752. [Google Scholar] [CrossRef]
- Darányi, A.; Ruppert, T.; Abonyi, J. Particle filtering supported probability density estimation of mobility patterns. Heliyon 2024, 10, e29437. [Google Scholar] [CrossRef] [PubMed]
- Zhang, S.; Liu, X.; Tang, J.; Cheng, S.; Wang, Y. Urban spatial structure and travel patterns: Analysis of workday and holiday travel using inhomogeneous Poisson point process models. Comput. Environ. Urban Syst. 2019, 73, 68–84. [Google Scholar] [CrossRef]
- Baccelli, F.; Błaszczyszyn, B.; Karray, M. Random Measures, Point Processes, and Stochastic Geometry; Inria: Le Chesnay-Rocquencourt, France, 2024. [Google Scholar]
- Delong, Ł.; Lindholm, M.; Wüthrich, M.V. Gamma mixture density networks and their application to modelling insurance claim amounts. Insur. Math. Econ. 2021, 101, 240–261. [Google Scholar] [CrossRef]
- Wang, G.J.; Cheng, C.; Ma, Y.Z.; Xia, J.Q. Likelihood-free inference with the mixture density network. Astrophys. J. Suppl. Ser. 2022, 262, 24. [Google Scholar] [CrossRef]
- Ma, Z.; Leijon, A.; Kleijn, W.B. Vector quantization of LSF parameters with a mixture of Dirichlet distributions. IEEE Trans. Audio Speech Lang. Process. 2013, 21, 1777–1790. [Google Scholar] [CrossRef]
- Pal, S.; Heumann, C. Clustering compositional data using Dirichlet mixture model. PLoS ONE 2022, 17, e0268438. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, T.; Moka, S.; Mengersen, K.; Liquet, B. Spatial Autoregressive Model on a Dirichlet Distribution. arXiv 2024, arXiv:2403.13076. [Google Scholar]
- Ungar, A.A. Barycentric Calculus in Euclidean and Hyperbolic Geometry: A Comparative Introduction; World Scientific: Singapore, 2010. [Google Scholar]
- Lax, P.D. Change of variables in multiple integrals. Am. Math. Mon. 1999, 106, 497–501. [Google Scholar] [CrossRef]
- Wang, J.; Li, T.; Li, B.; Meng, M.Q.H. GMR-RRT*: Sampling-based path planning using gaussian mixture regression. IEEE Trans. Intell. Veh. 2022, 7, 690–700. [Google Scholar] [CrossRef]
- Hsu, Y.P.; Chen, H.H. Multivariate beta mixture model: Probabilistic clustering with flexible cluster shapes. In Proceedings of the Pacific-Asia Conference on Knowledge Discovery and Data Mining, Taipei, Taiwan, 7–10 May 2024; Springer: Singapore, 2024; pp. 233–245. [Google Scholar]
For Triangles | ||||||||
Training | 0 | 1 | 1 | 0 | ||||
Testing | (except 0.3, 0.6) | |||||||
For Quadrilaterals | ||||||||
Training | 1 | 1 | 1 | 1 | 0 | |||
Testing | (except 0.3, 0.6) |
Experimental Settings | Specifics |
---|---|
Model Training | |
Optimizer | Adam |
Batch Size (per epoch) | 3 |
Total # of Epochs (per run) | 20,000 |
Total # of Runs (per example) | 10 |
Learning Rates | †, or, †† |
Total # of Components | †, or, †† |
RWP Simulation | |
Sampling Space | |
Sampling Grid | |
Simulation Time | (units of distance) |
Platform for Model Training/Inference & RWP Simulation | |
Python | python 3.12.7 |
NumPy | numpy 2.0.1 |
PyTorch | torch 2.5.1 |
Compiler (for RWP Simulation) | clang 16.0.0 (w/ -O3 optimization) |
Chip | Apple M4 Pro |
Total # of Cores | 14 (CPU), 20 (GPU) |
Memory | 24 GB |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Feng, Y.; Gao, W.; Zhang, L.; Qi, M.; Zhong, Q.; Li, N. Learning Spatial Density Functions of Random Waypoint Mobility over Irregular Triangles and Convex Quadrilaterals. Mathematics 2025, 13, 927. https://doi.org/10.3390/math13060927
Feng Y, Gao W, Zhang L, Qi M, Zhong Q, Li N. Learning Spatial Density Functions of Random Waypoint Mobility over Irregular Triangles and Convex Quadrilaterals. Mathematics. 2025; 13(6):927. https://doi.org/10.3390/math13060927
Chicago/Turabian StyleFeng, Yiming, Wanxin Gao, Lefeng Zhang, Minfeng Qi, Qi Zhong, and Ningran Li. 2025. "Learning Spatial Density Functions of Random Waypoint Mobility over Irregular Triangles and Convex Quadrilaterals" Mathematics 13, no. 6: 927. https://doi.org/10.3390/math13060927
APA StyleFeng, Y., Gao, W., Zhang, L., Qi, M., Zhong, Q., & Li, N. (2025). Learning Spatial Density Functions of Random Waypoint Mobility over Irregular Triangles and Convex Quadrilaterals. Mathematics, 13(6), 927. https://doi.org/10.3390/math13060927