Method and system for compression fast encryption similarity search and database analysis

Generating and comparing query data fingerprints through homomorphic encryption technology solves the problems of privacy and performance bottlenecks in medical data similarity search, and achieves a fast and secure similarity search process.

CN118575174APending Publication Date: 2024-08-30KONINKLIJKE PHILIPS NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380017941.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-01-20
Filing Date
2023-01-09
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

It is difficult for existing technologies to perform similarity searches on medical data quickly and efficiently while ensuring privacy and security. Especially when using FHIR files, there are performance bottlenecks when transmitting and processing large-scale data.

Method used

Use homomorphic encryption technology to generate a fixed-length query data fingerprint, and compare it with the homomorphically encrypted fixed-length data fingerprint in the database to identify the most similar data files by calculating distance to ensure the privacy and security of the query process. .

Benefits of technology

It realizes fast and safe similarity search on medical data without leaking the query content, solves the performance problem in large-scale data processing, and improves query efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575174A
    Figure CN118575174A
Patent Text Reader

Abstract

A method (100) for encrypted similarity search of a database, comprising: (i) providing (120) a database comprising a plurality of homomorphic encrypted fixed length data fingerprints; (ii) receiving (130) an encrypted query; (iii) generating (140) a fixed length query data fingerprint; (iv) homomorphic encryption (150) of the fixed length query data fingerprints; (v) generating (160) a fixed size query data fingerprint table; (vi) comparing (170) the homomorphic encrypted fixed length query data fingerprint to each homomorphic encrypted fixed length data fingerprint, where each comparison generates a distance; (vii) identifying (180) one or more data files in the database having a minimum generated distance using the generated distance between the homogeneously encrypted fixed length query data fingerprint and each homogeneously encrypted fixed length data fingerprint; and (viii) reporting (190) the identified one or more data files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to methods and systems for similarity searching for data encryption. Background Art

[0002] Many data applications require similarity searches. For example, in the medical field, finding patients and / or treatments with similar characteristics can provide insight into patient trajectories, forecasts, and / or predictions, patient treatments, etc. Therefore, identifying similar patients can have a huge benefit on the patient's healthcare outcomes. One problem associated with similarity searches of medical data in medical databases is that searching for similar patients may require the transmission or transfer of privacy-sensitive medical information. The transmission of such sensitive information can be a regulatory issue as well as a privacy and / or security risk.

[0003] Many electronic health record systems utilize the Fast Healthcare Interoperability Resource (FHIR) format created by the healthcare standards organization Health Level Seven International (HL7) to store and communicate medical data. FHIR is a standard that describes data formats and elements (i.e., resources) and is also an API for exchanging electronic health records. However, FHIR files can be very large files, and therefore similarity searches using FHIR files can be a cumbersome process.

[0004] One approach is to use zk-SNARK (zero-knowledge Succinct Non-interactive Arguments of Knowledge), a cryptographic proof technique used to establish knowledge or ownership in a way that maintains confidentiality while minimizing the amount of bandwidth used for communication. While this approach enables parties to prove properties of a computation, it does not perform the computation itself in a fully encrypted manner.

[0005] Another way to securely perform similarity searches on medical data is to search the data while it is still encrypted. Therefore, current approaches explore the use of methods such as homomorphic encryption, which is able to analyze the data while it is encrypted. However, homomorphic solutions are severely limited in the amount of data they can process. Therefore, even the best solutions are still too limited for real-world use. Summary of the invention

[0006] Therefore, there is a continuing need in the art for methods and systems that can quickly and efficiently perform similarity searches on databases while ensuring the privacy and security of queries.

[0007] The present disclosure is directed to an inventive method and system for performing a similarity search on a database. Various embodiments and implementations herein are directed to a method and system configured for querying a database using homomorphic encryption. According to an embodiment, a homomorphically encrypted fixed-length query data fingerprint is queried for a homomorphically encrypted database to identify the distance between the query and the data in the database. A similarity search system includes a database comprising a plurality of homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database. The homomorphically encrypted fixed-length data fingerprints are randomly sorted in a fixed-size query database table in the database. The system receives a query to be queried for the database in a similarity search, generates a fixed-length query data fingerprint, and homomorphically encrypts the fixed-length query data fingerprint. The system generates a fixed-size query data fingerprint table of the same size as the fixed-size database table, and then compares the fingerprints in the two tables to generate the distance between the query and each fingerprint in the database. The system identifies the file in the database with the smallest distance from the query, and reports the distance and / or the identified file.

[0008] In general, in one aspect, a method for encrypted similarity search of a database is provided. The method includes: (i) providing a database including a plurality of homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered in a fixed-size database table; (ii) receiving a query to be queried against the database in a similarity search; (iii) generating a fixed-length query data fingerprint based on the received query; (iv) homomorphically encrypting the fixed-length query data fingerprint; (v) generating a fixed-size query data fingerprint table, wherein the size of the fixed-size query data fingerprint table is the same as the size of the fixed-size database table; (vi) using the fixed-size query data fingerprint table and the fixed-size database table, comparing the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint, wherein each comparison generates a distance; (vii) using the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint, identifying one or more data files in the database having the smallest generated distance; and (viii) reporting the identified one or more data files in the database.

[0009] According to an embodiment, the method further comprises the step of generating a plurality of homomorphically encrypted fixed-length data fingerprints.

[0010] According to an embodiment, the method further comprises the step of generating a fixed-size database table comprising a plurality of homomorphically encrypted fixed-length data fingerprints, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered within the fixed-size database table.

