High-availability watermarking method based on neural network

Through the frequency domain watermarking algorithm based on convolutional neural network, the problems of information loss and large computational complexity in frequency domain watermarking technology are solved, and the ability to efficiently add watermarks to high-definition and ultra-high-definition videos is realized, extending the life cycle of the equipment and Processing time is reduced.

CN118657648APending Publication Date: 2024-09-17HUIDUN INFORMATION SECURITY TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310231057.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing frequency domain watermarking technology suffers from information loss and large computational workload in images and videos, resulting in limited scope of application and increased device latency. It is especially difficult to meet the demand for efficient watermarking when processing high-definition and ultra-high-definition videos.

Method used

The frequency domain watermarking algorithm based on convolutional neural network is used to determine the watermark position decision and adaptive color gamut selection through training and verification data sets, which reduces the loss of watermark information and the amount of calculation, and improves the clarity and calculation efficiency of the watermark.

Benefits of technology

It reduces the amount of computation while ensuring the clarity of the watermark, improves the applicable scope of the watermark and the life cycle of the device, and significantly reduces the processing time. For example, the watermark adding time for a 1920*1080 resolution image is reduced from 205ms to 71ms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_6
    Figure FT_6
  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
Patent Text Reader

Abstract

The method can be applied to various image and video application or sharing scenes, tracking and tracing of violation leakage information are achieved, and safe use of data can be effectively promoted. The invention provides a high-availability efficient frequency domain watermarking method, the method combines the specificity of the image and video traceability service field, constructs a special training set and a test set, and through training a special neural network, solves the problem that the broad spectrum is insufficient when the frequency domain watermarking is applied to the traceability in the image and video field, and simultaneously improves the performance of the frequency domain watermarking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention provides a method for improving the clarity and operation efficiency of frequency domain watermarks, which belongs to the field of using frequency domain digital watermarks to protect copyrights and track and trace the source of images and videos. The method uses CNN (convolutional neural network) to add watermarks to pictures or video streams, thereby improving the clarity of watermarks; by predicting the clarity of watermarks on the RGB three primary colors, the color gamut is reasonably selected while ensuring the availability of the watermark, thereby reducing the amount of calculation and achieving improved operation efficiency.

[0002] Abbreviations and Glossary

[0003] Digital Watermarking: It is to embed some identification information directly into digital carriers (including multimedia, documents, software, etc.), but it does not affect the use value of the original carrier, and it is not easy to be perceived or noticed by the human perceptual system (such as visual or auditory system). Through these identification information embedded in the carrier, the purpose of confirming the content creator, purchaser, transmitting secret information or judging whether the carrier has been tampered with can be achieved.

[0004] Frequency domain digital watermarking: It refers to transforming an image to the frequency domain through some transformation means (Fourier transform, discrete cosine transform, wavelet transform, etc.), adding a watermark to the image in the frequency domain, and then converting the image to the spatial domain through inverse transformation. Compared with spatial domain watermarking, frequency domain watermarking is more concealed and more resistant to attacks.

[0005] Blind watermark: refers to a digital watermark whose extraction process does not require the original host data (data without watermark embedded).

[0006] CNN (Convolutional Neural Network): It is a type of feedforward neural network that includes convolution calculations and has a deep structure. It is one of the representative algorithms of deep learning. Convolutional neural networks have the ability to represent learning and can classify input information in a translation-invariant manner according to their hierarchical structure. CNN networks have shown good performance in the field of computer vision.

[0007] RGB primary colors: All colors in nature can be obtained by combining different degrees of the frequencies of red (R), green (G), and blue (B), so these three colors are often called primary colors. Background Art

[0008] Transparency, robustness and anti-attack have always been the three core indicators of data watermarking. With the widespread use of digital watermarks, applied research around transparency, robustness and anti-attack has gradually emerged.

[0009] 1. Transparency means that there is no obvious change in human vision or data usage between the host data before and after the watermark information is embedded, that is, the host data and the watermarked data are imperceptible to the observer.

[0010] 2. Robustness means that the carrier is not easily lost during normal use. For example, operations such as cutting, rotating, filtering, and compressing the image are not likely to cause the watermark to be lost.

