Multimedia Databases

Similar documents
Multimedia Databases. 8 Audio Retrieval. 8.1 Music Retrieval. 8.1 Statistical Features. 8.1 Music Retrieval. 8.1 Music Retrieval 12/11/2009

Multimedia Databases. Wolf-Tilo Balke Younès Ghammad Institut für Informationssysteme Technische Universität Braunschweig

Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig

Multimedia Databases. 9 Video Retrieval. 9.1 Hidden Markov Model. 9.1 Hidden Markov Model. 9.1 Evaluation. 9.1 HMM Example 12/18/2009

Information Retrieval and Web Search Engines

Summary. 4. Indexes. 4.0 Indexes. 4.1 Tree Based Indexes. 4.0 Indexes. 19-Nov-10. Last week: This week:

Data Warehousing & Data Mining

Two-layer Distance Scheme in Matching Engine for Query by Humming System

Perceptual coding. A psychoacoustic model is used to identify those signals that are influenced by both these effects.

Information Retrieval and Web Search Engines

Music Signal Spotting Retrieval by a Humming Query Using Start Frame Feature Dependent Continuous Dynamic Programming

Both LPC and CELP are used primarily for telephony applications and hence the compression of a speech signal.

Multimedia Databases. 2. Summary. 2 Color-based Retrieval. 2.1 Multimedia Data Retrieval. 2.1 Multimedia Data Retrieval 4/14/2016.

PSQ-1684 Operation Manual

Lecture 7: Most Common Edge Detectors

Multimedia Databases

Multimedia Databases. 0. Organizational Issues. 0. Organizational Issues. 0. Organizational Issues. 0. Organizational Issues. 1.

Workshop W14 - Audio Gets Smart: Semantic Audio Analysis & Metadata Standards

FACTORSYNTH user manual

Tararira. version 0.1 USER'S MANUAL

MintySynth Software Manual v. 4.2

ITNP80: Multimedia! Sound-II!

CHROMA AND MFCC BASED PATTERN RECOGNITION IN AUDIO FILES UTILIZING HIDDEN MARKOV MODELS AND DYNAMIC PROGRAMMING. Alexander Wankhammer Peter Sciri

Name That Tune: Content Searching for Music Databases. Final Report

Multimedia Database Systems. Retrieval by Content

Types of Edges. Why Edge Detection? Types of Edges. Edge Detection. Gradient. Edge Detection

CHAPTER 7 MUSIC INFORMATION RETRIEVAL

CS 664 Segmentation. Daniel Huttenlocher

Sumantra Dutta Roy, Preeti Rao and Rishabh Bhargava

OPERATION MANUAL VST / AU

Edge and local feature detection - 2. Importance of edge detection in computer vision

MPEG-7 Audio: Tools for Semantic Audio Description and Processing

convolution shift invariant linear system Fourier Transform Aliasing and sampling scale representation edge detection corner detection

Efficient and Simple Algorithms for Time-Scaled and Time-Warped Music Search

Chapter 5.5 Audio Programming

An Intuitive Explanation of Fourier Theory

Chapter X Sampler Instrument

Query by Humming. T. H. Merrett. McGill University. April 9, 2008

Mpeg 1 layer 3 (mp3) general overview

Similarity Searching Techniques in Content-based Audio Retrieval via Hashing

Digital Image Processing

Module 9 AUDIO CODING. Version 2 ECE IIT, Kharagpur

Knowledge Discovery in Databases II Summer Term 2017

Effectiveness of HMM-Based Retrieval on Large Databases

A Comparative Evaluation of Search Techniques for Query-by-Humming Using the MUSART Testbed

Local Image preprocessing (cont d)

A Comparative Evaluation of Search Techniques for Query-by-Humming Using the MUSART Testbed

CS229 Final Project: Audio Query By Gesture

CS3242 assignment 2 report Content-based music retrieval. Luong Minh Thang & Nguyen Quang Minh Tuan

Principles of Audio Coding

PSP Rhythm User s Manual

The MUSART Testbed for Query-By-Humming Evaluation

Konarie REASON RACK EXTENSION SYNTHESIZER WITH OPTIONAL HARDWARE CONTROL. 1

Music Genre Classification

Retrieving musical information based on rhythm and pitch correlations

Multimedia Communications. Audio coding

Lecture 6: Edge Detection

(Automatically) Classifying (Bat) Sound Recordings

CS 543: Final Project Report Texture Classification using 2-D Noncausal HMMs