[0011] According to an embodiment, the distance between each homomorphically encrypted fixed-length data fingerprint and the homomorphically encrypted fixed-length query data fingerprint is used to populate a distance table, and wherein the size of the distance table is the same as the size of the fixed-size query data fingerprint table and the fixed-size database table.

[0012] According to an embodiment, the distance table is homomorphically encrypted.

[0013] According to an embodiment, the generated distances are homomorphically encrypted.

[0014] According to an embodiment, the minimum generated distance is determined by a predetermined setting or defined by a user.

[0015] According to an embodiment, the report also includes the generated distance between the query and the identified one or more data files in the database.

[0016] According to an embodiment, the encrypted query is an updated version of the database, and each fixed-length data fingerprint represents a version of the database or a version of a data file in the database.

[0017] According to an embodiment, the encrypted query is an updated version of the reference genome, and each fixed-length data fingerprint represents the reference genome.

[0018] According to another aspect, a system for encrypted similarity search of a database. The system includes: a database, the database including a plurality of homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered in a fixed-size database table; a query to be queried against the database in a similarity search; and a processor, which is configured to: (i) generate a fixed-length query data fingerprint according to the query; (ii) homomorphically encrypt the fixed-length query data fingerprint; (iii) generate a fixed-size query data fingerprint table, wherein the size of the fixed-size query data fingerprint table is the same as the size of the fixed-size database table; (iv) using the fixed-size query data fingerprint table and the fixed-size database table, compare the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint, wherein each comparison generates a distance; (v) using the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint, identify one or more data files in the database having the smallest generated distance; and (vi) generate a report including the identified one or more data files in the database.

[0019] According to an embodiment, the system further comprises a user interface configured to provide the generated report.

[0020] It should be understood that all combinations of the foregoing concepts and the additional concepts discussed in more detail below (provided that these concepts are not mutually inconsistent) are considered part of the inventive subject matter disclosed herein. In particular, all combinations of the claimed subject matter appearing at the end of this disclosure are considered part of the inventive subject matter disclosed herein. It should also be understood that the terms explicitly used herein (which may also appear in any disclosure incorporated by reference) should be given the meaning most consistent with the specific concepts disclosed herein.

[0021] These and other aspects of the various embodiments will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In the accompanying drawings, the same reference numerals refer to the same parts in different views as a whole. The accompanying drawings show the features and implementations of various embodiments and should not be interpreted as limiting other possible embodiments within the scope of the appended claims. Moreover, the drawings are not necessarily drawn to scale, but the overall emphasis is placed on illustrating the principles of the various embodiments.

[0023] Figure 1 is a flow chart of a method for encrypted similarity search of a database according to an embodiment.

[0024] Figure 2 is a schematic diagram of a similarity search system according to an embodiment.

[0025] Figure 3 is a schematic diagram of a method for querying a database using a similarity search system according to an embodiment.

[0026] Figure 4 is a schematic diagram of a method of using a similarity search system according to an embodiment. DETAILED DESCRIPTION

[0027] The present disclosure describes various embodiments of systems and methods configured to be able to search homomorphically encrypted files to ensure the privacy and security of these files and the query itself. More generally, the applicant has recognized and appreciated that it would be beneficial to provide a method and system for querying a database without revealing the query content to the database owner. A similarity search system includes a database comprising a plurality of homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database. The homomorphically encrypted fixed-length data fingerprints are randomly sorted in a fixed-size query database table in the database. The system receives an encrypted query to be queried against the database in a similarity search, generates a fixed-length query data fingerprint, and homomorphically encrypts the fixed-length query data fingerprint. The system generates a fixed-size query data fingerprint table of the same size as the fixed-size database table, and then compares the fingerprints in the two tables to generate a distance between the query and each fingerprint in the database. The system identifies the file in the database with the smallest distance from the query, and reports the distance and / or the identified file.

[0028] In certain embodiments, researchers and / or healthcare professionals can leverage healthcare or research systems to quickly find highly similar data files, patients, or other data. One ongoing challenge with processing real-world data and finding similar data is the size of the data. The methods and systems described or otherwise contemplated herein create homomorphically encrypted fingerprints of queries and data files, thereby enabling fast and secure searches. In addition to addressing the data size issues encountered with homomorphic encryption of real data, the methods and systems described or otherwise contemplated herein also provide additional positive effects. For example, fast and secure comparisons have many use cases, including determining database updates and other similarity search results. Therefore, the methods and systems described or otherwise contemplated herein are very beneficial in applications where both security and speed or performance are important considerations or requirements.

[0029] The embodiments and implementations disclosed herein or otherwise contemplated may be utilized with any system, including but not limited to a medical database or system. For example, one application of the embodiments and implementations herein is to improve medical monitoring or analysis systems, such as Patient monitoring systems, such as Philips Precision medicine products (manufactured by Royal Philips of the Netherlands), and many others. However, the present disclosure is not limited to these devices or systems, and thus the disclosure and embodiments disclosed herein may encompass any device or system that utilizes or otherwise requires similarity searching or comparison.

[0030] refer to Figure 1, in one embodiment, is a flow chart of a method 100 for performing an encrypted similarity search on a database. The method may be performed by a similarity search system. The methods described in conjunction with the accompanying drawings are provided only as examples and should be understood not to limit the scope of the present disclosure. The similarity search system may be any system described herein or otherwise contemplated. The similarity search system may be a single system or multiple different systems.

