journal article·2018-09-06Open access

Toward Audio Beehive Monitoring: Deep Learning vs. Standard Machine Learning in Classifying Beehive Audio Samples

Vladimir Kulyukin, Sarbajit Mukherjee, Prakhar Amlathe

Applied Sciences· Volume 8· Issue 9

Abstract

Electronic beehive monitoring extracts critical information on colony behavior and phenology without invasive beehive inspections and transportation costs. As an integral component of electronic beehive monitoring, audio beehive monitoring has the potential to automate the identification of various stressors for honeybee colonies from beehive audio samples. In this investigation, we designed several convolutional neural networks and compared their performance with four standard machine learning methods (logistic regression, k-nearest neighbors, support vector machines, and random forests) in classifying audio samples from microphones deployed above landing pads of Langstroth beehives. On a dataset of 10,260 audio samples where the training and testing samples were separated from the validation samples by beehive and location, a shallower raw audio convolutional neural network with a custom layer outperformed three deeper raw audio convolutional neural networks without custom layers and performed on par with the four machine learning methods trained to classify feature vectors extracted from raw audio samples. On a more challenging dataset of 12,914 audio samples where the training and testing samples were separated from the validation samples by beehive, location, time, and bee race, all raw audio convolutional neural networks performed better than the four machine learning methods and a convolutional neural network trained to classify spectrogram images of audio samples. A trained raw audio convolutional neural network was successfully tested in situ on a low voltage Raspberry Pi computer, which indicates that convolutional neural networks can be added to a repertoire of in situ audio classification algorithms for electronic beehive monitoring. The main trade-off between deep learning and standard machine learning is between feature engineering and training time: while the convolutional neural networks required no feature engineering and generalized better on the second, more challenging dataset, they took considerably more time to train than the machine learning methods. To ensure the replicability of our findings and to provide performance benchmarks for interested research and citizen science communities, we have made public our source code and our curated datasets.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Plant and animal studies · Insect and Pesticide Research · Insect and Arachnid Ecology and Behavior

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Computer Science, Utah State University, 4205 Old Main Hill, Logan, UT 84322-4205, USA

References (58)

