-
2025-03-11
18/805,460
2024-08-14
US 12,248,541 B1
2025-03-11
-
-
Hosuk Song
2044-08-14
The present invention discloses a watermark embedding method based on service invocation data, comprising obtaining service invocation data, and preprocessing the invocation data, then, obtaining the key data through screening the preprocessed invocation data based on relevant weights, then, adding timestamps to the key data to obtain enhanced data, after that, selecting the contribution degree of the enhanced data to obtain high-quality data, and encoding the high-quality data to generate encoded data, then, constructing a data watermark embedding model by employing the encoded data, and inputting the service invocation data to be embedded into the data watermark embedding model, and thus the embedding results can be output. This method can not only improve the accuracy of watermark embedding for service invocation data, but also provides good interpretability, making it directly applicable to watermark embedding systems.
Get notified when new applications in this technology area are published.
G06F21/16 » CPC main
Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity; Protecting distributed programs or content, e.g. vending or licensing of copyrighted material Program or content traceability, e.g. by watermarking
G06F17/14 » CPC further
Digital computing or data processing equipment or methods, specially adapted for specific functions; Complex mathematical operations Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
This application claims priority of Chinese Patent Application No. 202410373303.1, filed on Mar. 29, 2024, the entire contents of which are incorporated herein by reference.
The present invention involves the field of watermark embedding, particularly to a watermark embedding method based on service invocation data.
With the rapid development of information technology, it is imperative to enhance the protection and copyright management of digital content. Therefore, digital watermarking technology is widely utilized to achieve effective traceability and copyright protection of digital content. Digital watermarking is a technical means of embedding specific information into digital content that is not easily detected or destroyed. It can be utilized to identify the source of content, track unauthorized duplication and distribution, and provide functions such as tampering detection.
The embedding of watermarks in service invocation data also needs to consider the integrity, availability, and security of the data. During the process of embedding the watermark, it is essential to minimize any impact on the original data in order to avoid disrupting normal data processing and analysis. Meanwhile, the embedded watermark information must have a certain level of robustness to resist data tampering and attacks.
Therefore, it is urgent to develop a watermark embedding method suitable for service invocation data that can realize the copyright traceability and protection while guaranteeing the data integrity and availability.
The purpose of the present invention is to provide a watermark embedding method based on service invocation data.
For the purpose of achieving the above objectives, the present invention is implemented according to the following technical scheme:
The present invention comprises the following steps:
Further, the method for obtaining the key data through screening the preprocessed invocation data based on relevant weights, including: calculating the relevant weights applied to the invocation data:
df ( E , C , s a ) = ❘ "\[LeftBracketingBar]" C [ E ] - s a [ E ] ❘ "\[RightBracketingBar]" max ( E ) - min ( E ) 𝓂 ( E ) = 𝓂 o ( E ) - ∑ a = 1 𝓃 df ( E , C , s a ) 𝓃 + g + ∑ b ≠ c s ( C ) [ ℓ ( b ) 1 - ℓ ( cs ( C ) ) ∑ a = 1 𝓃 df ( E , C , g a ) ] 𝓃 + g
q i , a = { 1 , r > 𝒯 ( q i , a ) 0 , r ≤ 𝒯 ( q i , a ) 𝒯 ( q i , a ) = 1 1 + e - q i , a
ℛ = α · er + ω · M ι M
θ ' i , d = ψ · θ i , d + β 1 r 1 ( b s i , d - θ i , d ) + β 2 r 2 ( q s i , d - θ i , d ) q ' i , d = q i , d + θ i , d
Further, the method for adding timestamps to the key data to obtain enhanced data; including:
Calculating the nearest point and the distance to the key data:
𝒮 c ( p ) = ∑ d = 1 e ❘ "\[LeftBracketingBar]" Q cd Q pd ❘ "\[RightBracketingBar]" ∑ d = 1 e Q cd 2 ∑ d = 1 e Q pd 2
Z c ℊ = ∑ p = 1 ℊ 𝒮 c ( p )
𝒥 = ζ ( 𝒥 max + 𝒥 min ) - ( Z c ℊ - Z 1 ℊ ) × 𝒥 max - 𝒥 min Z max ℊ - Z 1 ℊ + 𝒥 min
χ h c y = 1 - ψ c y 𝒮 c ( 𝒥 y ) Z c 𝒥 χ L = arg min χ L Q c - ∑ y = 1 σ χ w U c y 2 2
Further, the method for selecting the contribution degree of the enhanced data to obtain high-quality data, including:
p j𝓈 = k j𝓈 𝒲 + 1 + 𝒲ϖ j𝓈 𝒲 + 1
𝒰 = υ ∑ j = 1 𝒩 ∑ j = 1 𝒩 F j𝓈 ∑ 𝓈 = 1 m p F j𝓈 F ¯ m · ξ j
H ( A → Á ) ≤ - RK ( A → Á ) K 2 4 η 2
𝒞 ( R ) = 1 π N , N d t ( V t ) N f · exp ( - t r [ ( R - R τ ) R V - 1 ( R - R τ ) ] )
{ min Q = t r ( R τ B - I R τ R ) - N f log dt ( B ) B = μ 0 ϑ 4 V t K K R V t + V t t r ( KK R ) = 1
K o ( Á ) = 1 ϑ M φ Y φ 1 2 X R φ = ϑ KK R
Further, the method for constructing a data watermark embedding model by employing the encoded data, including:
Secondly, the embodiment of the present application provided an electronic device comprising:
A processor; and a memory arranged to store computer executable instructions, which allows the processor to execute the method described in the first aspect when running the executable instructions.
Thirdly, the embodiment of the present application provided computer-readable storage medium containing one or more programs that enable an electronic device to execute the method described in the first aspect while being executed by the electronic device comprising multiple application programs.
The beneficial effects of the present invention include:
The present invention is a watermark embedding method based on service invocation data. Compared with existing technologies, the present invention has the following technical effects:
The present invention can improve the accuracy of the embedding of watermark in service invocation data through steps including preprocessing, adding timestamps, screening data, data encoding, and constructing model, etc., thereby improving the accuracy of and optimizing the process of the embedding of watermark. In addition, it can not only greatly save resources and improve work efficiency, but also enables the embedding of watermark in service invocation data. This enables real-time implementation of encryption and encoding for embedding watermarks in service invocation data, which is crucial for the specified embedding method. It also possesses a certain universality to adapt to different standards and requirements for watermark embedding methods in service invocation data.
FIG. 1 is a flowchart of the steps of a watermark embedding method based on service invocation data according to the present invention;
FIG. 2 is a structural schematic diagram of an electronic device described in the embodiments of this specification.
The present invention will be further described through specific embodiments, and the illustrative embodiments and explanations provided herein are utilized to explain the present invention without limiting the present invention.
The present invention provides a watermark embedding method based on service invocation data, consisting of the following steps:
As shown in FIG. 1, this embodiment consisted of the following steps:
In this embodiment, the method for obtaining the key data through screening the preprocessed invocation data based on relevant weights includes:
df ( E , C , s a ) = ❘ "\[LeftBracketingBar]" C [ E ] - s a [ E ] ❘ "\[RightBracketingBar]" max ( E ) - min ( E ) 𝓂 ( E ) = 𝓂 o ( E ) - ∑ a = 1 𝓃 df ( E , C , s a ) n + g + ∑ b ≠ c s ( C ) [ ℓ ( b ) 1 - ℓ ( cs ( C ) ) ∑ a = 1 𝓃 df ( E , C , g a ) ] 𝓃 + g
q i , a = { 1 , r > 𝒯 ( q i , a ) 0 , r ≤ 𝒯 ( q i , a ) 𝒯 ( q i , a ) = 1 1 + e - q i , a
ℛ = α · er + ω · M ι M
θ ' i , d = ψ · θ i , d + β 1 r 1 ( b s i , d - θ i , d ) + β 2 r 2 ( q s i , d - θ i , d ) q ' i , d = q i , d + θ i , d
In this embodiment, the method for adding timestamps to the key data to obtain enhanced data includes:
𝒮 c ( p ) = ∑ d = 1 e ❘ "\[LeftBracketingBar]" Q cd Q pd ❘ "\[RightBracketingBar]" ∑ d = 1 e Q cd 2 ∑ d = 1 e Q pd 2
Z c ℊ = ∑ p = 1 ℊ 𝒮 c ( p )
𝒥 ∈ [ 𝒥 min , 𝒥 max ] 𝒥 = ζ ( 𝒥 max + 𝒥 min ) - ( - ) × 𝒥 max - 𝒥 min - + 𝒥 min
χ h c y = 1 - ψ c y 𝒮 c ( 𝒥 y ) Z c 𝒥 χ L = arg min χ L Q c - ∑ y = 1 σ χ W U c y 2 2
ρ j 𝓈 = k j 𝓈 W + 1 + W ϖ j 𝓈 W + 1
𝒰 = υ ∑ j = 1 𝒩 ∑ j = 1 𝒩 F j 𝓈 ∑ 𝓈 = 1 m ρ F j 𝓈 F ¯ m · ξ j
In this embodiment, the method for encoding the high-quality data to generate encoded data includes:
H ( A → A ' ) ≤ - RK ( A → Á ) K 2 4 η 2
𝒞 ( R ) = 1 π N , N d t ( V t ) N f · exp ( - t r [ ( R - R T ) R V - 1 ( R - R τ ) ] )
{ min 𝒬 = tr ( R τ B - 1 R τ R ) - N f log dt ( B ) B = μ 0 ϑ 4 V t KK R V t + V t t r ( KK R ) = 1
K o ( Á ) = 1 ϑ M φ Y φ 1 2 X R φ = ϑ KK R
In this embodiment, the method for constructing a data watermark embedding model by employing the encoded data includes:
FIG. 2 is a structural schematic diagram of an electronic device utilized in the embodiment of the present application. Referring to FIG. 2, at the hardware level, the electronic device included a processor, and optionally also included the internal bus, the network interfaces, and the memorizer. Wherein, the memorizer could include memory, such as high-speed Random-Access Memory (RAM), and could also include non-volatile memory, such as at least one disk storage. Certainly, the electronic device could also include hardware required for other businesses.
The processor, the network interfaces, and the memorizer could be interconnected through an internal bus, which could be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. In addition, the bus could be divided into address bus, data bus, and control bus, etc. To facilitate representation, only one bidirectional arrow is utilized in FIG. 2, but it does not indicate that there is only one bus or one type of bus.
The memorizer was utilized to store programs. More precisely, the program referred to program code, including computer operation instructions. The memorizer could include both memory and non-volatile memory, providing instructions and data to the processor.
The processor was utilized to read the corresponding computer program from the non-volatile memory, and then store them into the memory for running. It constituted a user intention recognition device to build multi-dimensional human-computer interaction scenarios at the logical level. In addition, a processor was utilized to execute programs stored in memory, specifically for executing any of the aforesaid watermark embedding methods based on service invocation data.
The aforesaid embodiment shown in FIG. 1 of the present application disclosed a watermark embedding method based on service invocation data. It could be applied to processors or implemented by processors. A processor could be an integrated circuit chip with signal processing capabilities. During the implementation, each step of the above said method could be completed through hardware integrated logic circuits or software instructions in the processor. Such processor could be a general-purpose processor, including the Central Processing Unit (CPU), and the Network Processor (NP), etc.; The Digital Signal Processor (DSP), the Application Specific Integrated Circuit (ASIC), the Field Programmable Gate Array (FPGA), or other programmable logic devices, the discrete gate or transistor logic devices, or discrete hardware components are also available. All of them could implement or execute the disclosed methods, steps, and logic block diagrams described in the embodiments of the present application. A general-purpose processor could be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application could be directly reflected as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules could be located in the mature storage media in this field, such as Random-Access Memory, flash memory, Read-Only Memory, Programmable Read-Only Memory, or Electrically Erasable Programmable Read-Only Memory, and registers, etc. Such storage medium was located in the memory, and the processor could access the information from the memory to complete the steps of the method with its hardware.
The electronic device could also execute a watermark embedding method based on service invocation data as shown in FIG. 1, and implement the functions of the embodiment shown in FIG. 1. There is no more detailed description of the embodiments of the present application.
The present embodiment also proposed a computer-readable storage medium that stored one or more programs. Such one or more programs, including the instructions, could perform any of the aforesaid watermark embedding methods based on service invocation data in case that the instructions were executed by an electronic device comprising multiple application programs.
The persons skilled in the art should understand that the embodiments of the present application can be provided in forms of methods, systems, or computer program products. Therefore, the present application supports the embodiments implemented by means of full hardware, or full software, or a combination of software and hardware. Moreover, the present application supports the form of a computer program product implemented on one or more computer-sensitive storage media (including but not limited to disk storage, CD-ROM, and optical memory, etc.) containing computer-sensitive program codes.
The present application is described with reference to the flowchart and/or block diagram of the method, the device (system), and the computer program product according to the embodiments of the application. It should be understood that each process and/or step in the flowchart and/or block diagram, as well as the combination of processes and/or steps in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, dedicated computer, embedded processor, or other programmable data processing devices to generate a machine, which may create a device for implementing the functions specified in one or more processes in the flowchart and/or one or more steps in the block diagram through the execution of the instructions by the processor of the computer or other programmable data processing devices.
These computer program instructions can also be stored in computer-readable memory which enables a computer or other programmable data processing device to operate in a specific manner, making the instructions stored in the computer-readable memory produce a manufactured product including the instruction device. Such instruction device supports implementing the functions specified in one or more processes in the flowchart and/or one or more steps in the block diagram.
These computer program instructions can also be loaded onto a computer or other programmable data processing devices, enabling a series of operational steps to be executed on the computer or other programmable devices to complete the process by computer, thereby providing steps for implementing the functions specified in one or more processes in the flowchart and/or one or more steps in the block diagram through the instructions executed on the computer or other programmable devices.
In a typical configuration, a computing device consists of one or more processors (CPUs), input/output interfaces, network interfaces, and a memory.
The memory refers to the Volatile Memory, the Random-Access Memory (RAM), and/or the Non-Volatile Memory of the computer-readable media, including the Read-Only Memory (ROM) or the flash RAM. In addition, the memory represents an example of computer-readable media.
The computer-readable media refers to the permanent and non-permanent, removable and non-removable media, which can be utilized to store information by means of any method or technology.
The information refers to computer-readable instructions, data structures, modules of programs, or other data. The examples of storage media for computers include, but are not limited to, Phase Change Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other memory technologies, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape or magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be utilized to store information that can be accessed by computing devices. According to the definition described herein, the computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carriers.
It should be noted that the terms “including”, “containing” or any other variation thereof are intended to encompass non-exclusive inclusion, thereby making the process, the method, the goods or equipment consisting of a series of elements not only includes the said elements, but also includes other elements not explicitly listed, or also consists of elements inherent to such process, method, goods or equipment. Without further limitations, the elements defined by the phrase “including a . . . ” does not exclude the existence of other identical elements other than the process, method, goods, or device comprising the said elements.
The persons skilled in the art should understand that the embodiments of the present application can be provided in forms of methods, systems, or computer program products. Therefore, the present application supports the embodiments implemented by means of full hardware, or full software, or a combination of software and hardware. Moreover, the present application supports the form of a computer program product implemented on one or more computer-sensitive storage media (including but not limited to disk storage, CD-ROM, and optical memory, etc.) containing computer-sensitive program codes.
The above description is only a preferred embodiment of the present invention without the intention of limiting the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
1. A watermark embedding method based on service invocation data, characterized by comprising the following steps:
obtaining invocation data based on service, and preprocessing the invocation data;
obtaining key data through screening the preprocessed invocation data based on relevant weights, then, adding timestamps to the key data to obtain enhanced data; including:
a, calculating relevant weights applied to the invocation data:
df ( E , C , s a ) = ❘ "\[LeftBracketingBar]" C [ E ] - s a [ E ] ❘ "\[RightBracketingBar]" max ( E ) - min ( E ) 𝓂 ( E ) = 𝓂 o ( E ) - ∑ a = 1 𝓃 df ( E , C , s a ) n + g + ∑ b ≠ cs ( C ) [ ℓ ( b ) 1 - ℓ ( cs ( C ) ) ∑ a = 1 𝓃 df ( E , C , g a ) ] 𝓃 + g
wherein, a maximum value of data E is represented by max(E), a minimum value of data E is represented by min(E), and a relevant weight of data E is represented by (E), an initial relevant weight of data E is represented by o(E), and a proportion of a category to which data E belongs in random sampling C is represented by (cs(C)), a proportion of data invoked by class b is represented by (b), an ath nearest neighbor data of class b invocation data is represented by ga, a data value of correlation E is represented by C[E], a sampling data value of an ath invocation data E of a nearest neighbor is represented by sa[E], an ath sampling data is represented by sa, a category to which data belongs in random sampling C is represented by cs(C), and a quantity of sampled data is represented by , in addition, a nearest neighbor data is represented by g, a difference in correlation E between an invocation data C and a sampling data sa is represented by df(E, C, sa), and a difference in nearest neighbor ga between the invocation data C and the sampling data sa is represented by df(E, C, ga);
performing a descending sort on the invocation data according to the relevant weights, presetting a threshold for these weights, and subsequently screening the dependent sets based on this threshold;
mapping a position of an exploratory factor and the dependent set, and an expression is:
q i , a = { 1 , r > 𝒯 ( q i , a ) 0 , r ≤ 𝒯 ( q i , a ) 𝒯 ( q i , a ) = 1 1 + e - q i , a
wherein, a mapping function is represented by (·), the ath data related to the ith exploratory factor is represented by qi,a, the random number is represented by r, and the natural constant is represented by e, then, calculating a fitness value of the exploratory factor:
ℛ = α · er + ω · M ι M
wherein, the fitness is represented by R, a misclassification rate is represented by er, the number of data in a dependent set is represented by M, an importance of the misclassification rate is represented by α, an importance of a dependent subset is represented by ω, and the number of selected dependent subsets is represented by ML;
comparing the fitness of the exploratory factor, updating a global and local optimal solutions, and updating the position of exploratory factor, and the expression is:
θ ' i , d = ψ · θ i , d + β 1 r 1 ( b s i , d - θ i , d ) + β 2 r 2 ( q s i , d - θ i , d ) q ' i , d = q i , d + θ i , d
wherein, a velocity of an ith exploratory factor in a d-dimension is represented by θi,d, the position of the ith exploratory factor in the d-dimension is represented by qi,d, an inertia weight of the exploratory factor is represented by ψ, and the learning factors are represented by β1 and β2, in addition, random constants are represented by r1 and r2, a global optimal position is represented by qsi,d, an individual optimal position is represented by bsi,d, and an updated position of the exploratory factor is represented by {acute over (θ)}i,d;
implementing an adaptive t-distribution perturbation strategy, iterating continuously until a maximum quantity of iterations is reached, and then, outputting screened remaining data as the key data;
b, calculating a nearest point and the distance to the key data:
𝒮 c ( p ) = ∑ d = 1 e ❘ "\[LeftBracketingBar]" Q cd Q pd ❘ "\[RightBracketingBar]" ∑ d = 1 e Q cd 2 ∑ d = 1 e Q pd 2
wherein, the distance from the pth nearest neighbor point to a cth key data point is represented by c(p), the dimension is represented by d, the number of dimensions is represented by e, a cth sample in the dth dimension is represented by Qcd, and the pth nearest neighbor point in the dth dimension is represented by Qpd;
calculating a sum of distances from nearest neighbors of a sample point to the key data:
Z c ℊ = ∑ p = 1 ℊ 𝒮 c ( p )
wherein, the number of the nearest neighbors is represented by , and a sum of the distances between the cth key data and the nearest neighbors is represented by ;
performing a descending sort according to the sum of distances, presetting a range of values for neighborhood parameters, and distributing the neighborhood parameters equally to a neighborhood based on the sum of distances between the key data and neighboring points, and the expression is:
𝒥 ∈ [ 𝒥 min , 𝒥 max ]
𝒥 = ζ ( 𝒥 max + 𝒥 min ) - ( Z c ℊ - Z 1 ℊ ) × 𝒥 max - 𝒥 min Z max ℊ - Z 1 ℊ + 𝒥 min
wherein, the neighborhood parameter is represented by , the maximum value of the neighborhood parameter is represented by max, and the minimum value of the neighborhood parameter is represented by min, in addition, the sum of the distances between a first key data and the neighboring points is represented by , the control parameter is represented by ζ, and the maximum value of the sum of distances between the key data and the neighboring points is represented by ;
calculating weights of local neighbors and the weights of an original local linear structure:
χ h c y = 1 - ψ c y 𝒮 c ( 𝒥 y ) Z c 𝒥 χ L = argmin χ L Q c - ∑ y = 1 σ χ w U c y 2 2
wherein, an enhanced weight is represented by χw, the weight of a neighboring sequence structure between the key data Qc and the yth neighbor is represented by Ucy, the weight of the original local linear structure is represented by χL, and a 2-norm function is represented by ∥·∥2, in addition, a yth neighbor of the key data is represented by Ucy, a cth key data is represented by Qc, the minimum parameter value function is represented by argmin(·), and an attenuation coefficient between the cth key data and a yth neighbor is represented by ψcy;
calculating the importance weight:
ϕ=δ1χh+δ2χL
wherein, an importance weight is represented by ϕ, the weight of a neighboring sequence structure is represented by χh, the sequence coefficient is represented by δ1, and a linear coefficient is represented by δ2;
taking the nearest neighbor points corresponding to the importance weights greater than or equal to 0.372 as insertion points for timestamps, and then, the enhanced data can be output by inserting timestamps;
selecting a contribution degree of enhanced data to obtain high-quality data, then, encoding the high-quality data to generate encoded data; including:
calculating the distance between the enhanced data:
ρ j δ = k j δ W + 1 + W ϖ j δ W + 1
wherein, a dissimilarity degree between a jth and a sth data is represented by ωjs, the distance between the jth and sth data is represented by ρjs, the conditional probability is represented by , and the numerical distance between the jth and the sth data is represented by kjs;
calculating a cumulative contribution of the enhanced data:
𝒰 = υ ∑ j = 1 N ∑ j = 1 N F j δ ∑ δ = 1 m ρ F j δ F ¯ m · ξ j
wherein, the cumulative contribution degree is represented by , the jth explained variance ratio is represented by ξj, an offset value between the jth and the sth data is represented by Fjs, the distance is represented by ρ, a genetic factor is represented by υ, and an average offset value is represented by F;
outputting the enhanced data with a cumulative contribution greater than 1 as high-quality data;
constructing a data watermark embedding model by employing the encoded data; and then, inputting the service invocation data to be embedded into the data watermark embedding model, and thus the embedding results can be output.
2. A watermark embedding method based on service invocation data according to claim 1, characterized in that the method for encoding high-quality data to obtain encoded data consists of:
calculating an upper limit of pairwise error probability:
H ( A → Á ) ≤ - RK ( A → Á ) K 2 4 η 2
wherein, a channel matrix was represented by R, a precoding matrix was represented by K, a pairwise error probability is represented by H(·), a high-quality data is represented by A, an encoded data is represented by Á, an error rate is represented by η, and the norm function is represented by ∥·∥;
calculating a probability density of channel:
𝒞 ( R ) = 1 π N , N d t ( V t ) N f · exp ( - t r [ ( R - R τ ) R V - 1 ( R - R τ ) ] )
wherein, the probability density of channel R is represented by (R), a mean value of channel is represented by Rτ, a transmission covariance is represented by Vt, a transmission inverse matrix is represented by V−1, the rank of the matrix is represented by tr[·], the number of channel vectors is represented by N, and a determinant is represented by dt(·), in addition, the number of fth signal vectors is represented by Nf;
calculating a minimum objective function:
{ min Q = t r ( R τ B - 1 R τ R ) - N f log dt ( B ) B = μ o ϑ 4 V t K K R V t + V t t r ( KK R ) = 1
wherein, an objective function is represented by Q, an inverse matrix of the transmission covariance is represented by Vt−1, an adjustment matrix of channel is represented by B, and an adjustment parameter is represented by ϑ, in addition, the precoding matrix of channel R is represented by KR, a code distance of an optimal precoding matrix is represented by μo, an inverse matrix of channel adjustment is represented by B−1, and a mean value of channel R is represented by RτR;
working out a constraint objective function, and an expression is:
𝒫 ( B , h ) = t r ( R τ B - 1 R τ R ) - N f log dt ( B ) + h [ tr ( φ ) - ϑ ]
wherein, the Lagrange coefficient is represented by , the constraint objective function of a channel adjustment matrix B and the Lagrange coefficient is represented by (B, ), and the precoding matrix is represented by φ;
calculating an optimal encoding matrix:
K o ( Á ) = 1 ϑ M φ Y φ 1 2 X R φ = ϑ KK R
wherein, the optimal encoding matrix is represented by Ko(Á), a right singular vector is represented by X, and a left singular vector is represented by Y, thus, the encoding data is output based on the optimal encoding matrix.
3. A watermark embedding method based on service invocation data according to claim 1, characterized in that the method for constructing a data watermark embedding model by employing the encoded data consists of:
the data watermark embedding model comprises a time series partitioning algorithm, Hash algorithm, Fourier transform algorithm, genetic algorithm, and machine learning algorithm;
the time series partitioning algorithm divides the encoded data into training data and testing data according to the chronological order;
a clustering screening algorithm divides training data into multiple clusters and excludes data that is far from clusters in order to obtain selected data;
a Hash algorithm can compute a fixed-length hash value by performing hashing computation on the selected data, and then encrypt important data by utilizing a hash value to obtain encrypted data;
a Fourier transform algorithm performs transformation of frequency domain on encrypted data to obtain transformed data;
a genetic algorithm can find out optimal embedding position among multiple embedding positions through iterative optimization of the object to be embedded;
a machine learning algorithm can embed the transformed data based on the optimal embedding position.
4. An electronic device comprising: a processor; and
a memory arranged to store computer executable instructions, which allows the processor to execute the method of claim 1 when running the executable instructions.
5. An electronic device comprising: a processor; and
a memory arranged to store computer executable instructions, which allows the processor to execute the method of claim 2 when running the executable instructions.
6. An electronic device comprising: a processor; and
a memory arranged to store computer executable instructions, which allows the processor to execute the method of claim 3 when running the executable instructions.
7. A non-transitory computer-readable memory medium containing one or more programs that enable an electronic device to execute the method of claim 1 while being executed by the electronic device comprising multiple application programs.
8. A non-transitory computer-readable memory medium containing one or more programs that enable an electronic device to execute the method of claim 2 while being executed by the electronic device comprising multiple application programs.
9. A non-transitory computer-readable memory medium containing one or more programs that enable an electronic device to execute the method of claim 3 while being executed by the electronic device comprising multiple application programs.