scieee AI-readable full text Open interactive document viewer

Underwater signals classification and clustering

Martí Farriol, Jaume

Abstract

This thesis deals with the problem of classification and clustering of tonal sounds. Tonal sounds are a class of sounds that are localized in frequency and extend over a time with frequency modulation. To achieve those goals, the problem of tonal extraction is also studied.

Full text

Master in Artificial Intelligence (UPC-URV-UB) Master of Science Thesis UNDERWATER SIGNALS CLASSIFICATION AND CLUSTERING Jaume Martí Farriol Advisor/s: Michel André, Miquel Sànchez Marrè September 2012 Abstract This thesis deals with the problem of classification and clustering of tonal sounds. Tonal sounds are a class of sounds that are localized in frequency and extend over a time with frequency modulation. To achieve those goals, the problem of tonal extraction is also studied. i ii Preface The work of this thesis has been undertaken in the Laboratori d’Aplicacions Bioac´ustiques (LAB) de la Universitat Polit`ecnica de Catalunya (UPC), with a research grant from UPC. The topics of the thesis have emerged from the current research of LAB in the Listen To the Deep (LIDO) project [http://www.listentothedeep.com/acoustics/index.html]. iii iv To my family for their support and to all the members of the LAB research group for all I have learned there. Contents Abstract i Preface iii 1 Introduction 1 1.1 Dolphin Whistles and Tonal sounds . . . . . . . . . . . . . . . 2 1.2 datasets .............................. 3 1.2.1 ANTARES ........................ 3 1.2.2 5th International Workshop on Detection and Localization of Marine Mammals using Passive Acoustics . . . 4 2 State of the Art 5 2.1 Tonalextraction.......................... 5 2.1.1 The silbido tonal extractor . . . . . . . . . . . . . . . . 5 2.1.2 Edgedetection ...................... 7 2.1.3 Matching Kernels . . . . . . . . . . . . . . . . . . . . . 7 2.2 Classification ........................... 8 2.2.1 Gaussian Mixture Models . . . . . . . . . . . . . . . . 8 3 Tonal extraction 11 3.1 Description ............................ 11 3.2 Signal processing front-end . . . . . . . . . . . . . . . . . . . . 11 3.3 Segmentation ........................... 11 3.3.1 Conditional Random Fields . . . . . . . . . . . . . . . 12 3.3.2 GraphCuts ........................ 14 3.3.3 Parameter learning . . . . . . . . . . . . . . . . . . . . 16 3.4 Grouping ............................. 16 3.4.1 SVMRanking....................... 17 v vi CONTENTS 3.4.2 Parameter learning . . . . . . . . . . . . . . . . . . . . 18 3.5 Experimental Evaluation . . . . . . . . . . . . . . . . . . . . . 18 3.5.1 Metrics and dataset . . . . . . . . . . . . . . . . . . . . 18 4 Tonal classification 21 4.1 Description ............................ 21 4.2 Feature extraction . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3 Classification ........................... 23 4.3.1 Hidden Markov Models . . . . . . . . . . . . . . . . . . 24 4.3.2 Parameter learning . . . . . . . . . . . . . . . . . . . . 25 4.4 Experimental Evaluation . . . . . . . . . . . . . . . . . . . . . 25 5 Tonal clustering 29 5.1 Description ............................ 29 5.2 Herarchical agglomerative clustering . . . . . . . . . . . . . . . 29 5.3 Experimental evaluation . . . . . . . . . . . . . . . . . . . . . 30 6 Conclusions and future work 33 6.1 Futurework............................ 33 A Background information 35 A.1 The Viterbi algorithm . . . . . . . . . . . . . . . . . . . . . . 35 A.2 The Baum-Welch algorithm . . . . . . . . . . . . . . . . . . . 36 List of Tables 3.1 This table shows the best results obtained on each tonal extractionsystem .......................... 20 4.1 Correlation matrix for the Cepstral coefficients. . . . . . . . . 23 vii 4CHAPTER 1. INTRODUCTION 1.2.2 5th International Workshop on Detection and Localization of Marine Mammals using Passive Acoustics The International Workshop on Detection and Localization of Marine Mammals using Passive Acoustics is one of the most important Workshop in the area of passive acoustics. The 5th Workshop was about tonal sounds and a dataset was made available with labeled tonal sounds from various species, including Common dolphin and Bottlenose dolphin, which are the ones used in this thesis. Chapter 2 State of the Art The problems addressed in this thesis are quite novel and there is no system known to the author capable of solving them in a robust way, so the areas still need research. The systems in the literature perform the following tasks: denoising, tonal extraction, feature extraction and classification. In the following section the most used methods that solve the problems studied in this thesis are presented. 2.1 Tonal extraction In this stage the mixtures are de-noised, that is, as much noise as possible is removed from the mixtures. Apart from removing the noise some methods attempt to separate each individual tonal sound, when they occur concurrently. Different methods have been used in this step that attempt to solve the problem to a certain level of accuracy. Most methods assume that only one call is present at a time, or that the calls don’t overlap in frequency. After this, some methods transform the resulting signals into features which attenuate the similarities between the classes of signals to be classified or clustered and increase the similarities of the signals inside each class. The result of this stage is latter used to perform classification or clustering. 2.1.1 The silbido tonal extractor This technique [73] works with time-frequency peaks on the spectrogram. It maintains 2 graphs sets, the first is the fragment set which contain small 5 6CHAPTER 2. STATE OF THE ART graphs, the second is the active set which contains larger graphs. The technique consists on a succession of steps, the first one being the graph extension, and latter graph pruning and tonal disambiguation. Those steps are explained in further detail in the next subsections. Graph extension On all paths to be extended a polynomial is fit with the last 25 ms of this path. A new peak extends a given path in a graph if it is within 50 ms of the path’s endpoint and the difference between the predicted frequency of the polynomial in the time instant of the peak and the real frequency of the peak is less than 1000. The first paths that are tried to be extended are the ones in the active set; if no path is found for a given peak, paths in the fragment set are considered. When then longest path in a graph in the fragment set exceeds 50 ms, the graph is moved to the active set. Graph pruning On this step graphs that are too far away from the current time position are assumed not to be expandable and are either discarded or tonal sounds are extracted from them. When graphs are less than 150ms long are discarded. With the rest of the non expandable graphs a graph disambiguation algorithm is used to extract the paths that intersect. To evaluate which path should be followed on each intersection polynomials are fit on the incoming and outgoing paths with 300 ms of data each. Then the average squared error of the fitting of each pair of paths is evaluated to determine the most likely path. The following is the expression used to evaluate the likelihood of a pair of paths in an intersection, to form a tonal. penalty(ini,k, outj,k) = 1 pathk,ini,k Ptin∈pathk,ini,k (stin −poutj,k f(tin))2 +1 pathk,outj,k Ptout∈pathk,outj,k (stout −pini,k f(tout))2 Where tnode is the time of a node, and ini,k and outj,k represent the ith input and jth output edges from the intersection node k,pathp,k ={all nodes along the path pwhich are less than 300 ms apart from intersection node k}, and pini,k fand poutj,k fare polynomials estimated from 300 ms of the data. The result of this step are the tonal sounds extracted from the signal. 2.1. TONAL EXTRACTION 7 2.1.2 Edge detection In the work [23] a feature extraction method base on edge detection is presented. This method operates on the Short Time Fourier Transform (STFT) of the sound mixture, and is based on Computer Vision techniques that detect edges on images to find relevant features. After edge detection, tracing of the whistle is done using a contour following algorithm that attempts to follow a smooth path. After the whistle contour has been traced, it is encoded in a compact way fitting quadratic equations using least squares algorithms. When the error of the optimization process is too large the whistle is split in two regions. 2.1.3 Matching Kernels The technique described in [64] is based on generating synthetic templates of each call type and use cross-correlation to match them with frames of the signals analyzed. The technique even though it is very easy to implement, it provides good enough results in with baleen whales and probably other types of cetaceans with limited variety of calls. In the case of dolphin whistles the variety of whistle types would turn the manual identification of tonal classes unworkable and would require some tonal clustering method. Once the tonal classes have been identified and samples for each class have been collected the time-frequency and amplitude of all samples in each class are averaged to generate the synthetic template for each class. Once the averages have been computed the synthetic kernel is computed separating the tonal sound into segments each represented by a linear equation, and concatenating them together to form the kernel. The parameters for the equations that form the kernel are the starting frequency, ending frequency, starting amplitude, ending amplitude, and duration. The expression of the kernel and amplitude and frequency necessary to compute the kernel, are the following: f(t) = f0+1 2 (f1−f0) dt a(t) = a0+1 2 (a1−a0) dt k(t) = a(t)sin(2πf(t)) 8CHAPTER 2. STATE OF THE ART To match a kernel against the signal cross-correlation is used, which has the following expression: d(t) = X t0 x(t+t0)k(t0) This expression gives a matching index, which can latter be compared with a threshold to determine if a given call type has been detected or not. 2.2 Classification In this stage the resulting representation of the tonal sounds produced in the previous stage is used to classify from different types of tonal sounds. A sample of the algorithms used to achieve this used in the research literature is explained in the following sections. 2.2.1 Gaussian Mixture Models Gaussian Mixture Models are probabilistic models that model a probability distribution as a mixture of random variables. Those mixture components model individual sub-populations, so mixture models can models complex probability distributions modeling each individual sub-population as a parametric distribution. Gaussian Mixture Models can be described mathematically in the following way: K = number of mixture components N = number of observations µi=1...K = mean of component i σ2 i=1...K = variance of component i φi=1...K = mixture weights, i.e., prior probability of a particular component i Φ = K-dimensional vector composed of all individual φ1...K; must sum to 1 zi=1...N = component of observation i xi=1...N = observation i F(x|θ) = probability distribution of an observation, parametrized on θ zi=1...N ∼categorical(φ) xi=1...N ∼ N(µzi, σ2 zi) 2.2. CLASSIFICATION 9 Gaussian Mixture Models can be used to classify fixed length vectors or matrices, and they can be used for example to learn and classify normalizedlength frequency time-series. To learn a Gaussian Mixture Model the expectation maximization algorithm is used. Expectation Maximization Expectation Maximization is an algorithm used to compute the maximum a posteriori or maximum likelihood estimate of parameters in statistical models given data, when the models depend on unobserved, or latent, variables. The algorithm works in two steps. In the Expectation step the value of the likelihood using current parameters is computed. And on the Maximization step parameters maximizing the log-likelihood computed in the Expectation step, are computed. 10 CHAPTER 2. STATE OF THE ART Chapter 3 Tonal extraction 3.1 Description In this chapter the extraction of tonal sounds is explained. The process has the purpose of removing the noise from the signal and separating each individual tonal sound. The method explained in this chapter has been named LIDO Extract. Underwater signals have a very large noise component, and the number of tonal sounds in the signal is unknown a priori, so the complexity of this task is high, and it requires specially conceived methodologies. 3.2 Signal processing front-end The signal is first processed using signal processing techniques. The first step is to perform on each individual frame a short time Fourier transform using a window size of 0.046 ms and 50% overlap. After that the spectrogram matrix is transformed to log scale. The next step consist on removing impulsive sounds and equalizing the spectrogram. The frequency ranges have been limited to the range from 1kHz to 50kHz. 3.3 Segmentation Once the signal has been transformed to a succession of matrices, each of which representing the time-frequency energy decomposition of a frame of the signal, the signal can be further processed in such a way to separate the 11 12 CHAPTER 3. TONAL EXTRACTION time-frequency parts of the signal that contain the tonal sounds, from those that are just noise. This task is going to be referred to as segmentation and to perform this task it is necessary to study the properties of tonal sounds that make them different from the noise present in the underwater environment. As explained previously, the underwater environment contains a heavy portion of noise, this noise could be theoretically characterized as pink noise since it is much larger on low frequencies and becomes exponentially smaller as the frequency increases. The tonal sounds on the other hand are characterized by localized energy peaks which extend in time with usually some frequency modulation. Given this description, the simplest way to perform the separation could be to define a certain threshold on the energy level and determine that below of that threshold a time-frequency component (bin) corresponds to noise and otherwise it corresponds to a tonal sound. This technique works because nontonal emissions produced by marine mammals have been mostly suppressed in the signal processing front-end step, so most of the remaining high-energy time-frequency components are from tonal emissions. But instead of this technique, another method based on computer vision research has been used to produce smoother results. This method consists on modeling a spectrogram of a frame of the signal as a Conditional Random Fields. On this graphical model, the graph nodes are each time-frequency bin, and the edges represent the frequency and time proximity. Each node is connected with an edge to the four surrounding bins in the spectrogram. This conditional random fields modeling separates portions of the spectrogram that contain high energy densities from those that contain lower energy densities. It’s an smoothed version of the thresholding method, that increases the probability of a node being part of a tonal when it is among nodes considered part of a tonal, and decreases the probability of a node being a tonal when it is among nodes considered noise. 3.3.1 Conditional Random Fields Conditional Random Fields are a type of probabilistic graphical model, which represent the model random variables as nodes in a graph and their conditional dependencies as the edges of the graph. The graph is undirected, which means that the conditional dependencies are both ways. And the probabilistic model is discriminative, which means that it can not generate random samples of the random variables that compose the model. 3.3. SEGMENTATION 13 Certain conditional random fields morphologies can be computed in an exact way, but most can’t and approximate methods are required. •If the graph is a chain or a tree, message passing algorithms can produce exact solutions. •If the graph has only pairwise edges, using max-flow techniques it is possible to compute the exact probability. The Conditional Random Fields models used in this thesis has this morphology so max-flow techniques are used to compute the labeling produced by the conditional random fields. •If the graph has any other shape approximate algorithms are necessary. The conditional probability of a certain input pattern taking a certain label is proportional to: p(y|x)∝exp(X e∈E,k λkfk(e, y|e, x) + X v∈V,k µkgk(v, y|v, x)) Where fkare a set of functions that map a certain pattern of a certain edge to a given feature. And gkare the equivalent of fkfor vertices. In this thesis, gkreturns the energy in the time-frequency bin, and fkis the Pott’s model, which assigns 1 to edges with both vertices with different labels and 0 to edges with equal labels. λkand µkare weights applied to functions fk and gk. Conditional Random Fields allow us to incorporate local contextual constraints in labeling problems. Conditional random fields uses the Gibbs probability measure on the energy of a graphical model. The Gibbs measure is the unique that maximizes the entropy for a given expected energy and gives the following probability for a given energy: P(L|X) = 1 Zexp(−1 TE(L|X)) where Tis a constant, Zis a normalizing factor necessary to turn the energy into a probability, and E is the energy function. Given that only unary and pairwise potentials are non-zero, the energy that defines a conditional random field is as follows: E(L|X) = αX i∈S V1(li|X) + (1 −α)X i∈S X i∈Ni V2(li, li0|X) 20 CHAPTER 3. TONAL EXTRACTION LIDO Extract Silbido PRECISION: 70.00% 76.90% RETRIEVAL: 60.87% 80.00% COVERAGE: 69.69% 86.00% FRAGMENTATION: 1.08 1.20 DEVIATION: 882.96 70 Table 3.1: This table shows the best results obtained on each tonal extraction system •fragmentation is the average number of detections per ground truth tonal. •deviation is the measure of the average frequency deviation between the path of the ground truth and the detected tonals. In table 3.1 the best results for this method is shown and compared to the Silbido tonal extractor [73]. Chapter 4 Tonal classification 4.1 Description Once the tonal signals have been extracted the resulting time-series are classified using Continuous Density Hidden Markov Models. Hidden Markov Models have been chosen because they model dynamical systems like the time-series of tonals, and are able to learn length varying inputs. These properties make Hidden Markov Models ideal candidates for the classifier. Most kinds of tonals could be classified into two broad categories: marine mammals (dolphins, whales, etc) and anthropogenic sources (artificial sonars, etc), and to represent those signals feature extraction has been done in 2 ways, and two different datasets have been used to evaluate each method. The first method uses the result of the tonal extraction algorithm explained in the previous chapter, and the other one uses instead a combination of a tonal detector and the extraction of Cepstral coefficients. When the detector triggers the system computes the Cepstral coefficients of the detected tonal. The tonal detector [5] used is property of the LAB research group developed in prior research. This second method instead of processing tonals in an individual fashion classifies a whole time slice. For the evaluation 2 datasets have been used of different complexity and each one using a different feature extraction method. The first feature extraction method has been used to classify between 2 classes of dolphin whistles, those are Bottlenose dolphins and common dolphins. The dataset used was the one used to evaluate the tonal extraction process, the dataset for the 5th International Workshop on Detection and Localization of Marine Mammals 21 22 CHAPTER 4. TONAL CLASSIFICATION using Passive Acoustics. On the experiments performed on this dataset using 3 mixtures, states varying from 1 to 40 states and 4-fold cross-validation with 800 whistles (400 for each class) the system was able to classify with 62% of accuracy. The other experiment attempted on this chapter was the classification, using the ANTARES dataset, between dolphin whistles and artificial sonar. Since artificial sonar is very difficult to find in this dataset the number of samples was very limited. The dataset used for the experiment contained 26 artificial sonar samples and 33 dolphin whistles. On the rest of this chapter this second experiment is explained in more detail. 4.2 Feature extraction As explained before to perform classification 2 classes of features have been used. The resulting frequency series from the tonal extraction method presented in the previous chapter can be used as features for classification. Also another methodology has been tested which speeds up considerably the feature extraction process, and can produce similar performance. This second methodology uses a tonal detector, developed at LAB, to determine the regions in the signal that contain tonal sounds. After those regions have been determined the Cepstral coefficients of those regions are computed. The expression of the Cepstral coefficients is the following: F−1{log(|F{X}|)} Where Fis the Fourier transform and Xis a window of the signal. For this thesis the Cepstral coefficients have been computed using a window of 0.032 seconds and a window overlap of 50%. Those Cepstral coefficients are split in frames of 50 computations of Cepstral coefficients. Those frames are then 0.82 seconds long, and this length is enough to perform classification of signals between dolphin whistles and artificial sonar. On table 4.2 the correlation of the first 10 Cepstral coefficients is shown, it can be seen that the correlation is very low, and the highest correlation is between coefficient 1 and 4 and also 3 and 4. 4.3. CLASSIFICATION 23 C1 C2 C3 C4 C5 C6 C7 C8 C9 C1 1.0000 0.0438 0.1992 0.3034 0.0159 -0.1390 -0.0700 0.0168 0.1441 C2 0.0438 1.0000 -0.1042 -0.0490 -0.0151 -0.0085 0.0149 -0.0297 -0.0964 C3 0.1992 -0.1042 1.0000 0.3995 0.0847 -0.1013 -0.0677 0.0743 0.2031 C4 0.3034 -0.0490 0.3995 1.0000 0.0637 -0.1891 -0.0059 0.0709 0.2233 C5 0.0159 -0.0151 0.0847 0.0637 1.0000 -0.0381 -0.0204 0.0893 0.0018 C6 -0.1390 -0.0085 -0.1013 -0.1891 -0.0381 1.0000 0.0269 -0.1394 -0.0570 C7 -0.0700 0.0149 -0.0677 -0.0059 -0.0204 0.0269 1.0000 -0.1442 -0.0402 C8 0.0168 -0.0297 0.0743 0.0709 0.0893 -0.1394 -0.1442 1.0000 0.0144 C9 0.1441 -0.0964 0.2031 0.2233 0.0018 -0.0570 -0.0402 0.0144 1.0000 C10 0.0803 -0.0332 0.0951 0.1468 -0.0112 -0.0622 0.0363 -0.0285 0.0097 Table 4.1: Correlation matrix for the Cepstral coefficients. 4.3 Classification Once the features have been extracted, it is possible to perform classification of the signals. To perform classification a continuous density hidden Markov model is learned for each class. A continuous density hidden Markov model is a probabilistic model that models a sequence of real numbers or vectors of real numbers. Those vectors of real numbers in this thesis are the Cepstral coefficients explained in the previous section. To determine which class the model determines is the most suitable for the data, all the HMMs are evaluated and the one that gives the most probability determines the class. This corresponds to the maximum likelihood class. To make predictions more accurate instead of the likelihood it could be possible to compute the posteriori probability of the model multiplying the likelihood by priors (probability of each class), but in this evaluation the dataset contains almost 50% of each class so it would not improve the result. The frequency ranges in the first dataset have been limited, as with the tonal extraction, to the range from 1kHz to 50kHz and on the ANTARES dataset from 1kHz to 7kHz. In the case of the ANTARES dataset the classification is between dolphin whistles and artificial sonar, and artificial sonar has always been found under 7kHz, so this frequency range has been chosed. In the case of tonals above this frequency range they can be automatically classified as dolphin whistles. 24 CHAPTER 4. TONAL CLASSIFICATION 4.3.1 Hidden Markov Models Hidden Markov Models are a kind of dynamical graphical models, that is, they are a way to perform probabilistic modeling as a group of random variables with interdependences represented in a graph, in such a way that the graph nodes represent the random variables and the graph edges represent the interdependences between random variables. A graphical model takes advantage of the sparsity of the conditional dependencies between random variables to simplify the computation of probability distributions over the model variables. The main types of graphical models are Bayesian graphical models and Markov random fields. A Bayesian graphical model is a probabilistic graphical model that represents random variables and their conditional dependencies as a directed acyclic graph. On the other hand, Markov random fields are probabilistic graphical models that represent random variables and conditional dependencies as an undirected, and possibly cyclic, graphical model that satisfies the Markov conditions. A Hidden Markov Model is a special case of a Bayesian network. Hidden Markov Models could be defined as a 5-tuple Ω = (Φ,Σ, π, δ, λ). The first term, Φ = (1, . . . , K), corresponds the to the states. Every state has a set of possible emissions Σ, which can be a continuous or discrete set, and probabilities λassociated with those emissions. The probabilities of a given state occurring are δ, which are discrete. Also πare the starting probabilities which correspond to the probability that a sequence may start at a given state. The emissions can be observed and thus are used to solve the three problems formulated using HMM, which are Evaluation, Decoding and Learning. In evaluation a sequence of observations is provided and the probability of having been generated by a given HMM has to be computed. On decoding also a sequence of observations is provided and the objective is to find which is the most likely hidden state sequence that lead to this observation sequence. The learning problem consists on inferring the model parameters provided a set of observation sequences. On this thesis only evaluation and learning are used. For the evaluation problem an algorithm based on dynamic programming is used. This is called the Viterbi algorithm, which has a computational complexity of O(K2N) and it requires O(KN) space. For the learning problem, the Baum-Welch algorithm, also know as Forward-Backward Algorithm, is used. See the appendix for details. In this thesis continuous density emissions have been used, and each prob- 4.4. EXPERIMENTAL EVALUATION 25 ability distribution is modeled using a mixture of Gaussian. 4.3.2 Parameter learning Apart from learning the transition probabilities, the emission probabilities and the initial state probabilities, which are learned using the Baum-Welch algorithm, the model topology is also necessary to be determined from other means. The model topology corresponds to the number of states, the number of mixtures and also the number of Cepstral coefficients. In the next section the parameter values considered and the way they have been selected is explained. 4.4 Experimental Evaluation The parameters of the tonal classification which are not learned automatically from the data are the number of hidden states, the number of mixtures and the number of Cepstral coefficients. Those parameters have been adjusted empirically, starting by the number of Cepstral coefficients. To determine the number of Cepstral coefficients, the following number of coefficients were tried 6, 7, 8, 9 and 10. The number of mixtures used was fixed to 3 and to evaluate the accuracy a 5-fold cross-validation has been used for each of the following number of states: 1, 5, 10, 20, 30 and 40. The results of those 6 tests across all number of states were averaged resulting in the accuracy for a certain certain number of coefficients. In figure 4.2 the number of Cepstral coefficients has been plotted against the accuracy, it can be seen that the best number of Cepstral coefficients is 8. After the number of Cepstral coefficients has been fixed the number of mixtures was fixed. To determine this parameter the same procedure explained before was used but this time fixing the number of coefficients to 8 and varying the number of mixtures. Figure 4.1 is a plot of the number of mixtures vs the accuracy; it can be seen that with only 1 mixture the results are already very good and that adding mixtures can even degrade the accuracy, so this parameter was fixed to 1. Once those parameters have been fixed, the accuracy of the system for different number of states was evaluated. In the figure 4.3 it can be seen this 26 CHAPTER 4. TONAL CLASSIFICATION accuracy for different number of states. The best results are obtained for 10 states. Figure 4.1: A plot comparing the number of mixtures and the accuracy, fixing the number of Cepstral coefficients to 8. 4.4. EXPERIMENTAL EVALUATION 27 Figure 4.2: A plot comparing the number of Cepstral coefficients with the accuracy. 28 CHAPTER 4. TONAL CLASSIFICATION Figure 4.3: A plot comparing the number of states with the accuracy, fixing the number of Cepstral coefficients to 8 and the number of mixtures to 1. Chapter 5 Tonal clustering 5.1 Description Apart from classification, clustering of tonal sounds has also been attempted. Clustering tonal sounds is of interest because labeling tonal sounds is a very time consuming task and clustering could help obtain labeled data. Another application could be to improve the performance of the hidden Markov models used for classification of tonals, learning a hidden Markov model for each cluster of each class. Clustering could be performed using any kind of features to represent the signals but Cepstral features, introduced in the previous chapter, are the ones that have been used because they have shown to provide good results and are very efficient computationally. In the following section the process of clustering tonal sounds is explained in detail. 5.2 Herarchical agglomerative clustering Clustering of the tonal sounds has been developed as a bottom-up process, in each iteration grouping of clusters from the previous iteration is performed to form a new set of clusters. On each iteration the clustering of the signals is performed using a matrix of distances between each previous iteration cluster pair. To compute this distance matrix hidden Markov models are learned for each cluster on each iteration and a sample of tonals from the rest of the clusters is used to compute the likelihood of those other clusters 29 36 APPENDIX A. BACKGROUND INFORMATION To retrieve the states which are most likely back pointers have to be saved. This algorithm has complexity O(T|S|2). A.2 The Baum-Welch algorithm The Baum-Welch algorithm, also know as the Forward-Backward algorithm, is a particular case of the generalized expectation maximization algorithm. It works in three steps, on the first step it computes the forward probabilities, on the second step it computes the backward probabilities, and on the third it computes the smoothed values. •Forward probabilities: They represent the probability of producing oi,t−1and ending up at state si. •Backward probabilities: They represent the probability of observing a given observation sequence knowing that at time tthe state is si. The forward algorithm computes the following function recursively: αj(t+ 1) =P(O1,tXt+1 =j) X t P(O1,t, Xt=i, Xt+1 =j) X t P(O1,t−1, Xt=i)P(ot, X,t+1 =j|O1,t−1, Xt=i) X t P(O1,t−1, Xt=i)P(ot, X,t+1 =j|Xt=i) X t αi(t)ai,jbi,j,ot (A.1) With base case: αi(1) = πi The backward algorithm computes the following function: βi(t) = P(Ot,T |Xt=i) That is, the probability of emitting a certain sequence starting at time t with state i, which is computed recursively. A.2. THE BAUM-WELCH ALGORITHM 37 The base case of the iteration is: βi(T+ 1) = 1 And the induction is: βi(t) =P(Ot,T |Xt=i) X j P(ot, Ot+1,T , Xt+1 =j|Xt=i) X j P(ot, Xt+1 =j|Xt=i)P(Ot+1,T |Xt=i, Xt+1 =j, oj) X j P(ot, Xt+1 =j|Xt=i)P(Ot+1,T |Xt+1 =j) X j βj(t+ 1)ai,jbi,j,ot (A.2) The Forward-Backward algorithm can be used to find the most probable state for any particular time but it can not be used to find the most probable sequence. The expression of the Forward-Backward algorithm is as follows: γi(t) = P(Xt=i|O) = P(Xt=i, O) P(O)=αi(t)βi(t) Pjαj(t)βj(t) That is, the probability of being at state iat time tgiven Oobservation. 38 APPENDIX A. BACKGROUND INFORMATION Bibliography [1] Musical instrument recognition using cepstral coefficients and temporal features, volume 2, 2000. [2] Semi-Supervised Learning (Adaptive Computation and Machine Learning series). The MIT Press, September 2006. [3] Springer Handbook of Speech Processing. Springer, 1 edition, December 2007. [4] Patrice Alexandre and Philip Lockwood. Root cepstral analysis: A unified view. Application to speech processing in car noise environments. Speech Communication, 12(3):277–288, July 1993. [5] Van der Schaar Mike Connor Roger Malcolm Zaugg Serge Alain Hou´egnigan Ludwig S´anchez A.M. Castell Joan Andr´e, Michel. Listening to the deep: Live monitoring of ocean noise and cetacean acoustic signals. 2011. [6] Chotirat Ann and Ratanamahatana E. Keogh. Abstract Three Myths about Dynamic Time Warping Data Mining. [7] J. G. A. Barbedo and G. Tzanetakis. Musical Instrument Classification Using Individual Partials. Audio, Speech, and Language Processing, IEEE Transactions on, 19(1):111–122, January 2011. [8] Yaman Barlas and Korhan Kanar. A dynamic pattern-oriented test for model validation. [9] Laurent Benaroya and Frederic Bimbot. Wiener based source separation with hmm/gmm using a single sensor. In Proc. 4th Int. Symp. on Independent Component Anal. and Blind Signal Separation, 2003. 39 40 BIBLIOGRAPHY [10] Manuele Bicego, Vittorio Murino, and M´ario A. T. Figueiredo. Similarity-based clustering of sequences using hidden Markov models. In Proceedings of the 3rd international conference on Machine learning and data mining in pattern recognition, MLDM’03, pages 86–95, Berlin, Heidelberg, 2003. Springer-Verlag. [11] Christopher M. Bishop. Latent variable models, pages 371–403. 1999. [12] Christopher M. Bishop, Markus Svens´en, and Christopher K. I. Williams. GTM: The generative topographic mapping. In Neural Computation, pages 215–234, 1998. [13] Avrim Blum and Tom Mitchell. Combining labeled and unlabeled data with co-training. In Proceedings of the eleventh annual conference on Computational learning theory, COLT’ 98, pages 92–100, New York, NY, USA, 1998. ACM. [14] B. Boashash and P. O’Shea. A methodology for detection and classification of some underwater acoustic signals using time-frequency analysis techniques. Acoustics, Speech and Signal Processing, IEEE Transactions on, 38(11):1829–1841, November 1990. [15] Pau Bofill and Michael Zibulevsky. Blind Separation of More Sources Than Mixtures Using Sparsity of Their Short-Time Fourier Transform. In Proc. of Int. Workshop on ICA and BSS, pages 87–92, Helsinki, Finland, June 2000. [16] Pau Bofill and Michael Zibulevsky. Underdetermined blind source separation using sparse representations. Signal Processing, 81(11):2353– 2362, November 2001. [17] Y. Boykov and V. Kolmogorov. An experimental comparison of mincut/max-flow algorithms for energy minimization in vision. IEEE T. Pattern Anal., 26:1124–1137, 2004. [18] Matthew Butler. Hidden Markov Model Clustering of Acoustic Data. 2003. [19] Michael A. Casey. Separation of Mixed Audio Sources by Independent Subspace Analysis. Technical report, MERL. BIBLIOGRAPHY 41 [20] William S. Cleveland and Susan J. Devlin. Locally weighted regression: An approach to regression analysis by local fitting. Journal of the American Statistical Association, 83:596–610, 1988. [21] Martin Cooke, Phil Green, and Malcolm Crawford. Handling Missing Data In Speech Recognition. 1994. [22] R. Crochiere. A weighted overlap-add method of short-time Fourier analysis/Synthesis. IEEE Transactions on Acoustics, Speech, and Signal Processing, 28(1):99–102, February 1980. [23] S. Datta and C. Sturtivant. Dolphin whistle classification for determining group identities. Signal Processing, 82(2):251 – 258, 2002. [24] S. Datta and C. Sturtivant. Dolphin whistle classification for determining group identities. Signal Processing, 82(2):251–258, February 2002. [25] Jason Davis, Brian Kulis, Suvrit Sra, and Inderjit Dhillon. Informationtheoretic metric learning. In in NIPS 2006 Workshop on Learning to Compare Examples, 2007. [26] A. Delong, A. Osokin, H. N. Isack, and Y. Boykov. Fast approximate energy minimization with label costs. In Computer Vision and Pattern Recognition (CVPR), 2010 IEEE Conference on, pages 2173– 2180. IEEE, June 2010. [27] Inderjit S. Dhillon, Yuqiang Guan, and Brian Kulis. Kernel k-means: spectral clustering and normalized cuts. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, KDD ’04, pages 551–556, New York, NY, USA, 2004. ACM. [28] D. P. W. Ellis and R. J. Weiss. Model-Based Monaural Source Separation Using a Vector-Quantized Phase-Vocoder Representation. In Acoustics, Speech and Signal Processing, 2006. ICASSP 2006 Proceedings. 2006 IEEE International Conference on, volume 5, page V. IEEE, May 2006. [29] G. D. Forney. The viterbi algorithm. Proceedings of the IEEE, 61(3):268–278, March 1973. 42 BIBLIOGRAPHY [30] Alejandro F. Frangi, Wiro J. Niessen, Koen L. Vincken, and Max A. Viergever. Multiscale Vessel Enhancement Filtering. pages 130+. 1998. [31] C. Fraschini and F. Chaillan. Background spectrum estimation via robust Kalman filtering. In New Trends for Environmental Monitoring Using Passive Systems, 2008, pages 1–6. IEEE, October 2008. [32] Guojun Gan, Chaoqun Ma, and Jianhong Wu. Data Clustering: Theory, Algorithms, and Applications (ASA-SIAM Series on Statistics and Applied Probability). SIAM, Society for Industrial and Applied Mathematics, illustrated edition edition, May 2007. [33] Jean-luc Gauvain and Chin-hui Lee. MAP Estimation of Continuous Density HMM: Theory and Applications. In In: Proceedings of DARPA Speech and Natural Language Workshop, pages 185–190, 1992. [34] Ramazan Gen¸cay, Faruk Sel¸cuk, and Brandon Whitcher. An Introduction to Wavelets and Other Filtering Methods in Finance and Economics. Academic Press, 1 edition, September 2001. [35] John C. Glover. Simpl: A python library for sinusoidal modelling. [36] B. Vikrham Gowreesunker and Ahmed H. Tewfik. Two improved sparse decomposition methods for blind source separation. In Proceedings of the 7th international conference on Independent component analysis and signal separation, ICA’07, pages 365–372, Berlin, Heidelberg, 2007. Springer-Verlag. [37] A. Graps. An introduction to wavelets. IEEE Computational Science and Engineering, 2(2):50–61, FebFeb 1995. [38] R. Gray. Vector quantization. IEEE ASSP Magazine, 1(2):4–29, April 1984. [39] Thomas L. Griffiths, Charles Kemp, and Joshua B. Tenenbaum. Bayesian models of cognition. [40] Yinyi Guo and Mofei Zhu. Audio source separation by basis function adaptation. In 2011 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 2192–2195. IEEE, May 2011. BIBLIOGRAPHY 43 [41] Gholamreza Haffari and Anoop Sarkar. Homotopy-based Semi- Supervised Hidden Markov Models for Sequence Labeling. [42] X. Halkias and D. P. W. Ellis. Call detection and extraction using Bayesian inference. Applied Acoustics, 67(11-12):1164–1174, November 2006. [43] Xanadu Halkias. Detection and tracking of dolphin vocalizations. PhD thesis. [44] Marko Hel´en and Tuomas Virtanen. Separation of drums from polyphonic music using non-negative matrix factorization and support vector machine. In In: Proc. EUSIPCO’2005. (2005, 2005. [45] R. Herbrich, T. Graepel, and K. Obermayer. Large margin rank boundaries for ordinal regression. In KDD’02: Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, pages 133–142. ACM. [46] Jennifer A. Hoeting, David Madigan, Adrian E. Raftery, and Chris T. Volinsky. Bayesian Model Averaging: A Tutorial. Statistical Science, 14(4):382–401, 1999. [47] Daniel Hsu, Sham M. Kakade, and Tong Zhang. A Spectral Algorithm for Learning Hidden Markov Models. August 2009. [48] Hanwen Huang, Xiaosun Lu, Yufeng Liu, Perry Haaland, and J. S. Marron. R/DWD: Distance Weighted Discrimination for Classification, Visualization and Batch Adjustment. Bioinformatics (Oxford, England), February 2012. [49] Aapo Hyv¨arinen. Survey on Independent Component Analysis. 1999. [50] Aapo Hyv¨arinen, Jarmo Hurri, and Patrik O. Hoyer. Independent Component Analysis Natural Image Statistics. volume 39 of Computational Imaging and Vision, chapter 7, pages 151–175. Springer London, London, 2009. [51] Vincent M. Janik. Pitfalls in the categorization of behaviour: a comparison of dolphin whistle classification methods. Animal Behaviour, 57(1):133–143, January 1999. 44 BIBLIOGRAPHY [52] Tony Jebara, Yingbo Song, and Kapil Thadani. Spectral Clustering and Embedding with Hidden Markov Models. In Proceedings of the 18th European conference on Machine Learning, ECML ’07, pages 164–175, Berlin, Heidelberg, 2007. Springer-Verlag. [53] J. Jensen and J. H. L. Hansen. Speech enhancement using a constrained iterative sinusoidal model. Speech and Audio Processing, IEEE Transactions on, 9(7):731–740, October 2001. [54] I. P. Kirsteins. Separation and fusion of overlapping underwater sound streams. [55] A. P. Klapuri. Multiple fundamental frequency estimation based on harmonicity and spectral smoothness. Speech and Audio Processing, IEEE Transactions on, 11(6):804–816, 2003. [56] R. Kumaresan and A. Rao. Model-based approach to envelope and positive instantaneous frequency estimation of signals with speech applications. Acoustical Society of America Journal, 105:1912–1924, March 1999. [57] M. Lagrange, S. Marchand, and J. B. Rault. Enhancing the Tracking of Partials for the Sinusoidal Modeling of Polyphonic Sounds. Audio, Speech, and Language Processing, IEEE Transactions on, 15(5):1625– 1634, July 2007. [58] M. Lagrange, L. G. Martins, J. Murdoch, and G. Tzanetakis. Normalized Cuts for Predominant Melodic Source Separation. Audio, Speech, and Language Processing, IEEE Transactions on, 16(2):278– 290, February 2008. [59] Cen Li and Gautam Biswas. Applying the hidden Markov model methodology for unsupervised learning of temporal data. International Journal of Knowledge-based Intelligent Engineering Systems, 6(3):152– 160, 2002. [60] Peng Li, Yong Guan, Shijin Wang, Bo Xu, and Wenju Liu. Monaural speech separation based on MAXVQ and CASA for robust speech recognition. Computer Speech & Language, 24(1):30–44, January 2010. BIBLIOGRAPHY 45 [61] Yipeng Li, John Woodruff, Student Member, and Deliang Wang. Monaural Musical Sound Separation Based on Pitch and Common Amplitude Modulation. [62] Haiyan Luan, Hua Jiang, and Xiaobao Liu. Source number estimation in single channel blind source separation. In Image and Signal Processing (CISP), 2010 3rd International Congress on, volume 9, pages 4445–4449. IEEE, October 2010. [63] R. Mcaulay and T. Quatieri. Speech analysis/Synthesis based on a sinusoidal representation. Acoustics, Speech, and Signal Processing [see also IEEE Transactions on Signal Processing], IEEE Transactions on, 34(4):744–754, 1986. [64] David K. Mellinger and Christopher W. Clark. Methods for automatic detection of mysticete sounds. Marine and Freshwater Behaviour and Physiology, 29(1-4):163–181, January 1997. [65] Michael. Separation of Mixed Audio Sources By Independent Subspace Analysis. International Computer Music Conference Proceedings, 2000. [66] Xavier Mouy, Mohammed Bahoura, and Yvan Simard. Automatic recognition of fin and blue whale calls for real-time monitoring in the St. Lawrence. 126(6):2918–2928, December 2009. [67] C. Myers, L. Rabiner, and A. Rosenberg. Performance tradeoffs in dynamic time warping algorithms for isolated word recognition. Acoustics, Speech, and Signal Processing [see also IEEE Transactions on Signal Processing], IEEE Transactions on, 28(6):623–635, 1980. [68] Daniel J. Navarro and Thomas L. Griffiths. Latent features in similarity judgments: a nonparametric bayesian approach. Neural computation, 20(11):2597–2628, November 2008. [69] Jon P. Nedel. Duration normalization for robust recognition of spontaneous speech via missing feature methods. PhD thesis, Pittsburgh, PA, USA, 2004. [70] D. O’Shaughnessy. Linear predictive coding. IEEE Potentials, 7(1):29– 32, February 1988.