[0031] At step 110 of the method, a similarity search system 200 is provided. Figure 2 The depicted embodiment of the similarity search system 200, for example, includes one or more processors 220, memory 230, user interface 240, communication interface 250, and storage device 260, which are interconnected via one or more system buses 212. It should be understood that Figure 2 Abstractions are formed in some aspects, and the actual organization of the components of system 200 may be different and more complex than shown. Additionally, similarity search system 200 may be any system described or otherwise contemplated herein. Other elements and components of system 200 are disclosed and / or contemplated elsewhere herein.

[0032] The method 100 using the similarity search system 200 can be implemented in a variety of ways using a variety of different types of data. For example, the method can be utilized with FHIR files, as this is the most common type of medical data that requires similarity search, but it can be any type of data. The goal of a similarity search is to find the most similar record in a database of FHIR records, given a FHIR record. The most straightforward approach to addressing this challenge is to use the bit vector representation of the FHIR file fingerprint as the hash key of a hash table of homomorphically encrypted data (the original FHIR file). This can simply be done by fingerprinting the bit vector of a given file, and then looking in the hash table to find a match and the closest entry. However, a disadvantage of this approach is that it leaks the bit vector values ​​of a given file to the owner of the database. To counter this leakage, the methods and systems described herein or otherwise contemplated include a method in which the system homomorphically encrypts one or more fixed-size tables containing a random ordering of all the bit vector values ​​of the FHIR files in the database, and compares it to a homomorphic encryption of a table filled with the bit vector values ​​of the file being queried.

[0033] At optional step 115 of the method, a database structure for similarity search is generated. The database structure can be generated by the similarity search system or by another system. The database structure includes at least a fixed-size database table filled with a random order of homomorphically encrypted fixed-length data fingerprints, each fixed-length data fingerprint representing a data file in the database. A fixed-size database table can be generated using a known method for generating a data table. Homomorphically encrypted fixed-length data fingerprints can be generated according to methods described below and herein or otherwise contemplated. Once generated, the database structure can be stored in a local or remote database or system. For example, the database structure can be a component of a similarity search system, or the similarity search system can otherwise communicate with the generated and stored database structure by wire and / or wireless communication.

[0034] At step 120 of the method, a database structure is provided for similarity searching. The database includes a plurality of data items, which may be any data that may be queried or otherwise searched. For example, in one application, the database includes medical data, and the data items are Fast Healthcare Interoperability Resources (FHIR) files, although many other data types and applications are possible.

[0035] The database includes a plurality of homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database. The homomorphically encrypted fixed-length data fingerprints can be generated according to the methods described below and herein or otherwise contemplated. The homomorphically encrypted fixed-length data fingerprints are randomly ordered in a fixed-size database table. For example, if the database includes 100 different data items, the fixed-size database table will include 100 rows of homomorphically encrypted fixed-length data fingerprints, each row representing one of the 100 data items.

[0036] The database may be a local or remote database or system. For example, the database may be a component of the similarity search system, or the similarity search system may otherwise communicate with the generated and stored database in wired and / or wireless communication.

[0037] At step 130 of the method, the similarity search system receives an encrypted query to be queried against a database. The query may be any data or anything else that may be used to search or otherwise query against a database. For example, in one implementation, the query includes patient data, and the database includes data about a plurality of other patients, and the goal of the query is to identify the most similar patient within the plurality of other patients. As another example, the query may be an update, and the database is searched for similarities between the data in the database and / or the database itself and the update.

[0038] The encrypted query may be received at the similarity search system, such as through a user interface. Alternatively, the query may be received from a remote system in wired and / or wireless communication with the similarity search system. Some or all of the similarity search system may be a cloud-based system. For example, the similarity search system may include a centralized database and one or more local or remote interfaces via which queries may be submitted or otherwise received.

[0039] At step 140 of the method, a fixed-length query data fingerprint is generated based on the received encrypted query. A known method for generating fingerprints from data can be used to generate a fixed-length query data fingerprint. According to an embodiment, the fixed-length data fingerprint includes a fixed-length floating-point value feature vector. According to an embodiment, the fixed-length floating-point value feature vector includes a predetermined plurality of sub-feature vectors. The length of the fixed-length data fingerprint can be predetermined by a user or a system. The length can depend on, for example, the number of data items in a database, the type of data in the database, or other parameters of the database and / or the query.

[0040] At step 150 of the method, the fixed-length query data fingerprint is homomorphically encrypted. Fixed-length data fingerprints (e.g., fingerprinted data items in a database and fingerprinted queries) may be homomorphically encrypted using any method suitable for homomorphic encryption, including but not limited to methods described herein or otherwise contemplated.

[0041] According to an embodiment, the method utilizes practical homomorphic encryption rather than true fully homomorphic encryption because the method limits the amount of computation performed on the data to a fixed amount. Since the method can involve a known function, such as a genomic query or other type of query, the method can limit homomorphic encryption to that function, thereby improving performance in storage and computation time by tuning one or more parameters to perfection.

[0042] Furthermore, using traditional or fully homomorphic encryption schemes instead of practical homomorphic encryption, the encrypted data will contain a certain amount of noise that will contaminate the original data. This noise will become stronger during the homomorphic computation process and its size will become so large that it will eventually exceed the original encrypted data, at which point the original encrypted data can no longer be properly decrypted. Therefore, in order to perform many computations in a homomorphic encryption system, the homomorphic encrypted data must be refreshed frequently to reduce this noise, especially when the encrypted size of the encrypted data is small. It is this encrypted size, when and how to reduce noise, and other similar aspects that constitute parameters that can be optimized to achieve a well-performing solution for querying homomorphically encrypted genomic data.

