Federated Learning-Based Localization With Heterogeneous Fingerprint Database

Xin Cheng, Chuan Ma, Jun Li, Haiwei Song, Feng Shu, Jiangzhou Wang

Abstract: Fingerprint-based localization plays an important role in indoor location-based services, where position information is usually collected by distributed clients and gathered in a centralized server. However, overloaded transmission and the risk of divulging private information burden these applications. Federated learning (FL)-based fingerprinting localization (FedLoc) has emerged as a solution, training a global model while keeping raw data local. However, unavoidable database heterogeneity usually degrades the performance of existing FedLoc algorithms. In this paper, we characterize database heterogeneity with a computable metric—the area of the convex hull—and propose a novel heterogeneous FL-based localization algorithm with area of convex hull-based aggregation (FedLoc-AC). Extensive experimental results show that FedLoc-AC achieves significant prediction gains compared to FedLoc in heterogeneous scenarios while maintaining comparable performance in homogeneous ones.

Introduction

Indoor localization often relies on "fingerprinting," where a device measures Received Signal Strength (RSS) from various WiFi access points to determine its position. Traditionally, this requires sending massive amounts of raw location data to a central server, which is both a privacy risk and a bandwidth burden.

Federated Learning (FL) offers a solution by training models locally on devices and only sharing model weights. However, standard FL algorithms (like FedAvg) assume that every user’s data is somewhat representative of the whole area. In the real world, user behavior is heterogeneous: one person might spend all day in a single office, while another walks the entire floor. Existing FL methods struggle with this imbalance, leading to poor global models that do not generalize well across the entire Area of Interest (AoI).

The FedLoc-AC Methodology

The authors propose a novel aggregation strategy called FedLoc-AC (Area of Convex hull-based aggregation). The core idea is to use geometry to determine how much a specific client's update should "count" toward the global model.

Overview of the Federated Learning (FL) training procedure, showing the interaction between the cloud server and distributed clients.

Characterizing Heterogeneity

The authors demonstrate that the average prediction error is inversely proportional to the area covered by the training data. To quantify this coverage, they use the Convex Hull—the smallest convex polygon that encloses all of a user's sampling positions.

  1. Preparation: Each client uses the Melkman algorithm to calculate the area of the convex hull ($S_{C_i}$) of their local sampling points and sends this value to the server.
  2. Local Training: Clients train a Multi-Layer Perceptron (MLP) on their local RSS data.
  3. Weighted Aggregation: Instead of simple averaging, the central server assigns weights to each client based on their convex hull area. Clients who have explored a larger area are given more weight because their data is more representative of the environment's global signal characteristics.

Experimental Results and Insights

The researchers evaluated their approach using a simulated indoor environment and the UJIIndoorLoc public benchmark dataset. The simulation allowed for controlled testing of "homogeneous" (uniform movement) versus "heterogeneous" (unbalanced movement) scenarios.

Experimental validation of the convex hull metric: (a) Average error increases with distance from the training set, and (b) Average MAE decreases as the area of the convex hull increases.

Key Findings

  • 20% Accuracy Gain: In heterogeneous scenarios (where half the clients had limited movement), FedLoc-AC outperformed the standard FedLoc algorithm by 20% in terms of Mean Absolute Error (MAE).
  • Geometry as a Proxy for Data Quality: The most significant insight is that in localization, the spatial distribution of data is often more important than the quantity of data. A user with 1,000 points in one corner is less valuable to the global model than a user with 100 points spread across the whole hall.
  • Robustness: FedLoc-AC is "backward compatible." In homogeneous scenarios where everyone moves the same way, it performs identically to standard FedLoc. It only provides gains when the data becomes unbalanced.

Conclusion and Future Work

FedLoc-AC provides a computationally inexpensive way to measure spatial diversity without needing the server to see actual coordinates, thus preserving privacy. While the convex hull area is a strong metric, future research could explore even more sophisticated weighting schemes—perhaps incorporating signal variance or device hardware differences. Additionally, addressing "temporal heterogeneity," such as signal fluctuations caused by moving furniture or varying traffic, remains an open challenge.

Summary updated

BibTeX
@article{cheng2022federated,
  author = {Xin Cheng and Chuan Ma and Jun Li and Haiwei Song and Feng Shu and Jiangzhou Wang},
  title = {{Federated Learning-Based Localization With Heterogeneous Fingerprint Database}},
  journal = {IEEE Wireless Communications Letters},
  year = {2022},
  doi = {10.48550/arxiv.2203.15388},
}
Figure