METHOD AND ARRANGEMENT FOR DETECTING A WATERMARK

Abstract: Recently developed methods for copy protection rely on a watermark detector to judge whether multimedia content can be copied or not. In such copy protection schemes, a watermark detector examines the multimedia content and outputs a signal (D) indicating whether a watermark is present or not. Known watermark detectors determine a decision variable (y) indicating to which extent the watermark is present, for example, the amount of correlation between the input signal and a reference copy of the watermark to be detected. The watermark is detected if the decision variable exceeds a predetermined threshold (y2). Such a detector is vulnerable to an attack which is described in this patent application. Disclosed is a watermark detector which increases the work load for an attacker by several orders of magnitude. To this end, the detector generates a random output signal for a predetermined range of decision values (y) between the threshold (y2) and a further threshold (y1).

Description: Method and arrangement for detecting a watermark. FIELD OF THE INVENTION The invention relates to a method and arrangement for detecting a watermark embedded in an information signal. The invention also relates to a method of removing a watermark from an information signal having an embedded watermark. BACKGROUND OF THE INVENTION Watermarks are perceptually invisible messages embedded in information signals such as multimedia material, e.g. audio, still pictures, animations or video. Watermarks can be used to identify the copyright ownership of information. They allow a copyright owner to trace illegal copies of his material by inspecting whether his watermark is present in said copies. Watermarks are embedded in an information signal by modifying data samples of the signal (e.g. audio samples of an audio signal, pixels of an image, transform coefficients of a transform-coded signal, etc.) such that the original is not perceptibly affected. Various methods of watermarking are known in the art. For example, pixels of an original image are slightly incremented or decremented in accordance with corresponding bits of a binary watermark pattern. In order to detect whether an information signal has an embedded watermark, the signal is subjected to a statistical analysis. The statistical analysis yields a parameter, hereinafter referred to as "decision variable", which indicates to which extent the watermark is present in the signal. For example, if an image signal is watermarked by incrementing or decrementing its pixels in accordance with a watermark pattern, the decision variable may be the amount of correlation between the signal and an applied reference copy of the watermark. If an image is watermarked by modifying selected pixels, a prediction for said pixels is calculated from temporally or spatially adjacent pixels. The decision variable may then be the number of pixels being sufficiently different from their prediction. Prior art watermark detectors generate a binary output signal indicating "watermark found" or "no watermark found" . This is achieved by comparing the decision variable with a predetermined threshold. If the value of the decision variable exceeds the threshold, the watermark is considered to be present in the signal. In consumer products such as home recorders, the watermark detector will generally be implemented as a tamperproof box, so that an attacker can neither reversely engineer the detection algorithm nor its implementation parameters. It has been found, however, that an attacker can nevertheless remove a watermark by observing the detector's binary output signal under various input signal conditions. OBJECT AND SUMMARY OF THE INVENTION It is an object of the invention to provide a method and arrangement for detecting a watermark which is less vulnerable to attacks. To this end, the method in accordance with the invention is characterized by the step of randomly generating said output signal for decision values below said threshold. Preferably, the random output signal is generated for a range of decision values between said threshold and a further predetermined threshold. The invention is based on the recognition that the prior art watermark detectors exhibit a sharp transition between the decisions "watermark found" and "no watermark found" . This property allows an attacker to iteratively modify an input signal and observe the detector's output until he has found an input signal which causes the detector to operate in the vicinity of its threshold. Having thus found the transition point, it is not difficult to generate an input signal which closely resembles the watermarked signal but is not recognized as being watermarked. By randomizing the transition point of the detector, the attacker acquires less (or at least less reliable) information from each signal modification. Further advantageous embodiments of the invention are defined in the dependent claims. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 shows a prior art system comprising a watermark embedder and a watermark detector. Fig. 2 shows a watermark pattern to illustrate the operation of the system shown in Fig. 1. Fig. 3 shows waveforms illustrating the operation of the prior art watermark detector shown in Fig. 1. Fig. 4 shows a flowchart of operations for removing a watermark from a watermarked image using the prior art watermark detector which is shown in Fig. 1. Fig. 5 shows waveforms illustrating the operation of the watermark detector in accordance with the invention. Figs. 6-8 show embodiments of watermark detectors in accordance with the invention. Fig. 9 shows waveforms illustrating the operation of the watermark detectors shown in Figs. 7 and 8. Figs. 10-12 show further embodiments of watermark detectors in accordance with the invention. DESCRIPTION OF EMBODIMENTS The invention will now be described with reference to a watermark detector in which the decision variable indicating to which extent the watermark is present in the signal is the amount of correlation between the signal being analyzed and a reference copy of the watermark to be detected. However, the description should not be interpreted as restricting the invention to such an embodiment. Fig. 1 shows a prior art system comprising a watermark embedder 1 and a watermark detector 2. The watermark embedder receives an original information signal p and a watermark signal w. The information signal p is assumed to be a digitized image having 8-bit luminance pixel values p(n). The watermark w is assumed to be a specific binary pattern of values w(n) = l or w(n)=-l . An example of such a watermark pattern is shown in Fig. 2. The watermark embedder comprises an adding stage 10 which adds the watermark values w(n) to the spatially corresponding pixels p(n) of the input image. It will be appreciated that this does not affect the visual appearance of the image. The embedded watermark is thus perceptually invisible. The information signal q is applied, after transmission or storage (not shown), to the watermark detector 2. The watermark detector comprises a multiplication stage 21 and a summing circuit 22 which jointly constitute a correlation circuit. The multiplication stage receives the information signal q and a reference copy of the watermark w, the presence of which in the signal q is to be detected. The pixel values q(n) of the received image and the corresponding values w(n) of the reference watermark are individually multiplied and then summed up to obtain a decision variable y which represents the amount of correlation between input signal q and watermark w. In mathematical notation: y ~ ∑ w (n ) xq\ n n = l in which N is the total number of pixels. The correlation value y is applied to a comparator 23 for comparison with a threshold value y thr . As is shown in Fig. 3, the comparator produces an output D = l (watermark found) for y > y thr and an output D=0 (no watermark found) for y < y thr - T ne watermark pattern w and the threshold value y^. are carefully chosen in order to prevent the detector from making a false decision too frequently. A method of removing the watermark from a watermarked image using the above described prior art watermark detector will now be described with reference to a flowchart of operations which is shown in Fig. 4. The attack applies to any watermark detector having a sharp transition between the decisions "watermark found" and "no watermark found" . In a first step 11, a test image is created which is near the boundary of the watermark to be removed. At this point it does not matter whether the resulting image resembles the original or not. The only criterion is that minor modifications of the test image cause the detector to respond with "watermark found" or "no watermark found" with a probability that is sufficiently different from zero or one. The test image can be created by tampering with a watermarked image (for which y > > y lhr ) step-by-step until the detector responds with "no watermark found" . One method is to gradually reduce the contrast in the image just enough to drop below the threshold where the detector reports the presence of the watermark. An alternative method is to replace more and more pixels in the image by neutral grey. There must be a point where the detector makes the transition from seeing a watermark to responding that the image is free of a watermark. Otherwise this step would eventually result in an evenly grey colored image, and no reasonable watermark detector can claim that such an image contains a watermark. Having thus found a suitable test image, a portion of the image is modified in a step 12, e.g. a particular pixel value is increased or decreased, until the detector detects the watermark again. This provides insight into how the watermark embedder modifies the value of that pixel. Step 12 is repeated for every pixel in the image. It should be noted that instead of experimenting pixel by pixel, the attacker may also use another set of orthogonal modifications of the image, e.g. increasing or decreasing the DCT coefficients of a discrete cosine transform coded image. Knowing how sensitive the detector is to modification of each pixel, a combination of pixel values which has the largest influence on the detector is estimated in a step 13. Then, in a step 14, the estimate is subtracted from the original marked image. It may be necessary to subtract the estimate λ times to ause the detector to report that no watermark is present, λ is found experimentally, and is preferably as small as possible. The above described process results in a new image which is not recognized as being watermarked but only contains a minor distortion compared to the watermarked image or compared to the original unmarked image. This attack works equally well if the watermark is embedded in the DCT domain. The process can be repeated if the watermarking algorithm is suspected to contain non-linear, or image-dependent elements. Known simulation and search techniques, including simulated annealing can be exploited in this iterative process. The watermark detector in accordance with the invention is substantially less vulnerable to this attack. As is illustrated in Fig. 5, the detector randomizes the transition point from D=0 (no watermark found) to D = l (watermark found) if the decision variable y has a value in a given interval y, < y <y 2 . Slightly modifying the applied signal while the detector operates in this interval (step 12 in Fig. 4) now does not give reliable feedback to an attacker. Accordingly, the watermark can no longer be estimated. The detector is less vulnerable to attacks as the distance between the threshold levels y, and y 2 is larger. Embodiments of a watermark detector having the desired property can easily be designed by those skilled in the art. A straightforward example is shown in Fig. 6. In this example, the multiplication stage 21, summing circuit 22 and comparator 23 are the same as shown in Fig. 1. The detector comprises a further comparator 24 which compares the amount of correlation y with the lower threshold value y, , and a pseudo-random binary sequence (PRBS) generator 25 which generates a random value R (0 or 1). A logic circuit comprising an AND-gate 26 and an OR-gate 27 combines both comparator outputs and the random value R to obtain the decision output signal D in accordance with the following truth table: y > yι y >y 2 D 0 0 0 1 0 R 1 1 1 With the embodiment shown in Fig. 6, the interval end point y=y 2 where the detector switches from producing D = l to producing D=R can be relatively easily found by an attacker. As the probability of producing D=0 in the interval is 50%, the first occurrence of D=0 while gradually affecting a watermarked image (step 11 in Fig. 4) is a reasonable indication of having found said end point. To alleviate this problem, a further embodiment of the watermark detector is arranged to produce the output signal D in the interval y, < y <y 2 with a (preferably smoothly) increasing probability as y becomes closer to the threshold y 2 . An embodiment of a watermark detector having such an increasing probability function is shown in Fig. 7. The detector comprises an arithmetic circuit composed of a subtracter 28 and a multiplier 29 which modifies the decision variable y into a signal z in accordance with: The signal z is applied to the comparator 23 which receives a random number r having a value of between 0 and 1 which is generated by a random number generator 30. As can easily be understood, the detector works exactly as the detector shown in Fig. 6 for images having a correlation y > y 2 and y < j. However, if the amount of correlation is between y, and y 2 (i.e. 0 <z < 1), the comparator output signal D depends on the actual value of r, while the probability of producing D = l increases linearly in accordance with: Pr (D=l \ y) = y 2 -yι Fig. 8 shows another embodiment of the watermark detector in accordance with the invention. In this embodiment, a random number r' between 0 and y 2 -y, is generated by a random number generator 31 and added to the decision value y by means of an adder 32. The signal y+r' is then compared with the threshold value y 2 . As has been attempted to illustrate in Fig. 9, the comparator always produces an output D=0 for y < y, and an output D = l for y > y 2 , whereas it randomly produces 0 or 1 for y, <y <y 2 . Note that the probability of y+r' being larger than y 2 (resulting in D = l) is very small for values of y just above y,, and very large for values of y just below y 2 . Consequently, this embodiment inherently has the property of showing a linearly increasing probability of producing D = 1 as y becomes larger. The linear probability curve is denoted 91 in Fig. 9. The inventors have found that the best shape of the probability function in the interval y, < y < y 2 is (or substantially resembles) a raised cosine function: Pr (D=l \ y) = - --cos ( π V~Vl ) 2 2 y 2 -y λ Such a probability curve (denoted 92 in Fig. 9) can be obtained by applying an appropriate mathematical function F to the output of random number generator 31. In Fig. 8, this function is performed by a conversion circuit 33 between the random number generator 31 and the adder 32. Repeatedly applying the same input image to any one of the above described embodiments of the watermark detector, and thereby counting the number of times the detector produces D=0 or D = l, teaches an attacker on which point of the probability curve the detector operates. Figs. 10 and 11 show further improved watermark detectors which do not suffer from this drawback. In these embodiments, the random generator is of a type having a seed input. The generator produces the same random number whenever it receives the same seed. The seed input is derived from the input image so that the watermark detector produces the same output signal D whenever the same input image is applied. As a result thereof, an attacker cannot obtain statistical information about the operation point of the detector on the probability curve by repeatedly applying the same image. In the embodiment shown in Fig. 10, the seed is derived from the input image by means of a circuit 34 which converts the received input image q into a number having fewer bits. The function of circuit 34 is usually referred to as "hash" function. The seed (for example, the modulo-N sum of all image pixel values) is then applied to the random generator 31. In the embodiment shown in Fig. 11, the correlation circuit (21,22) acts as the hash function. The decision value y itself is now applied to the seed input of the random number generator 31. It should be noted that the feature of applying a seed to the random generator can also be adopted for the embodiments shown in Figs. 6 and 7. The difference between a watermark detector with and without the seed feature can best be explained by way of an example. Applying the same input image 100 times to a watermark detector not having the seed feature will cause said detector to produce, for example, 90 times an output D = l (watermark found) and 10 times an output D=0 (no watermark found). Applying the same input image 100 times to a watermark detector with the seed feature will cause the detector to produce 100 times the same output, the probability of D = l being 90% and the probability of D=0 being 10% . In the latter case, an attacker cannot gather statistical information by repeating the watermark test for the same image over and over again. A watermark detector is particularly invulnerable to attacks if the above described features (smoothly increasing probability function, seed supply through the hash function and seed supply by the decision variable itself) are combined. Such an embodiment is shown in Fig. 12. Randomization of the watermark detection point can also be obtained by randomly selecting the pixels considered for calculating the decision variable y (or, conversely, the pixels that are discarded). To this end, randomly selected image pixels q(n) and corresponding watermark values w(n) are applied to the correlation circuit 21,22 which is shown in Fig. 1. For example, if 60% of the pixels of a watermarked image are considered and the image is not modified by an attacker, the detector will still generate D = l in spite of the decision value being less than when all pixels are considered. However, if pixels of the image are modified, the decision value can decrease which may result in D=0 being generated, dependent on how many pixels have been modified. The invention can be summarized as follows. Recently developed methods for copy protection rely on a watermark detector to judge whether multimedia content can be copied or not. In such copy protection schemes, a watermark detector examines the multimedia content and outputs a signal (D) indicating whether a watermark is present or not. Known watermark detectors determine a decision variable (y) indicating to which extent the watermark is present, for example, the amount of correlation between the input signal and a reference copy of the watermark to be detected. The watermark is detected if the decision variable exceeds a predetermined threshold (y 2 ). Such a detector is vulnerable to an attack which is described in this patent application. Disclosed is a watermark detector which increases the work load for an attacker by several orders of magnitude. To this end, the detector generates a random output signal for a predetermined range of decision values (y) between the threshold (y 2 ) and a further threshold (y,).