[0043] According to an embodiment, practical homomorphic encryption utilizes a cryptosystem based on ring LWE, which uses a cyclic ring of powers of 2 of integers, such as the cryptosystem cited in Lyubashevsky et al., "On ideal lattices and learning with errors over rings", JACM (2013). In this cryptosystem, the original data is encoded into a so-called plaintext: a polynomial operating in a space that is typically a polynomial quotient ring, as shown in Equation 1:

[0044] Z t [x] / (x n +1)(Equation 1)

[0045] Instead, the encrypted data (called ciphertext) is a polynomial operated on in a space that is typically a polynomial quotient ring, as shown in Equation 2:

[0046] Z q [x] / (x n +1)(Equation 2)

[0047] In both cases, n is a power of 2, t is the modulus of the plaintext ring, and q is the modulus of the ciphertext ring. Therefore, each input, whether an integer or a fixed-length byte string, must first be converted to plaintext polynomial form and then converted back to ciphertext polynomial form after encryption.

[0048] According to an embodiment, one factor behind the continuous prosperity of homomorphic encryption performance and homomorphic encryption solutions is the introduction of batch processing. Batch processing is a powerful technique that allows single instruction, multiple data (SIMD) operations to be performed on homomorphic encrypted data. As described herein, each input must be encoded as a plaintext polynomial, however, this is extremely wasteful because it only encodes a single integer as a plaintext polynomial, which theoretically has enough space to store thousands of such integers. In fact, the n used in the two polynomial quotient rings is almost always at least 1024 or more. Through batch processing, the method utilizes a specific ring homomorphism to fill the entire polynomial space with as much information as possible in a way that respects both addition and multiplication homomorphism. In calculations where single instruction, multiple data operations can be used, batch processing can provide huge performance improvements, making it one of the most powerful and important techniques in modern homomorphic encryption.

[0049] Thus, as described above, homomorphic encryption works by representing both plaintext and ciphertext via polynomials. When applying homomorphic encryption, specific parameters must first be chosen for these polynomials. The most critical parameter is the degree n, which is an exponent shared between both the plaintext polynomial and the ciphertext polynomial, which determines the number of terms in both polynomials. According to one embodiment, the method utilizes n equal to the maximum size of the Cuckoo hash table (i.e., 8192). However, other values ​​of n are possible.

[0050] According to an embodiment, the method utilizes the plaintext modulus t, namely 3686401, which is a prime number that is congruent to 1 modulo 2*n, so that the plaintext can be viewed as a 2-by-(n / 2) matrix, where the elements are integers modulo the plaintext modulus. This choice allows the system to utilize SIMD operations and greatly improve the performance of large data sets (e.g., cuckoo hash tables) through its batch processing techniques. However, other values ​​of the plaintext modulus t are also possible.

[0051] According to an embodiment, the final parameter q (the modulus of the ciphertext) is determined by the homomorphic encryption framework depending on the level of security to be achieved. According to an embodiment, the system can utilize 128-bit security. Although higher security levels (e.g., 256-bit or 512-bit security) are possible, for homomorphic encryption, higher security means less flexibility in handling the inevitable noise in the calculation. Therefore, the system can utilize 128-bit security, although other values ​​of q are also possible. According to an embodiment, a fixed-length query data fingerprint can be generated according to the methods and systems described in co-pending U.S. patent application No. US20240233890A1 and other methods and systems.

[0052] Therefore, the result of step 150 of the method is a homomorphically encrypted fixed-length query data fingerprint, which can be utilized in subsequent steps of the method. The homomorphically encrypted fixed-length query data fingerprint can be utilized immediately or stored in a local or remote storage device for subsequent use.

[0053] As described above, the same method can be used to fingerprint and homomorphically encrypt data items in a database that are to be queried. Multiple homomorphically encrypted fixed-length data fingerprints can be used for querying immediately or at any point in the future.

[0054] At step 160 of the method, the system generates a fixed-size query data fingerprint table, in which each row is the same homomorphically encrypted query data fingerprint. Each row of the query data fingerprint table will be compared with each row of the randomly sorted homomorphically encrypted data fingerprint, each data fingerprint representing a data file in the database. Therefore, the size of the fixed-size query data fingerprint table will be determined by the size of the fixed-size data fingerprint table in the database to be queried. Once generated, the fixed-size query data fingerprint table can be used immediately or stored in a local or remote storage device for subsequent queries.

[0055] Therefore, the size of the fixed-size data fingerprint table in the database to be queried can be a parameter available to the querying entity so that the size of the queried data fingerprint table can be determined, or the size of the fixed-size data fingerprint table in the database to be queried can be determined by requesting or otherwise receiving this information from the database.

[0056] For example, see Figure 3 , which shows a schematic diagram of a method 300 for querying a database using a similarity search system. The system includes a data fingerprint table 310 in the database to be queried, wherein the table includes a fixed-size fingerprint containing all data items FingerPrintx...FingerPrinti. The size FingerPrintx...FingerPrinti of the data fingerprint table 310 is information known or available to the querying entity. Alternatively, the size FingerPrinti of the data fingerprint table 310 can be secure information, so that the system generates a query data fingerprint table using the secure information without revealing it to the querying entity.

[0057] Therefore, a query data fingerprint table 320 is generated, where Query-FingerPrint is repeated in each row, and the number of rows is equal to the size FingerPrintx ... FingerPrinti of the data fingerprint table 310. This allows the query to be compared with all the data in the database for row-by-row similarity.