FPGA Guitar Multi-Effects Processor

Mobile-Tuner is a musical instrument tuner for java enabled mobile phones. In addition Mobile-Tuner has a built in metronome and a synthesizer:

(Refer Slide Time: 0:51)

A Robust Music Retrieval Method for Queryby-Humming

Chapter 3 Image Registration. Chapter 3 Image Registration

MSA220 - Statistical Learning for Big Data

_CH17_525_10/31/06 CAL 101

Image Restoration using Markov Random Fields

Information Retrieval for Music and Motion

Electrical Engineering and Computer Science Department

Image Segmentation. Srikumar Ramalingam School of Computing University of Utah. Slides borrowed from Ross Whitaker

Hidden Markov Model for Sequential Data

COS 116 The Computational Universe Laboratory 4: Digital Sound and Music

Accelerometer Gesture Recognition

CS 498PS Audio Computing Lab. Audio Restoration. Paris Smaragdis. paris.cs.illinois.edu U NIVERSITY OF URBANA-CHAMPAIGN

Short-Cut MCMC: An Alternative to Adaptation

Optimised corrections for finite-difference modelling in two dimensions

CS490D: Introduction to Data Mining Prof. Chris Clifton

Lecture 15: Segmentation (Edge Based, Hough Transform)

The Automatic Musicologist

Invariant Recognition of Hand-Drawn Pictograms Using HMMs with a Rotating Feature Extraction

Digital Image Processing. Prof. P. K. Biswas. Department of Electronic & Electrical Communication Engineering

An Introduction to Markov Chain Monte Carlo

Lecture #3: Digital Music and Sound

CSE 258 Lecture 6. Web Mining and Recommender Systems. Community Detection

Geometric Measures of Distance between Two Pitch Contour Sequences

Chapter 11 Representation & Description

9 length of contour = no. of horizontal and vertical components + ( 2 no. of diagonal components) diameter of boundary B

This research aims to present a new way of visualizing multi-dimensional data using generalized scatterplots by sensitivity coefficients to highlight

tares Auto-Tune Pro User Guide 2018 Antares Audio Technologies Updated 3/18

MR IMAGE SEGMENTATION

Improved Centroid Peak Detection and Mass Accuracy using a Novel, Fast Data Reconstruction Method

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

2.4 Audio Compression

Hybrid Speech Synthesis

CSE 158 Lecture 6. Web Mining and Recommender Systems. Community Detection

19 th INTERNATIONAL CONGRESS ON ACOUSTICS MADRID, 2-7 SEPTEMBER 2007

Digital Image Processing. Image Enhancement - Filtering

Image Segmentation. Ross Whitaker SCI Institute, School of Computing University of Utah

User Guide Version 1.0.0

10.1 Overview. Section 10.1: Overview. Section 10.2: Procedure for Generating Prisms. Section 10.3: Prism Meshing Options

Transcription:

Multimedia Databases Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de

Previous Lecture Audio Retrieval - Low Level Audio Features - Difference Limen - Pitch: tracking algorithms Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 2

8 Audio Retrieval 8 Audio Retrieval 8.1 Query by Humming 8.2 Melody Representation and Matching Parsons-Codes Dynamic Time Warping 8.3 Hidden Markov Models Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 3

8.1 Statistical Features Typical features: Loudness, Bandwidth, Brightness, Zero-Crossing Rate, Pitch, Statistical values efficiently describe audio files by feature vectors Do not consider details such as rhythm and melody Only query by example search makes sense Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 4

8.1 Music Retrieval In order to effectively differentiate complex pieces of music other information are required The melody is usually of central importance Simple melody line Formulation of the query, not only by sample audio files: Query by humming, Query by whistling, Query by singing,... Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 5

8.1 Music Retrieval Two major problems for the successful query processing What is melody? Different pitches Different kinds of scales (major/minor) Slight variations (depends on the interpretation e.g., jingle cats) Intervals, frequency jumps How does query formulation work? Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 6

8.1 Music Retrieval To establish the melody we first need to detect the notes from the audio signal Many (often overlaid) instruments (possibly each with slightly different melody) Singing Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 7

8.1 Query by Humming Model based approach Only the characteristic melody should be used for music retrieval, and not the whole song What is the melody? How to represent melodies? How do typical queries look like? Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 8

8.1 Model based approach Steps: Formulation of the query by humming, whistling, singing or an audio file Extraction of the melody from the recording (spectral analysis, noise reduction, pitch tracking,...) Encoding the melody (Parsons code, differential code,...) Comparison with the database Return of the results Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 9

