Deep learning based zero-watermarking method for linear vector map data
Patent Information
- Application Number
- CN202610849590.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-12
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2046-06-12
AI Technical Summary
现有矢量数据零水印方法多依赖于手工设计的几何特征(如角度统计、长度比例、拓扑关系等),其特征区分能力有限,且对常见几何攻击(如顶点增删、平滑、噪声添加)的鲁棒性不足
[0077]1、本发明摒弃了传统修改数据的思路,通过模拟人类认知的方式学习数据深层特征作为数字指纹,在确保原始数据零失真的前提下,实现了对线状矢量地图数据强区分、高鲁棒的版权认证,为开放共享环境下的地理数据产权保护提供了新的技术解决方案,非常适合矢量地理数据的安全保护。
Smart Images

Figure CN122390948B_ABST
Abstract
Claims
1. A deep learning-based line vector map data zero watermarking method, characterized by, Includes the following steps: Step 1, Line Feature Deep Extraction: Based on the transformer network, learn the deep features of line features to extract the high-dimensional features of line features in the dataset of the line vector map; The specific process of step 1 is as follows: Step 11, Data Preprocessing and Augmentation: Represent each line feature in the dataset as a series of node coordinates to obtain a variable-length coordinate sequence, and normalize the node coordinates. Step 12, Construct a feature extraction network: Construct a feature extraction network based on a Transformer encoder to process coordinate sequences and capture global dependencies; The feature extraction network consists of an input embedding layer, a Transformer encoder, and a pooling layer: The input embedding layer projects the coordinates of each node into a high-dimensional space through a linear layer and adds learnable positional encoding; The Transformer encoder consists of a multi-layer self-attention mechanism and a feedforward network; The pooling layer aggregates the information of the entire coordinate sequence and outputs a feature vector of fixed dimensions. Step 13, Training the feature extraction network: The training uses the triplet loss function to construct triplets and uses gradient descent to optimize the network parameters; Step 2, Feature aggregation based on attention mechanism: Through the feature aggregation network, the high-dimensional features of all line elements are aggregated into a global feature; Step 3, Generate hash code: Through forward propagation of the hash layer, the global features are converted into binary hash code; Step 4, Generate Zero Watermark: Generate a zero watermark based on the XOR operation between the binary hash code and the copyrighted image, and store it in the copyright center's database.
2. The method for zero-watermarking linear vector map data based on deep learning according to claim 1, characterized in that, The specific process of step 11 is as follows: Step 111: For a line feature, calculate the minimum X-coordinate of the line feature across all nodes. and the maximum value of the X coordinate Calculate the minimum Y-coordinate of the line feature across all nodes. and the maximum value of the Y coordinate Get the coordinates of the bottom left corner of the bounding box. , ) and the coordinates of the upper right corner ( , ); Step 112: Calculate the width of the bounding box and the height of the enclosure The formula is as follows: ; ; Step 113: Perform normalization calculations for the first... There are 1 node, and the formula is as follows: ; ; in, For the first The normalized x-coordinates of each node For the first The x-coordinate of each node, For the first The normalized ordinates of each node For the first The ordinate of each node; Step 114: During training, randomly apply operations such as adding nodes, deleting nodes, and perturbing nodes to perform data augmentation.
3. The method for zero-watermarking linear vector map data based on deep learning according to claim 2, characterized in that, The specific steps in step 12 are as follows: First, a linear layer is used to project the two-dimensional coordinates onto... 3D space For the node feature dimension, for the ... The coordinate vector of each node The linear layer performs the following calculations, as shown in the formula below: ; in, It is a learnable weight matrix; It is a learnable bias vector; It is a two-dimensional coordinate projection onto The high-dimensional projection vector obtained from the 1D space; Next, add learnable positional encoding. Specifically, define a learnable parameter matrix. For a line with Extract the line features of each node. The former Row, for each node 3D coordinate projection vector and its corresponding The positional encoding vectors are summed element by element to obtain the node feature vector for each node; The pooling layer operations in a feature extraction network consist of four stages: Preparation phase: Create a learnable vector, denoted as [CLS] token, whose dimensions are the same as the node feature dimensions. same; Input phase: Before inputting the coordinate sequence into the Transformer encoder, insert the [CLS] token at the very beginning of the coordinate sequence; Processing phase: The coordinate sequence containing [CLS] is passed through the Transformer encoder. During the self-attention mechanism, the [CLS] token interacts with the node feature vectors of all nodes in the coordinate sequence, aggregating the context information of the entire coordinate sequence. Output stage: After the Transformer encoder outputs, the output of the first position, which is the vector corresponding to the [CLS] token, is taken as the representation of the entire coordinate sequence.
4. The method for zero-watermarking linear vector map data based on deep learning according to claim 3, characterized in that, The specific steps of step 13 are as follows: Step 131: Collect line feature data for different geographic entity types; for each line feature... Constructing positive samples and negative samples ; Construct triples based on line features, positive samples, and negative samples. , , ); Step 132: Select the triplet loss function. Its goal is to make and The distance is much smaller than and The distance is given by the following formula: ; in, It is a distance function; It represents a constant greater than 0; This is a function to find the maximum value. Step 133: , , Each fixed-length global feature vector is obtained through a Transformer encoder. , , , Indicates and The corresponding global feature vector, Indicates and The corresponding global feature vector, Indicates and The corresponding global feature vector; , , The loss is calculated by feeding the triplet loss function, then backpropagation is performed to calculate the gradient; then gradient clipping is performed, the optimizer updates the parameters, the gradient is cleared to zero, and the next batch of iterations begins.
5. The method for zero-watermarking linear vector map data based on deep learning according to claim 4, characterized in that, The specific steps of step 2 are as follows: Step 21, Feature-level feature extraction: Based on the feature extraction network, high-dimensional features are extracted for each line feature in the dataset, resulting in a high-dimensional feature set of all line features in the dataset. , , Indicates the first High-dimensional features of individual line elements The total number of line elements; Step 22, Feature Aggregation: Based on the feature aggregation network, the high-dimensional features of all line elements are aggregated into a global feature vector representing the entire dataset. An attention pooling mechanism is then used to calculate the attention score for each line element, as shown in the following formula: ; in, For the first Attention score of each line element This is the weight matrix. For bias vectors, For the weight vector, It is the hyperbolic tangent function. For the first High-dimensional characteristics of individual line elements; calculate The formula is as follows: ; in, For the first The weight of the attention score of each line element relative to the total attention scores of all line elements. It is an exponential function. For the summation function, For the first Attention score of each line element express The value ranges from 1 to ; The global feature vector of the dataset is obtained by weighted summation. The formula is as follows: ; in, This represents the global feature vector of the dataset. express The value ranges from 1 to .
6. The method for zero-watermarking linear vector map data based on deep learning according to claim 5, characterized in that, The specific steps of step 3 are as follows: Step 31, Modify the model architecture: Add a fully connected layer as a hash layer after the existing feature extraction network and feature aggregation network. The output dimension of the hash layer is the length of the binary sequence. Step 32, Design the loss function Loss function It consists of two parts: similarity preservation loss and quantization loss; Step 33, Model Training: Use pre-trained feature extraction and feature aggregation networks as a foundation, and randomly initialize the hash layer; fix the parameters of the feature extraction and feature aggregation networks, and use the loss function. Conduct training; Step 34, Generate Binary Sequence: After training, for new vector map data, the output vector of the hash layer is obtained through forward propagation of the feature extraction network, feature aggregation network, and hash layer; the binary sequence is obtained by applying the sign function. Step 35, perform discrimination evaluation: use Hamming distance to compare binary sequences, and evaluate discrimination by calculating the ratio of intra-class distance to inter-class distance.
7. The method for zero-watermarking linear vector map data based on deep learning according to claim 6, characterized in that, In step 32, the similarity preservation loss This ensures that similar samples have similar hash codes, while dissimilar samples have dissimilar hash codes. For a pair of samples, if they belong to the same copyright, their hash code distance is minimized; if they belong to different copyrights, their hash code distance is maximized. The formula is as follows: ; in, Numerical labels for sample pairs, Indicates positive sample pairs. Indicates negative sample pairs; It is the first The hash layer output vector of each sample; It is the first The hash layer output vector of each sample; It is the margin parameter; It is a distance function; Quantifying loss To encourage hash layer outputs to be close to binary values and reduce information loss during binarization, the formula is as follows: ; in, It is a vector consisting entirely of 1s; express The absolute value; Represents the square of the L2 norm; The calculation formula is as follows: ; in, This is a hyperparameter.
8. The method for zero-watermarking linear vector map data based on deep learning according to claim 7, characterized in that, In step 34, the formula for obtaining the binary sequence by applying the sign function is: ; in, It is a binary sequence The Dimensional value, It is the first The hash layer output vector of the nth sample Dimensional value.
9. The method for zero-watermarking linear vector map data based on deep learning according to claim 8, characterized in that, The specific steps of step 4 are as follows: Step 41: Convert the binary sequence The sequences are concatenated to form a 256×256 long sequence, creating a 256×256 two-dimensional matrix. ; Step 42: Generate a zero watermark , ;in This is an XOR operation; This is a binary copyright image, with a size of 256×256; It is a two-dimensional matrix with a size of 256×256; Step 43: Remove the zero watermark Register with the copyright center and store information in the copyright center's database.