[0058] Therefore, at step 170 of the method, the system compares the query with the data in the database. According to an embodiment, the system compares the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint using a fixed-size query data fingerprint table and a fixed-size database table. The result of the comparison is a generated distance between the query and each data item.

[0059] Reference again Figure 3, in one embodiment, is a schematic diagram of a method 300 for querying a database using a similarity search system. The system includes a data fingerprint table 310 of size FingerPrintx...FingerPrinti, and a query data fingerprint table 320 of the same size, where each row is repeatedly populated with Query-FingerPrint. When each row of the data fingerprint table 310 is compared with each row of the query data fingerprint table 320, a distance Distance between the query and each data item is generated. Distance can be stored in a distance table 330 of size Distancex...Distancei, which is the same size as the data fingerprint table 310 and the query data fingerprint table 320. Therefore, for example, Distancex is the distance between FingerPrintx and Query-FingerPrint, and Distancei is the distance between FingerPrinti and Query-FingerPrint, and so on. According to an embodiment, the distance table 330 is also homomorphically encrypted.

[0060] According to an embodiment, once both the data set table and the query table are encoded as plaintext and homomorphically encrypted, the system can search for matches or otherwise determine the distance through a compare-add-multiply algorithm, although other methods are possible. For example, given that the data set table is encrypted as a vector of a ciphertext matrix Di, where i ranges from 1 to V, the system can utilize the following equation 3:

[0061]

[0062] where RV is the bit size of the values ​​stored in table (20) and 2^10 is the selected block size used to encode these values.

[0063] Similarly, according to an embodiment, each query table X may be split into V ciphertext matrices Xi, and for each query table i, the system may perform the following calculation on the matrix row j:

[0064]

[0065] According to an embodiment, the method calculates the squared Euclidean distance for each matrix row. According to an embodiment, the indices of rows that produced zero or fractional results are now ideal targets for duplicate or high similarity records.

[0066] According to an embodiment, the method may leak some sensitive data, such as the generated Euclidean distance information, to a queryer that performs operations on homomorphically encrypted data. The generated Euclidean distance information may be used by malicious persons to guess other bit vector values ​​present in the homomorphically encrypted table. The smaller the Euclidean distance, the more likely this leakage is. However, while the bit vectors retain locality, they are not explicitly reversible. The attacker will not be able to gain knowledge of any specific record, but may be able to extract knowledge about what types of records are contained in the homomorphically encrypted data set.

[0067] At step 180, the system uses the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint to identify one or more data files in the database that have a minimum generated distance, or no distance, or a distance above or below a predetermined threshold. According to an embodiment, the system or query may include a request or parameter or user setting that identifies the expected distance between the homomorphically encrypted fixed-length query data fingerprint and the homomorphically encrypted fixed-length data fingerprints in the database. For example, the expected distance may be 0 to identify identical or nearly identical data. As another example, the expected distance may be as small as possible to identify data that is as close to the query as possible.

[0068] According to an embodiment, the system or query may include a request or parameter or user setting that identifies a desired number of data items to be identified in a database using the query. For example, the system or query may include information or parameters that result in y items being returned in response to the query, where the items are the closest y data items.

[0069] Reference again Figure 3, in one embodiment, is a schematic diagram of a method 300 for querying a database using a similarity search system. The system includes a data fingerprint table 310 of size FingerPrintx...FingerPrinti, and a query data fingerprint table 320 of the same size, in which Query-FingerPrint is repeatedly populated in each row. When each row of the data fingerprint table 310 is compared with each row of the query data fingerprint table 320, a distance Distance between the query and each data item is generated. Therefore, at step 180 of the method, one or more items Distancex...Distancei in the distance table 330 are identified as the distances that are most responsive to the query. For example, according to an embodiment, any Distance=0 can be responsive to the query, and thus a FingerPrint with Distance=0 is identified as a response to the query. As another example, any Distance less than a predetermined, programmed or user-defined threshold (or alternatively, any Distance greater than the threshold) can identify one or more FingerPrints that respond to the query.

[0070] At step 190 of the method, the system may provide a response or other report to the query to the user via the user interface 240 of the similarity search system 200, including identification of one or more data files identified by the similarity search as being appropriately similar to the query. According to an embodiment, the system may display the report on a display of the system. The display may include information about the query, the response data, and / or one or more parameters utilized for the similarity search. Other information is also possible. Alternatively, the report may be transmitted to another device via wired and / or wireless communication. For example, the system may transmit the report to a mobile phone, a computer, a laptop computer, a wearable device, and / or any other device configured to allow display and / or otherwise transmit the report.

[0071] According to an embodiment, the homomorphic encryption system can be implemented in C++ using Microsoft's SEAL library, although other implementations are possible. The implementation can utilize the Brakerski / Fan-Vercauteren scheme to implement homomorphic ciphertext (see Fan et al., "Somewhat Practical Fully Homomorphic Encryption", Cryptology ePrintArchive, Report 2012 / 144). Testing can include creating compressed fingerprints for all files and calculating similarity quotients between all files based on these fingerprints.

[0072] Example

[0073] The following is an example of a similarity search using the systems and methods described or otherwise contemplated herein. It should be appreciated that this is only one possible application or embodiment of the systems and methods described or otherwise contemplated herein, and is therefore a non-limiting example.

[0074] In this example, the systems and methods described herein or otherwise contemplated are utilized to compare a genomic query to one or more reference genomes. In practice, an important use case for secure updates of a database, for example, is to determine which cases should be re-evaluated without revealing actual case information. In many settings, whether it is a knowledge database or active patient cases, active cases may rely on underlying references that may be changeable. For example, a reference Figure 4 , is a case 400 in which a genomic analysis 410 is compared with different references (Reference_a, Reference_b, ..., Reference_n) 410. In fact, in the genomic knowledge database and user cases, the core case may consist of key references that drive the understanding of the genomic analysis.

