Database watermark embedding and extracting method based on sparse priority strategy

Through the sparse priority strategy and the fake tuples generated by generative artificial intelligence, the fake tuples are only inserted when the watermark bit is 1, which solves the problem of excessive number of fake tuples in the existing technology, reduces the database burden and enhances the watermark. of robustness.

CN118779853AInactive Publication Date: 2024-10-15UNIV OF SCI & TECH OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410906913.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When ensuring the robustness of the watermark, the existing database watermarking scheme based on adding fake tuples inserts too many fake tuples, which leads to an increase in database size, storage space usage, management complexity and query time cost, affecting the database. Response speed and user experience.

Method used

Adopting a sparse priority strategy, by generating multiple sets of fake tuples that correspond one-to-one to the watermarks assigned by the user, only inserting fake tuples when the watermark bit is 1, reducing the amount of fake tuple insertion, and using generative artificial intelligence to generate reasonable logic Fake tuples to enhance robustness.

Benefits of technology

It effectively reduces the amount of fake tuple insertion by more than half, reducing the impact on normal use of the database, and at the same time enhances the robustness of the watermark, making it more difficult for leak suspects to erase the watermark.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779853A_ABST
    Figure CN118779853A_ABST
Patent Text Reader

Abstract

The invention discloses a database watermark embedding and extracting method based on a sparse priority strategy, which comprises the following steps of: firstly, distributing watermarks to users by using the sparse priority strategy, and obtaining a corresponding table of the users and the watermarks; generating a plurality of false tuples, and enabling the generated false tuples to be in one-to-one correspondence with the watermarks distributed by the user; embedding the distributed watermark into the database of each user by inserting a false tuple; and when the database appears in an unauthorized channel, extracting the watermark from the leaked database, and querying a corresponding table of the user and the watermark to confirm the leaked suspect. According to the method, the false tuple insertion amount is reduced by more than half, so that the influence of the watermark on the normal use of the database is reduced, and meanwhile, the robustness of the watermark is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of database watermarking, and in particular to a database watermark embedding and extraction method based on a sparse priority strategy. Background Art

[0002] Database watermarking is a technical means for protecting the security and integrity of database information. It embeds specific marks or information in the database and can be used for leak tracing. Specifically, before the database copyright holder distributes the database to multiple authorized users, different watermarks are added to the databases of different authorized users. When the database appears in an unauthorized channel, the copyright holder can extract the watermark to determine the source of the leak, hold the person responsible, or take measures to reduce the loss. However, the existing database watermarking schemes based on modification have some disadvantages. These schemes usually require a lot of modification of the original data to embed the watermark information, which may cause data inconsistency, distort the data obtained by the user's query, and have an adverse effect on the normal use of the user. The database watermarking scheme based on adding fake tuples hides the watermark by inserting fake tuples, which has some advantages. First, they do not require substantial modification of the original data, but embed the watermark information by adding some fake tuples in the database, so it does not affect the consistency of the original data. In addition, the watermarking scheme based on adding fake tuples is relatively simple, easy to implement and deploy, so the database watermarking scheme based on adding fake tuples has high feasibility and effect in practical applications.

[0003] Existing database watermarking schemes based on adding fake tuples divide fake tuples into two categories according to certain characteristics of fake tuples, one category represents watermark 1 and the other category represents watermark 0. When embedding a watermark, if the i-th bit of the watermark is 1, the first category of fake tuples in the i-th group are inserted into the database; otherwise, the second category of fake tuples are inserted into the database. In other words, whether the watermark bit is 1 or 0, a certain number of fake tuples need to be inserted. Quantitatively speaking, if the watermark length is L and the number of fake tuples in each group is x, then the number of fake tuples inserted by this type of watermarking scheme is xL. This scheme has a major disadvantage, that is, in order to ensure the robustness of the watermark, the number of fake tuples inserted may be too large. However, inserting too many fake tuples may lead to an increase in the size of the database, occupy a large amount of storage space, increase the complexity and cost of database management, increase the time cost of query and retrieval, and reduce the response speed of the database. In addition, when performing a range query on a database containing fake tuples, the results obtained will include the fake tuples within the query range, which will also have a negative impact on the use of the database. Summary of the invention

[0004] The purpose of the present invention is to provide a database watermark embedding and extraction method based on a sparse-first strategy, which reduces the amount of false tuple insertion by more than half, thereby reducing the impact of the watermark on the normal use of the database and enhancing the robustness of the watermark.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A database watermark embedding and extraction method based on a sparse priority strategy, the method comprising:

[0007] Step 1: Use the sparse priority strategy to assign watermarks to users and obtain the corresponding table between users and watermarks;

[0008] Step 2: Generate multiple sets of fake tuples, and make the generated fake tuples correspond one-to-one with the watermarks assigned by the user;

