Dataset Open Access

Dataset for: Application of Machine Learning for the Spatial Analysis of Binaural Room Impulse Responses

Michael Lovedee-Turner; Damian Murphy

JSON-LD (schema.org) Export

{
"inLanguage": {
"alternateName": "eng",
"@type": "Language",
"name": "English"
},
"description": "<p>This repository contains supplementary material for the paper titled Application of Machine Learning for the Spatial<br>\nAnalysis of Binaural Room Impulse Responses&#39; Available at: <a href=\"http://dx.doi.org/10.3390/app8010105\">dx.doi.org/10.3390/app8010105</a>&nbsp;. These programs and audio files are distributed in the hopes that they will prove useful under the Creative Commons Attribution 4.0, with no warranty; or the implied warranty of merchantability or fitness for a particular problem. Please give appropriate credit for use of the material provided in this repository back to the author.&nbsp;</p>\n\n<p>In order to use the MatLab code the Auditory Toolbox by Malcolm Slaney [1] and the Cochleagram function distributed by Bin Gao [2] are required.</p>\n\n<p>The python scrips require the following Python libraries to be installed: Numpy[3], SciPy[4] and Tensorflow [5].</p>\n\n<p>The MatLab code was tested using MatLab R2017a on a Computer running windows 7.</p>\n\n<p>The python code was tested using Python 3.2.5, using an anaconda Python environment - in windows command line.</p>\n\n<p>--</p>\n\n<p>The repository contains:</p>\n\n<p>Folders:</p>\n\n<p><br>\n1.) neg90 - This folder contains the gaussian normalisation parameters stored as text files and the weights and biases for the trained neural network - these are all for the -90&deg; rotation neural network.</p>\n\n<p>2.) pos90 - This folder contains the gaussian normalisation parameters stored as text files and the weights and biases for the trained neural network - these are all for the +90&deg; rotation neural network.</p>\n\n<p>3.) testData - this folder contains pre-generated test data for the different binaural dummy head microphones, speaker, and signal type combinations.</p>\n\n<p>Python Scripts:</p>\n\n<p><br>\n1.) AnalyseDoA.py - A python script that can be run to test the neural network using the pre-generated test data - running the script will allow the user to input the binaural dummy head, speaker, and signal type. The important variables generated by this script are DoA - the direction of arrival for each signal in the feature vector, and yDiff - the difference between the predicted DoA and the expected direction of arrival</p>\n\n<p>2.) DirectionAnalysis.py - This python file contains a set of function that are used to define the neural network, and run it. The function called DoAPrediction takes the feature vector generated by the MatLab code as its input argument, these features will then be passed to the neural network, and the output of this function is the direction of arrival predicted by the neural network for each signal. The functions: DoAAnalysis_neg90 and DoAAnalysis_pos90 are called by the DoAPrediction function, these functions create the neural network using the NN function, import the weights and biases, and passes the feature matrix (provided as input) through the neural network - the output of these functions are the predicted direction of arrival.</p>\n\n<p>MatLab files:</p>\n\n<p><br>\n1.) runAnalysis.m - This&nbsp;MatLab script&nbsp;analyses the dataset provided as part of this repository. Users can change the variables head (&#39;KEMAR&#39; or &#39;KU100&#39;), signalType (&#39;directSound&#39; or &#39;reflection&#39;), and speaker (&#39;EquatorD5&#39; or &#39;Genelec8030&#39;). This script will produce the gaussian normalised feature vector and expected direction of arrival for all signals with the defined head, signal type, and speaker combination. These variables are then saved in .mat files so they can be imported by the python scripts.</p>\n\n<p>2.) BinauralModelCochlea.m - This MatLab function analyses a given binaural signal and outputs the interaural cross-correlation, interaural level difference, interaural time difference, the cochlea output for the left and right channel and the centre frequencies of the gammatone filter band. The input variables are: IR - the signal to be analysed, N - the number of gammatone filters, freqLow - the lowest centre frequency of the gammatone filter bank (centre frequency of the first gammatone filter), and freqHigh - the highest centre frequency of the gammatone filter bank (the centre frequency of the Nth gammatone filter). This function requires Malcolm Slaney&#39;s Auditory Toolbox [1] and Bin Gao&#39;s Cochleagram function [2] in order to work.</p>\n\n<p>3.) generateFeatureVector.m - This MatLab function generates a feature vector from an input binaural signal x, and a version of the signal captured after the binaural dummy head has been rotated by either +90&deg; or -90&deg; degree (variables xPos90 and xNeg90 respectively). If the sampling frequency (Fs) isn&#39;t 44100, the signals are resampled to be at 44100. This file also contains a function &#39;gaussianNormalisationTestData&#39; which gaussian normalises the data using the mean and standard deviation calculated from the data used to train the neural networks - the mean and standard deviation values are stored in the folder GMParams in the pos90 and neg90 folders.</p>\n\n<p>4.) generateTestData.m - This&nbsp;MatLab function analyses the included binaural dataset, it takes the input variables: head - the binaural dummy head used for the measurements either &#39;KEMAR&#39; or &#39;KU100&#39;, speaker - the speaker used for the measurements either &#39;EquatorD5&#39; or &#39;Genelec8030&#39;, and signalType - the type of signal being analysed either &#39;directSound&#39; or &#39;reflection&#39;.</p>\n\n<p>Text files:</p>\n\n<p><br>\n1.) noLayers.txt - a text file containing the number of layers used when training the neural network - with the current version of the code the neural network contains only 1 layer.</p>\n\n<p>2.) README.txt - Read me file containing information about the repository.</p>\n\n<p>Audio files:</p>\n\n<p><br>\nThis repository contains 1152 binaural signals half of which are direct sounds segmented from a binaural room impulse responses and the other half are reflections segmented from binaural room impulse responses (detailed in the paper this material supports) the direct sounds are recorded at angles from 0&deg; to 357.5&deg; in steps of 2.5&deg; and the reflections are recorded at angles of 1&deg; to 358.5&deg; in steps of 2.5&deg;. In the paper only recordings relating to signals recorded with the Equator D5 are analysed.</p>\n\n<p>The combination of audio files include:</p>\n\n<p>1.) 144 direct sound recordings captured with the KEMAR 45BC binaural dummy head microphone and the Equator D5 speaker<br>\n2.) 144 reflection recordings captured with the KEMAR 45BC binaural dummy head microphone and the Equator D5 speaker<br>\n3.) 144 direct sound recordings captured with the KU100 binaural dummy head microphone and the Equator D5 speaker<br>\n4.) 144 reflection recordings captured with the KU100 binaural dummy head microphone and the Equator D5 speaker<br>\n5.) 144 direct sound recordings captured with the KEMAR 45BC binaural dummy head microphone and the Genelec 8030 speaker<br>\n6.) 144 reflection recordings captured with the KEMAR 45BC binaural dummy head microphone and the Genelec 8030 speaker<br>\n7.) 144 direct sound recordings captured with the KU100 binaural dummy head microphone and the Genelec 8030 speaker<br>\n8.) 144 reflection recordings captured with the KU100 binaural dummy head microphone and the Genelec 8030 speaker</p>\n\n<p>The files are stored using the following file naming convention:<br>\nhead_Test3_speaker_signalType_000_0_Degrees.wav - where _000_0 defines the azimuth direction of arrival so for example for a direct sound measured with the KEMAR unit and the Genelec8030 at 5 degrees would be &#39;KEMAR_Test3_Genelec8030_directSound_005_0Degrees.wav&#39; and for a reflection measured with the KU100 and the Equator D5 at 298.5 degrees would be &#39;KU100_Test3_EquatorD5_reflection_298_5Degrees.wav&#39;</p>\n\n<p>--</p>\n\n<p>Bibliography:<br>\n[1]&nbsp;Slaney, M. (1998). Auditory Toolbox. Palo Alto, CA. [Online]. Available: https://engineering.purdue.edu/~malcolm/interval/1998-010/ [Accessed: Oct. 27, 2017]</p>\n\n<p>[2]&nbsp;Gao, B. (2014). Cochleagram and IS-NMF2D for Blind Source Separation. [Online] Available:&nbsp;http://uk.mathworks.com/matlabcentral/fileexchange/48622-cochleagram-and-is-nmf2d-for-blind-source-separation?focused=3855900&amp;tab=function&nbsp;[Accessed: Oct. 27, 2017]</p>\n\n<p>[3]&nbsp;NumFocus. (n.d.). NumPy. [Online]. Available: http://www.numpy.org/ [Accessed: Oct. 27, 2017]</p>\n\n<p>[4]&nbsp;SciPy. (n.d.). SciPy. [Online]. Available:&nbsp;https://www.scipy.org/&nbsp;[Accessed: Oct. 27, 2017]</p>\n\n<p>[5]&nbsp;Google. (n.d.). TensorFlow. [Online] Available:&nbsp;https://www.tensorflow.org/&nbsp;[Accessed: Oct. 27, 2017]</p>\n\n<p>--</p>\n\n<p>All code and audio produced by: Michael Lovedee-Turner, PhD candidate in Music Technology at the Audio Lab, Department of Electronic Engineering, University of York</p>\n\n<p>Contact: mjlt500@york.ac.uk</p>",
"license": "https://creativecommons.org/licenses/by/4.0/legalcode",
"creator": [
{
"affiliation": "University of York",
"@id": "https://orcid.org/0000-0001-6898-1894",
"@type": "Person",
"name": "Michael Lovedee-Turner"
},
{
"affiliation": "University of York",
"@id": "https://orcid.org/0000-0002-6676-9459",
"@type": "Person",
"name": "Damian Murphy"
}
],
"url": "https://zenodo.org/record/1038021",
"datePublished": "2017-10-27",
"version": "1",
"keywords": [
"Machine-Hearing, Machine-Learning, Binaural Room Impulse Responses, Spatial Analysis, Direction of Arrival"
],
"@context": "https://schema.org/",
"distribution": [
{
"contentUrl": "https://zenodo.org/api/files/f16c6c97-af8b-4434-8e2d-0fa2a6c07771/Application of Machine Learning for the Spatial Analysis of Binaural Room Impulse Responses.zip",
"encodingFormat": "zip",
"@type": "DataDownload"
}
],
"identifier": "https://doi.org/10.5281/zenodo.1038021",
"@id": "https://doi.org/10.5281/zenodo.1038021",
"@type": "Dataset",
"name": "Dataset for: Application of Machine Learning for the Spatial Analysis of Binaural Room Impulse Responses"
}`
428
12
views
downloads
All versions This version
Views 428429
Downloads 1212
Data volume 114.5 MB114.5 MB
Unique views 399400
Unique downloads 1212