Microsoft Project 15 Elephant Listening Project at Imperial College London

Published Jun 25 2021 07:31 AM 1,317 Views
Microsoft

 

LeeStott_6-1624628904190.png

 

Guest blog by Electronic and Information Engineering Project team at Imperial College.

Introduction

We are a group of students studying engineering at Imperial College London! 

 

 
Teams Project Repo and Resources 

For a full breakdown of our project see https://r15hil.github.io/ICL-Project15-ELP/


Project context
 

ELP.png

The Elephant Listening Project (ELP) began in 2000, our client Peter Howard Wrege took over in 2007 as director https://elephantlisteningproject.org/. 

 

ELP focuses on helping protect one of three types of elephants, the forest elephant which has a unique lifestyle and is adapted to living in dense vegetation such as the forest. They depend on fruits found in the forest and are known as the architect of the rainforest since they disperse seeds all around the forest.  Since they spend their time in the forest it is extremely hard to track them since the canopy of the rainforest is so thick, you cannot see the forest floor, so ELP use an acoustic recorder to record vocalisations of the elephants to track them. Currently they have put one acoustic recorder per 25 square kilometre. These devices can detect elephant calls in a 1km radius and gunshots 2-2.5km radius around each recording site.  Currently the recordings are recorded to an SD card, and then collection from all the sites takes a total of 21 days in the forest. This happens every 4 months. Once all the data is collected it goes through a simple ‘template detector’ which has 7 examples of gunshot sounds, cross correlation analysis is carried out, locations in the audio file with a high correlation get flagged as a gunshot. 

 

The problem with the simple cross correlation method is that it produces an extremely large amount of false positives, such as tree branch falls and even things as simple as raindrops hitting the recording device. This means that there is a 15-20 day analysis effort, however it is predicted that with a better detector, this analysis effort can be cut down to a 2-3 day effort! 

  

Currently the detector has an extremely high recall, but a very bad precision (0.5%!!!). The ideal scenario would be to improve the precision, in order to remove these false positives and make sure that when a gunshot is detected, the gunshot is in fact a gunshot (high precision). 

 

The expectation is to have a much better detector than the one in place, that can detect gunshots to a very high precision with a reasonable accuracy. Distinguishing between automatic weapons (eg AK-47) and shotguns is also important, since automatic weapons are usually used to poach elephants. This is an important first step to real time detection. 

 

Key Challenges 

The dataset we had was very varied and sometimes noisy! It consisted of thousands of hours of audio recordings of the rainforest and a spreadsheet of the gunshots located in the files. The gunshots we were given varied, some close to the recorder and some far, sometimes multiple shots and sometimes single shots. 

 

A lot of sounds in the rainforest sound like gunshots, but it is relatively easier distinguishing them using a frequency representation which brought us onto our initial approach.
 

Approach(es) 

Our first approach was to use convolutional neural network known as CNN.  We trained this using a method called mel-frequency cepstrum coefficients known as MFCCs. 

 

LeeStott_1-1624628796301.png

 

This MFCC method is a well known way to tackle audio machine learning classification.  

 

MFCC extracts features from frequency, amplitude and the time component. However, MFCCs are very sensitive to noise, and because the rainforest contains various sounds, testing it on 24 hour sound clips did not work.  The reason it didn’t work is because our data of the gunshots to train our model also included other sounds (noise), which meant that our machine learning model learnt to recognise random forest background noises instead of gunshots. Due to a lack of time and knowledge on identifying gunshot, checking and relabelling all of our dataset manually so that it only clean gunshots was not viable. Hence, we decided to use a computer vision method as a second approach.  

 

We focused on labelling gunshots on a visual representation of sound called the mel-spectrogram which allows us to ignore the noise other parts of the audio clip which would be noise, and specifically focus on the gunshot. 

 

LeeStott_2-1624628796307.png

 

Labelling our data was extremely easy for our computer vision (object detection) model. We used the Data Labelling service on Azure Machine Learning where we could label our mel-spectrograms for gunshots and build our dataset to train our object detection models. These object detection models (Yolov4 and Faster R-CNN ) use XML files in training, Azure Machine Learning allowed us to export our labelled data in a COCO format in a JSON file. The conversion from COCO to the XML format we needed to train our models was done with ease. 

 

With the new object detectors, we were able to find the exact start and end times of gunshots and save it to a spreadsheet!  

LeeStott_8-1624629574253.png

 

LeeStott_9-1624629596395.png

 

 

This is extremely significant because essentially what our system is doing is not only detecting gunshots, but generating clean and labelled data of gunshots, and with this data more standard methods of machine learning for audio methods can be used, such as MFCC. 

 

To expand on this, we also found that our detector was picking up “gunshot like” sound events such as thunder, monkey alarm calls and raindrops hitting the detector (‘hn’ in the image below). This meant that we could use that data to train our model further, to say ‘that is not a gunshot, it is a…’, training for the other sound events to be detected too.  

 

LeeStott_10-1624629621322.png

 

 

Our Design History - Overview

 

LeeStott_33-1624630391244.png

 

Concept

The concept of our system was to train a machine learning model in order to classify sound. A sound classification model would be to detect whether or not there was a gunshot.


Signal Processing

Trying to detect gunshots directly from sound waveform is hard because it does not give you much information to work with, only amplitude. Hence, we needed to do some signal processing to extract some features from the sound.

Initially we began research by reading papers and watching video lectures in signal processing. All sources of research we used can be found in “Code and resources used”.

What we found were two common signal processing techniques in order to analyse sound, the Mel-Frequency Cepstrum Coefficients (MFCCs, on the left below) and the Mel-Spectrogram (on the right below).

 

LeeStott_35-1624630466049.png LeeStott_34-1624630429944.png

 

 

Since MFCCs were a smaller representation and most commonly used in audio machine learning for speech and sound classification, we believed it would be a great place to start, and build a dataset on. We also built a dataset with Mel-spectrograms.

Machine Learning - Multi-layer perceptron (MLP)

The multi-layer perceptron is a common machine learning model used for things such as regression or classification, from our knowledge of machine learning we believed this network would not perform well due to its ‘global approach’ limitation, where all values are passed into the network at once. This will also have an extremely high complexity with the data representation of sounds we are using as we would have to flatten all the 3D arrays into a single 1D array and input all of this data at once.

Convolutional Neural Network (CNN)

CNNs are mainly applied to analyse visual 2D data therefore we do not have to flatten our data like we have to do with MLP. Using this you can classify an image to find whether or not a gunshot is present since is “scans through” the data and looks for patterns, in our case a gunshot pattern. We could use both MFCC or Mel-spectrograms to train this.


Recurrent Neural Network (RNN)

A recurrent neural network is a special type of network which can recognise sequencing, and therefore we believed it would work very well in order the detect gunshots. This is because a gunshot typically has an initial impulse and then a trailing echo, an RNN would be able to learn this impulse and trailing echo type scenario and output whether it was a gunshot or something else. This would be trained with MFCCs.


Object Detection

Although usually a larger architecture, object detection would work well in order to detect gunshots from Mel-Spectrograms due to a gunshots unique shape. This means that we can detect whether there is a gunshot present, but also how many gunshots are present as Object Detection won’t classify the entire image like a CNN would, it would classify regions of the image.


Implementation -The Dataset

The data we were given was a key factor and had a direct impact in which models worked for us and did not.

We were given thousands of hours of audio data, each file being 24 hours long. Since we were provided with ‘relative’ gunshot locations in audio clips, our dataset was very noisy, the time locations we were given usually contained a gunshot within 12 seconds of the given time, and sometimes contained multiple gunshots. Due to the lack of time on this project, it was not realistic to listen to all of the sound clips and manually relabel all our data by ear, also, gunshots are sometimes very hard to distinguish from other rainforests sounds by ear, and many of these other sounds were very new to us. This is why we took a 12 second window in our signal processing, to ensure all of our data contains the gunshot(s). Luckily, in our testing of different machine learning techniques, we found an approach to solve the problem of detecting gunshots in noisy data, as well as building a clean dataset for the future!


CNN with Mel-Spectrogram

Building a simple CNN with only a few convolutional layers, which a dense layer classifying whether there is a gunshot or not, worked quite well, with precision and recall above 80% on our validation sets! However, this method on noisy images did not work well, noisy images being a Mel-spectrogram with a lot of different sounds, such as below. Although it has an OK precision and recall, we cannot guarantee all the gunshots will be the only sounds occuring at once. Below you can see an example of a gunshot which can be detected using a CNN, and a gunshot that cannot be detected using a CNN.

 

LeeStott_36-1624630539338.jpeg

LeeStott_37-1624630548164.jpeg


CNN and RNN with MFCC

This method suffered a similar problem with noise as the CNN with Mel-Spectrogram did. However with a clean dataset, we think an RNN with MFCC would work extremely well!


Object Detection with Mel-Spectrogram

Object Detection won’t classify the entire image like a CNN would, it would classify regions of the image, and therefore it can ignore other sound events on a Mel-spectrogram. In our testing we found that object detection worked very well in detecting gunshots on a mel-spectrogram, and could even be trained to detect other sound events such as raindrops hitting the acoustic recorder, monkey alarm calls and thunder!

 

What this allowed us to do was to also get the exact start and end times of gunshots, and hence automatically building a clean dataset that can be used to train networks in the future with much cleaner data that contains the exact location of these sound events! This method also allowed us to count the gunshots by seeing how many were detected in the 12s window, as you can see below.

 

LeeStott_38-1624630576706.png

 

Build - Use of cloud technology

In this project, the use of cloud technology allowed us to speed up many processes, such as building the dataset. We used Microsoft Azure to store our thousands of hours of sound files, and Azure Machine Learning Services to train some of our models, pre-process our data and build our dataset!


Storage

