Literature DB >> 32693798

Semi-Parallel logistic regression for GWAS on encrypted data.

Miran Kim1, Yongsoo Song2, Baiyu Li3, Daniele Micciancio3.   

Abstract

BACKGROUND: The sharing of biomedical data is crucial to enable scientific discoveries across institutions and improve health care. For example, genome-wide association studies (GWAS) based on a large number of samples can identify disease-causing genetic variants. The privacy concern, however, has become a major hurdle for data management and utilization. Homomorphic encryption is one of the most powerful cryptographic primitives which can address the privacy and security issues. It supports the computation on encrypted data, so that we can aggregate data and perform an arbitrary computation on an untrusted cloud environment without the leakage of sensitive information.
METHODS: This paper presents a secure outsourcing solution to assess logistic regression models for quantitative traits to test their associations with genotypes. We adapt the semi-parallel training method by Sikorska et al., which builds a logistic regression model for covariates, followed by one-step parallelizable regressions on all individual single nucleotide polymorphisms (SNPs). In addition, we modify our underlying approximate homomorphic encryption scheme for performance improvement.
RESULTS: We evaluated the performance of our solution through experiments on real-world dataset. It achieves the best performance of homomorphic encryption system for GWAS analysis in terms of both complexity and accuracy. For example, given a dataset consisting of 245 samples, each of which has 10643 SNPs and 3 covariates, our algorithm takes about 43 seconds to perform logistic regression based genome wide association analysis over encryption.
CONCLUSIONS: We demonstrate the feasibility and scalability of our solution.

Entities:  

Keywords:  Genome-wide association studies; Homomorphic encryption; Logistic regression

Mesh:

Year:  2020        PMID: 32693798      PMCID: PMC7372846          DOI: 10.1186/s12920-020-0724-z

Source DB:  PubMed          Journal:  BMC Med Genomics        ISSN: 1755-8794            Impact factor:   3.063


Background

Since National Institutes of Health (NIH) released the Gemonic Data Sharing policy allowing the use of cloud computing services for storage and analysis of controlled-access data [1], we are getting more challenge to ensure security and privacy of data in cloud computing systems. In the United States, the Health Insurance Portability and Accountability Act regulates medical care data sharing [2]. A community effort has been made to protect the privacy of genomic data, for example, iDASH (integrating Data for Analysis, Anonymization, Sharing) has hosted secure genome analysis competition for the past 5 years. This contest has encouraged cryptography experts to develop practical yet rigorous solutions for privacy preserving genomic data analysis. As a result, we could demonstrate the feasibility of secure genome data analysis using various cryptographic primitives such as homomorphic encryption (HE), differential privacy, multi-party computation, and software guard extension. In particular, HE has emerged as one of the promising solutions for secure outsourced computation over genomic data in practical biomedical applications [3-6].

Summary of results

In this work, we provide a solution for the second track of iDASH 2018 competition, which aims to develop a method for outsourcing computation of Genome Wide Association Studies (GWAS) on homomorphically encrypted data. We propose a practical protocol to assess logistic regression model to compute p-values of different single nucleotide polymorphisms (SNPs). We investigate the association of genotypes and phenotypes by adjusting the models on the basis of covariates. The results will be used for identifying genetic variants that are statistically correlated with phenotypes of interest. One year ago, participants of the third task in iDASH 2017 competition were challenged to train a single logistic regression model on encrypted data. Although significant performance improvements over existing solutions have been demonstrated [7, 8], it is still computationally intensive to perform logistic regression based GWAS. A straightforward implementation would require building one model for each SNP, incurring a high performance overhead of secure computation. This motivates the use of the semi-parallel algorithm, which was previously discussed in [9, 10]. Following the approach, our algorithm proceeds in two steps over encrypted data: (1) construct a logistic regression model by applying the gradient descent method of [7] while taking only the covariates into account, (2) compute the regression parameters of logistic regression corresponding to SNPs with one additional update of Newton’s method. The model in the first step can be computed very efficiently and can be used for all SNPs in the subsequent step. In the second step, we apply various techniques to enable computing the logistic regression updates for all SNPs in many parallel sub-steps. This approach enables us to obtain logistic regression based models for thousands of SNPs all in one. Our solution is based on a homomorphic scheme by Cheon et al. [11] with support for approximate fixed-point arithmetic over the real numbers. Recently, a significant performance improvement was made in [8] based on the Residue Number System (RNS). The authors modified homomorphic operations so that they do not require any expensive RNS conversions. In this paper, we propose another RNS variant of approximate HE scheme which has some advantages for this task. Specifically, we adapt a different key-switching method which is a core operation in homomorphic multiplication or permutation. The earlier studies [8, 11] were based on the key-switching technique of [12] which introduces a special modulus. A special modulus had approximately the same bit-size as a ciphertext modulus to reduce the noise of key-switching procedure, but we observed that it is not the best option when the depth of an HE scheme is small. Instead, we combine the special modulus technique with RNS-friendly decomposition method [13]. As a result, we could minimize the parameter and thereby improve the performance while guaranteeing the same security level. We further leverage efficient packing techniques and parallelization approaches to reduce the storage requirement and running time.

