The objection of this senior thesis is to find out the limits and set the accuracy of measuring distance, using the method of echolocation with the sound signal being emitted and received by a smartphone. The sound signal was created and received using the speaker and microphone, both inbuilt into the Android smartphone. Classification neural network was determining the accuracy of distance recognition in measurements with millimeter, centimeter, and ten-centimeter intervals between each. The purpose was to determine the maximal distance, at which it is still possible to successfully classify distance using the method of echolocation via smartphone, the minimal distance, at which the neural classification network still differentiates the sound rebounds amongst themselves, and to compare accuracy of both classification method and the method of measuring distance between peaks of correlation function.
Firstly, an application was created in Android Studio, whose function is to emit desired sound signals and receive the sound signal rebounds. The recordings were captured using the 44.100 Hz sampling frequency and then saved onto a middle price range smartphone in a .pcm file format in order to preserve a maximal accuracy of the measurements. Furthermore, a neural classification network was created in Matlab on a basis of a pre-existing code. In the last step of the research all the recorded data was correlated with the emitted sound signal and the neural classification network was taught to recognize the different distances. Air conditions in the research environment were not measured and recorded.
The results of the research show a considerable among of accuracy. With an adequate amount of data and the conditions in the environment at the time of measurement-taking being diverse enough, the neural classification model could potentially successfully predict distances between 9 and 160 centimeters with an eight-millimeter accuracy. When trying to determine distances pass 160 centimeters the predictions are less accurate – in that case the method of measuring distance between peaks of correlation function is used, which enables a ten-centimeter accuracy of prediction. The field of this research still enables a lot of space for improvements, more additional measurements and testing, since there are different air conditions which have to be taken into account and can interfere with the results.
|