Localizing ground sensors with unmanned aerial vehicles (UAVs) in dense urban environments is challenging because multipath and non-line-of-sight (NLoS) propagation distorts path loss (PL) measurements. This paper proposes a two-stage UAV localization framework that refines PL data and selects geometrically stable waypoint subsets before position estimation. In stage 1, PL samples are spatially smoothed by averaging measurements at neighboring UAV waypoints to reduce localized fluctuations. In stage 2, waypoint subsets are filtered using non-collinearity and non-adjacency constraints, and sensor positions are estimated using weighted least squares (WLS) and particle swarm optimization (PSO), with final estimates averaged across valid subsets. Wireless InSite ray-tracing simulations show that the framework reduces mean absolute error (MAE) from over 150 m to approximately 8.5 m. The proposed approach improves the practicality of UAV-assisted localization for urban internet of things (IoT) sensor deployments.
Copyrights © 2026