Batch cluster target mode
Previous Top Next


Cluster target mode


graphicWe use this mode frequently to trace changes in similarity values during song development in conjunction with the clustering module. Once we have identified clusters and traced them during development we want to know how similar the cluster to the song model cluster. For example, the similarity to the song model might change gradually or abruptly, and tracing the similarity of all the instances of this syllable type to the model could tell us when, and sometimes even how the learning has occurred. Since the bird produces several thousands syllables of this type each day, it seems too costly to score each single one in reference to the model syllable, but using the batch mode makes it easy. Say that you have all the song files that SA+ saved for this bird during August 10 stored as wave files in a DVD. All you need to do is insert the DVD, start SA+ in similarity batch mode and select 'cluster target mode'. Next, go to the 'sound 1' page, open the model song and outline the target syllable. Then go back to the 'similarity batch' page, click 'Table 1' and open the syllable table of this bird (syllable tables are generated automatically by SA+ in both 'sound processing live' and 'syllable batch' modes). Now, identify the syllable type by typing a query. For example:

If clustering was done, and you would like to score cluster number 3, type 'cluster=3'

If you would like to score only non-modulated long calls, type 'duration>100 and FM<10'

The syllable table includes the entire song development of this bird, but the DVD only includes data from a few days of development.  Therefore, we need to specify which of the syllables in the table can be accessed in the current DVD. There are two ways around this. If your data are organized by dates, all you need is to add to the query the appropriate date by typing 'month=8 and day=10' for August 10. Alternatively you can find the record number (recnum) of this syllable in the table.  The most efficient way of finding a record in the table is using a query. Here is how it is done:

graphicBrowse the DVD and find the earliest file (say bird109_9520_on_Aug_10_15_32.wav). Now go to the mySQL control panel, browse to and click the 'SQL' button.




Type the following line:


select * from bird109 where file_name="bird109_9520_on_Aug_10_15_32.wav"

and click the ! button to run the query. The first recnum in the list (100020) is what you want.

graphic

Now in SA+ your query line can look like this

Cluster=3 and recnum>100010

Note that we only found the first record, how about the last one? Do not worry about it: once the batch fail to find the wave file in the specified folder it automatically stops.


Next, in order for SA+ to find the syllable, it has to make some assumptions about time unit conversion. By default, the time units are 1.36ms (as set in the 'advance window' slider). If from any reason you want to deviate from this default, you must type the new conversion in  the conversion box. graphic

Note: time conversion units will be automated (and transparent) in the next update.


Finally, you might want to wrap the outline syllable with some time interval, e.g., to test similarity also in the neighborhood of the syllable. We provide this option in the 'add before and after' box.

graphic


you should be aware, however, that changing the value might in some cases cause an error if SA+ try to outline an interval that does not exist in the sound file.


Note: SA+ does not check if the automated syllable outlining procedure passed the data boundaries. We will take care of this in the next update.


 You are now ready to run the batch.

  

Created using Helpmatic Pro HTML