[0075] A clear pattern within genomics is that the underlying references are frequently modified. Because these references leak privacy-sensitive data (e.g., the disease to which the case relates), evaluating such modifications and their impact on genomic analysis is a valuable use case for homomorphic encryption. Therefore, the following solution architecture is proposed to implement homomorphic encryption and search methods and systems described or otherwise contemplated herein. For example, given a reference fingerprint vector for a genomic analysis GA:

[0076]

[0077] And the latest reference database RD:

[0078] RD= <r d1 ,…r dn >(Equation 6)

[0079] A Euclidean distance operation is performed on these two vectors GA, RD as described here. To quickly analyze whether a noteworthy change has occurred, the following simple calculation can be performed:

[0080]

[0081] If there is a significant difference, then there is a change and this information can be reported. The change or difference can then activate one or more actions, which can be performed on the reference or query as desired.

[0082] According to the embodiment, reference Figure 2, is a schematic diagram of a similarity search system 200. The system 200 may be any system described herein or otherwise contemplated, and may include any components described herein or otherwise contemplated. It is understood that Figure 2 An abstraction is constituted in some aspects, and the actual organization of the components of system 200 may be different and more complex than shown.

[0083] According to an embodiment, the system 200 includes a processor 220 that is capable of executing instructions stored in the memory 230 or the storage device 260 or otherwise processing data, such as performing one or more steps of the method. The processor 220 may be formed by one or more modules. The processor 220 may take any suitable form, including but not limited to a microprocessor, a microcontroller, multiple microcontrollers, a circuit, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a single processor, or multiple processors.

[0084] Memory 230 can take any suitable form, including non-volatile memory and / or RAM. Memory 230 can include various memories, such as L1, L2, or L3 cache or system memory. Therefore, memory 230 can include static random access memory (SRAM), dynamic RAM (DRAM), flash memory, read-only memory (ROM), or other similar memory devices. Among other things, the memory can store an operating system. The processor uses RAM to temporarily store data. According to an embodiment, the operating system can include code, which, when executed by the processor, controls the operation of one or more components of the system 200. Obviously, in an embodiment in which the processor implements one or more functions described herein in hardware, the software corresponding to such functions described in other embodiments can be omitted.

[0085] User interface 240 may include one or more devices for realizing communication with a user. A user interface may be any device or system that allows to convey and / or receive information, and may include a display, a mouse and / or a keyboard for receiving user commands. In certain embodiments, user interface 240 may include a command line interface or a graphical user interface that may be presented to a remote terminal via communication interface 250. The user interface may be located in one or more other components of the system, or may be located at a position away from the system and communicate via a wired and / or wireless communication network.

[0086] The communication interface 250 may include one or more devices for implementing communication with other hardware devices. For example, the communication interface 250 may include a network interface card (NIC) configured to communicate according to the Ethernet protocol. Additionally, the communication interface 250 may implement a TCP / IP stack to communicate according to the TCP / IP protocol. Various alternative or additional hardware or configurations of the communication interface 250 will be apparent.

[0087] The storage device 260 may include one or more machine-readable storage media, such as a read-only memory (ROM), a random access memory (RAM), a disk storage medium, an optical storage medium, a flash memory device, or a similar storage medium. In various embodiments, the storage device 260 may store instructions for execution by the processor 220 or data that the processor 220 may operate on. For example, the storage device 260 may store an operating system 261 for controlling various operations of the system 200.

[0088] Obviously, various information described as being stored in storage device 260 may be stored in memory 230 in addition or alternatively. In this regard, memory 230 may also be considered to constitute a storage device, and storage device 260 may be considered to be a memory. Various other arrangements will be apparent. In addition, both memory 230 and storage device 260 may be considered to be non-transitory machine-readable media. As used herein, the term "non-transitory" should be understood to exclude transient signals, but include all forms of storage devices, including both volatile and non-volatile memory.

[0089] Although system 200 is shown as including one of each of the components, in various embodiments, various components may be replicated. For example, processor 220 may include multiple microprocessors that are configured to independently perform the methods described herein, or are configured to perform the steps or subroutines of the methods described herein, so that multiple processors collaborate to implement the functions described herein. In addition, when one or more components of system 200 are implemented in a cloud computing system, various hardware components may belong to separate physical systems. For example, processor 220 may include a first processor in a first server and a second processor in a second server. Many other variations and configurations are possible.

[0090] The system may include or communicate with a query database 270. The query database is a database of any information, such as a medical database. The query database may be generated by the similarity search system or by another system. The database structure includes at least a fixed-size database table populated with randomly ordered homomorphically encrypted fixed-length data fingerprints, each of which represents a data file in the database. The fixed-size database table may be generated using known methods for generating data tables. Homomorphically encrypted fixed-length data fingerprints may be generated according to methods described below and herein or otherwise contemplated.

[0091] According to an embodiment, the storage device 260 of the system 200 may store one or more algorithms, modules, and / or instructions to perform one or more functions or steps of the methods described or otherwise contemplated herein. For example, the system may include, among other instructions or data, query formatting instructions 262, similarity search instructions 263, and / or reporting instructions 264, as well as many other possible instructions and / or data.