[0011] 3. Anti-attack means that the watermark itself is not noticeable, difficult to delete and cannot be counterfeited.

[0012] Digital watermarks can be divided into frequency domain watermarks and spatial domain watermarks according to the domain in which they are embedded:

[0013] 1. Frequency domain watermarking refers to adding watermarks to the frequency domain images corresponding to images and videos. There are many algorithms for transforming to the frequency domain. According to the transformation algorithm, frequency domain watermarks are further divided into DCT watermarks, DFT watermarks, and DWT watermarks. DCT watermarking has high computational efficiency, but its ability to handle local signal mutations is poor, and the watermark is easily rubbed when the file format changes. DFT / DWT frequency domain watermarking has great advantages in transparency, robustness, and anti-attack, and is currently a commonly used technology in scenarios with higher requirements.

[0014] 2. Spatial watermarking refers to adding watermarks directly to images and videos. The main advantages of this type of watermark are simple algorithms and small computational complexity, but its transparency and anti-attack capabilities are poor. It is a technology currently commonly used in low-requirement scenarios.

[0015] In actual applications, customers will choose between these two watermarking technologies based on the sensitivity of the content. These two watermarking technologies can be used separately or simultaneously. Based on the performance of DFT / DWT watermarks in actual use, we found that frequency domain watermarks have the following two problems:

[0016] 1. Limited scope of use: Frequency domain watermarking requires converting the image video from the spatial domain to the frequency domain, such as Figure 1 As shown. Then the watermark information is embedded in the frequency domain image, and finally the frequency domain image is converted back to the spatial domain image. In the entire calculation process of the frequency domain watermark, there is a transformation from floating point numbers to integers, which causes the watermark information to be lost. If a lot of information is lost, the watermark information cannot be extracted. In other words, the current DFT / DWT frequency domain watermark cannot add watermarks to some images and videos;

[0017] 2. Ultra-high-definition video is prone to freeze: The calculation process of DFT / DWT watermark is as follows Figure 2 As shown:

[0018] The entire operation process includes decoding, frequency domain transformation, adding watermarks and decoding. Although there are hardware chips to support decoding and encoding, there are currently no chips that support encoding and decoding, frequency domain transformation and watermarking at the same time. If multiple chips are used, the CPU is needed as a bridge to transmit the decoded image and video data between chips. Due to the huge amount of data, the savings of the hardware on the CPU are consumed by the massive data transmission, and it also increases the complexity of the system. Therefore, most of the current watermark-related products use pure software to complete the above operations. Each pixel in the image or video stream is represented by three primary colors in the digital system, so after the frequency domain transformation of the picture, three frequency domain maps are also obtained, namely: R primary color frequency domain map, G primary color frequency domain map and B primary color frequency domain map. The current frequency domain watermarking algorithm embeds watermarks in all three frequency domain maps, such as Figure 3 As shown (the frequency domain transformation algorithm is just an example). The advantage of doing this is that it can minimize the impact of watermark information loss, but the frequency domain transformation and its inverse transformation are very performance-intensive operations, and the amount of calculation increases exponentially with the increase in image resolution. Under the same hardware conditions (intel i5-10500 / 16G RAM), it takes 13ms to add a watermark to an image with a resolution of 384*240, while it takes 205ms to add a watermark to an image with a resolution of 1920*1080. With the rapid commercialization of high-definition and ultra-high-definition surveillance cameras in China, once the computing power of the deployed watermark equipment is insufficient, there will be excessive latency and screen freezes. As a result, the equipment is forced to be replaced in advance, which undoubtedly increases social costs and causes unnecessary waste;

[0019] In response to the above two types of problems, a widely applicable, low-computation frequency domain watermarking method is needed to improve the applicability of digital watermarks on the one hand and extend the life cycle of existing equipment as much as possible on the other. Summary of the invention

[0020] The present invention only involves frequency domain watermarking. The invention provides a frequency domain watermarking algorithm based on convolutional neural network. The algorithm contains two parts:

[0021] 1: Watermark position decision method based on convolutional neural network