Show source-provided references
1. Bromenschenk, J., Henderson, C., Seccomb, R., Rice, S., and Etter, R. (2007). Honey Bee Acoustic Recording and Analysis System for Monitoring Hive Health. (7549907B2), U.S. Patent.
2. Application of continuous monitoring of honeybee colonies10.1007/s13592-014-0298-x ↗
3. Farina, A., and Gage, S. (2017). Ecoacoustics: The Ecological Role of Sounds, Wiley.10.1002/9781119230724 ↗
4. Tolstov, G. (1976). Fourier Series, Dover Publications.
5. An introduction to fourier analysis with applications to music
6. (2018, May 29). Raspberry Pi Computer. Available online: www.adafruit.com.
7. (2018, May 29). Arduino Computer. Available online: www.arduino.cc.
8. Kulyukin, V., Mukherjee, S., and Amlathe, P. (2018, May 29). BUZZ1: A Dataset of Bee Buzzing, Cricket Chirping, and Ambient Noise Audio Samples. Available online: https://usu.app.box.com/v/BeePiAudioData.
9. Monitoring of swarming sounds in bee Hives for early detection of the swarming period10.1016/j.compag.2008.05.010 ↗
10. Ramsey, M., Bencsik, M., and Newton, M.I. (2017). Long-term trends in the honeybee ‘whooping signal’ revealed by automated detection. PLoS ONE, 12.10.1371/journal.pone.0181736 ↗
11. Platform for bee-hives monitoring based on sound analysis: A perpetual warehouse for swarm’s daily activity10.5424/sjar/2009074-1109 ↗
12. The mechanism of flight guidance in honeybee swarms: Subtle guides or streaker bees?10.1242/jeb.018994 ↗
13. Digitizing buzzing signals into A440 piano note sequences and estimating forage traffic levels from images in solar-powered, electronic beehive monitoring
14. Toward sustainable electronic beehive monitoring: Algorithms for omnidirectional bee counting from images and harmonic analysis of buzzing signals
15. Computer vision in electronic beehive monitoring: In situ vision-based bee counting on langstroth hive landing pads
16. Representation learning: A review and new perspectives10.1109/TPAMI.2013.50 ↗
17. Mitchell, T. (1997). Machine Learning, McGraw-Hill.
18. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2012, January 3–6). ImageNet classification with deep convolutional neural networks. Proceedings of the 25th International Conference on Neural Information Processing Systems, Lake Tahoe, NV, USA.
19. Learning hierarchical features for scene labeling10.1109/TPAMI.2012.231 ↗
20. Simonyan, K., and Zisserman, A. (arXiv, 2014). Very deep convolutional networks for large-scale image recognition, arXiv.
21. Deep neural networks for acoustic modeling in speech recognition10.1109/MSP.2012.2205597 ↗
22. Sainath, T.N., Mohamed, A.R., Kingsbury, B., and Ramabhadran, B. (2013, January 26–31). Deep convolutional neural networks for LVCSR. Proceedings of the 2013 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Vancouver, BC, Canada.10.1109/ICASSP.2013.6639347 ↗
23. Sainath, T.N., Weiss, R.J., Senior, A.W., Wilson, K.W., and Vinyals, O. (2015, January 6–10). Learning the speech front-end with raw waveform CLDNNs. Proceedings of the Sixteenth Annual Conference of the International Speech Communication Association, Dresden, Germany.10.21437/Interspeech.2015-1 ↗
24. Roberts, A., Resnick, C., Ardila, D., and Eck, D. (2016, January 7–11). Audio Deepdream: Optimizing Raw Audio with Convolutional Networks. Proceedings of the International Society for Music Information Retrieval Conference, New York, NY, USA.
25. Oord, A.V.d., Dieleman, S., and Schrauwen, B. (2012, January 3–8). Deep content-based music recommendation. Proceedings of the 26th International Conference on Neural Information Processing Systems, Lake Tahoe, NV, USA.
26. Piczak, K. (2015, January 17–20). Environmental sound classification with convolutional neural networks. Proceedings of the 2015 IEEE 25th International Workshop on Machine Learning for Signal Processing (MLSP), Boston, MA, USA.10.1109/MLSP.2015.7324337 ↗
27. Leung, M.K.K., Xiong, H.Y., Lee, L.J., and Frey, B.J. (2014). Deep learning of the tissue-regulated splicing code. Bioinformatics, 30.10.1093/bioinformatics/btu277 ↗
28. Xiong, H.Y., Alipanahi, B., Lee, L.J., Bretschneider, H., Merico, D., Yuen, R.K.C., Hua, Y., Gueroussov, S., Najafabadi, H.S., and Hughes, T.R. (2015). The human splicing code reveals new insights into the genetic determinants of disease. Science, 347.10.1126/science.1254806 ↗
29. Gradient-based learning applied to document recognition10.1109/5.726791 ↗
30. Sutton, R.S., and Barto, A.G. (1998). Introduction to Reinforcement Learning, MIT Press. [1st ed.].
31. Nair, V., and Hinton, G.E. (2010, January 21–24). Rectified linear units improve restricted boltzmann machines. Proceedings of the 27th International Conference on International Conference on Machine Learning, Haifa, Israel.
32. Zeiler, M.D., Ranzato, M., Monga, R., Mao, M.Z., Yang, K., Le, Q.V., Nguyen, P., Senior, A.W., Vanhoucke, V., and Dean, J. (2013, January 26–31). On rectified linear units for speech processing. Proceedings of the 2013 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Vancouver, BC, Canada.10.1109/ICASSP.2013.6638312 ↗
33. Aytar, Y., Vondrick, C., and Torralba, A. (2016, January 5–10). SoundNet: Learning sound representations from unlabeled video. Proceedings of the Advances in Neural Information Processing Systems, Barcelona, Spain.10.1109/CVPR.2016.18 ↗
34. Van den Oord, A., Dieleman, S., Zen, H., Simonyan, K., Vinyals, O., Graves, A., Kalchbrenner, N., Senior, A.W., and Kavukcuoglu, K. (2016). WaveNet: A generative model for raw audio. SSW, Institute of Singapore Chartered Accountants (ISCA).
35. Humphrey, E., and Bello, J. (2012, January 12–15). Rethinking automatic chord recognition with convolutional neural networks. Proceedings of the 11th International Conference on Machine Learning and Applications (ICMLA), Boca Raton, FL, USA.10.1109/ICMLA.2012.220 ↗
36. Kulyukin, V. (2018, May 29). BeePi: A Multisensor Electronic Beehive Monitor. Available online: https://www.kickstarter.com/projects/970162847/beepi-a-multisensor-electronic-beehive-monitor.
37. Kulyukin, V., Putnam, M., Reka, S., and Mukherjee, S. (2018, May 21). BeePi Data Collection Software. Available online: https://github.com/VKEDCO/PYPL/tree/master/beepi/py/src/29Jan2016.
38. Dropout: A simple way to prevent neural networks from overfitting
39. Glorot, X., and Bengio, Y. (2010, January 13–15). Understanding the difficulty of training deep feedforward neural networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, Sardinia, Italy.
40. Ioffe, S., and Szegedy, C. (arXiv, 2015). Batch normalization: Accelerating deep network training by reducing internal covariate shift, arXiv.
41. Freedman, D. (2005). Statistical Models : Theory and Practice, Cambridge University Press.10.1017/CBO9781139165495 ↗
42. An introduction to kernel and nearest-neighbor nonparametric regression10.1080/00031305.1992.10475879 ↗
43. A probabilistic multi-class strategy of one-vs.-rest support vector machines for cancer classification10.1016/j.neucom.2008.04.033 ↗
44. Random Forests10.1023/A:1010933404324 ↗
45. Davis, S.B., and Mermelstein, P. (1980). Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences. IEEE Trans. Acoust. Speech Signal Process., 28.10.1109/TASSP.1980.1163420 ↗
46. Ganchev, T., Fakotakis, N., and Kokkinakis, G. (2005, January 17–19). Comparative evaluation of various MFCC implementations on the speaker verification task. Proceedings of the 10th International Conference Speech and Computer, Patras, Greece.
47. Jiang, D.N., Lu, L., Zhang, H.J., Tao, J.H., and Cai, L.H. (2002, January 26–29). Music type classification by spectral contrast feature. Proceedings of the IEEE International Conference on Multimedia and Expo, Lausanne, Switzerland.
48. Introduction to neo-riemannian theory: A survey and a historical perspective10.2307/843871 ↗
49. Richert, W., and Coelho, L. (2013). Building Machine Learning Systems with Python, Packt Publishing.
50. Kulyukin, V., and Amlathe, P. (2018, January 11–12). Using logistic regression, k-nearest neighbor, and support vector machines to classify audio samples in audio beehive monitoring. Proceedings of the American Bee Research Conference (ABRC), Reno, NV, USA.
51. Horn, R.A., and Johnson, C. (1990). Norms for Vectors and Matrices, Cambridge University Press.
52. (2018, May 29). Scikit-Learn. Available online: scikit-learn.org.
53. (2018, May 29). Tflearn. Available online: https://github.com/tflearn/tflearn.
54. Kingma, D.P., and Ba, J. (arXiv, 2014). Adam: A method for stochastic optimization, arXiv.
55. (2018, May 29). TensorBoard. Available online: https://www.tensorflow.org/programmers_guide/summaries_and_tensorboard.
56. Random search for hyper-parameter optimization
57. Salamon, J., Jacoby, C., and Bello, J.P. (2014, January 3–7). A Dataset and Taxonomy for Urban Sound Research. Proceedings of the ACM International Conference on Multimedia, Orlando, FL, USA.10.1145/2647868.2655045 ↗
58. No free lunch theorems for optimization10.1109/4235.585893 ↗