Related works

There are a number of recent research articles on HE-based machine learning applications. Kim et al. presented the first secure outsourcing method to train a logistic regression model on encrypted data [14] and the follow-up showed remarkably good performance with real data [7, 8]. For example, the training of a logistic regression model took about 3.6 minutes on encrypted data consisting of 1579 samples and 18 features. A slightly different approach is taken in [15], where the authors use Gentry’s bootstrapping technique in fully homomorphic encryption, so that their solution can run for an arbitrary number of iterations of gradient descent algorithm.

Methods

The binary logarithm will be simply denoted by log(·). We denote vectors in bold, e.g. a, and matrices in upper-case bold, e.g. A. For an n×m matrix A, we use A to denote the i-th row of A, and a the j-th column of A. For a d1×d matrix A1 and a d2×d matrix A2,(A1;A2) denotes the (d1+d2)×d matrix obtained by concatenating two matrices in a vertical direction. If two matrices A1 and A2 have the same number of rows, (A1|A2) denotes a matrix formed by horizontal concatenation. We let λ denote the security parameter throughout the paper: all known valid attacks against the cryptographic scheme under scope should take Ω(2) bit operations.

Logistic regression

Logistic regression is a widely used in statistical model when the response variable is categorical with two possible outcomes [16]. In particular, it is very popular in biomedical informatics research and serve as the foundation of many risk calculators [17-19]. Let the observed phenotype be given as a vector y∈{±1} of length n, the states of p many SNPs as the n×p matrix S, and the states of k many covariates as the n×k matrix X. Suppose that an intercept is included in the matrix of covariates, that is, X contains a column of ones. For convenience, let for . For each j∈[p], logistic regression aims to find an optimal vector which maximizes the likelihood estimator where σ(x)=1/(1+ exp(−x)) is the sigmoid function, or equivalently minimizes the loss function, defined as the negative log-likelihood: Note that =(|β) depends on the index j, and we are particularly interested in the last component β that corresponds to the j-th SNP. There is no closed form formula for the regression coefficients that minimizes the loss function. Instead, we employ an iterative process: we begin with some initial guess for the parameters and then repeatedly update them to make the loss smaller until the process converges. Specifically, the gradient descent (GD) takes a step in the direction of the steepest decrease of L. The method of GD can face a problem of zig-zagging along a local optima and this behavior of the method becomes typical if it increases the number of variables of an objective function. We can employ Nesterov’s accelerated gradient [20] to address this phenomenon, which uses moving average on the update vector and evaluates the gradient at this looked-ahead position.

Newton’s method

We can alternatively use Newton algorithm to estimate parameters [21]. It can be achieved by calculating the first and the second derivatives of the loss function, followed by the update: . Let for i∈[n]; then p represents the probability of success for each sample. We see that ∇L()=U(y−p) and , where U is an n×(k+1) regressor matrix whose i-th row contains the variables is a column vector of the estimated probabilities p, and W is a diagonal weighting matrix with elements w=p(1− p). Then the above update formula can be rewritten as where z=U+W−1(y−p). Here, the vector z is known as the working response. This method is also called Iteratively Reweighted Least Squares. More details can be found in [21]. On the other hand, the Fisher information UWU can be partitioned into a block form: where is a column vector of all samples of the j-th SNP, b=XWs, and . Then the inverse of UWU is where t=c−bA−1b. Therefore, the estimated SNP effect β and the variance for the estimation are computed by where adj(A) denotes the adjugate matrix and |A| the determinant of A.

Full RNS variant of HEAAN, revisited