[0009] Step 3: embed the assigned watermark into each user’s database by inserting a fake tuple;

[0010] Step 4: When the database appears in an unauthorized channel, extract the watermark from the leaked database and query the corresponding table of users and watermarks to confirm the leak suspect.

[0011] It can be seen from the technical solution provided by the present invention that the above method reduces the amount of false tuple insertion by more than half, thereby reducing the impact of the watermark on the normal use of the database, while enhancing the robustness of the watermark, making it more difficult for the suspected leaker to erase the watermark. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0013] Figure 1 A schematic flow chart of a database watermark embedding and extraction method based on a sparse-first strategy provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0014] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments, which does not constitute a limitation of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0015] like Figure 1 The figure is a flow chart of a database watermark embedding and extraction method based on a sparse priority strategy provided by an embodiment of the present invention, wherein the method comprises:

[0016] Step 1: Use the sparse priority strategy to assign watermarks to users and obtain the corresponding table between users and watermarks;

[0017] In this step, sparsity is a concept used to evaluate the number of zero values ​​in a watermark. In a watermark of the same length, the more zero bits there are, the sparser the watermark is. The sparse priority strategy used is to assign sparser watermarks to users first in a watermark of length L. Specifically:

[0018] When assigning watermarks to users, we first need to calculate the number of users n. u To determine the watermark length L, we must ensure that the watermarks assigned to each user are different and that the watermark length is as short as possible. The specific calculation method is:

[0019] L = roundup(log2(n u ))

[0020] Among them, roundup() means rounding up;

[0021] Get 2 L ≥n u Therefore, a sparse first strategy is used to select watermarks containing more 0 bits from the watermarks of length L and assign them to users, and a corresponding table of users and watermarks is obtained.

[0022] For example, if the number of users n u is 6, then the watermark length L is determined as:

[0023] roundup(log2(6))=3

[0024] The results of watermarks with length 3 in descending order of sparsity are 000, 001, 010, 100, 011, 101, 110, 111, among which 000 is the most sparse and 111 is the least sparse.

[0025] Assign the first six sparsest watermarks containing more 0 bits to users. Assuming that the six user names are U1, U2, U3, U4, U5, and U6, we can get the corresponding table between users and watermarks, as shown in Table 1 below:

[0026] Table 1

[0027] username <![CDATA[U1]]> <![CDATA[U2]]> <![CDATA[U3]]> <![CDATA[U4]]> <![CDATA[U5]]> <![CDATA[U6]]> Watermark 000 001 010 100 011 101

[0028] Step 2: Generate multiple sets of fake tuples, and make the generated fake tuples correspond one-to-one with the watermarks assigned by the user;

[0029] In this step, since the leaking party will try to destroy the watermark by deleting the fake tuple, it is hoped that the fake tuple is real enough and difficult to be identified by the leaking party, making it difficult for the leaking party to accurately erase the watermark. The only way to destroy the watermark is to use a more inefficient method such as random deletion of tuples. The embodiment of the present invention uses the following method to generate fake tuples:

[0030] 1. Generative AI (GAI) learns the true probability distribution of various events, so the content it generates is often logical enough to be difficult to recognize. Specifically:

[0031] The attribute values ​​of the original database and some real tuples are input into generative artificial intelligence (GAI), and L groups of fake tuples are generated by generative artificial intelligence based on the real tuples. Each group contains x fake tuples, and it is stipulated that the i-th group of fake tuples corresponds to the i-th position of the watermark.

[0032] 2. When generating multiple groups of fake tuples, divide some real tuples as fake tuples representing watermarks. The most difficult fake tuples to identify are fake tuples that are real data. In this example, part of the real tuples can be divided into L groups, each with x tuples.

[0033] In the specific implementation, when the watermark length is 20, more than one million users can be distinguished. In real scenarios, the number of database users generally does not exceed one million, so the watermark length L generally does not exceed 20. The number of fake tuples x in each group of fake tuples depends on the user's requirements for robustness. The larger x is, the stronger the robustness is. x is generally between 5 and 20. Therefore, the number of real tuples xL that need to be divided as fake tuples is no more than 400. In general, it will be much lower than this number. Therefore, it can be said that only a small number of real tuples need to be divided into fake tuples.

[0034] Step 3: embed the assigned watermark into each user’s database by inserting a fake tuple;

[0035] In this step, during the watermark embedding process, different combinations of pseudo-tuples are selected according to the user's watermark and inserted into the user's database. Specifically:

