This invention relates generally to probabilistic inference based on hidden Markov models, and more particularly to privacy-preserving computation between a server computer and a client computer for probabilistic inference based on hidden Markov models.
Probabilistic inference based on Hidden Markov Models (HMMs) is common in machine learning, speech processing, and gene sequence analysis. Probabilistic inference with privacy constraints is a relatively unexplored area of research and applies to a multi-party scenario in which the data and the HMMs belong to different parties and cannot be shared. For example, a client computer (Alice) needs to analyze speech data from telephone calls. Alice outsources the speech recognition task to a server computer (Bob), who possesses the HMMs obtained from a trained database. Alice cannot share the speech data with Bob owing to privacy concerns, while Bob cannot disclose the HMM parameters, which can reveal information about the training database.
One method for secure inference via HMMs is based on privacy-preserving two-party maximization methods, in which both parties incur exactly the same protocol overhead. However, that method is not suited for applications where a thin client encrypts the data and transmits the encrypted data to the server for performing most of the computationally intensive tasks.
HMM and Three Basic Problems of HMMs
The HMM is a generalization of a Markov chain, in which a state of the HMM is not directly known but generates an output which can be analyzed. The outputs are also referred to as “observations.” Because the observations depend on a hidden state of the HMM, the observation can reveal information about the hidden state.
The HMM λ is a triple of parameters λ=(A, B, Π) A matrix A, A=(aij), is a state transition matrix, aij is a transition probability from a state Si to a state Si, wherein 1≦i, j≦N, and N is a number of states of the HMM, aij=Pr{qt+1=Sj|qt=Si}, 1≦i, j≦N, where {S1, S2, . . . , SN} is a set of states, and qt is the state at time t, and Pr is the joint probability.
A matrix B, B (b1, b2, . . . , , bN), is a matrix of probabilities of observations, bj is a column vector of the matrix of probabilities over a known alphabet of the observation sequence, j=1, 2, . . . , N. Thus, bj(νk)=Pr{xt=νk|qt=Sj}, 1≦j≦N, 1≦k≦M, where {ν1, ν2, . . . , νM} is the alphabet of observation symbols, and xt is the observation at time t. A vector Π, Π=(π1, π2, . . . , πN), is an initial state probability vector of the HMM, wherein πi=Pr{q1=Si}.
For the observation sequence x1, x2, . . . , xT and the HMM λ=(A, B, Π), one problem is to determine the probability of the observation sequence with respect to the HMM, i.e., Pr{x1, x2, . . . , xT|λ}. Solutions for this problem in unsecure domain include a forward algorithm and a backward algorithm.
In statistical parsing, e.g., gene sequence analysis and natural language processing, a main problem is to determine a most likely sequence of states corresponding to the observation sequence with respect to the HMM. The problem is to efficiently compute the joint probability Pr{q1, q2, . . . , qT, x1, X2, . . . , xT|λ} for the HMM λ=(A, B, Π). The problem is usually solved in the unsecure domain by a Viterbi algorithm.
Another problem is to determine parameters of the HMM based on the observation sequence. One solution to this problem in the unsecure domain includes the Baum-Welch algorithm.
Forward Algorithm
A joint probability of an observation sequence in state Sj at time t is
αi=Pr{x1,x2, . . . ,xt,qt=Sj|λ}. (1)
The forward algorithm in the unsecure domain includes the following steps.
Backward Algorithm
A backward probability is defined according to
βt(j)=Pr{xt+1,xt+2, . . . ,xT|qT=Sj,λ} (3)
The backward algorithm in the unsecure domain includes:
Pr{x
1
,x
2
, . . . ,x
T|λ}=Σj=1Nπjbj(x1)β1(j)
Viterbi Algorithm
A probability of most probable state sequence ending in the state Sj for the observation sequence at time t is determined according to
where max is a function of a maximum value.
The Viterbi algorithm in the unsecure domain includes the following steps:
Determining a probability of the most probable state sequence ending in a state Sj for a next time t+1 and the matrix of indexes according to
for all 1≦j≦N and at each 1≦t≦T−1.
Determining an index of the most likely final state according to iT*=arg maxi=1, . . . , N{δT(i)}, and backtracking the indexes it*=φt+1(it+1*), for t=1, 2, . . . , T−1.
Determining the most probable state sequence Si
Baum-Welch Algorithm
The Baum-Welch algorithm, also known as forward-backward algorithm, estimates the optimal HMM parameters for a given observation sequence x1, x2, . . . , xT, and maximizes the probability of observation over all hidden Markov models, maxλPr{x1, x2, . . . , xT|λ}.
For a given HMM λ=(A, B, Π), the probability of being in the state Si at time t and being in the state Sj at the time t+1, is defined as a conditional probability ζt(i, j) according to
ζt(i,j)=Pr{qt=Si,qt+1=Sj|x1,x2, . . . ,xTλ}, (8)
which is equal to
By employing the notations of αt(i) and βt(i) defined in Equation (1) and Equation (3), a conditional probability ζt(i,j) is
A total conditional probability γt(i) of being in the state Si at time t is determined according to
γt(i)=Σj=1Nζt(i,j) for all 1≦i≦N, 1≦t≦T.
The Baum-Welch Algorithm updates, in the unsecure domain, the HMM λ as follows:
i=γ1(i),1≦i≦N; (11)
Determining, based on observation symbol of an alphabet νk probabilities of observations according to
Determining the probability of the observation sequence with respect to updated HMM according to
Pr{x
1
,x
2
, . . . ,x
T|
If Pr{x1, x2, . . . , xT|
Accordingly, there is a need in the art to determine the forward, the backward, the Viterbi and the Baum-Welch algorithms in a secure domain.
It is an object of the embodiments of the invention to provide a method for privacy-preserving probabilistic inference.
It is an object of the invention to provide forward, backward, Viterbi and Baum-Welch methods in a secure domain.
It is further object of the invention to provide such method that is suitable for applications where a client computer encrypts data and transmits the encrypted data to a server computer, and the server performs most of the computationally intensive tasks.
Some embodiments of the invention are based on a realization that privacy-preserving computation between the server and the client for secure probabilistic inference based on hidden Markov models can be performed in an asynchronous manner using properties of additive homomorphism.
Accordingly, on embodiment discloses a method for evaluating a probability of an observation sequence stored at a client with respect to a hidden Markov model (HMM) stored at a server, wherein the client has a decryption key and an encryption key of an additively homomorphic cryptosystem, and the server has the encryption key, including: determining, for each state of the HMM, an encryption of a log-probability of a current element of the observation sequence; determining, for each state of the HMM, an encryption of a log-summation of a product of a likelihood of the observation sequence based on a previous element of the observation sequence and a transition probability to the state of the HMM, wherein the determining uses an H-SMC, wherein the H-SMC includes a secure multiparty computation using at least one property of additive homomorphism; determining an encryption of a log-likelihood of the observation sequence for each state as a product of the encryption of a log-summation and an encryption of a corresponding log-probability of the current element of the observation sequence; and determining an encryption of the log-probability of the observation sequence based on the log-likelihood of the observation sequence for each state. The log-probability of the observation sequence can be transmitted to the client.
Another embodiment discloses a method for evaluating a probability of an observation sequence stored at a client with respect to a hidden Markov model (HMM) stored at a server, wherein the client has a decryption key and an encryption key of an additively homomorphic cryptosystem, and the server has only the encryption key, including: determining iteratively a set of encryptions of a log-likelihood of elements of the observation sequence with respect to each state of the HMM using an H-SMC, wherein the H-SMC includes a secure multiparty computation using at least one property of additive homomorphism; and determining, based on the set of encryptions, an encryption of the log-probability of the observation sequence with respect to the HMM using the H-SMC, wherein steps of the method are performed by the server.
Yet another embodiment discloses a server for evaluating a probability of an observation sequence stored at a client with respect to a hidden Markov model (HMM) stored at the server, wherein the client has a decryption key and an encryption key of an additively homomorphic cryptosystem, and the server has only the encryption key, wherein steps of the method are performed by the server, comprising: a processor for determining iteratively a set of encryptions of a log-likelihood of elements of the observation sequence with respect to each state of the HMM using an H-SMC, wherein the H-SMC includes a secure multiparty computation using at least one property of additive homomorphism; and for determining, based on the set of encryptions, an encryption of the log-probability of the observation sequence with respect to the HMM using the H-SMC.
In various embodiments, the H-SMC includes at least one or combination of an H-Logarithm method, an H-Exponent method, an H-LogSum method, an H-Comparison method, and an H-SumPartition method.
System Overview
The client and the server perform a secure multiparty computation (SMC) using at least one property of additive homomorphism, i.e., an H-SMC, to determine a secure probabilistic inference of the observation sequence with respect to the HMM. As referred herein, a prefix “H-” indicates that a communication, a computation, or a method is performed in a secure domain using at least one property of additive homomorphism. For example, the H-SMC 130 can use at least one H-method 160, as described in more details below. The client and the server can be implemented using a processor, such as a processor 101 and/or a processor 102.
Additively Homomorphic Cryptosystem
For any two messages m1, m2 And an additive homomorphic encryption function ξ(•) the additive homomorphic property ensures that ξ(m1+m2)=ξ(m1)ξ(m2). Because of this property, some operations can be performed directly on the encrypted message (ciphertext), enabling some manipulations on the underlying unencrypted messages (plaintext). The embodiments of the invention can use any additively homomorphic cryptosystem. For example, one embodiment uses the Paillier cryptosystem described below.
Configuration:
Select two large prime numbers p,q, such that N=pq. Denote by ZN
Let (N,g) be the encryption key, and (p,q) be the decryption key.
Encryption:
Let mεZN be a plaintext. Then, the ciphertext is given by ξr(m)=gm·rN mod N2 where rεZN* is a number selected at random.
Decryption:
Let cεZN
In the additively homomorphic cryptosystem, the decryption works irrespective of the value of r used during encryption. Because r is selected at random for every encryption, the Paillier cryptosystem is probabilistic, and semantically secure, i.e., repeated encryptions of the same plaintext result in different ciphertexts.
In addition, the additive homomorphism includes the following properties.
ψ(ξr
ψ([ξr(m1)]m
wherein r1, r2εZN* and r1≠r2 in general. For clarity, the rest of the disclosure omits the subscripted random parameter.
Oblivious Transfer
Some embodiments of the invention use 1-of-n oblivious transfer (OT). For example, the server may have n messages m1, m2, . . . mn and the client may have an index 1≦i≦n. The OT is a method to accomplish the following: the client determined the message in, but discovers nothing about the other messages, and the server does not discover the index i. The OT can be implemented in many known ways. The OT is a sufficient primitive, i.e., can be used for secure evaluation of any function, provided that function can be represented as an algebraic circuit. However, evaluating general functions using only OT is complex in terms of computation and data transfer.
H-Methods
Various embodiments of the invention use at least one or combination of H-methods 160 described below. In all H-methods, the client has the decryption key and the encryption key of the additively homomorphic cryptosystem, e.g., key pair for the Paillier encryption function ξ(•). The server has only the encryption key. The H-methods are based on H-SMC using at least one property of additive homomorphism. For the clarity of this description, in all calculations involving logarithms, a base of the logarithm is gεZN
Secure H-Logarithm Method
The server randomly selects an integer β, and transmits 210 an encrypted modified variable 215 ξ(θ)β=ξ(βθ) to the client. The client decrypts βθ and processes the modified variable, such that the server receives 220 an encrypted logarithm of the modified variable ξ(log βθ) 225.
The servers determines 230 an encrypted logarithm 235 of the variable using H-property, i.e., a property of additive homomorphism according to
ξ(log βθ)·ξ(−log β)=ξ(log θ+log β)·ξ(−log β)=ξ(log θ)
In some embodiments, the logarithms log β and log βθ are not integers and the embodiments use integer approximations. For example, the sever receives from the client ξ(└L log β0θ┘), where L is a large integer, e.g., L=106 Every multiplication by the integer L is compensated by a corresponding division at every decryption. In some embodiments, the integer approximation is used by various H-methods.
In this example, the H-method is accurate to six decimal places. Similarly, the server determines
ξ(└L log βθ┘)ξ(−└L log β┘)=ξ(└L log β+L log θ┘−└L log β┘).
Secure H-Exponent Method
The server randomly selects an integer β, and transmits 310 an encrypted modified logarithm 315 to the client according to
ξ(log θ)ξ(log β)=ξ(log θ+log β)=ξ(log βθ).
The client decrypts the encrypted logarithm to receive a logarithm log βθ and process the logarithm, such that the server receives 320 an encrypted modified variable ξ(βθ) 325. The server determines 330 the encrypted variable 335 according to
wherein
is the multiplicative inverse of the integer β in ZN
Secure H-LogSum Method
The server and the client execute 410 the H-Exponent method 300 having as input the set of encrypted logarithms 405 such that the server determines a set of encrypted variables 415
ξ(θ1),ξ(θ2), . . . ,ξ(θn).
The server uses H-property to determine 420 a product 425 of the encrypted variables in a power of elements of the constant vector according to
The server and the client execute 430 the H-Logarithm method 200, to determine the encryption of log-summation ξ(log Σi=1naiθi) 435.
Secure H-Comparison Method
The server randomly selects a positive or a negative integer α, and transmits 510 to the client an encryption of modified difference 515 according to
ξ(α(θ1−θ2))=ξ(θ1)αξ(θ2)−α.
The client decrypts and receives the modified difference α(θ1−θ2) 525 and transmits the modified difference back to the server. The server receives 520 the modified difference 525 and comparing 530 whether θ1≦θ2, based on the sign of the integer α.
Secure H-SumPartition Method
t=1, 2, . . . , T, such that the server determines nothing about the sequence of the elements, and the client determines nothing about the sequence of encryptions.
The server, for each encryption ε(yt)randomly selects an integer αt, and transmits 610 to the client a modified encryption as a sum 615 according to ξ(yt+αt)=ξ(yt)ξ(αt).
The client decrypts the sum, determines an encryption of a product of the sum ξ(δt(ν)(yt+αt)) 625 and an encryption of an indicator sequence ξ(δt(ν)) 626, and transmits the encryptions 625 and 626 to the server, wherein the indicator sequence δt(ν) of x1, x2, . . . , xT, for the common element ν, is determined according to δt(ν)=1 if xt=ν and δt(ν)=0 if xt≠ν.
The server receives 620 the encryption of the product 625 and the encryption of the indicator sequence 626 and removes the modification to determine an encryption of a product 627 of a variable yt and the indicator sequence according to ξ(δt(ν)(yt+αt))·ξ(−δt(ν)(αt)=ξ(δt)(ν)(yt)
Next, the server determines 630 an encryption of the summation
according to
Secure H-Forward Method
The method is described based on the steps performed by the server. However, at least one step of the method includes the H-SMC between the server and the client. Various steps of the method are performed iteratively for each state of the HMM and/or for each observation in the observation sequence x1, x2, . . . , xT. At an output of the method, the server determines an encryption of the log-probability of the observation sequence according to ξ(log Pr{x1, x2, . . . , xT|λ)}.
The HMM λ is defined, e.g., according to λ=(A, B, Π) wherein A=(aij) is a state transition matrix, aij is a transition probability from a state Si a state Sj, wherein 1≦i, j≦N, and N is a number of states of the HMM, wherein B=(b1, b2, . . . , bN) is a matrix of probabilities of observations, bj is a column vector of the matrix of probabilities over alphabet of the observation sequence, j=1, 2, . . . , N, wherein Π=(π1, π2, . . . , πN) is an initial state probability vector of the HMM.
The server determines 710, for each state of the HMM, an encryption of a log-probability 715 of a current element of the observation sequence. For example, the encryption of the log-probability can be determined according to
ξ(log bj(xt+1)),
wherein xt+i is the current element of the observation sequence, ξ(•) is an encryption function of the additively homomorphic cryptosystem.
Also, the server determines determining 720, for each state of the HMM, an encryption of a log-summation 725 of a product of a likelihood of the observation sequence based on a previous element of the observation sequence and a transition probability to the state of the HMM. The log-summation can be determined using an H-SMC, wherein the H-SMC includes a secure multiparty computation using at least one property of additive homomorphism. For example, one embodiment uses the H-LogSum method 400.
For example, some embodiments determine the encryption of the log-summation according to
ξ(log Σl=1Nαt(l)alj),
wherein l is an index of a state Sl, l=1, 2 . . . , N, wherein αt(l) is the likelihood of the observation sequence of the previous element xt at a state Sl, and alj is the transition probability from the state Sl to the state Sj of the HMM.
One embodiment initializes the encryption of the log-summation according to ξ(log α1(j))=ξ(log πj)·ξ(log bj(x1)) for j=1, 2, . . . , N.
The server determines 730 an encryption of a log-likelihood of the observation sequence 735 for each state as a product of the encryption of a log-summation and an encryption of a corresponding log-probability of the current element of the observation sequence.
For example, one embodiment determines the encryption of the log-likelihood of the observation sequence ξ(log αt+1(j)) based on the property of additive homomorphism according to
An encryption of the log-probability of the observation sequence 745 is determined 740 based on the log-likelihood of the observation sequence for each state according to
ξ(log Σj=1NαT(j))=ξ(log P(x1,x2, . . . ,xT|λ)).
For example, one embodiment determines the encryption of the log-probability of the observation sequence using an H-LogSum method having as an input the log-likelihood of the observation sequence for each state. The encryption of the log-probability of the observation sequence can be stored in a memory (not shown) and/or transmitted 750 to the client.
The server determines 760 a modification vector γtj 761. For example, in one embodiment, the modification vector is generated randomly. A column vector log bj+γtj 763 of log-probabilities of an alphabet of the observation sequence modified with the modification vector is transmitted 762 to the client. After the client determined logbj(xt)+γtj using 1-of-M OT, the server receives 764 the encryption 765 of the log-probability of each element of the observation sequence modified with the modification vector and removes 766 the modification vector to produce the encryption of the log-probability 715 of each element.
For example, the server receives ξ(log bj(xt)+γtj) and determines the encryption of the log-probability ξ(log bj(xt)) of each element xt according to ξ(log bj(xt)+γtj)·ξ(−γtj).
For illustration purpose only,
Secure Keyword Recognition
Some embodiments of the invention use the H-Forward method for privacy-preserving keyword recognition. In these embodiments the observation sequence includes a sampled speech signal. Typically, the client converts the speech signal into T frames, where each frame is represented by a d-dimensional vector of mel frequency cepstral coefficients (MFCCs), e.g., d=39. Derivation of MFCCs from speech signals is known. Thus, the client stores x, t=1, 2, . . . , T where each xtεRd.
The server stores a set of a size Δ of different HMMs. Each HMM is trained for a single keyword. The H-Forward method of this embodiment determines the keyword that is most likely to be contained in the speech signal.
At the state Sj the d dimensional vector xt of MFCCs has a multivariate Gaussian distribution with the mean vector μj and covariance matrix Cj, i.e., bj(xt)=N(μj, Cj) where j=1, 2, . . . , N indexes the state of the HMM λ. If an observation vector zt=[xtT,1]T, then, log bj(xt)=xtTWjzt, zt=[xtT,1]T, wherein T is a transpose operator, j is 1≦j≦N, and N is a number of states of the HMM, Wj is a matrix of the multivariate Gaussian distribution according to
and
In this embodiment, the vector xt is a single multivariate Gaussian random variable, though an extension to mixture of multivariate Gaussians is also within the scope of the invention. The matrix Wj is stored at the server. Further, the log-probability log bj (xt) is a linear function of) products Zm(t)Zn(t), where Zm(t), Zn(t) are elements of the vector zt, m, nε{1, 2, . . . , d+1}.
As shown in
The server obfuscates 784 the set of log-probabilities with an order-preserving matrix to produce an obfuscated set of encrypted log-probabilities. For example, the server determines an order-preserving matrix R=(rij)Δ×Δ. Using the property of additive homomorphism, the server determines an element-wise encryption of obfuscations according to
(ξ(p′1), . . . ,ξ(p′Δ))=(ξ(p1), . . . ,ξ(pΔ))·R.
The server transmits 786 the obfuscated set of log-probabilities to the client and transmits 788 to the client a keyword of the HMM corresponding to a particular log-probability selected by the client based on the obfuscated set of log-probabilities. For example, the client, because R is order-preserving mapping, can decrypt and determine a maximum probability of the observation sequence with respect to each HMM according to δ*=maxδp′δ=maxδpδ. The server can transmit the keyword corresponding to the maximum probability using the oblivious transfer method.
Secure H-Backward Method
Using the H-Logarithm method, the server determines 820 the encryption of log-backward probability ξ(log βt(i)) 825. The server determines the encryption of log-backward probability recursively for each state of the HMM, until the server determines ξ(log β1(i)).
Using the property of additive homomorphism and the H-Exponent method, the server determines 830 an encryption of the joint probability of the observation sequence and the initial state Sj, ξ(πjβ1(j)bj(x1)) 835 and an encryption of the probabili of the observation sequence
Using the H-Logarithm method, the server determines 840 the encryption of log-probability of the observation sequence 845.
Secure H-Viterbi Method
As before, the HMM λ is defined according to λ=(A, B, Π), wherein A=(aij) is a state transition matrix, aij is a transition probability from a state Si to a state Sj, wherein 1≦i, j≦N, and N is a number of states of the HMM, wherein B=(b1, b2, . . . , bN) is a matrix of probabilities of observations, bj is a column vector of the matrix of probabilities over alphabet of the observation sequence, j=1, 2, . . . , N, wherein Π=(π1, π2, . . . , πN) is an initial state probability vector of the HMM.
Various steps of the method 900 uses the H-SMC using an encryption function ξ(.) of the additively homomorphic cryptosystem and at least one property of additive homomorphism. Some steps of the method are performed iteratively for each state of the HMM and/or for each observation in the observation sequence x1, x2, . . . , xT. At an output of the method, the client determines the most probable state sequence Si
The server determines 910, for each state of the HMM, an encryption of a log-probability ξ(log bj(xt)) 915 of a current element of the observation sequence. The encryption of the log-probability 915 can be determines using any SMC. For example, one embodiment determines the encryption of the log probability using the H-SMC in a manner similar to the embodiment shown in
Specifically, one embodiment determines a modification vector and transmits a column vector of log-probabilities of the elements of the observation sequence modified with the modification vector to the client. For example, the modification vector γtj) t=1, 2, . . . , T can be generated randomly, such that the transmitting the column vector includes transmitting log bj+γtj.
The client processes the column vector, and the server receives the encryption of the log-probability of each element of the observation sequence modified with the modification vector, and removes the modification vector to produce the encryption of the log-probability of each element.
For example, the server can receive ξ(log bj(xt)+γtj) and can determine the encryption of the log-probability ξ(log bj(xt)) of each element xt using the property of additive homomorphism according to
ξ(log bj(xt)+γtj)·ξ(−γtj).
The server determines 920, for each state of the HMM, a product of an encryption of the log-probability 925 of the state for the current element and an encryption of a transition probability to the state to produce a set of encrypted products. For example, the product of the encryption 925 can be determined using additive homomorphism according to
ξ(log δt(i)+log aij)=ξ(log δt(i))·ξ(log aij),
wherein ξ(log δt(i)) is an encryption of a logarithm of probability of most probable state sequence ending in the state Si for the current element xt, ξ(.) is an encryption function of the additively homomorphic cryptosystem, ξ(log aij) is an encryption of a logarithm of the transition probability to the state Si from the state Sj.
Server, using H-SMC with the client, e.g., H-Comparison method, determines 930 an encrypted product 935 corresponding to a maximum product in the set of encrypted products and an encrypted index of the state corresponding to the maximum product. The encrypted index can be transmitted 950 to the client, such that the client can obtain a matrix of indexes of the states and track the indexes to deter mine the most probable state sequence.
Next, the server determines 940, for each state of the HMM, an encrypted log-probability 945 of the state for a next element as a product of the encrypted product and the encryption of a log-probability of the current element of the observation sequence corresponding to the state and repeating the determining 930 the encrypted product and the encrypted index, the transmitting 950 the encrypted index, and the determining 940 the log-probability for all elements of the observation sequence.
For example, one embodiment determines the encrypted log-probability ξ(log δt+1(j)) according to
ξ(log δt+1(j))=ξ(maxi [ log δt(i)+log aij])·ξ(log bj(xt)),
wherein log δt+1(j) is a logarithm of the probability of the most probable state sequence ending in a state Sj for a next element xt+1, ξ(.) is an encryption function of the additively homomorphic cryptosystem, wherein max is a maximum operation, log δt(i) is a logarithm of the probability of the most probable state sequence ending in a state Si for the current element xt, log aij is a logarithm of a transition probability from the state Si to the state Sj.
Secure H-Baum-Welch Method
The H-Baum-Welch method is based on secure computation of a conditional joint probability of each pair of states given the parameters of the HMM ζt(i, j) for all 1≦i, j≦N, 1≦t≦T. Taking logarithm at both sides of Equation (10) yields
log ζt(i,j)=log αt(i)+log βt+1(j)+log aij+log bj(xt+1)−log Pr{x1, . . . , xT|λ},
(15) Thus, because the function ξ(.) is an additive homomorphic encryption function, Equation (15) can be rewritten as
ξ(log ζt(i,j)=ξ(log αt(i))·ξ(log βt+1(J))·ξ(log aij)·ξ(log bj(xt+1))·ξ(−log Pr{x1, . . . ,xT|λ}). (16)
The server initializes 1010 parameters 1015 of the HMM. For example, the parameters λ=(A, B, Π) can be generated randomly. Based on the parameters 1015, the server using H-SMC with the client determines 1020 an encryption of a log-probability of a current element of the observation sequence 1025 and an encryption of a probability of the observation sequence 1026 with respect to the parameters of the HMM. The server also determines 1030, for each state of the HMM, an encrypted forward probability 1035 of the observation sequence with respect to the parameters of the HMM, and an encrypted backward probability 1036 of the observation sequence.
Next, the server determines 1040, for each element of the observation sequence, an encrypted conditional joint probability of each pair of states given the parameters of the HMM to produce a set of encrypted conditional joint probabilities 1045. In some embodiments, the determining is performed according to Equation (16) based on the encryption of the log-probability of the observation sequence, the encrypted forward probability, and the encrypted backward probability. The set of encrypted conditional joint probabilities is determined in encrypted domain using at least one property of additive homomorphism.
Based on the set of encrypted conditional joint probabilities, the parameters of the HMM are updated 1045. Some embodiments repeats iteratively, the determining the encryption of the probability of the observation sequence, the determining the encrypted forward probability, the determining the encrypted backward probability, the determining the encrypted conditional joint probability, and the updating the parameters until a difference 1056 between the probability of the observation sequence determined for the parameters 1055 of a current iteration and the probability of the observation sequence determined for parameters 1015 of a previous iteration is above a threshold D 1057.
In one embodiment, the encrypted log-forward probability ξ(log αt(i)), the encryption of the log-probability ξ(−log Pr{x1, . . . , xT|λ}), and an encryption of a log probability of an element Xt+1 of the observation sequence ξ(log bj(xt+1)) are determined 1062 using the H-Forward method 700, as shown in
In the above description ξ(.) is an encryption function of the additively homomorphic cryptosystem, log αt(i) is a logarithm of the forward probability of the observation sequence in a state Si up to the current element xt, wherein log Pr{x1, . . . , xT|λ} is a logarithm of the probability of the observation sequence Xt, t=1, 2, . . . , T, with respect to the parameters λ=(A, B, Π), wherein A=(aij) is a state transition matrix, aij is a transition probability from a state Si to a state Sj, wherein 1≦i, j≦N, and N is a number of states of the HMM, wherein B=(b1, b1, . . . , bN) is a matrix of probabilities of observations, bj is a column vector of the matrix of probabilities over alphabet of the observation sequence, j=1, 2, . . . , N, and Π=(π1, π2, . . . , πN) is an initial state probability vector of the HMM.
The encrypted log-backward probability ξ(log βt+1(j)) is determined 1064 using the H-Backward method 800. The encrypted logarithm of a conditional probability ξ(log ζt(i, j)) is determined 1066 using additive homomorphism according to
(log ζt(i,j))=ξ(log αt(i))·ξ(log βt+1(j))·ξ(log aij)·ξ(log bj(xt+1))·ξ(−log Pr{x1, . . . ,xT|λ}), and
the encrypted conditional joint probability determined 1068 using an H-Exponent method 300. Similarly, an encryption ξ(γt(i)) of a total conditional probability γt(i) is determined 1069 using at least one property of additive homomorphism according to ξ(γt(i))=Πj=1Nξ(ζt(i, j)).
An encryption of a summation of the total conditional probabilities ξ(Σt=1T-1γt(i)) is determined 1082 in the encrypted domain according to ξ(Σt=1T-1γt(i))=Πt=1T-1ξ(γt(i)).
An encryption of a logarithm of the summation of the conditional probabilities is determined 1083, using an H-Logarithm method, according to ξ(log(Σt=1T-1ζt(i, j))), and an encryption of a logarithm of the summation of the total conditional probabilities is determined 1084, using an H-Logarithm method, according to ξ(log(Σt=1T-1γt(i))).
An encryption of a logarithm of the transition probability ξ(log āij) is determined 1085 using the property of additive homomorphism according to ξ(log āij)=ξ(log(Σt=1T-1ζt(i, j)))ξ(−log(Σt=1T-1γt(i))), and, for each pair of states of the HMM, the updated transition probability āij is determined 1086 using the SMC based on the encryption of the logarithm of the transition probability.
After the parameters of HMM are updated the probability of the observation sequence Pr{x1, x2, . . . , xT|
The above-described embodiments of the present invention can be implemented in any of numerous ways. For example, the embodiments may be implemented using hardware, software or a combination thereof. When implemented in software, the software code can be executed on any suitable processor or collection of processors, whether provided in a single computer or distributed among multiple computers. Such processors may be implemented as integrated circuits, with one or more processors in an integrated circuit component, Though, a processor may be implemented using circuitry in any suitable format.
Further, it should be appreciated that a computer may be embodied in any of a number of forms, such as a rack-mounted computer, a desktop computer, a laptop computer, minicomputer, or a tablet computer. Also, a computer may have one or more input and output devices. Such computers may be interconnected by one or more networks in any suitable form, including as a local area network or a wide area network, such as an enterprise network or the Internet, Such networks may be based on any suitable technology and may operate according to any suitable protocol and may include wireless networks, wired networks or fiber optic networks.
Also, the various methods or processes outlined herein may be coded as software that is executable on one or more processors that employ any one of a variety of operating systems or platforms. Additionally, such software may be written using any of a number of suitable programming languages and/or programming or scripting tools, and also may be compiled as executable machine language code or intermediate code that is executed on a framework or virtual machine.
In this respect, the invention may be embodied as a computer readable storage medium or multiple computer readable media, e.g., a computer memory, compact discs (CD), optical discs, digital video disks (DVD), magnetic tapes, and flash memories. Alternatively or additionally, the invention may be embodied as a computer readable medium other than a computer-readable storage medium, such as a propagating signal.
The terms “program” or “software” are used herein in a generic sense to refer to any type of computer code or set of computer-executable instructions that can be employed to program a computer or other processor to implement various aspects of the present invention as discussed above.
Computer-executable instructions may be in many forms, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.
Also, the embodiments of the invention may be embodied as a method, of which an example has been provided. The acts performed as part of the method may be ordered in any suitable way. Accordingly, embodiments may be constructed in which acts are performed in an order different than illustrated, which may include performing some acts simultaneously, even though shown as sequential acts in illustrative embodiments.
Although the invention has been described by way of examples of preferred embodiments, it is to be understood that various other adaptations and modifications can be made within the spirit and scope of the invention. Therefore, it is the object of the appended claims to cover all such variations and modifications as come within the true spirit and scope of the invention.
Pseudo code of one embodiment implementing the H-Forward method
Client sores observation sequence x1, x2, . . . , xT. Server stores the HMM λ=(A, B, Π).
Bob determines ξ*log Pr{x1, x2, . . . , xT|λ)}.
Pseudo code of one embodiment implementing the H-Backward method
Pseudo code of one embodiment implementing the H-Viterbi method
Client stores an observation sequence x1, x2, . . . , xT. Server stores the HMM λ=(A, B, Π).
Client determines the most probable state sequence Si
Pseudo code of one embodiment implementing the H-Baum-Welch method
Input:
Client stores the observation sequence x1, . . . xT and encryption and decryption key. Server stores the encryption key only
Output:
Server determines HMM parameters and without discovering anything about the observation sequence. Client determines no information about the parameters.