We apply the full RNS variant of the HEAAN scheme [11], called RNS-HEAAN [8], for efficient arithmetic over the real numbers. In addition, we modify some algorithms to meet our goals. The previous RNS-HEAAN scheme uses some approximate modulus switching algorithms for the key-switching procedure. The evaluation key should have a much larger modulus compared to encrypted data due to multiplicative noise. In this work, we developed and implemented a new key-switching algorithm which provides a trade-off between complexity and parameter. Our new key-switching process requires more Number Theoretic Transformation (NTT) conversions, but the HE parameters such as the ring dimension N can be reduced while keeping the same security level. In particular, our method is more efficient than the previous one when the depth of a circuit to be evaluated is small. The following is a simple description of RNS-HEAAN based on the ring learning with errors (RLWE) problem. Let be a cyclotomic ring for a power-of-two integer N. An ordinary ciphertext of RNS-HEAAN can be represented as a linear polynomial c(Y)=c0+c1·Y over the ring R where Q denotes the ciphertext modulus and R=R (mod Q) is the residue ring modulo Q. Given a base integer module q, a maximum level L of computation, a bit precision η, and a security parameter λ, the Setup algorithm generates the following parameters: Choose a basis such that q/q∈(1−2−,1+2−) for 1≤i≤L. We write for 0≤ℓ≤L. Choose a power-of-two integer N. Choose a secret key distribution χkey, an encryption key distribution χenc, and an error distribution χerr over R. We always use the RNS form with respect to the basis (or its sub-basis) to represent polynomials in our scheme. For example, an element a(X) of is identified with the tuple where a=a (mod q). We point out that all algorithms in our scheme are RNS-friendly, so that we do not have to perform any RNS conversions. The main difference of our scheme from previous work [8] is that the key-switching procedure is based on both the decomposition and modulus raising techniques. The use of decomposition allows us to use a smaller parameter, but its complexity may be increased when the level of HE scheme is large. However, we realize that the GWAS analysis does not require a huge depth, so this new key-switching technique is beneficial to obtain a better performance in this specific application. The generation of switching key and key-switching algorithms are described as follows. . Given two secret polynomials s1,s2∈R, sample and errors for 0≤i≤L. Output the switching key where for the integer such that B=1 (mod q) and B=0 (mod q) for all j≠i. . For , let c1,=c1 (mod q) for 0≤i≤ℓ. We first compute and then return the ciphertext . The idea of key-switching procedure is used to relinearize a ciphertext in homomorphic multiplication algorithm below. All other algorithms including key generation, encryption and decryption are exactly same as the previous RNS-based scheme. Sample s←χkey and set the secret key as sk=(1,s). Sample and e←χerr. Set the public key pk as where b=−a·s+e (mod Q). Set the evaluation key as evk←KSGen(s2,s). . Given m∈R, sample v←χenc and e0,e1←χerr. Output the ciphertext ct=v·pk+(m+e0,e1) (mod Q). . Given ciphertext , output 〈ct,sk〉 (mod q0). . Given two ciphertexts , output the ciphertext ct=ct+ct′ (mod Q). . For two ciphertexts ct=(c0,c1) and ct′=(c0′,c1′), compute d0=c0c0′,d1=c0c1′+c0′c1,d2=c1c1′ (mod Q). Let c2,=d2 (mod q) for 0≤i≤ℓ, and compute . Output the ciphertext . Finally, RNS-HEAAN provides the rescaling operation to round messages over encryption, thereby enabling to control the magnitude of messages during computation. . For given , return the ciphertext . It is a common practice to rescale the encrypted message after each multiplication as we round-off the significant digits after multiplication in plain fixed/floating point computation. In the next section, we assume that the rescaling procedure is included in homomorphic multiplications for simpler description, but a rigorous analysis about level consumption will be provided later in the parameter setting section. As in the original HEAAN scheme, the native plaintext space can be understood as an N/2-dimensional complex vector space (each vector component is called a plaintext slot). Addition and multiplication in R correspond to component-wise addition and multiplication on plaintext slots. Furthermore, it provides an operation that shifts the plaintext vector over encryption. For a ciphertext ct encrypting a plaintext vector , we could obtain an encryption of a shifted vector (m,…,m,m1,…,m). Let us denote such operation by Rot(ct;r). For more detail, we refer the reader to [8]. In the rest of this paper, we let N2=N/2 and denote by E(·) the encryption function for convenience.

Database encoding

