Sketching Algorithms for Genomic Data Analysis and Querying in a Secure Enclave

Can Koçkan, Kaiyuan Zhu, Natnatee Dokmai, Nikolai Karpov, Oğuzhan Külekci, David P. Woodruff, Cenk SahinalpbioRxiv 2018

TL;DR

This paper introduces SkSES, a framework that enables secure and private collaborative genomic data analysis, specifically Genome-Wide Association Studies (GWAS), using Intel SGX secure enclaves. SkSES leverages novel sketching data structures to overcome the memory limitations of these enclaves, allowing for efficient querying of significant SNPs even with massive datasets.

What Problem Does This Paper Address?

Collaborative genomic analysis is crucial for advancing our understanding of diseases, but it's severely hampered by privacy concerns. Sharing raw genomic data is often infeasible due to its sensitive nature. Existing privacy-preserving methods, like homomorphic encryption or garbled circuits, are computationally too expensive for the scale of genomic data. While Intel SGX offers a hardware-based solution for secure computation, its limited enclave memory presents a significant bottleneck for processing large genomic datasets. This paper addresses the challenge of performing efficient and privacy-preserving genomic analysis and querying within these memory-constrained secure enclaves.

Methods

SkSES tackles the memory limitation of Intel SGX enclaves through a two-pronged approach:

  • Data Filtering and Compression: Before entering the enclave, individual VCF files (Variant Call Format) are filtered to retain only essential information for GWAS (like SNP IDs and zygosity status). This is followed by a novel compression scheme that uses delta encoding and minimal binary representation to significantly reduce data size.
  • Sketching Data Structures: To handle the massive number of SNPs that cannot fit into the enclave's memory, SkSES employs sketching algorithms. These algorithms create compact summaries (sketches) of the data that capture key characteristics. Specifically, they adapt count-min sketch and count sketch algorithms to estimate SNP significance (using the chi-squared statistic) with high probability. This allows for efficient identification of top SNPs and supports flexible online querying for subsets of SNPs.

Datasets

The primary dataset used for evaluation was the iDASH-2017 competition dataset. This dataset consisted of:

  • 1000 "case" and 1000 "control" VCF files, totaling 2000 individuals.
  • The full dataset comprised approximately 6.93 x 10^7 unique SNPs across the whole genome.
  • A subset focusing on chromosome 1 was also used, containing 5.51 x 10^6 unique SNPs.

The paper notes that this dataset is representative of real-world scenarios where data might originate from multiple institutions.

Key Insights and Ideas

  • Sketching for Genomics is Feasible: The paper demonstrates that sketching algorithms, previously successful in other domains, can be effectively adapted for genomic data analysis within the constraints of secure enclaves.
  • SGX Memory is a Key Constraint: The limited memory of Intel SGX enclaves is the primary challenge, necessitating innovative data handling techniques beyond traditional methods.
  • F as a Proxy for Chi-Squared Statistic: The research shows that a derived metric, 'F' (related to allele frequency differences between cases and controls), can serve as a reliable proxy for the chi-squared statistic, enabling efficient ranking of SNPs.
  • Flexible Online Querying: SkSES's sketching approach allows users to perform online queries for top SNPs within specified subsets, a capability not easily achievable with standard data storage methods in memory-constrained environments.

Key Results

  • Significant Compression: The filtering and compression methods achieved approximately a 50-fold improvement in data size compared to plaintext VCF files.
  • Performance Advantage: SkSES's sketching algorithms outperformed standard hash table-based methods for SNP analysis on chromosome 1, achieving near 100% accuracy for the top SNPs.
  • Scalability: For the whole genome dataset, where standard hash tables are infeasible due to memory limitations, SkSES's sketching data structures handled the increased data size effectively, maintaining good performance for both data structure construction and querying.
  • High Accuracy: The sketches demonstrated high accuracy in identifying true top SNPs, with 100% accuracy for the top 100 SNPs in the iDASH-2017 dataset. Accuracy degraded gracefully for larger values of k.

Limitations and Future Work

  • SGX Threading Limitations: The paper notes that multi-threading within SGX enclaves is limited by the number of logical processors, which can impact performance scaling.
  • Approximation Trade-offs: While sketching provides efficiency, it involves an approximation. The paper discusses the trade-off between sketch size (width and depth) and accuracy, and the potential for "false negatives" (true top SNPs not being returned).
  • Future Work: The authors suggest that the framework can be extended to accommodate other statistical methods beyond the chi-squared statistic. They also imply that further optimization of sketching parameters and SGX utilization could lead to even better performance.

Summary updated

Abstract

Current practices in collaborative genomic data analysis (e.g. PCAWG) necessitate all involved parties to exchange individual patient data and perform all analysis locally, or use a trusted server for maintaining all data to perform analysis in a single site (e.g. the Cancer Genome Collaboratory). Since both approaches involve sharing genomic sequence data - which is typically not feasible due to privacy issues, collaborative data analysis remains to be a rarity in genomic medicine. In order to facilitate efficient and effective collaborative or remote genomic computation we introduce SkSES (Sketching algorithms for Secure Enclave based genomic data analysiS), a computational framework for performing data analysis and querying on multiple, individually encrypted genomes from several institutions in an untrusted cloud environment. Unlike other techniques for secure/privacy preserving genomic data analysis, which typically rely on sophisticated cryptographic techniques with prohibitively large computational overheads, SkSES utilizes the secure enclaves supported by current generation microprocessor architectures such as Intel's SGX. The key conceptual contribution of SkSES is its use of sketching data structures that can fit in the limited memory available in a secure enclave. While streaming/sketching algorithms have been developed for many applications in computer science, their feasibility in genomics has remained largely unexplored. On the other hand, even though privacy and security issues are becoming critical in genomic medicine, available cryptographic techniques based on, e.g. homomorphic encryption or garbled circuits, fail to address the performance demands of this rapidly growing field. The alternative offered by Intel's SGX, a combination of hardware and software solutions for secure data analysis, is severely limited by the relatively small size of a secure enclave, a private region of the memory protected from other processes. SkSES addresses this limitation through the use of sketching data structures to support efficient secure and privacy preserving SNP analysis across individually encrypted VCF files from multiple institutions. In particular SkSES provides the users the ability to query for the "k" most significant SNPs among any set of user specified SNPs and any value of "k" - even when the total number of SNPs to be maintained is far beyond the memory capacity of the secure enclave. Results: We tested SkSES on the complete iDASH-2017 competition data set comprised of 1000 case and 1000 control samples related to an unknown phenotype. SkSES was able to identify the top SNPs with respect to the chi-squared statistic, among any user specified subset of SNPs across this data set of 2000 individually encrypted complete human genomes quickly and accurately - demonstrating the feasibility of secure and privacy preserving computation for genomic medicine via Intel's SGX. Availability: https://github.com/ndokmai/sgx-genome-variants-search Contact: [email protected]
BibTeX
@misc{kockan2018sketching,
  author = {Can Koçkan and Kaiyuan Zhu and Natnatee Dokmai and Nikolai Karpov and Oğuzhan Külekci and David P. Woodruff and Cenk Sahinalp},
  title = {{Sketching Algorithms for Genomic Data Analysis and Querying in a Secure Enclave}},
  year = {2018},
  doi = {10.1101/468355},
  howpublished = {bioRxiv},
}
Figure