In order to store all of our sound files, we used blob storages on Azure. This meant that we could import these large 24 hour audio files into Azure Machine Learning Services for building our dataset. Azure Machine Learning Services allowed us to create IPYNB notebooks to run our scripts to find the gunshots in the files, extract them and build our dataset.

 

LeeStott_39-1624630630033.png

 

Data labelling

Azure ML also provided us with a Data Labelling service where we could label our Mel-spectrograms for gunshots and build our dataset to train our object detection models. These object detection models (Yolov4 and Faster R-CNN ) use XML files in training, Azure ML studio allows us to export our labelled data in a COCO format in a JSON file. The conversion from COCO to the XML format we needed to train our models was done with ease.

 

LeeStott_40-1624630669100.png

 

Custom Vision

The Custom Vision model is the simplest model of the three to train. We did this by using Azure Custom Vision, it allowed us to upload images, label the images and train models with no code at all!

Custom Vision is a part of the Azure Cognitive Services provided by Microsoft which is used for training different machine learning models in order to perform image classification and object detection. This service provides us with an efficient method of labelling our sound events (“the objects”) for training models that can detect gunshot sound events in a spectrogram.

 

LeeStott_41-1624630685350.png

 

First, we have to upload a set of images which will represent our dataset and tag them by creating a bounding box around the sound event (“around the object”). Once the labelling is done, the dataset is used for training. The model will be trained in the cloud so no coding is needed in the training process. The only feature that we have to adjust when we train the model is the time spent on training. A longer time budget allowed means better learning. However, when the model cannot be improved anymore, the training will stop even if assigned a longer time.

 

LeeStott_42-1624630697977.png

 

 

 

 

 

The service provides us with some charts for the model’s precision and recall. By adjusting the probability threshold and the overlap threshold of our model we can see how the precision and recall changes. This is helpful when trying to find the optimal probability threshold for detecting the gunshots.

The final model can be exported for many uses, in many formats. We use the Tensorflow model. The system contains two python files for object detection, a pb file that contains the model, a json file with metadata properties and some txt files. We adapted the system from the standard package provided. The sound files are preprocessed inside the predict.py file and it extracts the audio files from the sounds folder and it exports labelled pictures with the identified gunshots in cache/images folder. It then does inference on the spectrogram to detect gunshots. Once all the soundfiles have been checked a CSV is generated with the start and end times of the gunshots detected within the audio.


Yolov4 Introduction

The full name of YOLOV4 is YOU ONLY LOOK ONCE. It is an object detector which consists of a bunch of deep learning techniques and completely based on Convolutional Neural Network(CNN). The primary advantages of YOLOv4 compared to the other object detector are the fast speed and relatively high precision.

The objective of Microsoft project 15 is detecting the gunshots in forest. The conventional audio classification method is not effective and efficient on this project, because the labelling of true locations of gunshots in training set is inaccurate. Therefore, we start to consider computer vision method, like YOLOV4, to do the detection. Firstly, the raw audio files are converted into thousands of 12 seconds clips and represented in Mel-spectrum. After that, according to the information of true locations of gunshots, the images that contain the gunshots are picked out and construct training data set. These pre-processing steps are the same with the other techniques used to do the detection for project 15 and you can find the detailed explanations from https://r15hil.github.io/ICL-Project15-ELP/.

 

In this project, YOLOV4 can be trained and deployed on NVIDIA GeForce GTX 1060 GPU and the training time is approximately one hour.


Implementation

1. Load Training Data

In order to train the model, the first step we need to do is loading the training data in yolov4-keras-master\VOCdevkit\VOC2007\Annotations. The data has to be in XML form and includes the information about the type of the object and the position of the bounding box.

Then run voc_annotations file to save the information of training data into a .txt file. Remember to modify the classes list in line 14 before operating the file.

 

LeeStott_43-1624630748339.jpeg

 

2. Train the Model

The train.py file is used to train the model. Before running the file, make sure the following file paths are correct.

 

LeeStott_44-1624630756531.jpeg

 

3. Test

For more detailed testing tutorial, follow How to run


More Explanations

The idea of using YOLOV4 is after training and testing Faster R-CNN method. Faster R-CNN model achieves 95%-98% precision on gunshot detection which is extraordinarily improved compared to the current detector. The training data for YOLOV4 model is totally same with that used in the Faster R-CNN model. Therefore, in this document, the detection results of YOLOV4 will not be the main points to talk about. Briefly speaking, the YOLOV4 can achieve 85% precision but detect the events with lower probability than Faster R-CNN .

 

LeeStott_45-1624630781343.pngLeeStott_46-1624630794474.png

 

 

The reason why we still build YOLOV4 model is that it can make our clients to have diversified options and choose the most appropriate proposal in the real application condition. Even though Faster R-CNN model has the best detection performance, the disadvantage is obvious which is its operation time. In the case of similar GPU, the Faster R-CNN needs 100 minutes to process 24 hours audio file while YOLOV4 only takes 44 minutes to do the same work.

Faster R-CNN - Introduction

 
 

gunshot.png

 

Figure1. Gunshot and some example sounds that cause errors for the current detectors

The Faster R-CNN code provided above is used to tackle the gunshot detection problem of Microsoft project 15. (see Project 15 and Documentation). The gunshot detection is solved by object detection method instead of any audio classification network method under certain conditions.

  1. The Limited number of forest gunshot datasets given with random labeled true location, which generally require 12s to involve single or multi gunshot in the extracted sound clip. The random label means that the true location provided is not the exact location of the start of the gunshot. Gunshot may happen after the given true location in the range of one to twelve 12 seconds. The number of gunshots after true location also ranging from single gunshots over to 30 gunshots.
  2. We do not have enough time for manually relabelling the audio dataset and limited knowledge to identify gunshots from any other similar sounds in the forest. In some case, even gunshot expert find difficulty to identify gunshot from those similar forest sound. e.g., tree branch.
  3. Forest gunshots shoot at different angles and may shoot from miles. Online gunshot dataset would not implement to this task directly.
  4. Current detector used in the forest has only 0.5% precision. It will peak up sound like raindrop and thunder shown in Figure1. Detection needs long manual post-processing time. Hence, the given audio dataset would be limited and involve mistakes.

The above conditions challenge audio classification methods like MFCC with CNN. Hence, the objection detection method provides an easier approach under a limited time. Object detection provides faster labeling through Mel-spectrum images, which are shown above. Mel spectrum also provides an easy path to identify gunshots without the specialty of gunshot audio sound. The Faster R-CNN model provides high precision 95%-98% on gunshot detection. The detection bounding box can also be used to re-calculate both the start and end times of the gunshot. This reduces manual post-processing time from 20 days to less than an hour. A more standard dataset also be generated for any audio classification algorithm in future development.


Set up

tensorflow 1.13-gpu (CUDA 10.0)
keras 2.1.5
h5py 2.10.0
pre-trained model ‘retrain.hdf5’ can be download from here.

The more detailed tutorial on setting up can be found here.


Pre-trained model

The latest model is trained under a multi-classes dataset including AK-47 gunshot, shotgun, monkey, thunder, and hn, where hn represent hard negative. Hard negatives are high-frequency mistakes made by the current detector, which are mostly peak without an echo shape spectrum. For example, any sounds have the shape of the raindrop (just peak without echo) but can be appeared in the different frequency domain with a raindrop. The initial model is only trained with gunshot and hn datasets due to the limited given manual dataset. Then the network test under a low threshold value, e.g.0.6, to obtain more false positive datasets or true gunshot among thousand hours forest sound file testing. The model will then use those hard negatives to re-train. This technic also calls hard mining. The following images Figure.2 show three hard negative datasets (monkey, thunder, hn) used to train the lastest model.

 

Typesofsounds.png

 

 Figure2. three type of hard negative enter into training

The model also provides classification between different gunshot which are AK-47 and shotgun shown in Figure3. 

 

 

 Figure3. Mel-spectrum image of AK-47 and shotgun


Result

The following testing result shown in Table1 is based on the experiment on over 400 hours of forest sound clips given by our clients. The more detailed information on other models except Faster R-CNN can be found in https://r15hil.github.io/ICL-Project15-ELP/.

Model name current template detector custom AI(Microsoft) YOLOV4 Faster R-CNN
Gunshot dectection precision 0.5% 60% 85% 95%

Table1. testing result from different models

 

The model also generates a CSV file shown in Figure4. It includes the file name, label, offset, start time, and end time. The offset is the left end axis of the Mel-spectrum, where each Mel-spectrum is conducted from 12s sound clips. The start time and end time can then calculated using the offset and the detection bounding coordinate. Therefore, this CSV file would provide a more standard dataset, where the true location will more likely sit just before the gunshot happen. Each cutting sound clip is likely to include a single gunshot. Therefore, this dataset would involve less noise and wrong labeling. It will benefit future development on any audio classification method.

 
 

LeeStott_8-1624629574253.png

Figure4. example of csv file for gunshot labelling


Current model weaknesses and Future development

The number of the hard negative dataset is still limited after 400 hours of sound clip testing. Hard negatives like the bee and strong thunder sound(shown in Figure5) are the main predicted errors for the current model. To improve the model further, it should find more hard negatives using a lower threshold of the network through thousands of hours of sound clip testing. Then, the obtained hard negative dataset can be used to re-train and improve the model. However, the current model can avoid those false positives by setting around a 0.98 threshold value, but it will reduce the recall rate by 5-10%. The missing gunshots are mainly long-distance gunshots. This is also caused by very limited long-distance gunshots provided in the training dataset.

 

thunderbee.png

Figure5. Mel-spectrum image of the strong thunder and bee


Reference

https://github.com/yhenon/keras-rcnn


Results

Model name current template detector custom AI(Microsoft) YOLOV4 Faster R-CNN
Gunshot dectection precision 0.5% 60% 85% 95%

Table1. testing result from different models

 