As noted before, the learning data are recorded into an n×k matrix X of covariates, an n×p binary matrix S=(s) of all the SNP data, and an n-dimensional binary column vector y of the dependent variable. In large-scale GWAS, the number of parameters of SNPs, p can be in the thousands, so we split the SNP data into several N2-dimensional vectors, encrypt them, and send the resulting ciphertexts to the server. For simplicity, we assume in the following discussion that each row of S is encrypted into a single ciphertext. More specifically, for 1≤i≤n and for 1≤ℓ≤k, we encrypt E(xS)=E(xs,…,xs). As mentioned before, we add a column of ones to X to allow for an intercept in the regression; that is, we assume x=1 for all 1≤i≤n. So, when ℓ=1, the ciphertext E(xS) encrypts exactly the i-th SNP sample. Next, consider the matrix defined as For simplicity, we assume that n and k are power-of-two integers satisfying logn+ logk≤ log(N2). Kim et al. [7] suggested an efficient encoding map to encode the whole matrix yX in a single ciphertext in a row-by-row manner. Specifically, we will identify this matrix with a vector in , that is, Similarly, we identify the matrix X with a vector in as follows: For an efficient implementation, we can make N2/(k·n) copies of each component of yX and X to encode them into fully packed plaintext slots. For example, we can generate the encryption of yX as where denotes an array containing N2/(k·n) copies of yX. In the case of the target vector y, we make N2/n copies of each entry, so that the encoding aligns y with each copies of yX and X in the ciphertexts. Let us denote the generated ciphertext by E(y). Finally, we now consider how to encrypt the covariance matrix XX which can be used for computing the adjugate matrix and determinant of A=XWX. The adjugate adj(A) is a k×k matrix whose entries are defined as for 1≤j,ℓ≤k, where is the determinant of . Here, is a (k− 1)×(k−1) sub-matrix obtained by removing the j-th column and ℓ-th row from A. For example, when k=4, the determinant is computed by a22(a33a44−a34a43)+a23(a34a42−a32a44)+a24(a32a43−a33a42), which can be rewritten as a component-wise product of three vectors In general, we can consider (k−1)!-dimensional vectors A,A,…,A that can be used to compute . To do so, for each i∈[n], we first pre-compute the i-th covariance matrix and generate the corresponding vector for 1≤j≤ℓ≤k and 1≤t≤k−1. Suppose that N2n·(k−1)!. Let ϕ=N2/(n·(k−1)!), and we encrypt the following concatenated vector We denote the resulting ciphertext by E(Σ). An alternative choice is to encrypt SNPs, covariates, and phenotype vectors in a separate way. The server can reconstruct the aforementioned encryptions by applying homomorphic operations, but it requires additional levels for the computation. So, we used the former encryption algorithm in the implementation, thereby saving on the depth and time in the evaluation. Our encoding system has another advantage, in that it can be applied to horizontally partitioned data where each party has a subset of the rows in dataset. In this case, each party encrypts their locally computed quantities on their data and sends them to the server. Then the server aggregates them to obtain encryptions of the shared data as the ones in our encryption method.

Homomorphic evaluation of logistic regression

The main idea of the semi-parallel logistic regression analysis [9, 10] is to assume that the probabilities predicted by a model without SNP will not change much once SNP is included to the model. We will follow their approach, where the first step is to construct a logistic regression model taking only the covariates into account, and the second step is to compute the model coefficients of the logistic regression corresponding to the SNP in a semi-parallel way. We start with a useful aggregation operation across plaintext slots from the literature [22-24]. This algorithm is referred as AllSum, which is parameterized by integers ψ and α. See Algorithm 1 for an implementation. Let ℓ=ψ·α. Given a ciphertext ct representing a plaintext vector , the AllSum algorithm outputs a ciphertext ct′ encrypting i.e., for 1≤i≤ψ, and mψj+i′=mi′ for 1≤j≤α−1. For example, when ψ=1, it returns an encryption of the sum of the elements of m. As mentioned before, our algorithm consists of two steps to perform the semi-parallel logistic regression training while taking as input the following ciphertexts: {E(xS)},E(yX),E(X),E(y), and {E(Σ)}, for 1≤i≤n,1≤j≤ℓ≤k, and 1≤t≤k−1.

Logistic regression model training for covariates

The best solution to train a logistic regression model from homomorphically encrypted dataset is to evaluate Nesterov’s accelerated gradient descent method [7, 8]. We adapt their evaluation strategy to train a model for covariates. Step 0: For simplicity, let v=yX and ℓ=N2/(k·n). Since the input ciphertext E(yX) represents ℓ copies of v, Step 6 in [7] outputs the following ciphertext that encrypts the same number of copies of the vectors : Then Step 7 in [7] is changed from AllSum(ct6,k,n) into ct7=AllSum(ct6,N2/n,n), so that the output ciphertext is as follows: In the end, the model parameters are encrypted as a ciphertext with fully-packed plaintext slots. More precisely, it yields encrypted model parameters E() that represent a plaintext vector containing N2/k=ℓ·n copies of as follows:

Parallel logistic regression model building for SNPs