[0036] For a certain user, traverse each bit of the assigned watermark. If the watermark of the ith bit is 1, insert the ith group of fake tuples into the database; otherwise, do nothing. In this way, when extracting watermarks from the leaked database, if any of the fake tuples in the ith group of fake tuples is found to exist in the database, the ith watermark can be considered to be 1; on the contrary, if none of the fake tuples in the ith group of fake tuples exist in the database, the ith watermark is considered to be 0. In this way, the existence of fake tuples can be used to express whether the watermark of the corresponding bit is 1 or 0.

[0037] In this way, only when the watermark bit is 1, a fake tuple needs to be inserted, which reduces the amount of fake tuple insertion. Due to the sparse priority strategy, users will be preferentially assigned to watermarks with more 0s, and the final inserted fake tuples are lower than the average value. Compared with the existing solution, the method described in the embodiment of the present invention reduces the amount of fake tuple insertion by more than half.

[0038] Before distributing the database to all users, a watermark embedding operation is performed to hide the corresponding watermark in the user's database.

[0039] Step 4: When the database appears in an unauthorized channel, extract the watermark from the leaked database and query the corresponding table of users and watermarks to confirm the leak suspect.

[0040] In this step, when the database appears in an unauthorized channel, it is judged that the database has been leaked, and the watermark needs to be extracted to determine the source of the leak. Specifically:

[0041] If any of the false tuples in the jth group of false tuples exists in the leaked database, the jth watermark is considered to be 1; if any of the false tuples in the jth group of false tuples does not exist in the leaked database, the jth watermark is considered to be 0;

[0042] By traversing all the pseudo-tuples of the groups in sequence, we can determine the status of each watermark and finally extract the watermark;

[0043] Then query the correspondence table between users and watermarks to find the leaked users.

[0044] It is worth noting that the contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field.

[0045] The following theoretical analysis proves that the scheme proposed by the present invention can reduce the number of inserted false tuples. In this example, the parameters of different schemes are aligned, and the watermark length is L. Each group of false tuples contains x false tuples. When the watermark is embedded using the scheme used in the prior art, no matter how many 0s are in the watermark, xL tuples need to be inserted. Therefore, for all users who need to trace the source, the average number of false tuples inserted in their database is xL.

[0046] Using the scheme of the present invention, a dummy tuple needs to be inserted only when the median bit of the watermark is 1. For all watermarks of length L, the proportion of 1 in each watermark is 50%. u Less than or equal to the total number of watermarks 2 L, so the user only needs to use a part of the watermark with length L. This application preferentially allocates sparser watermarks, that is, watermarks containing more 0 bits, to users, so the proportion of 1 in the watermarks used by users is less than 50%, and the average number of false tuples inserted in their database is less than xL / 2. Therefore, the solution of the present invention reduces the amount of false tuple insertion by more than half.

[0047] The following theoretical analysis proves that the solution proposed in the present invention can enhance the robustness of the watermark. Robustness refers to the ability of the watermark to be accurately extracted after the database is attacked. Common attacks include deletion attacks, which randomly delete a certain proportion of tuples in order to delete some false tuples and cause errors in watermark extraction. During the traceability process, even if there is only one error in watermark extraction, it will cause the algorithm to identify the wrong suspected leak and cause a false alarm. Therefore, this example uses the probability expectation EP that the watermark can still be accurately extracted after a p-proportion deletion attack to measure the robustness of the watermark. Specifically:

[0048] 1) The probability of a certain watermark being accurately extracted

[0049] For a certain watermark, if it is 0, then it will not be mistakenly extracted as 1 due to deletion attack, so the probability that it is accurately extracted is p a0 =1. If it is 1, then when all the corresponding false tuples are deleted, it will be mistakenly extracted as 0. We need to find this probability. Let n be the number of tuples in the database after watermarking. Assume that the proportion of tuples randomly deleted by the attacker is p, and the number of tuples after deletion is (1-p)n. If all x false tuples in a group of false tuples are deleted, that is, the (1-p)n false tuples after deletion do not contain any of the x false tuples, then the probability of complete deletion is P. cd The size is:

[0050]

[0051] The probability that a set of false tuples is completely deleted That is to say, the probability that a watermark with a bit of 1 is mistakenly extracted as 0

[0052] 2) The probability of a watermark being accurately extracted

[0053] If you want to accurately extract the watermark W, you must correctly extract each bit of the watermark. If a watermark has k 1s and Lk 0s, then the probability that it is accurately extracted is p ka The calculation method is as follows:

[0054]

[0055] According to p kaWe can see from the results that the smaller k is, the smaller p ka That is to say, if a watermark contains fewer 1s, it has a greater probability of being accurately extracted after being attacked by deletion.

[0056] It can be seen that the solution of the present application preferentially allocates sparser, that is, less watermarks to users, which reduces the amount of false tuple insertion and enhances the robustness of the watermark.

[0057] 3) The probability that there are k 1s in the watermark