[0022] Through research, we found that the clarity of the watermark information in the frequency domain image is closely related to the location where the watermark is added. Figure 4As shown in the figure, two different watermark embedding positions of the same frequency domain image ultimately show different clarity (different degrees of watermark information loss). Given that convolutional neural networks have been successfully applied in the field of machine vision, and that image and video data can still be presented in a graphical manner after being transformed into the frequency domain, we use convolutional neural networks to learn the embedding position of watermarks. The process of obtaining the position decision algorithm is as follows: construct training and test data sets and determine the model of the neural network, and apply the data set for training and verification.

[0023] a. Build training and test datasets

[0024] Since robustness and anti-attack are important in this field, the construction of training and test sets for neural networks should take into account the following special requirements:

[0025] 1. Only record the positions that meet the lower limit of clarity requirements, and do not pursue high clarity

[0026] 2. When there is no position that meets the lower limit of clarity, record multiple positions with relatively good resolution

[0027] At the same time, in order to achieve the above purpose, it is necessary to develop auxiliary programs to build training sets and test sets. The general process of the auxiliary program is as follows Figure 5 shown.

[0028] 1. "Available area search" needs to simulate the loss of watermark and determine whether the clarity can meet the lower limit requirement

[0029] 2. "Region labeling" is to write the image number and region information into the database

[0030] 3. “Image classification” is to ensure that both the training set and the test set contain data of complete categories. “Image classification” can also be run before “Available area search”

[0031] b. Model and training

[0032] Usually, convolutional neural networks in the field of machine vision are three-channel models, with the three channels corresponding to the three primary colors. This field has the following particularities in model selection:

[0033] 1. The loss of watermark information in this field is related to the area of ​​the watermark region, so the channel of the model needs to increase the area parameter. For the area range, refer to the watermark size of this subdivided business field.

[0034] 2. The color gamut input information of this model can be 1 to 7. Traditional models input three primary colors at the same time. Therefore, this model needs a color gamut input range parameter.

[0035] Summary: The model in this patent is a five-channel model, which are: R channel, G channel, B channel, area, and channel range. The training and verification of the model is to repeatedly use the training set and verification set to adjust the parameters of the model. The remaining parameters of the neural network, such as the number of layers, convolution kernel size and other parameters can be adjusted during the training stage.

[0036] 2: Adaptive color gamut decision method based on convolutional neural network

[0037] After obtaining the first model, we can obtain the color gamut decision algorithm based on the data of the previous algorithm. That is, in the process of training the neural network of the "watermark position", we will also obtain the best choice of color gamut for each picture to achieve the lowest available clarity. So we can train another convolutional neural network. This neural network is preferably four-channel, that is, add a frequency domain algorithm channel. If only one frequency domain algorithm is supported, three channels can be used. After the model is trained, it can be used to predict the color gamut that needs to be transformed when adding watermarks to pictures. The annotation format of each image in the training set is as follows: Figure 6 The meaning is as follows:

[0038] ●Image 1 only needs to be watermarked in color space x;

[0039] ● Image 2 only needs to be watermarked in color fields x and y;

[0040] ●Image 3 requires watermarking in all three color domains;

[0041] After research, we found that there is a general rule in the watermark clarity of color gamut, that is, the watermark clarity of color gamut x is better than that of color gamut y, and the watermark clarity of color gamut y is better than that of color gamut z.

[0042] The present invention requires connecting the above two neural networks in series, such as Figure 7 First, determine the color gamut to which the watermark needs to be added, then perform frequency domain transformation only on the relevant color gamut, then determine the reasonable watermark embedding position based on the color gamut diagram, and finally complete the watermark embedding. In addition to the above mechanism, the method also needs to use some other algorithms to solve the confidentiality and anti-counterfeiting of the watermark.

[0043] Benefit Effect

[0044] 1. Taking a 1920*1080 resolution picture as an example, if the traditional technology of adding watermarks to the three primary colors of RGB takes 205ms, while the neural network-based watermarking technology (single primary color) only takes 71ms;

[0045] 2. Taking the above picture as an example, the clarity of the watermark is as follows: Figure 8As shown, it shows that although the watermark based on neural network may reduce the clarity in some cases, the reduced clarity can still meet the practical requirements;

