Map watermarking method and device based on element storage sequence
Through a map watermarking method based on element storage order, the sequence relationship of lane elements in high-precision maps is adjusted to embed watermark information, which solves the problem that the geometric characteristics and accuracy of high-precision maps are not taken into account in the existing technology, and achieves high efficiency in autonomous driving applications. Watermark information embedding and detection.
Patent Information
- Application Number
- CN202410754223.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing vector geographical data watermarking algorithms fail to effectively consider the geometric characteristics and accuracy requirements of high-precision maps, resulting in the inability to meet high-precision protection requirements in autonomous driving application scenarios.
Using a map watermarking method based on element storage order, by obtaining the road element collection of high-precision maps, constructing the mapping relationship between the lane element storage order relationship and binary 0 and 1, adjusting the order relationship of lane elements in the road to embed watermark information, and in Embedding and detecting watermark information is achieved without changing data availability and accuracy.
This method can resist translation, rotation, scaling and cropping attacks while ensuring data availability and accuracy, complete the embedding and detection of watermark information, and meet the needs of high-precision autonomous driving applications.
Smart Images

Figure CN118552385A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of geographic information technology, and in particular relates to a map watermark method and device based on element storage order. Background Art
[0002] High-precision maps are the core infrastructure for autonomous driving. Intelligent autonomous driving requires the support of high-precision maps. The high-precision and high-richness characteristics of high-precision maps make them more commercially valuable and confidential than ordinary navigation maps. The leakage, theft and illegal transmission of high-precision map data will not only affect the development of the autonomous driving field and damage the actual interests of enterprises, but may also threaten national security. Therefore, effective technical methods are urgently needed to protect high-precision map data, which is also one of the important issues that need to be solved.
[0003] OpenDrive is one of the mainstream international high-precision map data standard formats. Its data is stored in an XML file with the extension xodr, which describes the static road traffic network of autonomous driving applications. This paper takes OpenDrive high-precision maps as the research object. The geometric features of high-precision maps are similar to vector geographic data. Therefore, the research on high-precision map watermarking algorithms can refer to the commonly used vector geographic data watermarking algorithms.
[0004] "2D Vetor Map Watermarking Based on Satial Rlations" (Wu B, 2008) uses element distance or area ratio to perform index modulation to embed watermarks, and "Small Data Vector Geographic Data Watermarking Algorithm" (Tong Deyu, 2018) modulates the angle of line elements to embed watermarks. These two methods have good robustness, but do not take into account the geometric characteristics and application scenarios of high-precision maps. For example, for a long road element (such as a highway), even a small change in angle will have a significant impact on the actual autonomous driving path planning.
[0005] "A Normalization-based Watermarking Scheme for 2D Vector Mp Data" (Yan H, 2017) uses the frequency domain coefficients of DCT transform for watermark embedding, and "Commutative Encryption and Watermarking Based on SVD for Secure GIS Vector Data" (Ren N, 2021) implements a method based on singular value decomposition to extract the eigenvalues of the coordinate matrix using SVD to embed watermark information. These two methods have good robustness and do not involve the unique geometric features of the data. They can be used for high-precision map watermarking algorithms, but there is a problem of uncontrollable accuracy and cannot meet the application scenarios of autonomous driving that require high-precision support. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a map watermarking method and device based on element storage order to solve the problem that the existing vector geographic data watermarking algorithm does not take into account the geometric characteristics of high-precision maps and the uncontrollable accuracy. It has the characteristics of realizing the embedding and detection of watermark information without changing the data availability and high-precision characteristics.
[0007] To achieve the above object, the present invention adopts the following technical solution:
[0008] A map watermarking method based on element storage order, comprising:
[0009] Step S1, obtaining a set of road elements of a high-precision map;
[0010] Step S2: Obtain a mapping relationship between a lane element storage order relationship and binary 0 and 1 based on a set of road elements in a high-precision map;
[0011] Step S3: obtaining the watermark bit to be embedded and its corresponding watermark index according to the mapping relationship;
[0012] Step S4, adjusting the order relationship of lane elements in the road according to the watermark bit value;
[0013] Step S5, repeating steps S1 to S4 until all road elements are traversed to complete the cyclic embedding of watermark information.
[0014] Preferably, in step S2, the road element set is traversed, and the attribute value of each road is extracted and stored in the set ra=(roadID, junctionID, geometryNum). The elements in ra are used to construct the parameter str of the function H(), which is expressed as:
[0015] str=roadID&junctionID&string(geometryNum)
[0016] Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting numeric type to string type, & represents the string concatenation operation, and the function H() returns a value based on the input string, and the value is in the interval (0,1).
[0017] Preferably, in step S3, the watermark bit v to be embedded and its corresponding watermark index index are obtained as follows:
[0018]
[0019] v=W[index]
[0020] Preferably, in step S4, the sequence relationship of lane elements in the road is assumed to be:
[0021] lane=(left,center,right)
[0022] Among them, left is the left lane, center is the center lane, and right is the right lane;
[0023] According to the OpenDrive standard, the center lane is a mandatory element, and the left lane and the right lane are optional elements. The storage order of the lane elements is adjusted according to v as follows:
[0024] lane=(left,center,right), if v=0
[0025] lane=(right,center,left), if v=1
[0026] As a preference, the method further includes: step S6, watermark detection, specifically including:
[0027] Get the road element set in the high-precision map;
[0028] Traverse the road element set, and use function H to obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information;
[0029] Acquire the watermark bits to be extracted according to the storage order of lane elements in the road element;
[0030] Repeat the above three steps, determine the final ciphertext watermark sequence according to the majority principle, and use the key to decrypt it to obtain the final original watermark information.
[0031] The present invention also provides a map watermark device based on element storage order, comprising:
[0032] The acquisition module is used to obtain the road element set of the high-precision map;
[0033] A construction module is used to obtain a mapping relationship between a lane element storage order relationship and binary 0 and 1 based on a road element set of a high-precision map;
[0034] A processing module, used for obtaining the watermark bit to be embedded and its corresponding watermark index according to the mapping relationship;
[0035] An adjustment module, used for adjusting the order relationship of lane elements in the road according to the watermark bit value;
[0036] The embedding module is used to repeat steps S1 to S4 until the road elements are traversed completely to complete the cyclic embedding of the watermark information.
[0037] Preferably, the construction module is used to traverse the road element set, extract the attribute value of each road and store it in the set ra=(roadID, junctionID, geometryNum), and use the elements in ra to construct the parameter str of the function H(), which is expressed as:
[0038] str=roadID&junctionID&string(geometryNum)
[0039] Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting numeric type to string type, & represents the string concatenation operation, and the function H() returns a value based on the input string, and the value is in the interval (0,1).
[0040] Preferably, the processing module obtains the watermark bit v to be embedded and its corresponding watermark index index as:
[0041]
[0042] v=W[index]
[0043] As a preferred embodiment, the embedding module is specifically as follows: Assume that the order relationship of lane elements in the road is:
[0044] lane=(left,center,right)
[0045] Among them, left is the left lane, center is the center lane, and right is the right lane;
[0046] According to the OpenDrive standard, the center lane is a mandatory element, and the left lane and the right lane are optional elements. The storage order of the lane elements is adjusted according to v as follows:
[0047] lane=(left,center,right), if v=0
[0048] lane=(right,center,left), if v=1
[0049] As an advantage, it further includes: a watermark detection module, specifically including:
[0050] An acquisition unit, used to acquire a set of road elements in a high-precision map;
[0051] A first processing unit is used to traverse the road element set and obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information using the function H;
[0052] A second processing unit, used for acquiring the watermark bits to be extracted according to the storage order of the lane elements in the road elements;
[0053] The detection unit is used to determine the final ciphertext watermark sequence according to the majority principle, and decrypt it using the key to obtain the final original watermark information.
[0054] The present invention fully considers the element storage characteristics of high-precision map data in the OpenDRIVE standard format. The embedding of watermark information does not affect the value itself, so that the method can better resist translation, rotation, scaling and cropping attacks while ensuring data availability and data accuracy, and complete the embedding and detection of watermark information. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0056] Figure 1 is a watermark embedding flow chart of the present invention;
[0057] Figure 2 It is a flow chart of watermark detection of the present invention. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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. 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.
[0059] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] Embodiment 1:
[0061] The embodiment of the present invention provides a map watermarking method based on element storage order. First, a function H is constructed using SHA-256. The function can map a value in the interval [0,1] according to the input string parameter. The mapping relationship between the lane element storage order relationship and the binary 0 and 1 is constructed. The string parameter is constructed using the identification number of the high-precision map road element and the identification number of its connectivity relationship, and the index position of the watermark embedding is obtained by combining the function H with the watermark length. When embedding the watermark, the watermark bit value to be embedded in the current road is obtained, and the storage order of the lane is adjusted according to the mapping relationship between the element storage order and the binary bit, so as to complete the embedding of the watermark information. When detecting the watermark, the index position of the watermark bit embedded in the current road is obtained according to the identification number of the road element and the identification number of its connectivity relationship and the function H, and then the storage order of the lane group contained in the current road is obtained, and the embedded bit value is obtained through the mapping relationship between the lane element storage order relationship and the binary bit. Finally, the final extracted watermark information is obtained through a voting mechanism.
[0062] like Figure 1 , 2 As shown, an embodiment of the present invention provides a map watermark method based on element storage order, which is applicable to OpenDRIVE format high-precision maps, and the steps are as follows:
[0063] Step 1: Function construction and watermark information encryption
[0064] Step 1.1: Use SHA-256 to construct a function H(), which can return a value in the interval (0,1) based on the input string. Specifically, it can be expressed as:
[0065] R=H(str)
[0066] Among them, R represents the final return value, R∈(0,1), and str represents the input parameters required by the function H().
[0067] Step 1.2: Encrypt the watermark information using the key k. Obtain the original watermark information sequence Wo = (Wo1, Wo2, Wo3, ..., Wo N ), N is the length of the watermark information, which is stored in the key k. The encrypted ciphertext watermark information can be expressed as:
[0068] W=L(Wo,k)
[0069] Where L() is the Logistic chaotic map, W=(W1,W2,W3,...,W N ) is the encrypted watermark information consisting of binary characters.
[0070] Step 2: Watermark embedding
[0071] Step 2.1: Get the road element set r = (r1, r2, r3, ..., r n )where n represents the total number of road elements.
[0072] Step 2.2: Traverse the road element set, extract the attribute value of each road and store it in the set ra = (roadID, junctionID, geometryNum). Use the elements in ra to construct the parameter str of the function H(), which can be expressed as:
[0073] str=roadID&junctionID&string(geometryNum)
[0074] Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting a numeric type to a string type, and & represents the string concatenation operation.
[0075] Step 2.3: Get the watermark bit v to be embedded and its corresponding watermark index index. It can be expressed as:
[0076]
[0077] v=W[index]
[0078] Step 2.4: Adjust the order of lane elements in the road according to the watermark bit value. Suppose the order of lane elements in the road is:
[0079] lane=(left,center,right)
[0080] Among them, left is the left lane, center is the center lane, and right is the right lane. According to the OpenDrive standard, the center lane is a mandatory element, while the left lane and the right lane are optional elements, and at least one of them exists. The storage order of the lane elements is adjusted according to v, which can be specifically expressed as:
[0081] lane=(left,center,right), if v=0
[0082] lane=(right,center,left), if v=1
[0083] Step 2.5: Repeat the above operation until all road elements are traversed and the cyclic embedding of watermark information is completed.
[0084] Step 3: Watermark Detection
[0085] Step 3.1: Get the road element set r = (r1, r2, r3, ..., r n ) where n represents the total number of road elements. Read the watermark length N in the key k.
[0086] Step 3.2: Traverse the road element set, extract the attribute value of each road and store it in the set ra = (roadID, junctionID, geometryNum). Use the elements in ra to construct the parameters of the function H(), which can be expressed as:
[0087] str=roadID&junctionID&string(geometryNum)
[0088] Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting a numeric type to a string type, and & represents the string concatenation operation.
[0089] Step 3.4: Read the storage order lane of the lane elements in the road and obtain the watermark bit v, which can be specifically expressed as:
[0090] v=0, if lane=(left,center,right)
[0091] v=1, if lane=(right,center,left)
[0092] Read the index position index corresponding to the watermark bit v, which can be specifically expressed as:
[0093]
[0094] Step 3.6: Repeat the above operation and use the majority rule to determine the bit value v corresponding to the index position index, and the final ciphertext watermark information W = (W1, W2, W3, ..., W N ), and then decrypt it using the key to obtain the final original watermark information, which can be specifically expressed as:
[0095] Wo=E(W,k)
[0096] Wo=(Wo1,Wo2,Wo3,...,Wo N ) is the original watermark information finally extracted.
[0097] Embodiment 2:
[0098] The embodiment of the present invention selects the sample road network data provided by the OpenDrive official website, which has 41 road elements, 339 lane segment elements, and 8 intersection elements. An embodiment of the present invention is given for the generation, embedding and detection process of watermark information of high-precision map data, and the present invention is further described in detail.
[0099] 1. Watermark information encryption and function construction
[0100] Step 11: Use SHA-256 to construct a function H, which can return a value in the interval (0,1) based on the input string.
[0101] Step 12: Encrypt the watermark information using the key to obtain the ciphertext watermark information, and store the watermark information length in the key.
[0102] 2. Watermark Embedding
[0103] Step 21: Obtain the road elements in the high-precision map, and use the function H, the attribute value of the road element and the length of the watermark information to obtain the index position of the watermark to be embedded.
[0104] Step 22: Obtain the watermark bit value to be embedded using the index position, and adjust the storage order of the lane elements in the road element according to the watermark bit value.
[0105] Step 23: Repeat the above steps to complete the embedding of watermark information.
[0106] 3. Watermark detection
[0107] Step 31: Obtain the road element set in the high-precision map and read the watermark information length in the key.
[0108] Step 32: traverse the road element set, and use function H to obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information.
[0109] Step 33: Obtain the watermark bits to be extracted according to the storage order of the lane elements in the road elements.
[0110] Step 34: Repeat the above steps to determine the final ciphertext watermark sequence according to the majority principle, and use the key to decrypt it to obtain the final original watermark information.
[0111] Embodiment 3:
[0112] The embodiment of the present invention further provides a map watermark device based on element storage order, comprising:
[0113] The acquisition module is used to obtain the road element set of the high-precision map;
[0114] A construction module is used to obtain a mapping relationship between a lane element storage order relationship and binary 0 and 1 based on a road element set of a high-precision map;
[0115] A processing module, used for obtaining the watermark bit to be embedded and its corresponding watermark index according to the mapping relationship;
[0116] An adjustment module, used for adjusting the order relationship of lane elements in the road according to the watermark bit value;
[0117] The embedding module is used to repeat steps S1 to S4 until the road elements are traversed completely to complete the cyclic embedding of the watermark information.
[0118] As an implementation method of an embodiment of the present invention, the construction module is used to traverse the road element set, extract the attribute value of each road and store it in the set ra=(roadID, junctionID, geometryNum), and use the elements in ra to construct the parameter str of the function H(), which is expressed as:
[0119] str=roadID&junctionID&string(geometryNum)
[0120] Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting numeric type to string type, & represents the string concatenation operation, and the function H() returns a value based on the input string, and the value is in the interval (0,1).
[0121] As an implementation method of the embodiment of the present invention, the processing module obtains the watermark bit v to be embedded and the corresponding watermark index index is expressed as:
[0122]
[0123] v=W[index]
[0124] As an implementation method of an embodiment of the present invention, the embedding module is specifically: assuming that the sequence relationship of lane elements in the road is:
[0125] lane=(left,center,right)
[0126] Among them, left is the left lane, center is the center lane, and right is the right lane;
[0127] According to the OpenDrive standard, the center lane is a mandatory element, and the left lane and the right lane are optional elements. The storage order of the lane elements is adjusted according to v as follows:
[0128] lane=(left,center,right), if v=0
[0129] lane=(right,center,left), if v=1
[0130] As an implementation of the embodiment of the present invention, it also includes: a watermark detection module, specifically including:
[0131] An acquisition unit, used to acquire a set of road elements in a high-precision map;
[0132] A first processing unit is used to traverse the road element set and obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information using the function H;
[0133] A second processing unit, used for acquiring the watermark bits to be extracted according to the storage order of the lane elements in the road elements;
[0134] The detection unit is used to determine the final ciphertext watermark sequence according to the majority principle, and decrypt it using the key to obtain the final original watermark information.
[0135] The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims
1. A map watermarking method based on element storage order, characterized in that: include: Step S1, obtaining a set of road elements of a high-precision map; Step S2: Obtain a mapping relationship between a lane element storage order relationship and binary 0 and 1 based on a set of road elements in a high-precision map; Step S3: obtaining the watermark bit to be embedded and its corresponding watermark index according to the mapping relationship; Step S4, adjusting the order relationship of lane elements in the road according to the watermark bit value; Step S5, repeating steps S1 to S4 until all road elements are traversed to complete the cyclic embedding of watermark information.
2. The map watermarking method based on element storage order as claimed in claim 1, characterized in that: In step S2, the road element set is traversed, and the attribute value of each road is extracted and stored in the set ra=(roadID, junctionID, geometryNum). The elements in ra are used to construct the parameter str of the function H(), which is expressed as: str=roadID&junctionID&string(geometryNum) Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting numeric type to string type, & represents the string concatenation operation, and the function H() returns a value based on the input string, and the value is in the interval (0,1).
3. The map watermarking method based on element storage order as claimed in claim 2, characterized in that: In step S3, the watermark bit v to be embedded and its corresponding watermark index index are obtained as: v=W[index].
4. The map watermarking method based on element storage order as claimed in claim 3, characterized in that: In step S4, the order relationship of lane elements in the road is assumed to be: lane=(left,center,right) Among them, left is the left lane, center is the center lane, and right is the right lane; According to the OpenDrive standard, the center lane is a mandatory element, and the left lane and the right lane are optional elements. The storage order of the lane elements is adjusted according to v as follows: lane=(left,center,right), if v=0 lane=(right,center,left),if v=1.
5. The map watermarking method based on element storage order as claimed in claim 4, characterized in that: The process also includes: step S6, watermark detection, specifically including: Get the road element set in the high-precision map; Traverse the road element set, and use function H to obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information; Acquire the watermark bits to be extracted according to the storage order of lane elements in the road element; Repeat the above three steps, determine the final ciphertext watermark sequence according to the majority principle, and use the key to decrypt it to obtain the final original watermark information.
6. A map watermarking device based on element storage order, characterized in that: include: The acquisition module is used to obtain the road element set of the high-precision map; A construction module is used to obtain a mapping relationship between a lane element storage order relationship and binary 0 and 1 based on a road element set of a high-precision map; A processing module, used for obtaining the watermark bit to be embedded and its corresponding watermark index according to the mapping relationship; An adjustment module, used for adjusting the order relationship of lane elements in the road according to the watermark bit value; The embedding module is used to repeat steps S1 to S4 until the road elements are traversed completely to complete the cyclic embedding of the watermark information.
7. The map watermarking device based on element storage order as claimed in claim 6, characterized in that: The construction module is used to traverse the road element set, extract the attribute value of each road and store it in the set ra = (roadID, junctionID, geometryNum), and use the elements in ra to construct the parameter str of the function H(), which is expressed as: str=roadID&junctionID&string(geometryNum) Among them, roadID represents the road identification number, junctionID represents the identification number of the intersection to which the road belongs, geometryNum represents the number of reference lines contained in the road, string represents the operation of converting numeric type to string type, & represents the string concatenation operation, and the function H() returns a value based on the input string, and the value is in the interval (0,1).
8. The map watermarking device based on element storage order as claimed in claim 7, characterized in that: The processing module obtains the watermark bit v to be embedded and its corresponding watermark index index as: v=W[index].
9. The map watermarking device based on element storage order as claimed in claim 8, characterized in that: The embedding module is as follows: Assume that the order relationship of lane elements in the road is: lane=(left,center,right) Among them, left is the left lane, center is the center lane, and right is the right lane; According to the OpenDrive standard, the center lane is a mandatory element, and the left lane and the right lane are optional elements. The storage order of the lane elements is adjusted according to v as follows: lane=(left,center,right), if v=0 lane=(right,center,left),if v=1.
10. The map watermarking device based on element storage order as claimed in claim 9, characterized in that: Also includes: The watermark detection module specifically includes: An acquisition unit, used to acquire a set of road elements in a high-precision map; A first processing unit is used to traverse the road element set and obtain the index position corresponding to the watermark bit to be extracted according to the attribute value of the road element and the length of the watermark information using the function H; A second processing unit, used for acquiring the watermark bits to be extracted according to the storage order of the lane elements in the road elements; The detection unit is used to determine the final ciphertext watermark sequence according to the majority principle, and decrypt it using the key to obtain the final original watermark information.
Citation Information
Cited By
Generation and use of a repository of mobile apparatus identifiers for watermarking
US20260147080A1
