How to clustering syllable types with python?

痞子三分冷 提交于 2019-12-12 02:47:28

问题


This is my second question in stack overflow. I don't have to much experience with python, but had excellent results with my first question and I was able to implement the code from the answer, so I will try again with this new problem:

I am trying to classify syllable types from a canary song, in order to use each types as templates to find and classify large sets of data with similar behavior. I use the envelope of the singing. My data is a sampled array, with time and amplitude (a plot of the data is posted in http://ceciliajarne.web.unq.edu.ar/envelope-problem/ ). I try to use singular value decomposition algorithm from Numpy:

U,s,V = linalg.svd(A) # SVD decomposition of A

I'm not sure how to build a meaningful A matrix with the data of time series in order to follow this approach. How to cut the time series to obtain a matrix to analyze it?

I thought a possible second approach: the Hierarchical clustering. It may be a better solution, but I don't know how to use a clustering criteria. What I know is that:

  • There are around 10 different syllable types.
  • The distance between the minims and relative maximum in each type changes.
  • Also the length of each syllable. -Similar syllable has similar frequency behavior.

Which information can I use to fed the scipy.cluster.hierarchy. Function? I want to group the common syllable types in clusters.

I was inspired by: Unsupervised clustering with unknown number of clusters

But now I don't know how to implement a first test... Any idea could be very useful, this is the first time for me with patterns and time series.

来源:https://stackoverflow.com/questions/33393388/how-to-clustering-syllable-types-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!