[0046] 3. According to the existing sample library, the phenomenon that the watermark information is lost in the traditional algorithm and the watermark cannot be extracted has been effectively alleviated. Fig. 9 The pictures shown above that could not be watermarked before can now be watermarked. Their clarity can meet the requirements; BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 Examples of spatial domain images and frequency domain images

[0048] Figure 2 A decomposition diagram of the general complete frequency domain digital watermarking steps

[0049] Figure 3 Schematic diagram of traditional frequency domain digital watermarking algorithm

[0050] Figure 4 Comparison of the effect of watermark position on watermark loss in frequency domain watermarking

[0051] Figure 5 Schematic diagram of the process of building a neural network dataset

[0052] Figure 6 Schematic diagram of image calibration in color gamut decision algorithm

[0053] Figure 7 This is the framework diagram of the digital watermark algorithm based on neural network in the present invention

[0054] Figure 8 A comparison of the effects of traditional methods and neural network frequency domain digital watermarking

[0055] Fig. 9 A comparison of the effects of traditional methods and neural network frequency domain digital watermarking DETAILED DESCRIPTION

[0056] This method first collects images and videos of various types of video surveillance and builds a sample library. Then the samples are marked through relevant auxiliary programs. Then two convolutional neural networks are trained. Finally, the effects of the two convolutional neural network models are verified. The selection of auxiliary programs and convolutional neural network model parameters in these four stages is very critical. The core of the auxiliary program is to accurately evaluate the optimal position of watermark areas of different sizes. The so-called optimal position is not the position where the watermark is clearest, and it is necessary to balance the watermark's anti-attack ability. The model parameters of the convolutional neural network need to refer to the characteristics of the field. For example, the area component and color gamut component (RGB) need to be added to the input parameters. Due to changes in the input parameters, the number of convolutional layers of the network also needs to be adjusted accordingly.

Claims

1. The present invention provides a high-availability watermarking method based on a neural network, which reduces the loss of watermark information in the entire operation process, thereby increasing the applicable range of frequency domain watermarking technology. At the same time, the algorithm of the frequency domain watermark is optimized to reduce the amount of frequency domain watermarking calculations. The high-availability watermarking method based on a neural network consists of two parts, including: 1) Position decision method based on neural network: The optimal embedding position of watermark information in the frequency domain image is determined by neural network. The so-called optimal position is the watermark position area that meets the lower limit requirement of watermark clarity; 2) Color gamut decision method based on neural network: The optimal color gamut combination to be watermarked is determined by neural network. Therefore, the optimal color gamut combination is the watermark combination that meets the lower limit requirement of watermark clarity. By reducing the number of color gamuts to be watermarked, the amount of watermark calculation is reduced.

2. A location decision method based on a neural network as claimed in claim 1, characterized in that A neural network is used to predict the loss of watermark information in the frequency domain, and the optimal embedding position for the watermark information is selected in combination with the required area of ​​the watermark.

3. The color gamut decision method based on a neural network as claimed in claim 1, characterized in that A neural network is used to predict which frequency domains of images need to be used to embed watermark information, and the best color gamut combination is selected for the watermark information. The color gamut combinations are as follows: R, G, B, RG, RB, BG and RGB.

4. A location decision method based on a neural network as claimed in claim 2, characterized in that A 5-channel model is used, including R channel, G channel, B channel, area channel, and color gamut combination channel.

5. The 5-channel model as claimed in claim 4, characterized in that The data is calibrated with the help of an auxiliary program, and then a special training set and test set are constructed, and finally the training and verification of the 5-channel model is completed.

6. A color gamut decision method based on a neural network as claimed in claim 2, characterized in that In the dataset used to train "a location decision method based on a neural network", the color gamut combination information is further annotated, so that a new dataset is constructed. Finally, a neural network for color gamut decision is trained through this dataset.

7. A color gamut decision method based on a neural network as claimed in claim 6, characterized in that The neural network model needs to add a channel to represent the frequency domain algorithm because different frequency domain algorithms have different color domain combination choices.