[0092] According to an embodiment, the query formatting instructions 262 instruct the system to receive and / or process an encrypted query to be utilized by the similarity search system. For example, the system can receive an encrypted query to be queried against a database, which can be any data or any other data that can be used to search or otherwise query against a database. The query can be received at the similarity search system, such as through a user interface. Alternatively, the query can be received from a remote system in wired and / or wireless communication with the similarity search system.

[0093] According to an embodiment, the query formatting instructions 262 also instruct the system to generate a fixed-length query data fingerprint based on the received query. The fixed-length query data fingerprint can be generated using a known method for generating a fingerprint based on data. According to an embodiment, the fixed-length data fingerprint includes a fixed-length floating-point value feature vector.

[0094] According to an embodiment, the query formatting instructions 262 also instruct the system to homomorphically encrypt the fixed-length query data fingerprint. The fixed-length query data fingerprint may be homomorphically encrypted using any suitable method for homomorphic encryption, including but not limited to methods described herein or otherwise contemplated.

[0095] According to an embodiment, the query formatting instructions 262 also instruct the system to generate a fixed-size query data fingerprint table, in which each row is the same homomorphically encrypted query data fingerprint. Each row of the query data fingerprint table will be compared with each row of the randomly sorted homomorphically encrypted data fingerprint, each data fingerprint representing a data file in the database. Therefore, the size of the fixed-size query data fingerprint table will be determined by the size of the fixed-size data fingerprint table in the database to be queried. Once generated, the fixed-size query data fingerprint table can be used immediately or stored in a local or remote storage device for subsequent query.

[0096] According to an embodiment, similarity search instructions 263 instruct the system to compare the query with the data in the database. According to an embodiment, the system compares the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint using a fixed-size query data fingerprint table and a fixed-size database table. The comparison produces a generated distance between the query and each data item.

[0097] According to an embodiment, the similarity search instruction 263 also instructs the system to utilize the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint to identify one or more data files in the database having a minimum generated distance, or no distance, or a distance above or below a predetermined threshold. According to an embodiment, the system or query may include a request or parameter or user setting that identifies the desired distance between the homomorphically encrypted fixed-length query data fingerprint and the homomorphically encrypted fixed-length data fingerprints in the database. For example, the desired distance may be 0 to identify identical or nearly identical data. As another example, the desired distance may be as small as possible to identify data that is as close to the query as possible.

[0098] According to an embodiment, the report instruction 264 instructs the system to generate a report and provide the report to the user via a user interface, the report including the identification of one or more data items identified by the similarity search as being appropriately similar to the query. According to an embodiment, the system can display the report on a display of the system. The display can include information about the identified data files, the query, and / or one or more parameters for the similarity search. Other information is also possible. Alternatively, the report can be transmitted to another device via wired and / or wireless communication. For example, the system can transmit the report to a mobile phone, a computer, a laptop computer, a wearable device, and / or any other device configured to allow display and / or otherwise transmit the report.

[0099] According to an embodiment, a similarity search system is configured to process thousands or millions of data items in a database, including generating a fingerprint for each data item, homomorphically encrypting each data item, and creating a table including each homomorphically encrypted fixed-length data fingerprint. In addition, the similarity search system generates a fingerprint for a query, homomorphically encrypts the query, and generates a table including homomorphically encrypted fixed-length query fingerprints. In addition, the similarity search system compares the homomorphically encrypted fixed-length query fingerprint with each homomorphically encrypted fixed-length data fingerprint, thereby generating a distance for each comparison. This requires processing millions of data points. Therefore, generating the distance between the query and each data item in the database includes a large amount of calculation and analysis that the human brain cannot complete in one or more lifetimes. In addition, by providing faster and safer similarity searches, the methods and systems described herein or otherwise contemplated represent technical improvements to systems that were previously unable to perform the same functions in the same manner or even at similar speeds.

[0100] All definitions, as defined and used herein, should be understood to control over dictionary definitions, definitions in documents incorporated by reference, and / or ordinary meanings of the defined terms.

[0101] The indefinite articles "a" and "an" as used in the specification and claims herein should be understood to mean "at least one", unless expressly indicated otherwise.

[0102] The phrase "and / or" as used in the specification and claims herein should be understood to mean "either or both" of the elements so combined, i.e., elements that are present in combination in some cases and in separate cases. Multiple elements listed with "and / or" should be interpreted in the same manner, i.e., "one or more" of the elements so combined. In addition to the elements explicitly identified by the "and / or" clause, other elements may optionally be present, whether or not related to the elements explicitly identified.

[0103] As used herein in the specification and claims, "or" should be understood to have the same meaning as "and / or" defined above. For example, when separating items in a list, "or" or "and / or" should be interpreted as inclusive, that is, including at least one, but also including multiple elements or lists of elements more than one, and optional unlisted additional items. Only terms that clearly indicate the opposite, such as "only one of them" or "exactly one of them", or when used in the claims, "consisting of...", refer to including exactly one element in a plurality of elements or lists of elements. In general, the term "or" used herein, when preceded by an exclusive term, such as "any one", "one of them", "only one of them" or "exactly one of them", should only be interpreted as indicating exclusive alternatives (i.e., "one or the other but not both").

[0104] As used herein in the specification and claims, the phrase "at least one" when referring to a list of one or more elements should be understood to mean at least one element selected from any one or more elements in the list of elements, but does not necessarily include at least one of each element specifically listed in the list of elements, and does not exclude any combination of elements in the list of elements. This definition also allows for the optional presence of elements in addition to the elements specifically identified in the list of elements to which the phrase "at least one" refers, whether related or unrelated to the specifically identified elements.