[0058] In the total length of L2 L Among the watermarks, there are A watermark contains exactly k 1s. Therefore, the probability P of a watermark with k 1s is ko yes:

[0059] 4) The expected probability of the watermark being accurately extracted

[0060] According to the above derivation, the expected probability EP of accurately extracting the watermark is:

[0061]

[0062] Since we give priority to assigning sparser watermarks to users, and sparser watermarks have stronger robustness, in actual situations, the probability EP that a watermark is accurately extracted after a deletion attack satisfies:

[0063]

[0064] For the existing scheme, no matter whether a watermark is 1 or 0, the probability of it being accurately extracted is:

[0065]

[0066] For a watermark of length L, the probability that it is accurately extracted is (1-P cd ) L , which has nothing to do with the number of 1s in the watermark. Therefore, the probability that the watermark is accurately extracted EP′=(1-P cd ) L .

[0067] because It can be seen that after being subjected to the same proportion of deletion attacks, the watermark embedded using the solution proposed in the embodiment of the present invention has a higher probability of being accurately extracted, which means that the solution is more robust.

[0068] In addition, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0069] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.

Claims

1. A database watermark embedding and extraction method based on sparse priority strategy, It is characterized in that The method comprises: Step 1: Use the sparse priority strategy to assign watermarks to users and obtain the corresponding table between users and watermarks; Step 2: Generate multiple sets of fake tuples, and make the generated fake tuples correspond one-to-one with the watermarks assigned by the user; Step 3: embed the assigned watermark into each user’s database by inserting a fake tuple; Step 4: When the database appears in an unauthorized channel, extract the watermark from the leaked database and query the corresponding table of users and watermarks to confirm the leak suspect.

2. According to the database watermark embedding and extraction method based on sparse priority strategy as described in claim 1, It is characterized in that In step 1, sparsity is a concept used to evaluate the number of zero values ​​in a watermark. In a watermark of the same length, the more zero bits there are, the sparser the watermark is. The sparse priority strategy used is to assign sparser watermarks to users first in a watermark of length L. Specifically: When assigning watermarks to users, we first need to calculate the number of users n. u To determine the watermark length L, the specific calculation method is: L=roundup(log 2 (n u )) Among them, roundup() means rounding up; Get 2 L ≥n u Therefore, a sparse first strategy is used to select watermarks containing more 0 bits from the watermarks of length L and assign them to users, and a corresponding table of users and watermarks is obtained.

3. According to the database watermark embedding and extraction method based on sparse priority strategy as claimed in claim 1, It is characterized in that In step 2, when generating multiple groups of fake tuples, the attribute values ​​of the original database and some real tuples are input into the generative artificial intelligence GAI, and L groups of fake tuples are generated by imitating the real tuples through generative artificial intelligence. Each group contains x fake tuples, and it is stipulated that the i-th group of fake tuples corresponds to the i-th position of the watermark.

4. According to the database watermark embedding and extraction method based on sparse priority strategy as claimed in claim 1, It is characterized in that In step 2, when generating multiple groups of fake tuples, a part of the real tuples is divided into fake tuples representing watermarks, specifically divided into L groups, each with x numbers; the number x of fake tuples in each group of fake tuples is determined according to the user's requirements for robustness, and the larger x is, the stronger the robustness is.

5. According to the database watermark embedding and extraction method based on sparse priority strategy as claimed in claim 1, It is characterized in that In step 3, during the watermark embedding phase, different combinations of pseudo tuples are selected according to the user's watermark and inserted into the user's database. Specifically: For a certain user, traverse each bit of the assigned watermark. If the i-th watermark is 1, insert the i-th group of fake tuples into the database; otherwise, do nothing. In this way, a fake tuple needs to be inserted only when the watermark bit is 1, which reduces the amount of fake tuple insertion; Before distributing the database to all users, a watermark embedding operation is performed to hide the corresponding watermark in the user's database.

6. According to the database watermark embedding and extraction method based on sparse priority strategy as claimed in claim 1, It is characterized in that In step 4, when the database appears in an unauthorized channel, it is judged that the database has been leaked, and the watermark needs to be extracted to determine the source of the leak. Specifically: If any of the false tuples in the jth group of false tuples exists in the leaked database, the jth watermark is considered to be 1; if any of the false tuples in the jth group of false tuples does not exist in the leaked database, the jth watermark is considered to be 0; By traversing all the pseudo-tuples of the groups in sequence, we can determine the status of each watermark and finally extract the watermark; Then query the correspondence table between users and watermarks to find the leaked users.

Citation Information

Patent Citations

  • Text-type attribute-based relational database watermark embedding method

    CN102184243A

  • Database watermark embedding and extracting method based on important data identification

    CN116401234A