8.1 Architecture Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 10

8.1 Input Singing Difficult because of different talents and strong individuality Humming Original idea (Ghia and others, 1995) Often with sound ta for note separation Whistling Little individuality and good note separation Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 11

8.1 Input Input by virtual instrument (e.g., Greenstone library, New Zeeland) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 12

8.1 Conversion Digital Recording Low sampling rate is sufficient Noise reduction is often necessary Grouping of samples in overlapping frames Frame size: approximately 50 milliseconds Frame structure: each half-overlapping with the previous one and the subsequent frame Ignore the first frame (start noise) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 13

8.1 Conversion For each frame, its spectral sample is calculated (short-time FFT) Calculation of pitch per spectrum, with average amplitude as volume If the volume of the pitch is to low, or it can not be determined, mark the frame as a silent frame Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 14

8.1 Conversion Find the note boundaries Boundaries of notes are marked by silent frames or sudden frequency jumps At frequency jumps or sharp jumps in the volume Add a new silent frame The ratio of successive frequencies exceeds a threshold (about 3%): Add a new silent frame Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 15

8.1 Conversion Between two frames with the same frequency, there is a single frame with a different frequency: Smoothing: replace the deviating frequency by the frequency of the neighbors Between two silent frames, the frequency varies only slightly: Replace the frequencies by the average frequency Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 16

8.1 Conversion Connecting the same pitches to notes Connect all pitches between silent frames into a note with a higher duration (depending on the number of frames) Remove notes below a specified minimum length Remove all silent frames Output: melody with note height and duration Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 17

8.2 Symbolic Representation Melody only needs to be sufficiently well represented More accurate representation leads to larger amounts of data Accurate representation by MIDI data (height, start time, duration,...) Simpler systems use only a rough classification of the melody Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 18

8.2 The Parsons Code Simple classification of melody lines (Parsons, 1975) Sequence of note variations (Chain code) U (up) at higher note R (repeat) at the same note D (down) at a lower note The first note is used just as reference (symbol: ) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 19

8.2 The Parsons Code Example: Beethoven s Ode to Joy RUURDDDDRUURDR... Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 20

8.2 The Parsons Code Ignores characteristics such as rhythm or precise note intervals An advantage is the high fault tolerance, especially towards the query Input in third, fourth, octave Inadequate rhythm Regardless of scale: major or minor (no transposition required) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 21

8.2 The Parsons Code Parsons The Directory of Tunes and Musical Themes Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 22

8.2 Parsons Code Matching Parsons code of the query, has to be compared with all the codes from the database Matching using the edit distance Since we do not know at which point the query melody fragment occurs, matching must be performed on substrings Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 23

8.2 Parsons Code Matching Typical errors in music editing distance A note is left out One false note is added An existing note is sung wrong Several short notes are combined Long notes are fragmented Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 24

8.2 Parsons Code Matching Given: two strings A = a 1, a 2,, a m and B = b 1, b 2,, b n Goal: intuitive measure of the dissimilarity d(a, B) of strings A and B Again edit distance: Convert A to B by using fixed operations; find the sequence of operations with minimum cost Why not compare note by note? Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 25

8.2 Parsons Code Matching Operations: Delete a single character Inserting a single character Replacing a single character Replace a string of characters by a single character (consolidation) Replacing a single character by a sequence of characters (fragmentation) Every character of A and B must be involved in exactly one operation! Cost table: entry w(x, y)> 0 indicates the cost of the replacement of a string x by y Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 26

8.2 Parsons Code Matching Example: A = RUDRR B = UUDR RUDRR UDRR UUDRR URUDRR UDRR UURR UUDR UUDRR UUDRR UUDRR UUDR Each edge of the graph is ordered by the cost Goal: Find the path with minimal cost Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 27

8.2 Parsons Code Matching If we apply (as in the example), the operations from left to right, then every node results from a prefix of B and a suffix of A E.g., A = RUDRR, B = UUDR UDRR UDRR RUDRR This means a total of O(m n) vertices in the graph, which is much less than the number of all paths from A to B Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 28

8.2 Parsons Code Matching Since all costs are non-negative, one can find a path from A to B with minimal cost simply by means of dynamic programming (Mongeau and Sankoff, 1990) RUDRR UDRR UUDRR URUDRR UDRR UURR UUDR UUDRR UUDRR UUDRR UUDR Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 29

8.2 Parsons Code Matching Examples: Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 30