Starting with , we will perform one step of Newton’s method for regression with SNPs. This implies that the regression coefficients multiplied by the values of the predictor are U=X, so for all i∈[n], if we let the predicted value be , then we have . We note that with . In the following, we describe how to securely evaluate these variables from the model parameters . In the end, the server outputs encryptions of the numerator and the denominator of Eq. 1, denoted by and . Step 1: Let be a column vector of the predicted values. The goal of this step is to generate its encryption. The server first performs homomorphic multiplication between two ciphertexts E() and E(X), and then applies AllSum to the resulting ciphertext: The output ciphertext encrypts the values at (t·k+1) positions for (i−1)·ℓ≤the other entries, denoted by ⋆, i.e., The server then performs a constant multiplication by c to annihilate the garbage values. The polynomial c←Encode(C) is the encoding of the following matrix, where Encode(·) is a standard procedure in [11] to encode a real vector as a ring element in R: The next step is to replicate the values to the other columns: denoted by CMult(·) a scalar multiplication. So, the output ciphertext has N2/n=ℓ·k copies of : Step 2: This step is simply to evaluate the approximating polynomial of the sigmoid function by applying the pure SIMD additions and multiplications: Then the server securely computes the weights w and carries out their multiplication with the working response vector z using Eq. 3: Here the two output ciphertexts containing N2/n copies of the values w and wz, respectively: Step 3: The goal of this step is to generate trivial encryptions E(w) such that for i∈[n],E(w) has w in all positions of its plaintext vector. We employ the hybrid algorithm of [22] for replication, denoted by Replicate(·). The server outputs n ciphertexts Similarly, the server takes the ciphertext E(Wz) and performs another replication operation: Step 4: For all j∈[p], we define the vector and denote the ℓ-th component of b by b. We note that where is the j-th column of the design matrix X. Then, for all ℓ∈[k], the server generates encryptions of the vectors by computing On the other hand, since we add a column of ones to the matrix X, we have for j∈[p], which implies that E(B1) can be understood as an encryption of (c1,c2,…,c). Step 5: This step is to securely compute the values for j∈[p]. Specifically, the server performs the following computation: Step 6: The goal of this step is to securely compute the vector XWz such that the ℓ-th element is obtained by for ℓ∈[k]. The server first performs the pure SIMD multiplication between two ciphertexts E(X) and E(Wz): Here, the output ciphertext E(X⊙Wz) encrypts the values xwz: Then the server aggregates the values in the same column to obtain a ciphertext encrypting : Notice that this ciphertext contains the scalar in every entry of the ℓ-th column, for 1≤ℓ≤k: Finally, it outputs k ciphertexts, each encrypting for 1≤ℓ≤k, by applying the replication operation as follows: Step 7: The goal of this step is to compute the encryptions of the adjugate matrix and the determinant of A=XWX. We note that for 1≤r≤s≤k and 1≤t≤k−1. The server first multiplies the ciphertexts E(Σ) with the ciphertext E(w) to obtain Here, the ciphertext E(Σr,s,t′) encrypts n vectors for 1≤i≤n. Then we apply AllSum to aggregate these vectors and obtain A: Next, the server performs multiplications between the ciphertexts E(A) as follows: The adjugate matrix can be obtained by aggregating (k−1)! many values in E(Σ): In addition, the server computes for 1≤r≤k, and obtains a trivial encryption of the determinant of A as follows: Step 8: The final step is to securely compute the encryptions of and ∗ by pure SIMD additions and multiplications. We note that multiplication of the vectors B from the left side and XWz from the right side with the matrix adj(A) can be written as So, the server evaluates the numerator of Eq. 1 to get the encryption of ∗: Then the output ciphertext E(∗) encrypts the values ’s in a way that . Similarly, we evaluate the denominator of Equation (1) to get an encryption of : Hence, the output ciphertext E() represents the values in a way that .

Output reconstruction

The server sends the resulting ciphertexts E(∗),E(), and E(|A|) to the authority who has the secret key of the underlying HE scheme. Afterwards, the authority decrypts the values and computes the test statistics by using the Wald z-test, which are defined by the coefficient estimates divided by the standard errors of the parameters: for all j∈[p]. In the end, the p-values can be obtained from the definition . It includes some post computations after decryption, however, we believe that this is a reasonable assumption for the following reasons. Its complexity is even less than that of decryption, so this process does not require any stronger condition on the computing power of the secret key owner. Meanwhile, the output ciphertexts are encrypting (2p+1) scalar values, which is two times more information compared to the ideal case. Our solution relies on the heuristic assumption that no sensitive information beyond the desired p-values can be extracted from decrypted results. One alternative is that the server can use a masking (sampling random values such that and multiplying them to and |A|, respectively) on resulting ciphertexts before sending them to the secret key owner to weaken this assumption.

Threat model

We consider the following threat models. Firstly, we assume that the computing server is semi-honest (i.e., honest but curious). If we can ensure the semantic security of the underlying HE scheme, there is no information leakage from encrypted data even in malicious setting. Secondly, we assume that the secret key owner does not collude with the server.

Results

In this section, we explain how to set the parameters and report the performance of our regression algorithms.

Dataset description