testing.png

 

What we learnt 

Throughout this capstone project we learnt a wide range of things, not only to do with technologies but also the importance and safety of forest elephants, and how big of an impact they have on rainforests.  

 

Poaching these elephants means that there is a reduce in the amount of seed dispersion, essentially preventing the diverse nature of rainforests and the spread of fruits and plants across the forest in which many animals depend on. 

 

“Without intervention to stop poaching, as much as 96 percent of Central Africa’s forests will undergo major changes in tree-species composition and structure as local populations of elephants are extirpated, and surviving populations are crowded into ever-smaller forest remnants,” explained John Poulson from Duke University’s Nicholas School of the Environment. 

 

In terms of technologies, we learnt a lot about signal processing through MFCCs and mel-spectrograms; how to train and use different object detection models; feature extraction from data; how to use Azure ML studio and blob storage. 

 

Above all, we learnt that in projects with a set goal, there will always be obstacles but tackling those obstacles is really when your creative and innovative ideas come to life. 

 

For full documentation and code visit https://r15hil.github.io/ICL-Project15-ELP/ 

 
Learning Resources 

Classify endangered bird species with Custom Vision - Learn | Microsoft Docs
Classify images with the Custom Vision service - Learn | Microsoft Docs
Build a Web App with Refreshable Machine Learning Models - Learn | Microsoft Docs
Explore computer vision in Microsoft Azure - Learn | Microsoft Docs
Introduction to Computer Vision with PyTorch - Learn | Microsoft Docs
Train and evaluate deep learning models - Learn | Microsoft Docs
PyTorch Fundamentals - Learn | Microsoft Docs

