Device-independent Quantum Fingerprinting for Large Scale Localization

Ahmed Shokry, Moustafa Youssef

TL;DR

This paper introduces QHFP, a novel device-independent quantum fingerprinting algorithm for large-scale localization. It leverages quantum computing to achieve exponential improvements in storage space and running time compared to classical methods, while also enhancing accuracy by overcoming device heterogeneity issues.

What Problem Does This Paper Address?

Ubiquitous localization systems, particularly those relying on radio frequency (RF) fingerprinting, face significant challenges when deployed at a large scale. A primary hurdle is device heterogeneity: different devices (e.g., smartphones, IoT sensors) report varying Received Signal Strength (RSS) readings even when at the same location. This inconsistency degrades the accuracy of traditional fingerprinting methods, which rely on matching current RSS readings to a pre-built fingerprint. Furthermore, the sheer volume of data required for large-scale fingerprinting and the computational complexity of matching these fingerprints pose significant storage and processing challenges, especially for resource-constrained environments like the Internet of Things (IoT).

Methods

The core innovation of QHFP lies in its two main components:

  • Device-Independent Feature Extraction: To combat device heterogeneity, QHFP employs techniques like "power ratio" and "power difference." Instead of using raw RSS values, these methods transform the RSS readings from different reference points (RPs) into relative values. The assumption is that these ratios or differences remain more consistent across different devices than the absolute RSS values themselves.
  • Quantum Fingerprint Matching: The transformed, device-independent classical feature vectors are then encoded into quantum states (qubits). The paper proposes a quantum algorithm for calculating the cosine similarity between an online (test) RSS vector and offline (fingerprint) RSS vectors. This quantum cosine similarity calculation is performed using a circuit involving controlled gates (like CSWAP) and Hadamard gates, ultimately leveraging quantum interference to efficiently compute the similarity. The algorithm is designed to have a time and space complexity of $O(M \log N)$, where $M$ is the number of fingerprint locations and $N$ is the number of RPs, offering an exponential speedup over classical $O(MN)$ approaches.

Datasets

The paper describes an experiment setup using a real cellular testbed spanning a 0.2 km² outdoor urban area with 8 different cell towers. Data was collected via "war-driving" across this area using various Android devices (HTC Nexus One, Prestigio Multipad Wize 3037 3G, HTC One X9, and Motorola Moto G5 plus). Both fingerprint and test locations were uniformly distributed. An independent test set was also collected. No new benchmark datasets were introduced; rather, existing real-world data was used to evaluate the proposed algorithm.

Key Insights and Ideas

  • Quantum Advantage for Practical Problems: This paper demonstrates that quantum computing isn't just for theoretical speedups; it can offer tangible benefits for real-world problems like localization, addressing practical constraints like storage and computation time.
  • Device Heterogeneity is a Solvable Problem: By transforming RSS into relative measures (ratios/differences), the system becomes less sensitive to variations between devices, paving the way for more robust and ubiquitous localization.
  • Exponential Efficiency is Achievable: The quantum approach offers an exponential reduction in both space and time complexity, which is crucial for scaling localization systems to millions of devices and locations.
  • Cosine Similarity as a Quantum Target: The use of cosine similarity as the metric for matching fingerprints is well-suited for quantum computation, allowing for efficient calculation of the similarity score.

Key Results

  • Improved Accuracy: QHFP, using device-independent features, achieved a 20% better median localization error compared to traditional raw RSS fingerprinting in their real-world testbed. The power difference technique was found to be superior to the power ratio technique.
  • Exponential Speedup: The quantum algorithm demonstrates an exponential saving in both space and running time compared to classical device-independent localization systems. Specifically, the running time complexity scales as $O(M \log N)$ for QHFP versus $O(N^2M)$ for classical methods.
  • Comparable Accuracy to Classical Device-Independent Methods: When using the same device-independent features, QHFP achieved comparable localization accuracy to its classical counterpart, but with the significant advantage of exponential efficiency.
  • Effect of Iterations: The accuracy of the quantum localization improves with an increased number of algorithm iterations (shots), saturating around 4096 shots.

Limitations and Future Work

  • Current Quantum Hardware Limitations: While the algorithm was implemented and tested on the IBM Quantum machine simulator, the paper acknowledges that running on actual quantum hardware may still face limitations due to qubit availability and error rates.
  • Exploration of Quantum Similarity Metrics: The authors are currently exploring different quantum similarity metrics to potentially further enhance performance and obtain theoretical quantum bounds.
  • Optimization for Spatial Algorithms: They are also investigating the optimization of other spatial algorithms using quantum computing.
  • Encoding All Fingerprint Locations: The paper mentions that the fingerprint data for all locations could potentially be encoded into a single circuit, reducing the complexity to $O(\log(NM))$, which could have significant implications for various spatial algorithms.

Summary updated

Abstract

Although RF fingerprinting is one of the most commonly used techniques for localization, deploying it in a ubiquitous manner requires addressing the challenge of supporting a large number of heterogeneous devices and their variations. We present QHFP, a device-independent quantum fingerprint matching algorithm that addresses two of the issues for realizing worldwide ubiquitous large-scale location tracking systems: storage space and running time as well as devices heterogeneity. In particular, we present a quantum algorithm with a complexity that is exponentially better than the classical techniques, both in space and running time. QHFP also has provisions for handling the inherent localization error due to building the large-scale fingerprint using heterogeneous devices. We give the details of the entire system starting from extracting device-independent features from the raw RSS, mapping the classical feature vectors to their quantum counterparts, and showing a quantum cosine similarity algorithm for fingerprint matching.We have implemented our quantum algorithm and deployed it in a real testbed using the IBM Quantum machine simulator. Results confirm the ability of QHFP to obtain the correct estimated location with an exponential improvement in space and running time compared to the traditional classical counterparts. In addition, the proposed device-independent features lead to more than 20% better accuracy in median error. This highlights the promise of our algorithm for future ubiquitous large-scale worldwide device-independent fingerprinting localization systems.
BibTeX
@inproceedings{shokry2022device,
  author = {Ahmed Shokry and Moustafa Youssef},
  title = {{Device-independent Quantum Fingerprinting for Large Scale Localization}},
  booktitle = {MedComNet},
  year = {2022},
  url = {https://openreview.net/forum?id=VhOKL3hZII},
}
Figure