The dataset provided by the iDASH competition organizers consists of 245 samples, partitioned into two groups by the condition of high cholesterol, 137 under control group and 108 under disease group. Each sample contains a binary phenotype along with 10643 SNPs and 3 covariates (age, weight, and height). This data was extracted from Personal Genome Project [25]. The organizers changed the input size in terms of SNPs, cohort size, and threshold of significance to test the scalability of submitted solutions. We may assume that the imputation and normalization are done in the clear prior to encryption. More precisely, we impute the missing covariate values with the sample mean of the observed covariates. We also center the covariates matrix X by subtracting the minimum from each column and dividing by a quantity proportional to the range.

Parameters settings

We explain how to choose the parameter sets for building secure semi-parallel logistic regression model. We begin with a parameter L which determines the largest bitsize of a fresh ciphertext modulus. Since the plaintext space is a vector space of real numbers, we multiply a scale factor of p to plaintexts before encryption. It is a common practice to perform the rescaling operation by a factor of p on ciphertexts after each (constant) multiplication in order to preserve the precision of the plaintexts. This means that a ciphertext modulus is reduced by logp bits after each multiplication or we can say that a multiplication operation consumes one level. Kim et al. [14] proposed the least squares approach to find a global polynomial approximation of the sigmoid and presented degree 3, 5, and 7 approximation polynomial over the domain [−8,8]. We observed that input values of the sigmoid in our data belong to this interval. As noted in [14], these approximations offer a trade-off between accuracy and efficiency. A low-degree polynomial requires a smaller depth for an evaluation while a high-degree polynomial has a better precision. So, we adapt the degree 3 approximation polynomials of the sigmoid function as σ3(x)=0.5+0.15012x−0.001593x3, which consumes roughly two levels. Suppose that we start with and the input ciphertext E(yX) is at level L. It follows from the parameter analysis of [7] that the ciphertext level of E() after the evaluation of Nesterov’s accelerated GD is L−(4·(NUMITER−1)+1) where NUMITER denotes the number of iterations of the GD algorithm. Similarly, we expect each of Steps 1 and 2 to consume two levels for computing the ciphertexts and E(p). This means that E(p) is at level L−(4·NUMITER+1); so, we get We now consider the replication procedure in Step 3. Although the input vector is fully packed into a single ciphertext (i.e., the length of the corresponding plaintext vector is N2), it suffices to produce n number of ciphertexts, each of which represents an entry w across the entire array. As presented in Section 4.2 of [22], the replication procedure consists of two phases of computation. The first phase is to partition the entries in the input vector into size- 2 blocks and construct n/2 number of vectors consisting of the entries in the i-th block with replicated N2/2 times. We use a simple replication operation n/2 times, which applies multiplicative masking to extract the entry and then perform the AllSum operation to replicate them as in Step 1; its depth is just a single constant multiplication. The second phase is to recursively apply replication operations in a binary tree manner, such that in each stage we double the number of vectors while halving the number of distinct values in each vector; its depth is s constant multiplications. In total, we expect to consume (s+1) levels during the replication procedure; so, we get Later, Step 4 consumes one level from the level lvl(E(w)) for multiplication; so, we have Similarly, Step 5 consumes one more level from the computation of E(wz); so we get On the other hand, Step 6 requires one level of multiplication for the evaluation of the update formula (8); so we know As discussed above, the output ciphertexts consume (s′+1) levels during the replication procedure where is the unit block size of the first step of the replication procedure; so we have In Step 7, it requires one and log(k−1) levels of multiplications for the evaluation of the update formulas (9) and (10), respectively. If we let ℓ′=max{lvl(E(w)),lvl(E(Σ))}, then we have It follows from the update formulas (11) and (12) in Step 8 that it suffices to set as lvl(E(adj(A)))=lvl(E(B))=3 for obtaining the correct results. This implies that we need to set the number of levels L to be at least L≥(4·NUMITER+s+4)+3 from (13). In the implementation, we set NUMITER=2,s=4,s′=0, and L=19. The encryption levels of data are set as follows: lvl(E(yX))=L=19, lvl(E(X))=lvl(E())=14, from (4) lvl(E(y))=lvl(E(p))=10, from (5), lvl(E(xS))=lvl(E(w))=4, from (6), lvl(E(Σ))=lvl(E(adj(A)))+3=6. We use logp0≈60, logq0≈51, and logq≈43 for i=1,…,L. Therefore, we derive a lower bound of the bit size of the largest RLWE modulus Q as Alternatively, we may do a few less or more iterations in the GD algorithm, for example, setting NUMITER=1 or 3. We conducted tests to compare the trade-offs in using different sets of parameters. We choose the secret key from the ternary distribution, which means to select uniformly at random from {−1,0,1}. The error is sampled from the discrete Gaussian distribution of standard deviation stdev=3.2. We follow the recommended parameters from the standardization workshop paper [26], thus providing at least 128-bits security level of our parameters. We summarize the parameters of our implementation in Table 1. For comparison, we also listed parameters when using NUMITER=1 and 3.
Table 1

