In this project, numeric features of the acoustic properties of calls of a large sample of bats in Mexico are analysed using machine learning techniques to try to predict the familiy of each bat. Monitoring the prescence and diversity of bats using acoustic surveys is a useful way to detect biodiversity change, especially in remote areas, but machine learning algorithms are required to address the complexity of classification of individial families.
The objective of this project is to classify the acoustic information to predict the target variable "Family" which is a categorical variable indicating the following 5 bat families: Emballonuridae, Molossidae, Mormoopidae, Phyllostomidae, Vespertilionidae.
The performance of a neural network with 2 hidden layers and a neural network with 3 hidden layers was compared with respect to their performance at predicting the type of bat family a call belongs to. Performance was optimised by minimising the expected error evaluated on the training data:
In this case of a categorical classification problem, the error function is the cross entropy:
Weights are updated based on minimising the expected value of the loss function. The performance metrics used to compare the two models are accuracy and value of the error function at each epoch for the training and test datasets. L2 regularization was used to apply penalties on the layer parameters that are summed into the loss function and that prevent over fitting of the model. A dropout layer was included where randomly selected neurons are ignored during training so that their contribution to downstream neurons is temporarily removed. This allows better generalization and makes the model less likely to overfit the training data.
Further details of the analysis are available here The R-code is available here
The overall accuracy of Model 2 was 0.8427 while Model 3 had a slightly higher accuracy of 0.8696, but this difference is small and probably doesn’t represent a functionally important difference in model performance between the two models. Both models perform well in classifying Mormoopidae, compared to the other bat species (94% and 89% correctly classified for model 2 and 3, respectively).
This project was submitted as part of the coursework required for the module, "Machine Learning" for an a MSc (Data Analytics) course at UCD in 2022.