[0105] It should also be understood that, in any method claimed herein that includes more than one step or action, the order of the method steps or actions is not necessarily limited to the order in which the method steps or actions are described unless explicitly stated otherwise.

[0106] In the claims and the above description, all transitional phrases, such as "comprising", "including", "carrying", "having", "containing", "involving", "holding", "consisting of", etc., shall be understood as open-ended, i.e., meaning including but not limited to. Only the transitional phrases "consisting of" and "essentially consisting of" shall be closed or semi-closed transitional phrases, respectively.

[0107] Although several inventive embodiments have been described and illustrated herein, a person of ordinary skill in the art will readily conceive of various other means and / or structures for performing functions and / or obtaining results and / or one or more advantages described herein, and each of these variations and / or modifications is considered to be within the scope of the inventive embodiments described herein. More generally, a person of ordinary skill in the art will readily understand that all parameters, dimensions, materials, and configurations described herein are intended to be examples, and that actual parameters, dimensions, materials, and / or configurations will depend on the specific application or applications in which the invention is taught. A person of ordinary skill in the art will recognize, or be able to determine many equivalents of the specific inventive embodiments described herein using only routine experiments. Therefore, it should be understood that the foregoing embodiments are presented only by way of example, and within the scope of the appended claims and their equivalents, the inventive embodiments may be implemented in a manner different from that specifically described and required. The inventive embodiments of the present disclosure are directed to each individual feature, system, article, material, kit, and / or method described herein. In addition, any combination of two or more such features, systems, articles, materials, kits, and / or methods (if such features, systems, articles, materials, kits, and / or methods are not mutually inconsistent) is included within the inventive scope of the present disclosure.

Claims

1. A method (100) for encrypted similarity search of a database, comprising: Providing (120) a database comprising a plurality of homomorphically encrypted fixed-length data fingerprints, each fixed-length data fingerprint representing a data file in the database, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered in a fixed-size database table; receiving (130) an encrypted query to be queried against the database in a similarity search; generating (140) a fixed-length query data fingerprint based on the received query; Homomorphically encrypting the fixed-length query data fingerprint (150); generating (160) a fixed-size query data fingerprint table, wherein the size of the fixed-size query data fingerprint table is the same as the size of the fixed-size database table; using the fixed-size query data fingerprint table and the fixed-size database table, comparing the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint (170), wherein each comparison generates a distance; using the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint to identify (180) one or more data files in the database having a minimum generated distance; and The identified one or more data files in the database are reported (190).

2. The method according to claim 1 further includes the step of generating (115) the plurality of homomorphically encrypted fixed-length data fingerprints.

3. The method according to claim 1 further comprises the step of generating (115) a fixed-size database table including the plurality of homomorphically encrypted fixed-length data fingerprints, wherein: The multiple homomorphically encrypted fixed-length data fingerprints are randomly sorted in the fixed-size database table.

4. The method according to claim 1, wherein: The distance between each homomorphically encrypted fixed-length data fingerprint and the homomorphically encrypted fixed-length query data fingerprint is used to populate a distance table, and wherein the distance table is the same size as the fixed-size query data fingerprint table and the fixed-size database table.

5. The method according to claim 1, wherein: The generated distances are homomorphically encrypted.

6. The method according to claim 1, wherein: The report also includes a generated distance between the query and the identified one or more data files in the database.

7. The method according to claim 1, wherein: The encrypted query is an updated version of the database, and wherein each fixed-length data fingerprint represents a version of the database or a version of a data file in the database.

8. The method according to claim 1, wherein: The encrypted query is an updated version of a reference genome, and wherein each fixed-length data fingerprint represents the reference genome.

9. A system (200) for encrypted similarity search of a database, comprising: A database (270), comprising a plurality of homomorphically encrypted fixed-length data fingerprints, each fixed-length data fingerprint representing a data file in the database, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered in a fixed-size database table; an encrypted query to be queried against the database in a similarity search; and A processor (220) configured to: (i) generate a fixed-length query data fingerprint based on the query; (ii) homomorphically encrypt the fixed-length query data fingerprint; (iii) generate a fixed-size query data fingerprint table, wherein the size of the fixed-size query data fingerprint table is the same as the size of the fixed-size database table; (iv) use the fixed-size query data fingerprint table and the fixed-size database table to compare the homomorphically encrypted fixed-length query data fingerprint with each homomorphically encrypted fixed-length data fingerprint, wherein each comparison generates a distance; (v) use the generated distance between the homomorphically encrypted fixed-length query data fingerprint and each homomorphically encrypted fixed-length data fingerprint to identify one or more data files in the database having a minimum generated distance; and (vi) generate a report including the identified one or more data files in the database.

10. The system of claim 9, further comprising a user interface (240) configured to provide the generated report.

11. The system according to claim 9, wherein: The processor is also configured to generate the plurality of homomorphically encrypted fixed-length data fingerprints.

12. The system according to claim 9, wherein: The processor is further configured to generate the fixed-size database table including the plurality of homomorphically encrypted fixed-length data fingerprints, wherein the plurality of homomorphically encrypted fixed-length data fingerprints are randomly ordered within the fixed-size database table.

13. The system according to claim 9, wherein: The distance between each homomorphically encrypted fixed-length data fingerprint and the homomorphically encrypted fixed-length query data fingerprint is used to populate a distance table, and wherein the distance table is the same size as the fixed-size query data fingerprint table and the fixed-size database table.

14. The system according to claim 13, wherein: The distance table is homomorphically encrypted.

15. The system of claim 9, wherein: The minimum generated distance is determined by a predetermined setting or defined by the user.