8.2 Parsons Code Matching Cost values need to be adapted to typical input errors, of the user Replacing R R with R is an usual error But: UD and DU is not, and the cost should be higher Inserting R should therefore be cheaper than insertion of U or D (about half the cost) At replacements, the costs of operations R D and R U should be smaller than that of D U and U D Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 31

8.2 Parsons Code Matching U and D should be treated the same in replacements (about the same costs for R U and R D) Insertions and deletions should also cost about the same To simplify: similar costs for fragmentation/consolidation, and the equivalent insertions/deletions Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 32

8.2 Parsons Code Matching Dynamic programming considers all possible nodes in the graph, no matter how large the associated edit costs are But the query should not differ too much from the result Therefore: ignore nodes in the graph: Which are only reachable from A at high cost or From which B can be reached only at high cost To do this we can use a matrix of nodes of A and B Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 33

8.2 Parsons Code Matching Examine only sequences of editing operations, which are inside the window Reject in this way all sequences with high costs E.g., jingle bells = Mozart s Eine kleine Nachtmusik Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 34

8.2 Parsons Code Matching Melody search is matching substrings: song A is longer than query B, but B can start at any point of A The database should know where to look Otherwise costly Sliding windows Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 35

8.2 Difference Codes Parsons code ignores the strength of the pitch change Difference codes save these interval information as number of semitones on the MIDI scale (12-tone scale) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 36

8.2 Difference Codes Beethoven's Ode to Joy Parsons Code: R U U R D D D D Difference Code: 0 1 2 0 2 1 2 2 But also bigger jumps: Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 37

8.2 Difference Codes Distribution of intervals in a music database with about 10000 songs (Kosugi and others, 2000) 140 120 100 80 60 40 20 0-12 -9-6 -3 0 3 6 9 12 Tritone Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 38

8.2 Difference Codes Advantages Allows precise distinction of music, by considering also the size of the jump interval in the weighting of the edit distance Disadvantages It also requires more effort in matching and a more accurate note segmentation The result is very dependent on the audio collection, since melodies often have little tone steps and also on the users Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 39

8.2 Frame based Representation Precise segmentation of the query and the music in the database is essential for both the Parsons code, and the difference code Frame based representations do not segment notes, but only use the contour of the melody Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 40

8.2 Frame based Representation Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 41

8.2 Frame based Representation Frame classification should be equidistant Not a frame of 10 ms and one of 100 ms Advantages: No inaccuracies by incorrect segmentation Frame sequences also contain the rhythm information... But the retrieval time is also significantly higher Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 42

8.2 Frame based Representation The frame-based representation leads to a time series of pitch values Point wise comparison of the sound contour leads to very poor results because: Speed of query might be different from the speed of objects in the database The rhythm in the query is often wrong Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 43

8.2 Frame based Representation Dynamic matching between contours is required (the singing length of the notes plays a minor role) Known method from the Data Mining: Dynamic Time Warping (DTW; Berndt and Clifford, 1994) Distance measure for time series Same principle as edit distance The only difference: no finite alphabet (e.g., U D R in Parsons code) anymore, but continuous numbers The cost of an operation depends on the values of the involved numbers Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 44

8.2 Dynamic Time Warping Time Series 1 Time Series 2 Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 45

-2-1 0 1 2 t(g) 0 10 20 30 40 50 8.2 Illustration f g a) b) t 0 10 20 30 40 50 60 0 10 20 30 40 50 Paths on a two-dimensional map of time (0, 0) to (M, N) are valid matching t(f) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 46

8.2 Warping Paths Monotony Continuity Boundaries i( k) i( k 1) and j( k) j( k 1) i( k 1) i( k) 1 and j( k 1) j( k) 1 i(1) j(1) 1, i( K) N and j( K) M Calculation using dynamic programming in O(m n) time In special cases even faster... Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 47

8.2 DTW DTW example Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 48

8.2 Uniform Time Warping The uniform time-warping distance between two time series x and y is defined as: Both time-axis are extended to mn (or to the least common multiple of m and n) Problematic for time series with variable speed Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 49

8.2 Uniform Time Warping Idea of the uniform time warping is that warping paths should be as diagonal as possible But UTW can also be calculated from time series of different lengths Uniform time warping is a generalization of the Time Scaling Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 50

8.2 Local Dynamic Time Warping Intuitive matching for humans Extend both series to the same length Compare pointwise, but allow little warping intervals So again: extend the calculation on one area, which lies near the matrix diagonal Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 51

