Skip to main navigation Skip to search Skip to main content

CryptInfer: Enabling Encrypted Inference on Skin Lesion Images for Melanoma Detection

  • Nayna Jain
  • , Karthik Nandakumar
  • , Nalini Ratha
  • , Sharath Pankanti
  • , Uttam Kumar
  • International Institute of Information Technology Bangalore
  • IBM
  • Mohamed Bin Zayed University of Artificial Intelligence
  • Microsoft USA

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations

Abstract

Deep learning models such as Convolutional Neural Networks (CNNs) have shown the potential to classify medical images for accurate diagnosis. These techniques will face regulatory compliance challenges related to privacy of user data, especially when they are deployed as a service on a cloud platform. Fully Homomorphic Encryption (FHE) can enable CNN inference on encrypted data and help mitigate such concerns. However, encrypted CNN inference faces the fundamental challenge of optimizing the computations to achieve an acceptable trade-off between accuracy and practical computational feasibility. Current approaches for encrypted CNN inference demonstrate feasibility typically on smaller images (e.g., MNIST and CIFAR-10 datasets) and shallow neural networks. This work is the first to show encrypted inference results on a real-world dataset for melanoma detection with large-sized images of skin lesions based on the Cheon-Kim-Kim-Song (CKKS) encryption scheme available in the open-source HElib library. The practical challenges related to encrypted inference are first analyzed and inference experiments are conducted on encrypted MNIST images to evaluate different optimization strategies and their role in determining the throughput and latency of the inference process. Using these insights, a modified LeNet-like architecture is designed and implemented to achieve the end goal of enabling encrypted inference on melanoma dataset. The results demonstrate that 80% classification accuracy can be achieved on encrypted skin lesion images (security of 106 bits) with a latency of 51 seconds for single image inference and a throughput of 18,000 images per hour for batched inference, which shows that privacy-preserving machine learning as a service (MLaaS) based on encrypted data is indeed practically feasible.

Original languageEnglish
Title of host publication1st International Conference on AI-ML-Systems, AIMLSystems 2021
PublisherAssociation for Computing Machinery
ISBN (Electronic)9781450385947
DOIs
StatePublished - Oct 21 2021
Event1st International Conference on AI-ML-Systems, AIMLSystems 2021 - Virtual, Online, India
Duration: Oct 21 2021Oct 23 2021

Publication series

NameACM International Conference Proceeding Series

Conference

Conference1st International Conference on AI-ML-Systems, AIMLSystems 2021
Country/TerritoryIndia
CityVirtual, Online
Period10/21/2110/23/21

Keywords

  • Convolutional neural network
  • ciphertext packing
  • homomorphic encryption
  • melanoma
  • multi-threading
  • non-linear activation function
  • optimization
  • skin cancer

Fingerprint

Dive into the research topics of 'CryptInfer: Enabling Encrypted Inference on Skin Lesion Images for Melanoma Detection'. Together they form a unique fingerprint.

Cite this