Análise comparativa de modelos de classificação de áudio de colmeias de abelhas em dispositivos portáteis android com onnxruntime
DOI:
https://doi.org/10.34117/bjdv11n2-081Keywords:
apicultura, áudio de abelhas, detecção de rainha, aprendizado de máquina, androidAbstract
Na apicultura, as colmeias demandam inspeções regulares para monitorar suas condições e, quando necessário, implementar medidas que assegurem o fortalecimento e a saúde das colônias. Nesse contexto, a abelha rainha desempenha um importante papel para a sobrevivência da colônia, sendo responsável pela reprodução, assegurando a renovação contínua da população. Este trabalho apresenta uma abordagem baseada em aprendizado de máquina para classificar os estados de presença ou ausência da rainha em colmeias de abelhas Apis mellifera usando dispositivos móveis com sistema Android. Foram usados áudios do dataset UrBAN, de onde extraídos Coeficientes Cepstrais de Frequência Mel (MFCCs) totalizando 632886 amostras. Posteriormente, foram usados classificadores KNN, Random Forest, SVM e Regressão Logística, que foram treinados e convertidos para o formato ONNX para execução em dispositivos móveis com sistema Android. Entre os classificadores avaliados, o Random Forest mostrou o melhor resultado levando em consideração o equilíbrio entre desempenho de classificação e tempo de execução, obtendo 93,36 % de acurácia e F1-Score de 94,00 %, demorando 10,3 segundos para classificar 189866 amostras separadas para teste. A solução proposta demonstra a viabilidade de integrar modelos de aprendizado de máquina diretamente em dispositivos móveis de baixo custo, eliminando a necessidade de conectividade com a internet, o que é especialmente vantajoso para apicultores com apiários em áreas remotas sem acesso à internet.
References
ABDOLLAHI, Mahsa; ZHU, Yi; GUIMARÃES, Heitor R.; COALLIER, Nico; MAUCOURT, Ségolène; GIOVENAZZO, Pierre; FALK, Tiago H. UrBAN: Urban Beehive Acoustics and PheNotyping Dataset. arXiv,2024. Disponível em: https://doi.org/10.20383/103.0972. Acesso em: 31 jan. 2025.
AHSAN, Mahdi S.; MAHMUD, Md. N.; SAHA, Rifat R.; et al. Effect of Data Scaling Methods on Machine Learning Algorithms and Model Performance. Technologies, v. 9, n. 3, p. 52, 2021. Disponível em: https://doi.org/10.3390/technologies9030052. Acesso em: 31 jan. 2025.
BARBISAN, Luca; RIENTE, Fabrizio. Machine learning framework for the acoustic detection of the queen bee presence. Proc. 10th Conv. Eur. Acoustics Ass, p. 4347-4350, 2023.
BACHER, Paul. Notebook Honey Bee Pollen Detection. 2023. Disponível em: https://www.kaggle.com/code/paulbacher/honey-bee-pollen-detection/notebook. Acesso em: 31 out. 2023.
BATISTA, Fábio. Discriminação de Sons Urbanos: Estudo Comparativo entre MFCCs e Motifs. 2015. Dissertação (Mestrado) - Instituto Politécnico do Porto. Disponível em: https://recipp.ipp.pt/bitstream/10400.22/8151/1/DM_FabioBatista_2015_MEI.pdf. Acesso em: 31 jan. 2025.
BENETI, Marcelo. Estatística Básica. 1. ed. Casa dos Autores, 2011.
BREIMAN, Leo. Random Forests. Machine Learning, v. 45, n. 1, p. 5-32, 2001. Disponível em: https://doi.org/10.1023/A:1010933404324. Acesso em: 31 jan. 2025.
BROMENSHENK, Jerry J. et al. Honey bee acoustic recording and analysis system for monitoring hive health. Google Patents, 23 jun. 2009. (US Patent 7,549,907).
BROWN, Mark J.F. et al. A horizon scan of future threats and opportunities for pollinators and pollination. PeerJ, v. 4, p. e2249, 2016.
CORTES, Corinna; VAPNIK, Vladimir. Support-vector networks. Machine Learning, v. 20, n. 3, p. 273-297, 1995. Disponível em: https://doi.org/10.1007/BF00994018. Acesso em: 31 jan. 2025.
COVER, Thomas M.; HART, Peter E. Nearest neighbor pattern classification. IEEE Transactions on Information Theory, v. 13, n. 1, p. 21-27, 1967. Disponível em: https://doi.org/10.1109/TIT.1967.1053964. Acesso em: 31 jan. 2025.
DABAS, Jyoti. Notebook Honey Bee Pollen Detection. 2023. Disponível em: https://www.kaggle.com/code/jyotidabas/cnn-based-honey-bee-pollen-binary-classifier. Acesso em: 31 out. 2023.
DOMINGOS, Pedro. A few useful things to know about machine learning. ACM, v. 55, n. 10, p. 78-87, 2012. Disponível em: https://doi.org/10.1145/2347736.2347755. Acesso em: 31 jan. 2025.
EUGÊNIO, Miguel. Métodos Baseados na Regra do Vizinho Mais Próximo. Universidade Federal do Ceará, 2005.
FRINGS, Hubert; LITTLE, Franklin. Reactions of honey bees in the hive to simple sounds. Science, v. 125, n. 3238, p. 122-122, 1957.
GORROI, G.; FREITAS, L. P. V. D.; ASSIS, D. C. S. de. Apicultura: o manejo das abelhas do gênero Apis. FEPMVZ, 1. ed. 2020.
HADJUR, Hugo; AMMAR, Doreid; LEFÈVRE, Laurent. Toward an intelligent and efficient beehive: A survey of precision beekeeping systems and services. Computers and Electronics in Agriculture, v. 192, p. 106604, 2022.
HOSMER, David W.; LEMESHOW, Stanley; STURDIVANT, Rodney X. Applied Logistic Regression. 3. ed, Wiley, 2013. Disponível em: https://doi.org/10.1002/9781118548387. Acesso em: 31 jan. 2025.
IBGE – INSTITUTO BRASILEIRO DE GEOGRAFIA E ESTATÍSTICA. Produção de mel de abelha,2022. Disponível em: https://www.ibge.gov.br/explica/producao-agropecuaria/mel-de-abelha/br. Acesso em: 30 out. 2019.
JAMES, Gareth; WITTEN, Daniela; HASTIE, Trevor; TIBSHIRANI, Robert. An introduction to statistical learning: with applications in R. Springer, 2013.
JARVUS. Audio Normalization by MATLAB. Medium, 2023. Disponível em: https://medium.com/audio-processing-by-matlab/audio-normalization-by-matlab-6407c69dbea. Acesso em: 31 jan. 2025.
LOGAN, Beth. Mel Frequency Cepstral Coefficients for Music Modeling. In: Proceedings of the International Symposium on Music Information Retrieval (ISMIR). 2000.
MÜLLER, Meinard. Fundamentals of Music Processing: Audio, Analysis, Algorithms, Applications. Springer, 2015.
QANDOUR, Amro et al. Remote beehive monitoring using acoustic signals. Australian Acoustical Society, 2014.
RANGEL, J.; SEELEY, T. D. The signals initiating the mass exodus of a honeybee swarm from its nest. Animal Behaviour, v. 76, n. 6, p. 1943-1952, 2008.
ROBLES-GUERRERO, Antonio et al. Comparative study of machine learning models for bee colony acoustic pattern classification on low computational resources. Sensors, v. 23, n. 1, p. 460, 2023.
RODRIGUEZ, Ivan et al. Recognition of pollen-bearing bees from video using convolutional neural network. In: IEEE WINTER CONFERENCE ON APPLICATIONS OF COMPUTER VISION, 2018, Lake Tahoe, NV. Anais... 2018
SÁNCHEZ-BAYO, Francisco; WYCKHUYS, Kris A.G. Worldwide decline of the entomofauna: A review of its drivers. Biological Conservation, v. 232, p. 8-27, 2019.
SHARIF, Muhammad Zahid et al. Soundscape indices: new features for classifying beehive audio samples. Sociobiology, v. 67, n. 4, p. 566-571, 2020.
SIMPSON, J. The mechanism of honey-bee queen piping. Zeitschrift für vergleichende Physiologie, v. 48, p. 277-282, 1964.
TASHAKKORI, Rahman; HAMZA, Abdelbaset; CRAWFORD, Michael. Beemon: An IoT-based beehive monitoring system. Computers and Electronics in Agriculture, v. 190, p. 106427, nov. 2021. DOI: 10.1016/j.compag.2021.106427.
WROBLESKI, Antonio. A hora da virada do setor logístico no Brasil. Exame, 2023. Disponível em: https://exame.com/bussola/antonio-wrobleski-a-hora-da-virada-do-setor-logistico-no-brasil. Acesso em: 20 jul. 2023.
RABINER, Lawrence R.; JUANG, Biing-Hwang. Fundamentals of Speech Recognition. Prentice Hall, 1993.
VIEIRA, Fernanda Rodrigues; ANDRADE, Daniel Caixeta; RIBEIRO, Francis Lee. A polinização por abelhas sob a perspectiva da Abordagem de Serviços Ecossistêmicos (ASE). Revista Ibero-Americana de Ciências Ambientais, v. 12, n. 4, p. 544-560, 2021.
WARDHANI, Ni; ROCHAYANI, Masithoh; IRIANY, Atiek; SULISTYONO, Agus; LESTANTYO, Prayudi. Cross-validation Metrics for Evaluating Classification Performance on Imbalanced Data. In: International Conference on Computer, Control, Informatics and its Applications (IC3INA). IEEE, 2019. p. 14-18. Disponível em: https://doi.org/10.1109/IC3INA48034.2019.8949568. Acesso em: 31 jan. 2025.
ZLATKOVA, Aleksandra; GERAZOV, Branislav; TASHKOVSKI, Dimitar; KOKOLANSKI, Zivko. Analysis of parameters in algorithms for signal processing for swarming of honeybees. In: 2020 28th Telecommunications Forum (TELFOR). IEEE, 2020. p. 1-4.
ZACEPINS, Aleksejs; BRUSBARDIS, Valters; MEITALOVS, Jurijs; STALIDZANS, Egils. Challenges in the development of Precision Beekeeping. Biosystems Engineering, v. 130, p. 60-71, 2015.

