An adaptive approach to the bee hive state identification using neural networks and audio analysis


  • Zhukov O.O.
  • Horbenko V.I.



neural networks; tensorflow; deep learning; bees; MFCCs; STFT; bees; CNN; bee hive state; audio analysis.


Problem statement. Monitoring the queen bee is crucial for the health and produc-tivity of a bee colony. The queen plays a vital role in reproduction and maintaining the colony's population. Utilizing neural networks, such as CNNs along with sound analysis, can be a valuable tool for monitoring queen bees and assessing their behavior and health within the hive. Purpose. Finding the best way to preprocess audio data and review it is an important task that, if performed well, will help to track the bee hive population and its health state in general. Related work. With the development of deep learning, several studies were done on their application along with sound analysis in bee hive state identi-fication, such as swarming or bee queen detection. Materials and methods. A public la-beled dataset “To bee or not to bee” with bee hive sounds was used for training. It was split by source and then cut into pieces 4 seconds each. Then, CNN models were trained using different audio feature extraction methods, such as MFCCs and STFT. First, it was trained on a first audio set, and then trained models were utilized to analyze their per-formance on the evaluation set of the second audio set. Results and discussion. According to the training and evaluation results, MFCCs-based models have given constant good results, and when used on a limited audio dataset, pre-trained model showed better per-formance than the one trained from zero. Conclusions. The experiment showed that MFCCs is a better performant feature extraction method for a task of the bee hive sounds analysis and bee queen presence identification. Also, even though training a model on a full audio set results in better performance, pre-trained models can detect a bee queen absence in another hive even after an additional training on a limited audio dataset.


Kremen C., Williams N. M., Thorp R. W. Crop pollination from native bees at risk from agricultural intensification. Proceedings of the National Academy of Sciences. 2002. Vol. 99, no. 26. P. 16812–16816.

URL: (date of access: 31.03.2024).

Netting and pan traps fail to identify the pollinator guild of an agricultural crop / K. J. Boyer et al. Scientific Reports. 2020. Vol. 10, no. 1. URL: (date of access: 31.03.2024).

Beyer N., Kulow J., Dauber J. The contrasting response of cavity‐nesting bees, wasps and their natural enemies to biodiversity conservation measures. Insect Conservation and Diversity. 2023. URL: (date of access: 31.03.2024).

Kviesis A., Zacepins A. Application of neural networks for honey bee colony state identification. 2016 17th International Carpathian Control Conference (ICCC). 2016. P. 413–417.

Marstaller J., Tausch F., Stock S. DeepBees - Building and Scaling Convolutional Neuronal Nets For Fast and Large-Scale Visual Monitoring of Bee Hives. 2019 IEEE/CVF International Conference on Computer Vision Workshop (ICCVW), Seoul, Korea (South), 27–28 October 2019. 2019.

URL: (date of access: 31.03.2024).

Sledevic T. The Application of Convolutional Neural Network for Pollen Bearing Bee Classification. 2018 IEEE 6th Workshop on Advances in Information, Electronic and Electrical Engineering (AIEEE), Vilnius, 8–10 November 2018. 2018. URL: (date of access: 31.03.2024).

NeuralBee - A Beehive Health Monitoring System / Y. Mahajan et al. 2023 International Conference on Communication System, Computing and IT Applications (CSCITA), Mumbai, India, 31 March – 1 April 2023. 2023. URL: (date of access: 31.03.2024).

Varroa Mite Detection Using Deep Learning Techniques / J. Divasón et al. Lecture Notes in Computer Science. Cham, 2023. P. 326–337. URL: (date of access: 31.03.2024).

Kirchner W. H. Acoustical communication in honeybees. Apidologie. 1993. Vol. 24, no. 3. P. 297–307. URL: (date of access: 31.03.2024).

Detection of the Bee Queen Presence Using Sound Analysis / T. Cejrowski et al. Intelligent Information and Database Systems. Cham, 2018. P. 297–306. URL: (date of access: 31.03.2024).

Use of LSTM Networks to Identify “Queenlessness” in Honeybee Hives from Audio Signals / S. Ruvinga et al. 2021 17th International Conference on Intelligent Environments (IE), Dubai, United Arab Emirates, 21–24 June 2021. 2021. URL: (date of access: 31.03.2024).

Nolasco I., Benetos E. To bee or not to bee: Investigating machine learning approaches to beehive sound recognition. Workshop on Detection and Classification of Acoustic Scenes and Events (DCASE). 2018.

A preliminary study of sounds emitted by honey bees in a beehive / S. Cecchi et al. Audio Engineering Society Convention 144. 2018.

Verma P., Das P. K. i-Vectors in speech processing applications: a survey. International Journal of Speech Technology. 2015. Vol. 18, no. 4. P. 529–546. URL: (date of access: 31.03.2024).