%3CLINGO-SUB%20id%3D%22lingo-sub-2485639%22%20slang%3D%22en-US%22%3EMicrosoft%20Project%2015%20Elephant%20Listening%20Project%20at%20Imperial%20College%20London%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2485639%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_6-1624628904190.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291356i42439585D512A42E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_6-1624628904190.png%22%20alt%3D%22LeeStott_6-1624628904190.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGuest%20blog%20by%20Electronic%20and%20Information%20Engineering%20Project%20team%20at%20Imperial%20College.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--435531361%22%20id%3D%22toc-hId--435531361%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%3CSTRONG%3EIntroduction%20%3C%2FSTRONG%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWe%20are%20a%20group%20of%20students%20studying%20engineering%20at%20Imperial%20College%20London!%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Frishilppatel%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ERishil%20Patel%20%E2%80%93%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3EElectronic%20and%20Information%20Engineering%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fjiaming-huang-04145b216%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EJiaming%20Huang%20%E2%80%93%20Electrical%20and%20Electronic%20Engineering%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EYiming%20Zhou%20%E2%80%93%20Electrical%20and%20Electronic%20Engineering%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fionut-catalin-craciun-ba611a183%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3ECatalin%20Craciun%20%E2%80%93%20Electrical%20and%20Electronic%20Engineering%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20data-leveltext%3D%22%EF%82%B7%22%20data-font%3D%22Symbol%22%20data-listid%3D%221%22%20aria-setsize%3D%22-1%22%20data-aria-posinset%3D%221%22%20data-aria-level%3D%221%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fhamzamarrakchi%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EHamza%20Marrakchi%20%E2%80%93%20Electrical%20and%20Electronic%20Engineering%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-2051981472%22%20id%3D%22toc-hId-2051981472%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3CBR%20%2F%3ETeams%20Project%20Repo%20and%20Resources%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFor%20a%20full%20breakdown%20of%20our%20project%20see%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-244527009%22%20id%3D%22toc-hId-244527009%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3CBR%20%2F%3EProject%20context%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ELP.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291359i3FAC507894F99A47%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ELP.png%22%20alt%3D%22ELP.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThe%20Elephant%20Listening%20Project%20(ELP)%20began%20in%202000%2C%20our%20client%20Peter%20Howard%26nbsp%3BWrege%26nbsp%3Btook%20over%20in%202007%20as%20director%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Felephantlisteningproject.org%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ehttps%3A%2F%2Felephantlisteningproject.org%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-contrast%3D%22auto%22%3E.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EELP%20focuses%20on%20helping%20protect%20one%20of%20three%20types%20of%20elephants%2C%20the%20forest%20elephant%20which%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3Ehas%20a%20unique%20lifestyle%20and%20is%20adapted%20to%20living%20in%20dense%20vegetation%20such%20as%20the%20forest.%20They%20depend%20on%20fruits%20found%20in%20the%20forest%20and%20are%20known%20as%20the%20architect%20of%20the%20rainforest%20since%20they%20disperse%20seeds%20all%20around%20the%20forest.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3ESince%20they%20spend%20their%20time%20in%20the%20forest%20it%20is%20extremely%20hard%20to%20track%20them%20since%20the%20canopy%20of%20the%20rainforest%20is%20so%20thick%2C%20you%20cannot%20see%20the%20forest%20floor%2C%20so%20ELP%20use%20an%20acoustic%20recorder%20to%20record%20vocalisations%20of%20the%20elephants%20to%20track%20them.%20Currently%20they%20have%20put%20one%20acoustic%20recorder%20per%2025%20square%26nbsp%3Bkilometre.%20These%20devices%20can%20detect%20elephant%20calls%20in%20a%201km%20radius%20and%20gunshots%202-2.5km%20radius%20around%20each%20recording%20site.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3BCurrently%20the%20recordings%20are%20recorded%20to%20an%20SD%20card%2C%20and%20then%20collection%20from%20all%20the%20sites%20takes%20a%20total%20of%2021%20days%20in%20the%20forest.%20This%20happens%20every%204%20months.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EOnce%20all%20the%20data%20is%20collected%20it%20goes%20through%20a%20simple%20%E2%80%98template%20detector%E2%80%99%20which%20has%207%20examples%20of%20gunshot%20sounds%2C%20cross%20correlation%20analysis%20is%20carried%20out%2C%20locations%20in%20the%20audio%20file%20with%20a%20high%20correlation%20get%20flagged%20as%20a%20gunshot.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThe%20problem%20with%20the%20simple%20cross%20correlation%20method%20is%20that%20it%20produces%20an%20extremely%20large%26nbsp%3Bamount%26nbsp%3Bof%20false%20positives%2C%20such%20as%20tree%20branch%20falls%20and%20even%20things%20as%20simple%20as%20raindrops%20hitting%20the%20recording%20device.%20This%20means%20that%20there%20is%20a%26nbsp%3B15-20%20day%26nbsp%3Banalysis%20effort%2C%20however%20it%26nbsp%3Bis%20predicted%20that%20with%20a%20better%20detector%2C%20this%20analysis%20effort%20can%20be%20cut%20down%20to%20a%202-3%20day%20effort!%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ECurrently%20the%20detector%20has%20an%20extremely%20high%20recall%2C%20but%20a%20very%20bad%20precision%20(0.5%25!!!).%20The%20ideal%20scenario%20would%20be%20to%20improve%20the%20precision%2C%26nbsp%3Bin%20order%20to%26nbsp%3Bremove%20these%20false%20positives%20and%20make%20sure%20that%20when%20a%20gunshot%20is%20detected%2C%20the%20gunshot%20is%20in%20fact%20a%20gunshot%20(high%20precision).%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThe%20expectation%20is%20to%20have%20a%20much%20better%20detector%20than%20the%20one%20in%20place%2C%20that%20can%20detect%20gunshots%20to%20a%20very%20high%20precision%20with%20a%20reasonable%20accuracy.%20Distinguishing%20between%20automatic%20weapons%20(eg%26nbsp%3BAK-47)%20and%20shotguns%20is%20also%20important%2C%20since%20automatic%20weapons%20are%20usually%20used%20to%20poach%20elephants.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22none%22%3EThis%20is%20an%20important%20first%20step%20to%20real%20time%20detection.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1562927454%22%20id%3D%22toc-hId--1562927454%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EKey%20Challenges%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThe%20dataset%20we%20had%20was%20very%20varied%20and%20sometimes%20noisy!%20It%20consisted%20of%26nbsp%3Bthousands%20of%20hours%20of%20audio%20recordings%20of%20the%20rainforest%20and%20a%20spreadsheet%20of%20the%20gunshots%20located%20in%20the%20files.%20The%20gunshots%20we%20were%20given%20varied%2C%20some%20close%20to%20the%20recorder%20and%20some%20far%2C%20sometimes%20multiple%20shots%20and%20sometimes%20single%20shots.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EA%20lot%20of%20sounds%20in%20the%20rainforest%20sound%20like%20gunshots%2C%26nbsp%3Bbut%20it%20is%20relatively%20easier%26nbsp%3Bdistinguishing%26nbsp%3Bthem%20using%26nbsp%3Ba%26nbsp%3Bfrequency%20representation%26nbsp%3Bwhich%20brought%20us%20onto%20our%20initial%20approach.%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-924585379%22%20id%3D%22toc-hId-924585379%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EApproach(es)%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EOur%20first%26nbsp%3Bapproach%20was%26nbsp%3Bto%20use%20convolutional%20neural%20network%20known%20as%20CNN.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWe%20trained%20this%20using%20a%20method%20called%26nbsp%3Bmel-frequency%26nbsp%3Bcepstrum%26nbsp%3Bcoefficients%20known%20as%20MFCCs.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_1-1624628796301.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291349i3B13B536495BB4E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_1-1624628796301.png%22%20alt%3D%22LeeStott_1-1624628796301.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThis%20MFCC%20method%20is%20a%26nbsp%3Bwell%20known%26nbsp%3Bway%20to%20tackle%20audio%20machine%20learning%20classification.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EMFCC%20extracts%20features%20from%20frequency%2C%26nbsp%3Bamplitude%26nbsp%3Band%26nbsp%3Bthe%26nbsp%3Btime%20component.%20However%2C%20MFCCs%26nbsp%3Bare%26nbsp%3Bvery%20sensitive%20to%20noise%2C%20and%20because%20the%20rainforest%20contains%20various%20sounds%2C%26nbsp%3Btesting%20it%20on%26nbsp%3B24%20hour%26nbsp%3Bsound%20clips%20did%20not%20work.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3E%26nbsp%3BThe%20reason%20it%26nbsp%3Bdidn%E2%80%99t%26nbsp%3Bwork%20is%20because%26nbsp%3Bour%20data%20of%20the%26nbsp%3Bgunshots%20to%20train%20our%20model%26nbsp%3Balso%20included%20other%20sounds%20(noise)%2C%20which%20meant%26nbsp%3Bthat%20our%20machine%20learning%20model%20learnt%20to%20recognise%20random%20forest%20background%20noises%20instead%20of%20gunshots.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-contrast%3D%22auto%22%3EDue%20to%20a%20lack%20of%20time%20and%20knowledge%20on%20identifying%20gunshot%2C%26nbsp%3Bchecking%20and%26nbsp%3Brelabelling%20all%20of%20our%20dataset%20manually%26nbsp%3Bso%20that%20it%20only%26nbsp%3Bclean%26nbsp%3Bgunshots%20was%20not%20viable.%26nbsp%3BHence%2C%20we%20decided%20to%20use%20a%20computer%20vision%20method%20as%20a%20second%26nbsp%3Bapproach.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWe%20focused%20on%20labelling%20gunshots%20on%20a%20visual%20representation%20of%20sound%20called%20the%26nbsp%3Bmel-spectrogram%20which%20allows%20us%20to%20ignore%20the%20noise%26nbsp%3Bother%20parts%20of%20the%20audio%20clip%20which%20would%20be%20noise%2C%20and%20specifically%20focus%20on%20the%20gunshot.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_2-1624628796307.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291351i9CFE67EB86A54DCC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_2-1624628796307.png%22%20alt%3D%22LeeStott_2-1624628796307.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ELabelling%20our%20data%20was%20extremely%20easy%20for%20our%20computer%20vision%20(object%20detection)%20model.%20We%20used%20the%26nbsp%3BData%20Labelling%26nbsp%3Bservice%20on%20Azure%20Machine%20Learning%20where%20we%20could%20label%20our%26nbsp%3Bmel-spectrograms%20for%20gunshots%20and%20build%20our%20dataset%20to%20train%20our%20object%20detection%20models.%20These%20object%20detection%20models%20(%3CA%20href%3D%22https%3A%2F%2Fpypi.org%2Fproject%2Fyolov4%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EYolov4%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Ftowardsdatascience.com%2Fr-cnn-fast-r-cnn-faster-r-cnn-yolo-object-detection-algorithms-36d53571365e%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFaster%20R-CNN%3C%2FA%3E%20)%26nbsp%3Buse%20XML%20files%20in%20training%2C%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fservices%2Fmachine-learning%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Machine%20Learning%3C%2FA%3E%20allowed%26nbsp%3Bus%20to%20export%20our%20labelled%20data%20in%20a%20COCO%20format%20in%20a%20JSON%20file.%20The%20conversion%20from%20COCO%20to%20the%20XML%20format%20we%20needed%20to%20train%20our%20models%20was%20done%20with%20ease.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWith%20the%20new%20object%20detectors%2C%20we%20were%20able%20to%20find%20the%20exact%20start%20and%20end%20times%20of%20gunshots%20and%20save%20it%20to%20a%20spreadsheet!%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_8-1624629574253.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291361iCB5B93896DE181E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_8-1624629574253.png%22%20alt%3D%22LeeStott_8-1624629574253.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_9-1624629596395.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291362i3AFDBAE0F5635248%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_9-1624629596395.png%22%20alt%3D%22LeeStott_9-1624629596395.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThis%20is%20extremely%20significant%20because%20essentially%20what%20our%20system%20is%20doing%20is%20not%20only%20detecting%20gunshots%2C%20but%20generating%20clean%20and%20labelled%20data%20of%20gunshots%2C%20and%20with%20this%20data%20more%20standard%20methods%20of%20machine%20learning%20for%20audio%20methods%20can%20be%20used%2C%20such%20as%20MFCC.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3ETo%20expand%20on%20this%2C%20we%20also%20found%20that%20our%20detector%20was%20picking%20up%20%E2%80%9Cgunshot%20like%E2%80%9D%20sound%20events%20such%20as%20thunder%2C%20monkey%20alarm%20calls%20and%20raindrops%20hitting%20the%20detector%20(%E2%80%98hn%E2%80%99%20in%20the%20image%20below).%20This%20meant%20that%20we%20could%20use%20that%20data%20to%20train%20our%20model%20further%2C%20to%20say%20%E2%80%98that%20is%20not%20a%20gunshot%2C%20it%20is%20a%E2%80%A6%E2%80%99%2C%20training%20for%20the%20other%20sound%20events%20to%20be%20detected%20too.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_10-1624629621322.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291363i429F85F50A23FE11%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_10-1624629621322.png%22%20alt%3D%22LeeStott_10-1624629621322.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22design-history%22%20id%3D%22toc-hId--882869084%22%20id%3D%22toc-hId--882869084%22%3EOur%20Design%20History%20-%26nbsp%3BOverview%3C%2FH2%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_11%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_33-1624630391244.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291365i040B1F0D150786D7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_33-1624630391244.png%22%20alt%3D%22LeeStott_33-1624630391244.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22concept%22%20id%3D%22toc-hId-1604643749%22%20id%3D%22toc-hId-1604643749%22%3EConcept%3C%2FH2%3E%0A%3CP%3EThe%20concept%20of%20our%20system%20was%20to%20train%20a%20machine%20learning%20model%20in%20order%20to%20classify%20sound.%20A%20sound%20classification%20model%20would%20be%20to%20detect%20whether%20or%20not%20there%20was%20a%20gunshot.%3C%2FP%3E%0A%3CH2%20id%3D%22signal-processing%22%20id%3D%22toc-hId--202810714%22%20id%3D%22toc-hId--202810714%22%3E%3CBR%20%2F%3ESignal%20Processing%3C%2FH2%3E%0A%3CP%3ETrying%20to%20detect%20gunshots%20directly%20from%20sound%20waveform%20is%20hard%20because%20it%20does%20not%20give%20you%20much%20information%20to%20work%20with%2C%20only%20amplitude.%20Hence%2C%20we%20needed%20to%20do%20some%20signal%20processing%20to%20extract%20some%20features%20from%20the%20sound.%3C%2FP%3E%0A%3CP%3EInitially%20we%20began%20research%20by%20reading%20papers%20and%20watching%20video%20lectures%20in%20signal%20processing.%20All%20sources%20of%20research%20we%20used%20can%20be%20found%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2Fcoderesources.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%E2%80%9CCode%20and%20resources%20used%E2%80%9D%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EWhat%20we%20found%20were%20two%20common%20signal%20processing%20techniques%20in%20order%20to%20analyse%20sound%2C%20the%20Mel-Frequency%20Cepstrum%20Coefficients%20(MFCCs%2C%20on%20the%20left%20below)%20and%20the%20Mel-Spectrogram%20(on%20the%20right%20below).%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_12%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_35-1624630466049.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291367i65F8CA5C8276813F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_35-1624630466049.png%22%20alt%3D%22LeeStott_35-1624630466049.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_34-1624630429944.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291366i455639036CB1F20A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_34-1624630429944.png%22%20alt%3D%22LeeStott_34-1624630429944.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20MFCCs%20were%20a%20smaller%20representation%20and%20most%20commonly%20used%20in%20audio%20machine%20learning%20for%20speech%20and%20sound%20classification%2C%20we%20believed%20it%20would%20be%20a%20great%20place%20to%20start%2C%20and%20build%20a%20dataset%20on.%20We%20also%20built%20a%20dataset%20with%20Mel-spectrograms.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CH2%20id%3D%22machine-learning%22%20id%3D%22toc-hId--2010265177%22%20id%3D%22toc-hId--2010265177%22%3EMachine%20Learning%20-%20Multi-layer%20perceptron%20(MLP)%3C%2FH2%3E%0A%3CP%3EThe%20multi-layer%20perceptron%20is%20a%20common%20machine%20learning%20model%20used%20for%20things%20such%20as%20regression%20or%20classification%2C%20from%20our%20knowledge%20of%20machine%20learning%20we%20believed%20this%20network%20would%20not%20perform%20well%20due%20to%20its%20%E2%80%98global%20approach%E2%80%99%20limitation%2C%20where%20all%20values%20are%20passed%20into%20the%20network%20at%20once.%20This%20will%20also%20have%20an%20extremely%20high%20complexity%20with%20the%20data%20representation%20of%20sounds%20we%20are%20using%20as%20we%20would%20have%20to%20flatten%20all%20the%203D%20arrays%20into%20a%20single%201D%20array%20and%20input%20all%20of%20this%20data%20at%20once.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CH2%20id%3D%22convolutional-neural-network-cnn%22%20id%3D%22toc-hId-477247656%22%20id%3D%22toc-hId-477247656%22%3EConvolutional%20Neural%20Network%20(CNN)%3C%2FH2%3E%0A%3CP%3ECNNs%20are%20mainly%20applied%20to%20analyse%20visual%202D%20data%20therefore%20we%20do%20not%20have%20to%20flatten%20our%20data%20like%20we%20have%20to%20do%20with%20MLP.%20Using%20this%20you%20can%20classify%20an%20image%20to%20find%20whether%20or%20not%20a%20gunshot%20is%20present%20since%20is%20%E2%80%9Cscans%20through%E2%80%9D%20the%20data%20and%20looks%20for%20patterns%2C%20in%20our%20case%20a%20gunshot%20pattern.%20We%20could%20use%20both%20MFCC%20or%20Mel-spectrograms%20to%20train%20this.%3C%2FP%3E%0A%3CH2%20id%3D%22recurrent-neural-network-rnn%22%20id%3D%22toc-hId-343562932%22%20id%3D%22toc-hId-343562932%22%3E%3CBR%20%2F%3ERecurrent%20Neural%20Network%20(RNN)%3C%2FH2%3E%0A%3CP%3EA%20recurrent%20neural%20network%20is%20a%20special%20type%20of%20network%20which%20can%20recognise%20sequencing%2C%20and%20therefore%20we%20believed%20it%20would%20work%20very%20well%20in%20order%20the%20detect%20gunshots.%20This%20is%20because%20a%20gunshot%20typically%20has%20an%20initial%20impulse%20and%20then%20a%20trailing%20echo%2C%20an%20RNN%20would%20be%20able%20to%20learn%20this%20impulse%20and%20trailing%20echo%20type%20scenario%20and%20output%20whether%20it%20was%20a%20gunshot%20or%20something%20else.%20This%20would%20be%20trained%20with%20MFCCs.%3C%2FP%3E%0A%3CH2%20id%3D%22object-detection%22%20id%3D%22toc-hId--1463891531%22%20id%3D%22toc-hId--1463891531%22%3E%3CBR%20%2F%3EObject%20Detection%3C%2FH2%3E%0A%3CP%3EAlthough%20usually%20a%20larger%20architecture%2C%20object%20detection%20would%20work%20well%20in%20order%20to%20detect%20gunshots%20from%20Mel-Spectrograms%20due%20to%20a%20gunshots%20unique%20shape.%20This%20means%20that%20we%20can%20detect%20whether%20there%20is%20a%20gunshot%20present%2C%20but%20also%20how%20many%20gunshots%20are%20present%20as%20Object%20Detection%20won%E2%80%99t%20classify%20the%20entire%20image%20like%20a%20CNN%20would%2C%20it%20would%20classify%20regions%20of%20the%20image.%3C%2FP%3E%0A%3CH2%20id%3D%22implementation%22%20id%3D%22toc-hId-1023621302%22%20id%3D%22toc-hId-1023621302%22%3E%3CBR%20%2F%3EImplementation%20-The%20Dataset%3C%2FH2%3E%0A%3CP%3E%3CSTRONG%3EThe%20data%20we%20were%20given%20was%20a%20key%20factor%20and%20had%20a%20direct%20impact%20in%20which%20models%20worked%20for%20us%20and%20did%20not.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20were%20given%20thousands%20of%20hours%20of%20audio%20data%2C%20each%20file%20being%2024%20hours%20long.%20Since%20we%20were%20provided%20with%20%E2%80%98relative%E2%80%99%20gunshot%20locations%20in%20audio%20clips%2C%20our%20dataset%20was%20very%20noisy%2C%20the%20time%20locations%20we%20were%20given%20usually%20contained%20a%20gunshot%20within%2012%20seconds%20of%20the%20given%20time%2C%20and%20sometimes%20contained%20multiple%20gunshots.%20Due%20to%20the%20lack%20of%20time%20on%20this%20project%2C%20it%20was%20not%20realistic%20to%20listen%20to%20all%20of%20the%20sound%20clips%20and%20manually%20relabel%20all%20our%20data%20by%20ear%2C%20also%2C%20gunshots%20are%20sometimes%20very%20hard%20to%20distinguish%20from%20other%20rainforests%20sounds%20by%20ear%2C%20and%20many%20of%20these%20other%20sounds%20were%20very%20new%20to%20us.%20This%20is%20why%20we%20took%20a%2012%20second%20window%20in%20our%20signal%20processing%2C%20to%20ensure%20all%20of%20our%20data%20contains%20the%20gunshot(s).%20Luckily%2C%20in%20our%20testing%20of%20different%20machine%20learning%20techniques%2C%20we%20found%20an%20approach%20to%20solve%20the%20problem%20of%20detecting%20gunshots%20in%20noisy%20data%2C%20as%20well%20as%20building%20a%20clean%20dataset%20for%20the%20future!%3C%2FP%3E%0A%3CH2%20id%3D%22cnn-with-mel-spectrogram%22%20id%3D%22toc-hId--783833161%22%20id%3D%22toc-hId--783833161%22%3E%3CBR%20%2F%3ECNN%20with%20Mel-Spectrogram%3C%2FH2%3E%0A%3CP%3EBuilding%20a%20simple%20CNN%20with%20only%20a%20few%20convolutional%20layers%2C%20which%20a%20dense%20layer%20classifying%20whether%20there%20is%20a%20gunshot%20or%20not%2C%20worked%20quite%20well%2C%20with%20precision%20and%20recall%20above%2080%25%20on%20our%20validation%20sets!%20However%2C%20this%20method%20on%20noisy%20images%20did%20not%20work%20well%2C%20noisy%20images%20being%20a%20Mel-spectrogram%20with%20a%20lot%20of%20different%20sounds%2C%20such%20as%20below.%20Although%20it%20has%20an%20OK%20precision%20and%20recall%2C%20we%20cannot%20guarantee%20all%20the%20gunshots%20will%20be%20the%20only%20sounds%20occuring%20at%20once.%20Below%20you%20can%20see%20an%20example%20of%20a%20gunshot%20which%20can%20be%20detected%20using%20a%20CNN%2C%20and%20a%20gunshot%20that%20cannot%20be%20detected%20using%20a%20CNN.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_14%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_36-1624630539338.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291368i9829C2E287BEEF14%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_36-1624630539338.jpeg%22%20alt%3D%22LeeStott_36-1624630539338.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_37-1624630548164.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291369iA1D181ED45599787%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_37-1624630548164.jpeg%22%20alt%3D%22LeeStott_37-1624630548164.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22cnn-and-rnn-with-mfcc%22%20id%3D%22toc-hId-1703679672%22%20id%3D%22toc-hId-1703679672%22%3E%3CBR%20%2F%3ECNN%20and%20RNN%20with%20MFCC%3C%2FH2%3E%0A%3CP%3EThis%20method%20suffered%20a%20similar%20problem%20with%20noise%20as%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2Fdesignhistory.html%23CNN-with-Mel-Spectrogram%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECNN%20with%20Mel-Spectrogram%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Edid.%20However%20with%20a%20clean%20dataset%2C%20we%20think%20an%20RNN%20with%20MFCC%20would%20work%20extremely%20well!%3C%2FP%3E%0A%3CH2%20id%3D%22object-detection-with-mel-spectrogram%22%20id%3D%22toc-hId--103774791%22%20id%3D%22toc-hId--103774791%22%3E%3CBR%20%2F%3EObject%20Detection%20with%20Mel-Spectrogram%3C%2FH2%3E%0A%3CP%3EObject%20Detection%20won%E2%80%99t%20classify%20the%20entire%20image%20like%20a%20CNN%20would%2C%20it%20would%20classify%20regions%20of%20the%20image%2C%20and%20therefore%20it%20can%20ignore%20other%20sound%20events%20on%20a%20Mel-spectrogram.%20In%20our%20testing%20we%20found%20that%20object%20detection%20worked%20very%20well%20in%20detecting%20gunshots%20on%20a%20mel-spectrogram%2C%20and%20could%20even%20be%20trained%20to%20detect%20other%20sound%20events%20such%20as%20raindrops%20hitting%20the%20acoustic%20recorder%2C%20monkey%20alarm%20calls%20and%20thunder!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhat%20this%20allowed%20us%20to%20do%20was%20to%20also%20get%20the%20exact%20start%20and%20end%20times%20of%20gunshots%2C%20and%20hence%20automatically%20building%20a%20clean%20dataset%20that%20can%20be%20used%20to%20train%20networks%20in%20the%20future%20with%20much%20cleaner%20data%20that%20contains%20the%20exact%20location%20of%20these%20sound%20events!%20This%20method%20also%20allowed%20us%20to%20count%20the%20gunshots%20by%20seeing%20how%20many%20were%20detected%20in%20the%2012s%20window%2C%20as%20you%20can%20see%20below.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_16%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_38-1624630576706.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291370i69C67E15515DEF51%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_38-1624630576706.png%22%20alt%3D%22LeeStott_38-1624630576706.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22build%22%20id%3D%22toc-hId--1911229254%22%20id%3D%22toc-hId--1911229254%22%3EBuild%20-%20Use%20of%20cloud%20technology%3C%2FH2%3E%0A%3CP%3EIn%20this%20project%2C%20the%20use%20of%20cloud%20technology%20allowed%20us%20to%20speed%20up%20many%20processes%2C%20such%20as%20building%20the%20dataset.%20We%20used%20Microsoft%20Azure%20to%20store%20our%20thousands%20of%20hours%20of%20sound%20files%2C%20and%20Azure%20Machine%20Learning%20Services%20to%20train%20some%20of%20our%20models%2C%20pre-process%20our%20data%20and%20build%20our%20dataset!%3C%2FP%3E%0A%3CH2%20id%3D%22storage%22%20id%3D%22toc-hId-576283579%22%20id%3D%22toc-hId-576283579%22%3E%3CBR%20%2F%3EStorage%3C%2FH2%3E%0A%3CP%3EIn%20order%20to%20store%20all%20of%20our%20sound%20files%2C%20we%20used%20blob%20storages%20on%20Azure.%20This%20meant%20that%20we%20could%20import%20these%20large%2024%20hour%20audio%20files%20into%20Azure%20Machine%20Learning%20Services%20for%20building%20our%20dataset.%20Azure%20Machine%20Learning%20Services%20allowed%20us%20to%20create%20IPYNB%20notebooks%20to%20run%20our%20scripts%20to%20find%20the%20gunshots%20in%20the%20files%2C%20extract%20them%20and%20build%20our%20dataset.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_17%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_39-1624630630033.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291371i8E7198775474E9F5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_39-1624630630033.png%22%20alt%3D%22LeeStott_39-1624630630033.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22data-labelling%22%20id%3D%22toc-hId--1231170884%22%20id%3D%22toc-hId--1231170884%22%3EData%20labelling%3C%2FH2%3E%0A%3CP%3EAzure%20ML%20also%20provided%20us%20with%20a%20Data%20Labelling%20service%20where%20we%20could%20label%20our%20Mel-spectrograms%20for%20gunshots%20and%20build%20our%20dataset%20to%20train%20our%20object%20detection%20models.%20These%20object%20detection%20models%20(Yolov4%20and%20Faster%20R-CNN%20)%20use%20XML%20files%20in%20training%2C%20Azure%20ML%20studio%20allows%20us%20to%20export%20our%20labelled%20data%20in%20a%20COCO%20format%20in%20a%20JSON%20file.%20The%20conversion%20from%20COCO%20to%20the%20XML%20format%20we%20needed%20to%20train%20our%20models%20was%20done%20with%20ease.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_18%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_40-1624630669100.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291373i1AE0C4BD71CCC68A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_40-1624630669100.png%22%20alt%3D%22LeeStott_40-1624630669100.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22custom-vision%22%20id%3D%22toc-hId-1256341949%22%20id%3D%22toc-hId-1256341949%22%3ECustom%20Vision%3C%2FH2%3E%0A%3CP%3EThe%20Custom%20Vision%20model%20is%20the%20simplest%20model%20of%20the%20three%20to%20train.%20We%20did%20this%20by%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcustomvision.ai%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAzure%20Custom%20Vision%3C%2FA%3E%2C%20it%20allowed%20us%20to%20upload%20images%2C%20label%20the%20images%20and%20train%20models%20with%20no%20code%20at%20all!%3C%2FP%3E%0A%3CP%3ECustom%20Vision%20is%20a%20part%20of%20the%20Azure%20Cognitive%20Services%20provided%20by%20Microsoft%20which%20is%20used%20for%20training%20different%20machine%20learning%20models%20in%20order%20to%20perform%20image%20classification%20and%20object%20detection.%20This%20service%20provides%20us%20with%20an%20efficient%20method%20of%20labelling%20our%20sound%20events%20(%E2%80%9Cthe%20objects%E2%80%9D)%20for%20training%20models%20that%20can%20detect%20gunshot%20sound%20events%20in%20a%20spectrogram.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_19%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_41-1624630685350.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291374i716FC6FCF5DF0C80%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_41-1624630685350.png%22%20alt%3D%22LeeStott_41-1624630685350.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20we%20have%20to%20upload%20a%20set%20of%20images%20which%20will%20represent%20our%20dataset%20and%20tag%20them%20by%20creating%20a%20bounding%20box%20around%20the%20sound%20event%20(%E2%80%9Caround%20the%20object%E2%80%9D).%20Once%20the%20labelling%20is%20done%2C%20the%20dataset%20is%20used%20for%20training.%20The%20model%20will%20be%20trained%20in%20the%20cloud%20so%20no%20coding%20is%20needed%20in%20the%20training%20process.%20The%20only%20feature%20that%20we%20have%20to%20adjust%20when%20we%20train%20the%20model%20is%20the%20time%20spent%20on%20training.%20A%20longer%20time%20budget%20allowed%20means%20better%20learning.%20However%2C%20when%20the%20model%20cannot%20be%20improved%20anymore%2C%20the%20training%20will%20stop%20even%20if%20assigned%20a%20longer%20time.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_20%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_42-1624630697977.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291375i832D0251F6622056%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_42-1624630697977.png%22%20alt%3D%22LeeStott_42-1624630697977.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_21%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20service%20provides%20us%20with%20some%20charts%20for%20the%20model%E2%80%99s%20precision%20and%20recall.%20By%20adjusting%20the%20probability%20threshold%20and%20the%20overlap%20threshold%20of%20our%20model%20we%20can%20see%20how%20the%20precision%20and%20recall%20changes.%20This%20is%20helpful%20when%20trying%20to%20find%20the%20optimal%20probability%20threshold%20for%20detecting%20the%20gunshots.%3C%2FP%3E%0A%3CP%3EThe%20final%20model%20can%20be%20exported%20for%20many%20uses%2C%20in%20many%20formats.%20We%20use%20the%20Tensorflow%20model.%20The%20system%20contains%20two%20python%20files%20for%20object%20detection%2C%20a%20pb%20file%20that%20contains%20the%20model%2C%20a%20json%20file%20with%20metadata%20properties%20and%20some%20txt%20files.%20We%20adapted%20the%20system%20from%20the%20standard%20package%20provided.%20The%20sound%20files%20are%20preprocessed%20inside%20the%20predict.py%20file%20and%20it%20extracts%20the%20audio%20files%20from%20the%20sounds%20folder%20and%20it%20exports%20labelled%20pictures%20with%20the%20identified%20gunshots%20in%20cache%2Fimages%20folder.%20It%20then%20does%20inference%20on%20the%20spectrogram%20to%20detect%20gunshots.%20Once%20all%20the%20soundfiles%20have%20been%20checked%20a%20CSV%20is%20generated%20with%20the%20start%20and%20end%20times%20of%20the%20gunshots%20detected%20within%20the%20audio.%3C%2FP%3E%0A%3CH2%20id%3D%22yolov4%22%20id%3D%22toc-hId-147049427%22%20id%3D%22toc-hId-147049427%22%3E%3CBR%20%2F%3EYolov4%20Introduction%3C%2FH2%3E%0A%3CP%3EThe%20full%20name%20of%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EYOLOV4%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3EYOU%20ONLY%20LOOK%20ONCE%3C%2FEM%3E.%20It%20is%20an%20object%20detector%20which%20consists%20of%20a%20bunch%20of%20deep%20learning%20techniques%20and%20completely%20based%20on%20Convolutional%20Neural%20Network(CNN).%20The%20primary%20advantages%20of%20YOLOv4%20compared%20to%20the%20other%20object%20detector%20are%20the%20fast%20speed%20and%20relatively%20high%20precision.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EThe%20objective%20of%20Microsoft%20project%2015%20is%20detecting%20the%20gunshots%20in%20forest.%20The%20conventional%20audio%20classification%20method%20is%20not%20effective%20and%20efficient%20on%20this%20project%2C%20because%20the%20labelling%20of%20true%20locations%20of%20gunshots%20in%20training%20set%20is%20inaccurate.%20Therefore%2C%20we%20start%20to%20consider%20computer%20vision%20method%2C%20like%20YOLOV4%2C%20to%20do%20the%20detection.%20Firstly%2C%20the%20raw%20audio%20files%20are%20converted%20into%20thousands%20of%2012%20seconds%20clips%20and%20represented%20in%20Mel-spectrum.%20After%20that%2C%20according%20to%20the%20information%20of%20true%20locations%20of%20gunshots%2C%20the%20images%20that%20contain%20the%20gunshots%20are%20picked%20out%20and%20construct%20training%20data%20set.%20These%20pre-processing%20steps%20are%20the%20same%20with%20the%20other%20techniques%20used%20to%20do%20the%20detection%20for%20project%2015%20and%20you%20can%20find%20the%20detailed%20explanations%20from%20%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20project%2C%20YOLOV4%20can%20be%20trained%20and%20deployed%20on%20NVIDIA%20GeForce%20GTX%201060%20GPU%20and%20the%20training%20time%20is%20approximately%20one%20hour.%3C%2FP%3E%0A%3CH2%20id%3D%22implementation-1%22%20id%3D%22toc-hId--1660405036%22%20id%3D%22toc-hId--1660405036%22%3E%3CBR%20%2F%3EImplementation%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FH2%3E%0A%3CH2%20id%3D%221-load-training-data%22%20id%3D%22toc-hId-827107797%22%20id%3D%22toc-hId-827107797%22%3E1.%20Load%20Training%20Data%3C%2FH2%3E%0A%3CP%3EIn%20order%20to%20train%20the%20model%2C%20the%20first%20step%20we%20need%20to%20do%20is%20loading%20the%20training%20data%20in%20yolov4-keras-master%5CVOCdevkit%5CVOC2007%5CAnnotations.%20The%20data%20has%20to%20be%20in%20XML%20form%20and%20includes%20the%20information%20about%20the%20type%20of%20the%20object%20and%20the%20position%20of%20the%20bounding%20box.%3C%2FP%3E%0A%3CP%3EThen%20run%20voc_annotations%20file%20to%20save%20the%20information%20of%20training%20data%20into%20a%20.txt%20file.%20Remember%20to%20modify%20the%20classes%20list%20in%20line%2014%20before%20operating%20the%20file.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_22%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_43-1624630748339.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291376iAB832185708968A0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_43-1624630748339.jpeg%22%20alt%3D%22LeeStott_43-1624630748339.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%222-train-the-model%22%20id%3D%22toc-hId--980346666%22%20id%3D%22toc-hId--980346666%22%3E2.%20Train%20the%20Model%3C%2FH2%3E%0A%3CP%3EThe%20train.py%20file%20is%20used%20to%20train%20the%20model.%20Before%20running%20the%20file%2C%20make%20sure%20the%20following%20file%20paths%20are%20correct.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_23%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_44-1624630756531.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291377i0ABB2D7D264F4BF5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_44-1624630756531.jpeg%22%20alt%3D%22LeeStott_44-1624630756531.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%223-test%22%20id%3D%22toc-hId-1507166167%22%20id%3D%22toc-hId-1507166167%22%3E3.%20Test%3C%2FH2%3E%0A%3CP%3EFor%20more%20detailed%20testing%20tutorial%2C%20follow%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2Fhowtorun.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EHow%20to%20run%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22more-explanations%22%20id%3D%22toc-hId--300288296%22%20id%3D%22toc-hId--300288296%22%3E%3CBR%20%2F%3EMore%20Explanations%3C%2FH2%3E%0A%3CP%3EThe%20idea%20of%20using%20YOLOV4%20is%20after%20training%20and%20testing%20Faster%20R-CNN%20method.%20Faster%20R-CNN%20model%20achieves%2095%25-98%25%20precision%20on%20gunshot%20detection%20which%20is%20extraordinarily%20improved%20compared%20to%20the%20current%20detector.%20The%20training%20data%20for%20YOLOV4%20model%20is%20totally%20same%20with%20that%20used%20in%20the%20Faster%20R-CNN%20model.%20Therefore%2C%20in%20this%20document%2C%20the%20detection%20results%20of%20YOLOV4%20will%20not%20be%20the%20main%20points%20to%20talk%20about.%20Briefly%20speaking%2C%20the%20YOLOV4%20can%20achieve%2085%25%20precision%20but%20detect%20the%20events%20with%20lower%20probability%20than%20Faster%20R-CNN%20.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_24%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_45-1624630781343.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291378iF32363211F028445%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_45-1624630781343.png%22%20alt%3D%22LeeStott_45-1624630781343.png%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_46-1624630794474.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291380iE91E4EE1346A7484%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_46-1624630794474.png%22%20alt%3D%22LeeStott_46-1624630794474.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20reason%20why%20we%20still%20build%20YOLOV4%20model%20is%20that%20it%20can%20make%20our%20clients%20to%20have%20diversified%20options%20and%20choose%20the%20most%20appropriate%20proposal%20in%20the%20real%20application%20condition.%20Even%20though%20Faster%20R-CNN%20model%20has%20the%20best%20detection%20performance%2C%20the%20disadvantage%20is%20obvious%20which%20is%20its%20operation%20time.%20In%20the%20case%20of%20similar%20GPU%2C%20the%20Faster%20R-CNN%20needs%20100%20minutes%20to%20process%2024%20hours%20audio%20file%20while%20YOLOV4%20only%20takes%2044%20minutes%20to%20do%20the%20same%20work.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CH2%20id%3D%22faster-r-cnn%22%20id%3D%22toc-hId--2107742759%22%20id%3D%22toc-hId--2107742759%22%3EFaster%20R-CNN%20-%20Introduction%3C%2FH2%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_26%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22gunshot.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291385i5EEBFFAC02117D5D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22gunshot.png%22%20alt%3D%22gunshot.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_49%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3EFigure1.%20Gunshot%20and%20some%20example%20sounds%20that%20cause%20errors%20for%20the%20current%20detectors%3C%2FP%3E%0A%3CP%3EThe%20Faster%20R-CNN%20code%20provided%20above%20is%20used%20to%20tackle%20the%20gunshot%20detection%20problem%20of%20Microsoft%20project%2015.%20(see%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0A4B2RIWb9o%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EProject%2015%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EDocumentation%3C%2FA%3E).%20The%20gunshot%20detection%20is%20solved%20by%20object%20detection%20method%20instead%20of%20any%20audio%20classification%20network%20method%20under%20certain%20conditions.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EThe%20Limited%20number%20of%20forest%20gunshot%20datasets%20given%20with%20random%20labeled%20true%20location%2C%20which%20generally%20require%2012s%20to%20involve%20single%20or%20multi%20gunshot%20in%20the%20extracted%20sound%20clip.%20The%20random%20label%20means%20that%20the%20true%20location%20provided%20is%20not%20the%20exact%20location%20of%20the%20start%20of%20the%20gunshot.%20Gunshot%20may%20happen%20after%20the%20given%20true%20location%20in%20the%20range%20of%20one%20to%20twelve%2012%20seconds.%20The%20number%20of%20gunshots%20after%20true%20location%20also%20ranging%20from%20single%20gunshots%20over%20to%2030%20gunshots.%3C%2FLI%3E%0A%3CLI%3EWe%20do%20not%20have%20enough%20time%20for%20manually%20relabelling%20the%20audio%20dataset%20and%20limited%20knowledge%20to%20identify%20gunshots%20from%20any%20other%20similar%20sounds%20in%20the%20forest.%20In%20some%20case%2C%20even%20gunshot%20expert%20find%20difficulty%20to%20identify%20gunshot%20from%20those%20similar%20forest%20sound.%20e.g.%2C%20tree%20branch.%3C%2FLI%3E%0A%3CLI%3EForest%20gunshots%20shoot%20at%20different%20angles%20and%20may%20shoot%20from%20miles.%20Online%20gunshot%20dataset%20would%20not%20implement%20to%20this%20task%20directly.%3C%2FLI%3E%0A%3CLI%3ECurrent%20detector%20used%20in%20the%20forest%20has%20only%200.5%25%20precision.%20It%20will%20peak%20up%20sound%20like%20raindrop%20and%20thunder%20shown%20in%20Figure1.%20Detection%20needs%20long%20manual%20post-processing%20time.%20Hence%2C%20the%20given%20audio%20dataset%20would%20be%20limited%20and%20involve%20mistakes.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThe%20above%20conditions%20challenge%20audio%20classification%20methods%20like%20MFCC%20with%20CNN.%20Hence%2C%20the%20objection%20detection%20method%20provides%20an%20easier%20approach%20under%20a%20limited%20time.%20Object%20detection%20provides%20faster%20labeling%20through%20Mel-spectrum%20images%2C%20which%20are%20shown%20above.%20Mel%20spectrum%20also%20provides%20an%20easy%20path%20to%20identify%20gunshots%20without%20the%20specialty%20of%20gunshot%20audio%20sound.%20The%20Faster%20R-CNN%20model%20provides%20high%20precision%2095%25-98%25%20on%20gunshot%20detection.%20The%20detection%20bounding%20box%20can%20also%20be%20used%20to%20re-calculate%20both%20the%20start%20and%20end%20times%20of%20the%20gunshot.%20This%20reduces%20manual%20post-processing%20time%20from%2020%20days%20to%20less%20than%20an%20hour.%20A%20more%20standard%20dataset%20also%20be%20generated%20for%20any%20audio%20classification%20algorithm%20in%20future%20development.%3C%2FP%3E%0A%3CH2%20id%3D%22set-up%22%20id%3D%22toc-hId-379770074%22%20id%3D%22toc-hId-379770074%22%3E%3CBR%20%2F%3ESet%20up%3C%2FH2%3E%0A%3CP%3Etensorflow%201.13-gpu%20(CUDA%2010.0)%3CBR%20%2F%3Ekeras%202.1.5%3CBR%20%2F%3Eh5py%202.10.0%3CBR%20%2F%3Epre-trained%20model%20%E2%80%98retrain.hdf5%E2%80%99%20can%20be%20download%20from%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1AswdCXlv3cxjgTwge2dIbkBxJv8ztLMF%3Fusp%3Dsharing%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehere.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EThe%20more%20detailed%20tutorial%20on%20setting%20up%20can%20be%20found%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2Fgettingstarted.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehere.%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22pre-trained-model%22%20id%3D%22toc-hId--1427684389%22%20id%3D%22toc-hId--1427684389%22%3E%3CBR%20%2F%3EPre-trained%20model%3C%2FH2%3E%0A%3CP%3EThe%20latest%20model%20is%20trained%20under%20a%20multi-classes%20dataset%20including%20AK-47%20gunshot%2C%20shotgun%2C%20monkey%2C%20thunder%2C%20and%20hn%2C%20where%20hn%20represent%20hard%20negative.%20Hard%20negatives%20are%20high-frequency%20mistakes%20made%20by%20the%20current%20detector%2C%20which%20are%20mostly%20peak%20without%20an%20echo%20shape%20spectrum.%20For%20example%2C%20any%20sounds%20have%20the%20shape%20of%20the%20raindrop%20(just%20peak%20without%20echo)%20but%20can%20be%20appeared%20in%20the%20different%20frequency%20domain%20with%20a%20raindrop.%20The%20initial%20model%20is%20only%20trained%20with%20gunshot%20and%20hn%20datasets%20due%20to%20the%20limited%20given%20manual%20dataset.%20Then%20the%20network%20test%20under%20a%20low%20threshold%20value%2C%20e.g.0.6%2C%20to%20obtain%20more%20false%20positive%20datasets%20or%20true%20gunshot%20among%20thousand%20hours%20forest%20sound%20file%20testing.%20The%20model%20will%20then%20use%20those%20hard%20negatives%20to%20re-train.%20This%20technic%20also%20calls%20hard%20mining.%20The%20following%20images%20Figure.2%20show%20three%20hard%20negative%20datasets%20(monkey%2C%20thunder%2C%20hn)%20used%20to%20train%20the%20lastest%20model.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_27%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Typesofsounds.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291386i72940CE9ABC20856%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Typesofsounds.png%22%20alt%3D%22Typesofsounds.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EFigure2.%20three%20type%20of%20hard%20negative%20enter%20into%20training%3C%2FP%3E%0A%3CP%3EThe%20model%20also%20provides%20classification%20between%20different%20gunshot%20which%20are%20AK-47%20and%20shotgun%20shown%20in%20Figure3.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_29%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EFigure3.%20Mel-spectrum%20image%20of%20AK-47%20and%20shotgun%3C%2FP%3E%0A%3CH2%20id%3D%22result%22%20id%3D%22toc-hId-1059828444%22%20id%3D%22toc-hId-1059828444%22%3E%3CBR%20%2F%3EResult%3C%2FH2%3E%0A%3CP%3EThe%20following%20testing%20result%20shown%20in%20Table1%20is%20based%20on%20the%20experiment%20on%20over%20400%20hours%20of%20forest%20sound%20clips%20given%20by%20our%20clients.%20The%20more%20detailed%20information%20on%20other%20models%20except%20Faster%20R-CNN%20can%20be%20found%20in%20%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTH%3EModel%20name%3C%2FTH%3E%0A%3CTH%3Ecurrent%20template%20detector%3C%2FTH%3E%0A%3CTH%3Ecustom%20AI(Microsoft)%3C%2FTH%3E%0A%3CTH%3EYOLOV4%3C%2FTH%3E%0A%3CTH%3EFaster%20R-CNN%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3EGunshot%20dectection%20precision%3C%2FTD%3E%0A%3CTD%3E0.5%25%3C%2FTD%3E%0A%3CTD%3E60%25%3C%2FTD%3E%0A%3CTD%3E85%25%3C%2FTD%3E%0A%3CTD%3E95%25%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3ETable1.%20testing%20result%20from%20different%20models%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20model%20also%20generates%20a%20CSV%20file%20shown%20in%20Figure4.%20It%20includes%20the%20file%20name%2C%20label%2C%20offset%2C%20start%20time%2C%20and%20end%20time.%20The%20offset%20is%20the%20left%20end%20axis%20of%20the%20Mel-spectrum%2C%20where%20each%20Mel-spectrum%20is%20conducted%20from%2012s%20sound%20clips.%20The%20start%20time%20and%20end%20time%20can%20then%20calculated%20using%20the%20offset%20and%20the%20detection%20bounding%20coordinate.%20Therefore%2C%20this%20CSV%20file%20would%20provide%20a%20more%20standard%20dataset%2C%20where%20the%20true%20location%20will%20more%20likely%20sit%20just%20before%20the%20gunshot%20happen.%20Each%20cutting%20sound%20clip%20is%20likely%20to%20include%20a%20single%20gunshot.%20Therefore%2C%20this%20dataset%20would%20involve%20less%20noise%20and%20wrong%20labeling.%20It%20will%20benefit%20future%20development%20on%20any%20audio%20classification%20method.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_30%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_8-1624629574253.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291361iCB5B93896DE181E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_8-1624629574253.png%22%20alt%3D%22LeeStott_8-1624629574253.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFigure4.%20example%20of%20csv%20file%20for%20gunshot%20labelling%3C%2FP%3E%0A%3CH2%20id%3D%22current-model-weaknesses-and-future-developement%22%20id%3D%22toc-hId--49464078%22%20id%3D%22toc-hId--49464078%22%3E%3CBR%20%2F%3ECurrent%20model%20weaknesses%20and%20Future%20development%3C%2FH2%3E%0A%3CP%3EThe%20number%20of%20the%20hard%20negative%20dataset%20is%20still%20limited%20after%20400%20hours%20of%20sound%20clip%20testing.%20Hard%20negatives%20like%20the%20bee%20and%20strong%20thunder%20sound(shown%20in%20Figure5)%20are%20the%20main%20predicted%20errors%20for%20the%20current%20model.%20To%20improve%20the%20model%20further%2C%20it%20should%20find%20more%20hard%20negatives%20using%20a%20lower%20threshold%20of%20the%20network%20through%20thousands%20of%20hours%20of%20sound%20clip%20testing.%20Then%2C%20the%20obtained%20hard%20negative%20dataset%20can%20be%20used%20to%20re-train%20and%20improve%20the%20model.%20However%2C%20the%20current%20model%20can%20avoid%20those%20false%20positives%20by%20setting%20around%20a%200.98%20threshold%20value%2C%20but%20it%20will%20reduce%20the%20recall%20rate%20by%205-10%25.%20The%20missing%20gunshots%20are%20mainly%20long-distance%20gunshots.%20This%20is%20also%20caused%20by%20very%20limited%20long-distance%20gunshots%20provided%20in%20the%20training%20dataset.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_31%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22thunderbee.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291388iC891637555807366%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22thunderbee.png%22%20alt%3D%22thunderbee.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFigure5.%20Mel-spectrum%20image%20of%20the%20strong%20thunder%20and%20bee%3C%2FP%3E%0A%3CH4%20id%3D%22reference%22%20id%3D%22toc-hId--1598753103%22%20id%3D%22toc-hId--1598753103%22%3E%3CBR%20%2F%3EReference%3C%2FH4%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fyhenon%2Fkeras-rcnn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fyhenon%2Fkeras-rcnn%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22results%22%20id%3D%22toc-hId-630594292%22%20id%3D%22toc-hId-630594292%22%3E%3CBR%20%2F%3EResults%3C%2FH2%3E%0A%3CTABLE%3E%0A%3CTHEAD%3E%0A%3CTR%3E%0A%3CTH%3EModel%20name%3C%2FTH%3E%0A%3CTH%3Ecurrent%20template%20detector%3C%2FTH%3E%0A%3CTH%3Ecustom%20AI(Microsoft)%3C%2FTH%3E%0A%3CTH%3EYOLOV4%3C%2FTH%3E%0A%3CTH%3EFaster%20R-CNN%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3EGunshot%20dectection%20precision%3C%2FTD%3E%0A%3CTD%3E0.5%25%3C%2FTD%3E%0A%3CTD%3E60%25%3C%2FTD%3E%0A%3CTD%3E85%25%3C%2FTD%3E%0A%3CTD%3E95%25%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3ETable1.%20testing%20result%20from%20different%20models%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorLeeStott_32%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22testing.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291389i7C804A5C2B674ACA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22testing.png%22%20alt%3D%22testing.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1176860171%22%20id%3D%22toc-hId--1176860171%22%3E%3CSPAN%20data-contrast%3D%22auto%22%3EWhat%20we%20learnt%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EThroughout%20this%20capstone%20project%20we%20learnt%20a%20wide%20range%20of%20things%2C%20not%20only%20to%20do%20with%20technologies%20but%20also%20the%20importance%20and%20safety%20of%20forest%20elephants%2C%20and%20how%20big%20of%20an%20impact%20they%20have%20on%20rainforests.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EPoaching%20these%20elephants%20means%20that%20there%20is%20a%20reduce%20in%20the%20amount%20of%20seed%20dispersion%2C%20essentially%20preventing%20the%20diverse%20nature%20of%20rainforests%20and%20the%20spread%20of%20fruits%20and%20plants%20across%20the%20forest%20in%20which%20many%20animals%20depend%20on.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22none%22%3E%E2%80%9CWithout%20intervention%20to%20stop%20poaching%2C%20as%20much%20as%2096%20percent%20of%20Central%20Africa%E2%80%99s%20forests%20will%20undergo%20major%20changes%20in%20tree-species%20composition%20and%20structure%20as%20local%20populations%20of%20elephants%20are%20extirpated%2C%20and%20surviving%20populations%20are%20crowded%20into%20ever-smaller%20forest%20remnants%2C%E2%80%9D%20explained%20John%20Poulson%20from%20Duke%20University%E2%80%99s%20Nicholas%20School%20of%20the%20Environment.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EIn%20terms%20of%20technologies%2C%20we%20learnt%20a%20lot%20about%20signal%20processing%20through%20MFCCs%20and%26nbsp%3Bmel-spectrograms%3B%20how%20to%20train%20and%20use%20different%20object%20detection%20models%3B%20feature%20extraction%20from%20data%3B%20how%20to%20use%20Azure%20ML%20studio%20and%20blob%20storage.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EAbove%20all%2C%20we%20learnt%20that%20in%20projects%20with%20a%20set%20goal%2C%20there%20will%20always%20be%20obstacles%20but%20tackling%20those%20obstacles%20is%20really%20when%20your%20creative%20and%20innovative%20ideas%20come%20to%20life.%3C%2FSPAN%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-contrast%3D%22auto%22%3EFor%20full%20documentation%20and%20code%20visit%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-contrast%3D%22none%22%3Ehttps%3A%2F%2Fr15hil.github.io%2FICL-Project15-ELP%2F%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1310652662%22%20id%3D%22toc-hId-1310652662%22%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%26nbsp%3B%3CBR%20%2F%3ELearning%20Resources%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%20data-ccp-props%3D%22%7B%26quot%3B201341983%26quot%3B%3A0%2C%26quot%3B335559739%26quot%3B%3A0%2C%26quot%3B335559740%26quot%3B%3A240%7D%22%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fcv-classify-bird-species%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EClassify%20endangered%20bird%20species%20with%20Custom%20Vision%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fclassify-images-custom-vision%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EClassify%20images%20with%20the%20Custom%20Vision%20service%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fcreate-web-app-with-refreshable-models%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EBuild%20a%20Web%20App%20with%20Refreshable%20Machine%20Learning%20Models%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fpaths%2Fexplore-computer-vision-microsoft-azure%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EExplore%20computer%20vision%20in%20Microsoft%20Azure%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fintro-computer-vision-pytorch%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EIntroduction%20to%20Computer%20Vision%20with%20PyTorch%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Ftrain-evaluate-deep-learn-models%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ETrain%20and%20evaluate%20deep%20learning%20models%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fpaths%2Fpytorch-fundamentals%2F%3FWT.mc_ID%3Dacademic-33214-leestott%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EPyTorch%20Fundamentals%20-%20Learn%20%7C%20Microsoft%20Docs%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2485639%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LeeStott_6-1624628904190.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F291356i42439585D512A42E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LeeStott_6-1624628904190.png%22%20alt%3D%22LeeStott_6-1624628904190.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3EGuest%20blog%20by%20Electronic%20and%20Information%20Engineering%20Project%20team%20at%20Imperial%20College%20design%20and%20solution%20to%20identify%20poaching%20for%20the%20Elephant%20Listening%20edge%20project%20with%20Azure%20Machine%20Learning%20Services.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2485639%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECustom%20Vision%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFaculty%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EImperial%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMachine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EML%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProject15%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Estudent%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EStudents%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jul 12 2021 01:36 PM
Updated by: