A bio-inspired approach to WiFi-based indoor localization