The invention relates to a method and arrangement for extracting a fingerprint from a media signal.
A fingerprint, also often referred to as signature or hash, is a sequence of bits that is derived from multimedia content, e.g. an audio song, an image, a video clip, etc. Multimedia fingerprints are used, inter alia, in the field of authentication where it is desired to verify whether received content is original or detect whether the content has been tampered with. Fingerprints are also used to identify media content. A service that is likely to become very popular in the near future is audio identification. A fingerprint being derived from an unknown piece of music is sent to a database where the title, artist and other metadata is looked up and returned to the consumer.
A known method of extracting a fingerprint from a media signal is disclosed in Applicant's International Patent Application WO 02/065782. A schematic diagram of this prior-art method is shown in
The known method produces a string of 32 bits for each audio frame (≈0.4 sec). The frames are preferably overlapping (e.g. by a factor of 31/32) so that the bit strings change slowly with time. This makes the fingerprint extraction invariant with respect to time shifting and frame boundary positioning. Typically, blocks of 256 overlapping frames, i.e. 256×32=8192 bits (≈3 sec of audio) are used to identify a song.
The prior-art fingerprint extraction method has turned out to be very robust against almost all commonly used audio processing steps such as MP3 encoding, sample rate conversion, D/A and A/D conversion, equalization. However, it is not very robust against speed changes. It is quite common for radio stations to speed up audio by a few percent. They supposedly do this for two reasons. First, the duration of songs is then shorter and therefore it enables them to broadcast more commercials. Secondly, the beat of the song is faster and listeners seem to prefer this. The speed changes typically lie between zero and four percent.
It is an object of the invention to provide an improved method and arrangement for extracting a fingerprint from a media signal.
To this end, the method according to the invention comprises the steps of deriving from said media signal a sequence of samples of a given perceptual property of the signal; subjecting the sequence of property samples to an auto-correlation function to obtain a sequence of auto-correlation values; comparing said auto-correlation values with respective thresholds; and representing the results of said comparisons by respective bits of the fingerprint.
The method according to the invention differs from the prior-art method in that the fingerprint bits are not derived from the perceptual property of the signal as such, but from the auto-correlation of said property. The invention is based on the recognition that a speed change of an audio signal causes energy levels in sub-bands to be shifted from one sub-band to another, and exploits the insight that the auto-correlation function is shift invariant.
The auto-correlation function is well-known in the continuous (time) domain. However, we are dealing here with a finite sequence of property values (e.g. energy levels). Therefore, in a practical embodiment of the method according to the invention, the desired auto-correlation is approximated by correlating a sub-sequence of property samples with the complete sequence of property samples.
The auto-correlation function is preferably computed from a statistically significant number of property samples, which is larger than the desired number of fingerprint bits. Down-sampling of the computed auto-correlation function is provided to obtain the desired number of auto-correlation values.
Speed changes of an audio signal cause misalignment in both the temporal and frequency domain. Considering time misalignment, an audio excerpt subjected to a speed change of, say, 2% causes the 250th fingerprint of this excerpt to be extracted at the position of the 255thfingerprint of the original excerpt. Fortunately, in order to be shift-invariant, the fingerprints are constructed in such a way that they possess correlation along the time-axis. Therefore, the BER (bit error rate) between the original excerpt and the same excerpt with a speed change does not increase dramatically due to the temporal misalignment.
The main problem caused by large speed changes is therefore the frequency misalignment. In the prior arrangement, which is shown in
It has been proposed to use a brute force approach for identifying audio with large speed changes. The brute force approach consists of storing fingerprints extracted at multiple speeds in the database, or querying the database with fingerprints that are extracted at multiple speeds. The disadvantage of this method is that the search speed and/or storage requirements increase by a factor N, where N is the number of different speeds that is necessary for a certain application.
An auto-correlation step (202) is the fundamental step to achieve the better speed-change resilience. A speed change results in a shift of the computed energy vector. Auto-correlation has the property that it is shift-invariant. As is generally known, the auto-correlation ρ(x) of a continuous function f(t) is:
However, we are not dealing here with an infinite continuous function f(t) but a finite sequence of property samples (energies). In order to compute the auto-correlation from a statistically significant number of property samples, the energy of 512 sub-bands is computed (201) instead of 33. The bands are still logarithmic and still lie in the range of 300 to 2000 Hz. Thus the bands have a smaller width. The auto-correlation is approximated by correlating a sub-sequence of energies with the complete sequence. More specifically, the auto-correlation ρ[x] is calculated from the sub-band energy samples E(j) as follows:
where N denotes the length of the whole energy vector (here N=512), M denotes the length of the sub-sequence and K denotes the position where the sub-sequence starts in the complete sequence. Typical settings for M and K are 64 and 96, respectively. To increase robustness, the resulting auto-correlation values are optionally low-pass filtered (203). The low-pass filtered auto-correlation has 512−64=448 values, whereas 33 input values are required for the 2-dimensional filter (104) preceding the threshold operation (105). Therefore, the 448 auto-correlation values are down-sampled to 33 values in a down-sampler (204). The resulting fingerprint is a 32-bit string for each frame.
Although embodiments of the method and arrangement have been described with reference to audio fingerprint extraction, the invention is not restricted thereto. Applicant's International Patent Application WO 02/065782, already cited above, discloses a video fingerprint extracting method in which the fingerprint is derived from the mean luminance values of image blocks into which each image is divided. According to the invention, each image is now divided into a larger number of blocks, and a sub-set of the blocks (a “super-block”) is correlated with the whole image for a number of positions of said super-block. The obtained sequence of auto-correlation values is invariant to shifts of the video image. The sequence is optionally low-pass filtered and subsequently down-sampled.
The invention can be summarized as follows. Fingerprints are bit strings extracted from a media signal (e.g. an audio or video clip) to identify said media signal. Typically, they are derived from a perceptual property of the signal, for example, the spectral energy distribution of an audio fragment or the luminance distribution of a video image. A method and arrangement for extracting a fingerprint is here disclosed which is robust with respect to shifts of the perceptual property. Such shifts occur, inter alia, when the fingerprint is derived from a logarithmically mapped spectral energy distribution of an audio signal and said audio signal is subjected to speed changes. According to the invention, the fingerprint is not derived from the perceptual property as such, but from its auto-correlation function.
Number | Date | Country | Kind |
---|---|---|---|
02079072.1 | Sep 2002 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB03/03658 | 8/11/2003 | WO | 3/25/2005 |