Abstract
In the dynamic environment of big data and cloud computing, securing image data during processing is a significant challenge. This paper presents a novel approach to image feature classification that integrates multilevel homomorphic encryption (HE) with image data partitioning. By employing a "chunk-based" strategy, the method reduces computational complexity and improves classification accuracy. A compound encryption strategy using the Cheon-Kim-Kim-Song (CKKS) scheme is applied to partitioned images to minimize storage and transmission overheads while maintaining robust privacy and security.
Introduction: The Efficiency-Privacy Trade-off
Deep learning models typically require massive datasets often processed on third-party cloud servers. However, uploading sensitive raw data—such as medical imagery or biometric information—poses severe privacy risks. Homomorphic Encryption (HE) offers a solution by allowing computations on encrypted data without decryption. Despite its potential, HE is notoriously slow, often leading to an "encryption tax" that makes real-time processing impractical. This research addresses this bottleneck by proposing a selective encryption pipeline that focuses resources on the most informative parts of an image.
Methodology
The proposed system optimizes the privacy-preserving pipeline through four key stages:
- Image Chunking and Gradient Filtering: Images are divided into $28 \times 28$ pixel chunks. A Sobel operator calculates local gradients to identify "feature-rich" areas (edges and textures) versus background noise.
- Selective CKKS Encryption: Only the identified feature-rich chunks are encrypted using the CKKS scheme, which is optimized for the floating-point arithmetic required by neural networks.
- HE-Compatible Architecture: To accommodate HE constraints, standard ReLU activation functions are replaced with a Square Activation Function ($y = x^2$), which can be computed as a simple polynomial.
- Computational Optimization: The system utilizes image-to-column (im2col) transformations to convert 2D convolutions into efficient matrix multiplications, mitigating the overhead of operating on ciphertexts.
Dataset and Experimental Setup
The methodology was validated using the NEU-CLS (Northeastern University surface defect database). This dataset contains 1,800 grayscale images of hot-rolled steel strip surface defects, categorized into six types: rolling scale (RS), patches (Pa), cracks (Cr), pitted surface (PS), inclusions (In), and scratches (Sc).
Industrial defect detection is an ideal use case for selective encryption because defects are often localized, meaning large portions of the image consist of redundant, non-informative background.
Key Results and Discussion
The "chunk-based" approach demonstrated significant improvements over traditional full-image encryption:
- Efficiency: The selective method reduced encryption and processing time by 51%, taking only 235ms per image compared to 484ms for full encryption.
- Accuracy: The model achieved an overall accuracy of 97.1%. Notably, for specific classes like "Pitted Surface," accuracy improved from 54% in plaintext to 92.6% in the encrypted model, suggesting that the chunking process may provide a beneficial regularizing effect.
- Privacy Preservation: By using CKKS and an indexing scheme, raw pixel data remains inaccessible to the cloud server, ensuring that the global structure of the image is never leaked to unauthorized parties.
Conclusion
This research proves that privacy-preserving deep learning can be made practical by focusing computational efforts on information-dense data regions. While currently tested on grayscale industrial datasets, future work will explore adaptive thresholding and hardware acceleration to extend these benefits to high-resolution color imagery and more complex computer vision tasks.
Summary updated