GunSpot – A gunshot detection application for mobile phones
description
Transcript of GunSpot – A gunshot detection application for mobile phones
![Page 1: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/1.jpg)
GUNSPOT – A GUNSHOT DETECTION APPLICATION FOR MOBILE PHONES
By: Simon KleinsmithSupervisor: Mr Mehrdad GhaziasgarCo-supervisor: Mr James Connan
![Page 2: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/2.jpg)
INTRODUCTIONWhat is GunSpot?
It is a system that runs on mobile phones which detects gunshots, alerts the user of the occurrence and pins the location on a mapping system.
How can this system be used? GunSpot can be used to increase the response time
of emergency services as well as police to the scene due to its nature of near real-time alerts. It is also a method for generating statistical data. Used for gunshot localization.
![Page 3: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/3.jpg)
REQUIREMENTS A mobile phone capable of running the GunSpot
software, i.e. a fast enough processor and an appropriate software stack.
A server to keep track of the locations where gunshots have been identified. The Google Maps API has been used in this regard.
![Page 4: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/4.jpg)
TOOLS AND TECHNOLOGIES USED Eclipse IDE Android SDK Google Maps API XML JavaScript PHP Java LibSVM
![Page 5: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/5.jpg)
USER INTERFACE SPECIFICATION The user interface has two components. That of the
mapping system and the interface for the application running on the phone.
The UI for the phone is limited as the application is focused as being a service.
The UI for the mapping system integrates clickable markers with information windows, controls to change the zoom level and basic controls to choose the map type.
![Page 6: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/6.jpg)
USER INTERFACE SPECIFICATION CONT.
![Page 7: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/7.jpg)
USER INTERFACE SPECIFICATION CONT.
![Page 8: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/8.jpg)
ALGORITHM ON THE PHONE
![Page 9: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/9.jpg)
OBJECT ORIENTATED ANALYSIS
![Page 10: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/10.jpg)
OBJECT ORIENTED DESIGN - PHONE
While(true) { Capture the sound; Break the sound into samples; if(spike in sound) { process the samples; construct the threshold; compare the samples to the stored values; if(certain number of samples fall within range) A gunshot has been detected; Notify the user of the occurrence; Determine the location of the phone; Send the location and samples to the server; }}
![Page 11: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/11.jpg)
OBJECT ORIENTED DESIGN - SERVER
Initialize the map;
foreach(location) { read latitude and longitude; convert the coordinates to an address; create the marker; create information windows for each marker; display the marker on the map;}
![Page 12: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/12.jpg)
TESTING Sample gunshots
Adjusting the algorithm based on results
Separating training and testing data
Accuracy of location
![Page 13: GunSpot – A gunshot detection application for mobile phones](https://reader035.fdocuments.us/reader035/viewer/2022081604/568168ac550346895ddf58a2/html5/thumbnails/13.jpg)
The Demo