Claims: Claims 1. A method of detecting a waterπv.rk (w) embedded in an information signal (q), comprising the steps of: determining a decision variable (y) indicating to which extent said watermark is present in said signal; and generating an output signal (D) indicating detection of the watermark if the decision variable exceeds a predetermined threshold (y 2 ); characterized by the step of randomly generating said output signal for decision values below said threshold (y 2 ). 2. A method as claimed in claim 1, characterized by the step of randomly generating said output signal for a range of decision values between said threshold (y 2 ) and a further predetermined threshold (y^. 3. A method as claimed in claim 1 or 2, wherein said random output signal is generated with an increasing probability as the decision variable becomes closer to the predetermined threshold (y 2 ). 4. A method as claimed in claim 3, wherein said probability is a linear function of the decision variable within said range between the threshold (y 2 ) and the further threshold (y,). 5. A method as claimed in claim 3, wherein said probability is a raised cosine function of the decision variable within said range between the threshold (y 2 ) and the further threshold (y,). 6. A method as claimed in claim 1 or 2, wherein the step of randomly generating the output signal includes generating the same output signal whenever the same information signal is received. 7. An arrangement for detecting a watermark (w) embedded in an information signal (q), comprising: means (21,22) for determining a decision variable (y) indicating to which extent said watermark is present in said signal; and means for generating an output signal (D) indicating detection of the watermark if the decision variable exceeds a predetermined threshold (y 2 ); characterized in that the arrangement comprises means for randomly generating said output signal for decision values below said threshold (y 2 ). 8. An arrangement as claimed in claim 7, characterized in that the arrangement comprises means for randomly generating said output signal for a range of decision values between said threshold (y 2 ) and a further predetermined threshold (y,). 9. An arrangement as claimed in claim 7 or 8, comprising means for generating said random output signal with an increasing probability as the decision variable becomes closer to the predetermined threshold (y 2 ). 10. An arrangement as claimed claim 9, wherein said means for randomly generating the output signal includes a random number generator with a seed input, and means for deriving the seed input from the information signal in accordance with a predetermined function. 11. An arrangement as claimed in claim 9, wherein the means (21 ,22) for determining the decision variable constitute said means for deriving the seed input. 12. A method of removing a watermark from an information signal having an embedded watermark, comprising the steps of: applying the information signal to a watermark detector generating an indication on whether the information signal has an embedded watermark; modifying selected portions of the information signal until the watermark detector reverses said indication, to obtain respective portions of an estimated watermark causing said reversal; and subtracting the estimated watermark from the information signal. 13. A multimedia playing and/or recording apparatus comprising an arrangement as claimed in any one of claims 7-11.

Inventors: DEPOVERE GEERT FLORIMOND GERAR, KALKER ANTONIUS ADRIANUS CORNE, LINNARTZ JOHAN PAUL MARIE GERA, MAES MAURICE JEROME JUSTIN JEA, RONGEN PETER MARIA JOHANNES, VAN DIJK MARTEN ERIK, VRIENS CHRISTIANUS WILHELMUS F, DEPOVERE, GEERT, FLORIMOND, GERARD, KALKER, ANTONIUS, ADRIANUS, CORNELIS, MARIA, LINNARTZ, JOHAN, PAUL, MARIE, GERARD, MAES, MAURICE, JEROME, JUSTIN, JEAN-BAPTISTE, RONGEN, PETER, MARIA, JOHANNES, VAN DIJK, MARTEN, ERIK, VRIENS, CHRISTIANUS, WILHELMUS, FRANCISCUS
Applicants: KONINKL PHILIPS ELECTRONICS NV, PHILIPS SVENSKA AB, KONINKLIJKE PHILIPS ELECTRONICS N.V., PHILIPS AB
Application year: 1998
Main classification: H04N5
IPC codes: G06T1, H04N1, H04N5, H04N7