HE parameter sets

NumIterlogNLlogplogq0logp0logQ
Set-I11515435160713
Set-II21519435160885
Set-III316234554621106
HE parameter sets

Optimization techniques

The standard method of homomorphic multiplication consists of two steps: raw multiplication and key-switching. The first step computes the product of two ciphertexts ct(Y)=c0+c1Y and ct′(Y)=c0′+c1′Y (as done in [27]), and returns a quadratic polynomial, called extended ciphertext, ct=c0c0′+(c0c1′+c0′c1)Y+c1c1′Y2. This ciphertext can be viewed as an encryption of the product of plaintexts with the extended secret (1,s,s2). Afterwards, the key-switching procedure transforms it into a normal (linear) ciphertext encrypting the same message with the secret key (1,s). We observe that the second step is much more expensive than the first one since it includes an evaluation of NTT (Fourier transformation over the modulo space), and that a simple arithmetic (e.g. linear operation) is allowed between extended ciphertexts. To reduce the complexity, we adapt the technique called lazy key-switching, which performs some arithmetic over extended ciphertexts instead of running the second step right after each raw multiplication. We get a normal ciphertext by performing only one key-switching operation after evaluating linear circuits over the extended ciphertexts. It can reduce the number of required key-switching algorithms as well as the total computational cost. For instance, if we add many terms after raw multiplications in the right hand side of the update (6) and apply key-switching to the output ciphertext, this takes only one key-switching rather than n.

Performance results

We present our implementation results using the proposed techniques. All the experiments were performed on a Macbook with an Intel Core i7 running with 4 cores rated at 2.5 GHz. Our implementation exploits multiple cores when available, thereby taking the advantages of parallelization. In Table 2, we evaluated our model’s performance based on the average running time and the memory usages in the key generation, encryption, evaluation, and decryption procedures.
Table 2

Experimental results for iDASH dataset with 245 samples, each has 10643 SNPs and 3 covariates (4 cores)

StageSet-ISet-IISet-III
Key Generation4.460 s2.321 GB6.665 s3.584 GB9.699 s10.721 GB
Encryption7.059 s5.406 GB7.066 s6.669 GB23.023 s12.137 GB
Training with covariates2.622 s7.176 GB9.367 s7.186 GB62.922 s12.137 GB
Training with all SNPs40.442 s10.339 GB42.567 s11.176 GB108.24 s12.137 GB
Total evaluation43.064 s51.934 s171.162 s
Decryption0.025 s10.339 GB0.025 s11.176 GB0.055 s12.137 GB
Reconstruction0.794 ms10.339 GB0.794 ms11.176 GB2.821 ms12.137 GB
Experimental results for iDASH dataset with 245 samples, each has 10643 SNPs and 3 covariates (4 cores) We achieved very high level of accuracy in the final output (after decryption) for all three sets of parameters. The type-I (false positive) and type-II (false negative) errors of the output of our solution are very small when comparing to both the semi-parallel model and the gold standard model (full logistic regression) with respect to various p-value cut-off thresholds. See Figs. 1 and 2 for comparisons against these two plain models with a cut-off of 10−5 when NUMITER=2. To better compare the estimated p-values (above or below certain cut-offs) on the encrypted model against the plaintext one (semi-parallel GWAS), we measured F1-scores on the p-values obtained from our solution against the two plain models. The resulting F1-scores are very close to 1 across all cases with different cut-offs (10−2 to 10−5), which are shown in Table 3.
Fig. 1

Comparison with the semi-parallel model (p-value cut-off: 10−5)

Fig. 2

Comparison with the gold standard model (p-value cut-off: 10−5)

Table 3

F1-Scores on different models

Cut-offv.s. Plain semi-parallel modelv.s. Plain gold standard model
Set-ISet-IISet-IIISet-ISet-IISet-III
10−20.98070.98300.99640.98180.98080.9710
10−30.97490.98100.99750.98780.98870.9740
10−40.97450.97980.99690.98780.98880.9729
10−50.98280.98520.99710.99460.99700.9805
Comparison with the semi-parallel model (p-value cut-off: 10−5) Comparison with the gold standard model (p-value cut-off: 10−5) F1-Scores on different models We also conducted the DeLong’s test [28, 29] to validate our solution against the semi-parallel model. Specifically, we drawn at uniformly random about 10% of the total SNP test data and transformed the corresponding p-values to 0-1 labels according to the cut-off threshold; then we constructed the ROC (Receiver Operating Characteristic) curves for these labels and performed the DeLong’s test to compare the AUCs (Area Under the Curve) of these curves. Such test was repeated 10 times to obtain the mean and the standard deviation of the p-values of the test. The results for NUMITER=2 are shown in Table 4.
Table 4