8.2 Local Dynamic Time Warping Example: Time complexity of LDTW is O(kn) where k is the width of the strip Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 52

8.2 Local Dynamic Time Warping With LDTW distances we can build effective indexes for comparing time series (in our case, melodies) Extension of the GEMINI approach by envelopes (Zhu and Shasha, 2003) Calculate the envelope for a query and cut with highdimensional index structure Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 53

8.2 Example (Zhu and Shasha, 2003) Music piece in the database Query by Humming Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 54

8.2 Example (Zhu and Shasha, 2003) After transformation into special normal forms: Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 55

8.3 Hidden Markov Models Acoustic events Frame based methods shows the behavior of the audio signal, but we don t know what this behavior means How to determine acoustic events in the audio signal? What has caused this particular signal path? (e.g., could it be the beginning of a note?) More or less plausible explanations How can we model it? Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 56

8.3 Example Observation at time point 1,6 seconds The observation could either be: Independent short note on semitone 53 Or only envelope attack signal for semitone 52 (at sustain level) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 57

8.3 Scenario Implementation of the (hidden) sequence of events in a string (over a fixed alphabet) Example Envelope of a note: (A, D, S, R, ℇ) ℇ is silence Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 58

8.3 Example Acoustic event single note as a sequence of atomic events according to the envelope model State set Q = *A, D, S, R, ℇ+ These states represent attack, decay, sustain, release and silence Possible state transitions are determined by a Markov chain (stochastic variant of finite automata) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 59

8.3 Example Homogeneous Markov process: In each state the outgoing edge weights add up to 1 Transition probabilities are time-invariant An start distribution is defined Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 60

8.3 Start Distribution Start distribution for each node determines the probability that the process starts in this node Example: single note always starts with attack π: Q [0, 1] with π(a)=1 and π(d)=π(s)=π(r)=π(ℇ ) = 0 Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 61

8.3 Example Appearance probability subsequently ADSSRℇ: 1 0.3 0.6 0.7 0.3 0.5 = 0.0189 Appearance probability subsequently ADDDSR ℇ : 1 0.3 0.4 0.4 0.6 0.3 0.5 = 0.0043 Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 62

8.3 Basic Problem Detection of acoustic events (such as single notes) is from the audio signal, almost impossible Solution: State sequences detection must also be probabilistic If the signal has the observed shape, then I am very likely in state x or less likely in state y Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 63

8.3 Observations Finite class of possible observations E.g., O = {o 1,, o 10 } The probabilities that observation o i is made in state q Q, are required E.g., p OfAState (o 5 )= 0.7 Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 64

8.3 Overall Probability Observation o 3 o 5 o 1 How high is the probability that the model ADS was responsible for this observation? ADS is just a supposition The true model is hidden (thus: Hidden Markov Model) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 65

8.3 The Real Problem Known sequence of n observations What is the most likely state sequence? Is it possible to assign the sequence of observations, an overall probability of the event single note? (with respect to the specific model Q) Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 66

8.3 Acoustic Events Observations Hidden States We can assign a sequence of observations to the acoustic event, whose HMM has created the observations with the highest probability Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 67

8.3 Conditional Probabilities Probability of event A if it is already known that event B has occurred: Analogously for the probability densities of random variables X and Y: Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 68

8.3 Stochastic Processes A stochastic process is a sequence of random variables (X 0, X 1, X 2,...) A Markov process additionally satisfies the Markov condition: Remember Markov property by textures (neighborhood)? Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 69

8.3 Stochastic Processes Markov processes are homogeneous if the transition probability p ij from state i to state j are independent of n: Knowing the initial distribution : we can determine the overall distribution of the process Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 70

8.3 Stochastic Processes For the Markov process, the following are valid: In reference to our example, Markov processes create exactly the automats with the appropriate start-/transition probabilities Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 71

8.3 Hidden Markov Model A HMM has at any time additional timeinvariant observation probabilities A HMM consists of A homogeneous Markov process with state set Transition probabilities Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 72

8.3 Hidden Markov Model Start distribution Stochastic process of observations with basic sets And observation probabilities of observation o k in state q j will be continued next lecture Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 73

This Lecture Audio Retrieval (continued) - Query by Humming - Melody: Representation and Matching Parsons-Codes Dynamic Time Warping - Hidden Markov Models Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 74

Next lecture To be continued: Hidden Markov Models Introduction to Video Retrieval Multimedia Databases Wolf-Tilo Balke Institut für Informationssysteme TU Braunschweig 75