[Paper Review] k-Nearest Neighbor Classification over Semantically Secure Encrypted Relational Data
This paper proposes a privacy-preserving k-Nearest Neighbor (k-NN) classifier for semantically secure encrypted relational data in cloud environments. It enables secure classification over encrypted data without revealing data, queries, or access patterns, achieving 33% faster online computation via pre-computation and up to 6x speedup using parallelism, with minimal client-side overhead.
Data Mining has wide applications in many areas such as banking, medicine, scientific research and among government agencies. Classification is one of the commonly used tasks in data mining applications. For the past decade, due to the rise of various privacy issues, many theoretical and practical solutions to the classification problem have been proposed under different security models. However, with the recent popularity of cloud computing, users now have the opportunity to outsource their data, in encrypted form, as well as the data mining tasks to the cloud. Since the data on the cloud is in encrypted form, existing privacy preserving classification techniques are not applicable. In this paper, we focus on solving the classification problem over encrypted data. In particular, we propose a secure k-NN classifier over encrypted data in the cloud. The proposed k-NN protocol protects the confidentiality of the data, user's input query, and data access patterns. To the best of our knowledge, our work is the first to develop a secure k-NN classifier over encrypted data under the semi-honest model. Also, we empirically analyze the efficiency of our solution through various experiments.
Motivation & Objective
- To address the challenge of performing k-NN classification on semantically encrypted data in outsourced cloud databases.
- To preserve confidentiality of both the database and user query records in encrypted form.
- To hide data access patterns from both the cloud and users to prevent inference attacks.
- To ensure that only the final class label is revealed to the user, with no leakage of intermediate results.
- To design an efficient protocol suitable for deployment in real-world cloud environments with performance optimization.
Proposed method
- The protocol uses semantically secure encryption to protect attribute-wise data and query records, ensuring confidentiality.
- It introduces a secure multi-party computation-based approach to compute k-NN distances without revealing sensitive data or access patterns.
- The protocol employs randomized encryptions and secure comparison protocols to compare encrypted distances without decryption.
- It leverages a secure minimum computation (SMINn) protocol to identify the k-nearest neighbors over encrypted data.
- Pre-computation of random encryptions (e.g., of 0s and 1s) is used to reduce online computation cost by 33%.
- Parallelization via OpenMP is applied to Stage 1 computations, achieving up to 6x speedup on a 6-core system.
Experimental results
Research questions
- RQ1Can a k-NN classifier be securely executed over semantically encrypted relational data in a cloud environment?
- RQ2How can the confidentiality of both the database and user query be preserved during classification?
- RQ3Can data access patterns—such as which records are accessed during k-NN search—be hidden from the cloud and user?
- RQ4What performance optimizations can be applied to make secure k-NN scalable for large datasets?
- RQ5How do pre-computation and parallelization impact the efficiency of secure k-NN in practice?
Key findings
- The proposed PP k-NN protocol achieves a 33.86% reduction in online computation cost for Stage 1 when using pre-computation, reducing time from 127.72 to 84.47 minutes for k=10 and K=1024 bits.
- Parallelization using OpenMP reduced the computation cost of Stage 1 from 127.72 minutes to 55.5 minutes when k=25, achieving a 6x speedup on a 6-core machine.
- The total network delay for the protocol was approximately 2 minutes (123.79s for Stage 1), which is significantly less than the total computation cost, indicating communication is not the bottleneck.
- Bob’s computation cost for encrypting his query was only 4–17 milliseconds for 512–1024-bit keys, making the protocol highly efficient for resource-constrained devices.
- The protocol successfully hides data access patterns and ensures that only the final class label is revealed to the user, meeting all privacy requirements under the semi-honest model.
- The protocol is the first to support secure k-NN classification over semantically encrypted data in the cloud while protecting data, queries, and access patterns simultaneously.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.