DeLong’s Test for AUCs of our solution with Set-II against the plain semi-parallel model

Cut-offMean and stdev of the test results
10−20.4038 ±0.3001
10−30.5357 ±0.2704
10−40.6404 ±0.2638
10−50.8959 ±0.2195
DeLong’s Test for AUCs of our solution with Set-II against the plain semi-parallel model

Discussion

One constraint in our approach is that the matrix inverse can be computed in an efficient way when the input dimension is small. In modern GWAS, it is common to include covariates to account for such factors as gender, age, other clinical variables and population structure. A significant challenge in performing efficient secure GWAS on this generalized model is to handle large-scale matrix inversion.

Conclusion

In this paper, we showed the state-of-the-art performance of secure logistic regression model training for GWAS. We have demonstrated the feasibility and scalability of our model in speed and memory consumption. We expect that the performance can be improved if the underlying HE scheme is rewritten with optimized code.
  12 in total

1.  ICU acuity: real-time models versus daily models.

Authors:  Caleb W Hug; Peter Szolovits
Journal:  AMIA Annu Symp Proc       Date:  2009-11-14

2.  Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach.

Authors:  E R DeLong; D M DeLong; D L Clarke-Pearson
Journal:  Biometrics       Date:  1988-09       Impact factor: 2.571

3.  A multivariate analysis of the risk of coronary heart disease in Framingham.

Authors:  J Truett; J Cornfield; W Kannel
Journal:  J Chronic Dis       Date:  1967-07

4.  pROC: an open-source package for R and S+ to analyze and compare ROC curves.

Authors:  Xavier Robin; Natacha Turck; Alexandre Hainard; Natalia Tiberti; Frédérique Lisacek; Jean-Charles Sanchez; Markus Müller
Journal:  BMC Bioinformatics       Date:  2011-03-17       Impact factor: 3.307

5.  Secure Logistic Regression Based on Homomorphic Encryption: Design and Evaluation.

Authors:  Miran Kim; Yongsoo Song; Shuang Wang; Yuhou Xia; Xiaoqian Jiang
Journal:  JMIR Med Inform       Date:  2018-04-17

6.  Towards practical privacy-preserving genome-wide association study.

Authors:  Charlotte Bonte; Eleftheria Makri; Amin Ardeshirdavani; Jaak Simm; Yves Moreau; Frederik Vercauteren
Journal:  BMC Bioinformatics       Date:  2018-12-20       Impact factor: 3.169

7.  GWAS on your notebook: fast semi-parallel linear and logistic regression for genome-wide association studies.

Authors:  Karolina Sikorska; Emmanuel Lesaffre; Patrick F J Groenen; Paul H C Eilers
Journal:  BMC Bioinformatics       Date:  2013-05-28       Impact factor: 3.169

8.  Private genome analysis through homomorphic encryption.

Authors:  Miran Kim; Kristin Lauter
Journal:  BMC Med Inform Decis Mak       Date:  2015-12-21       Impact factor: 2.796

9.  Logistic regression model training based on the approximate homomorphic encryption.

Authors:  Andrey Kim; Yongsoo Song; Miran Kim; Keewoo Lee; Jung Hee Cheon
Journal:  BMC Med Genomics       Date:  2018-10-11       Impact factor: 3.063

10.  Logistic regression over encrypted data from fully homomorphic encryption.

Authors:  Hao Chen; Ran Gilad-Bachrach; Kyoohyung Han; Zhicong Huang; Amir Jalali; Kim Laine; Kristin Lauter
Journal:  BMC Med Genomics       Date:  2018-10-11       Impact factor: 3.063

View more
  3 in total

1.  Secure tumor classification by shallow neural network using homomorphic encryption.

Authors:  Seungwan Hong; Jai Hyun Park; Wonhee Cho; Hyeongmin Choe; Jung Hee Cheon
Journal:  BMC Genomics       Date:  2022-04-09       Impact factor: 3.969

2.  Secure human action recognition by encrypted neural network inference.

Authors:  Miran Kim; Xiaoqian Jiang; Kristin Lauter; Elkhan Ismayilzada; Shayan Shams
Journal:  Nat Commun       Date:  2022-08-15       Impact factor: 17.694

3.  SVAT: Secure outsourcing of variant annotation and genotype aggregation.

Authors:  Miran Kim; Su Wang; Xiaoqian Jiang; Arif Harmanci
Journal:  BMC Bioinformatics       Date:  2022-10-01       Impact factor: 3.307

  3 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.