Professional Documents
Culture Documents
Abstract – The analysis of the main trends in the development of II. PROBLEM DEFINITION
automation in the field of beekeeping, in particular the use of
modern network technologies, sound recognition technologies Judging by the publications in the network, it can be noted
for monitoring the state of bee-families. Considered the main that automation in the field of beekeeping in European coun-
existing recognition technologies, requirements for the hard- tries is widely introduced. This is due to the fact that bee-
ware of monitoring systems. The possibility of implementing a keeping develops mainly not only for the products of bee-
prototype based on the Arduino platform with Wi-Fi modules keeping, but because of the need for pollination of agricul-
ESP8266, advantages and disadvantages of this solution was tural plants, in addition bees play an important role in main-
considered. As a result, the conclusion of the feasibility of using
the 32-bit STM32 microcontroller with a core ARM Cortex-M4,
taining the stability of the entire biosphere. There are known
and for developing a prototype device - the foreign developments in monitoring systems of bee colonies:
STM32F4DISCOVERY evaluation board. The features of de- for example, Apis - the development of Portuguese beekeep-
velopment of projects on STM32, a choice of software for devel- ers [1], which allows you to monitor the status of hives re-
opment are also considered. motely, directly from your smartphone. This system can sig-
nificantly facilitate the life of both a beginner beekeeper and
Index Terms – monitoring the state of bee families, algorithms a professional, and the main thing is to significantly reduce
for artificial neural networks (neuronet), algorithms for fast the physical interference in the life of the bees themselves.
Fourier transform (FFT), speech recognition technology, Ar- The Apis monitoring system aims to make a "smart hive"
duino Due, IoT, ARM Cortex-M4, STM32F4DISCOVERY,
STM32Cube, CooCox IDE.
from each hive with a built-in temperature and humidity sen-
sor, bee counter and weights. All-important statistical data is
sent to a computer, smartphone, or tablet. In addition, the
I. INTRODUCTION European Union is completing the development of a device
for remote monitoring of the health of bees by monitoring
Automation in beekeeping would help solve several prob-
the sounds produced by them in the hive. The initiators of
lems. Let's consider the main relatively easily solved prob-
this project were the University of Trent (UK) and the Asso-
lems. Diagnosis of the state of beekeeping by sounds pro- ciation of Farmers of Great Britain (BFA). For the imple-
duced by a bee hive. In the summer period, you can deter- mentation of the project from the EU budget allocated 1.4
mine the different stages in the life of the hive: calm state,
million euros [2].
ventilation, singing of the uterus, swarm output, flying bees,
There are also domestic developments [3], where it is pro-
etc. Especially important is the ability to recognize the sing-
posed alongside monitoring, to realize also the regulation of
ing of the uterus; during the swarming period, the probability temperature and humidity in the hive (by installing an elec-
of bee-losses and beekeepers during this period are forced to tric heater in the hole of the lower tap) during wintering, and
constantly monitor the apiary, not having the opportunity to
also in the spring-summer period prior to the beginning of
go off for a while somewhere. In addition, many experienced
June Moment, when stable warm weather is established in
beekeepers carry out various measures to eliminate swarming
the central part of Russia) - at this time there is a sharp tem-
(make so-called layers, etc.), which can be quite labor-
perature drop, which requires large energy costs from the bee
intensive. During the wintering period, it is also possible to colony. The main element of the monitoring and diagnostics
determine the condition of the bee-family by sounds, for ex- device is the Atmel microcontroller. It is connected to digital
ample, to determine the situation of lack of food, disease of
temperature sensors DS1620, humidity HIH4000 and electret
bees, violation of the temperature regime in the winter hut,
microphone SG72.
increased humidity, etc., which require intervention by the
To diagnose the condition of bee families by sounds, you
bee-fisherman. To monitor the condition of the bee family, in
can use known and widely used speech recognition technolo-
addition to the sound signals of the hive, it is also advisable gies, with two fundamentally different recognition methods:
to remove the temperature in the hive, because The increased T2SI (text-to-speaker-independent, "person-independent",
temperature during the wintering of the whitefish reveals the
anyone can be speaking) and SD (speaker -dependent, the
disturbance of the bees. Also, the humidity in the hive is im-
one who taught the system should speak). Obviously, in our
portant - a change in humidity can also be an alarm.
device, the more easy to implement SD method will be more
170
978-1-5386-7054-5/18/$31.00 ©2018 IEEE
Authorized licensed use limited to: Monash University. Downloaded on August 29,2020 at 01:40:59 UTC from IEEE Xplore. Restrictions apply.
2018 14th International Scientific-Technical Conference APEIE – 44894
appropriate. The possibility of using a free voice recognition humidity in the spring-summer period will be too time-
service from Google servers such as Google ASR or Yan- consuming (it is necessary to tie the wires across the whole
dexSpeechKit [4] was considered, but this requires a constant apiary) for widespread introduction, but the ability to deter-
network connection, that for a battery device with Wi-Fi mine the state of swarming (the so-called singing of the uter-
modules ESP8266 [5], known for their high power consump- us) will be called for by beekeepers - After the swarm period,
tion, is unacceptable. the modules can be disabled and completely removed from
In addition, it must be said that these programs use a more the apiary. We also consider excessive and laborious control
complex "human-independent" T2SI method, whereas in our of the weight of the hive.
case, SD (speaker-dependent) is sufficient. Thus, it is clear For recognition, it is proposed to use algorithms of artifi-
that Google ASR or YandexSpeechKit speech recognition cial neural networks (ANN) [10], with a preliminary expan-
services can not be adapted to recognize the sounds of bees, sion of the frequency spectrum, for which use the algorithms
and it would be necessary to develop their own service with for Fast Fourier Transform (FFT) - there are libraries of 8-bit
their server. It is possible to refuse the transfer of all data to conversion [11]. Thus, we propose to implement monitoring
the server. The operating system for mobile devices Android on the sounds of the bee-family and the temperature in the
4.1 allows this, because there is a system of offline - speech hive.
recognition; Internet access is not required. Moreover, the It is proposed to periodically extract small samples of the
quality of recognition is reduced. But in our case, using An- signal from the microphone module, digitize it using an Ar-
droid - the device will be redundant and expensive, in this duino board, and only if a change in the state of the bee-
case it is desirable to avoid redundancy, because first of all. family is detected (for example, the singing of the uterus has
you need to minimize power consumption. been fixed) to include a Wi-Fi module. This will minimize
EasyVR Shield 3.0 speech recognition software [6] (shown the power consumption of the device, which is especially
in Fig. 1) was also considered, but this is too expensive a important due to the use of autonomous power. In view of
solution for beekeeping (price 50 Euro). the fact that large volumes of RAM are required for selec-
tion, high processing speed is suggested to be used by Ar-
duino Due [12] based on the 32-bit ARM Cortex-M3 86MHz
ARM, 512K flash + 96K RAM. Clones Arduino Due from
Chinese manufacturers can cost relatively under-the-go -
from 15USD. The use of the Arduino platform is usually due
to the low cost and a large number of ready-made modules
with libraries for their connection. In addition, you can easily
Fig. 1. EasyVR Shield 3.0
find a lot of information on devices already implemented on
this base. The lack of hardware support for digital processing
III. PROPOSED IDEAS FOR DEVELOPMENT of signals, support of operations for floating-point numbers,
the need for large computing power with low power con-
After analyzing the state of the problem, it is possible to sumption leads to the decision about the advisability of using
propose a fairly budgetary solution using the Arduino plat- 32-bit microcontrollers with the ARM Cortex-M4 core.
form, with the Wi-Fi module ESP8266 [5], the microphone The emergence and wide distribution of sufficiently budget
module [7], the Micro SD card [8] needed to store the sam- 32-bit microcontrollers STM32 with the ARM Cortex-M4
ples (shown in Fig. 2), the DS18B20 digital temperature sen- core, which differs by the built-in instructions for Digital
sor. The sampling frequency for the audio signal is usually Signal Processing (DSP) and Floating Point Unit (FPU) ,
taken at 48 kHz, but for the sounds of the hive it is sufficient allows them to be used for our development. And, despite the
to take the frequency band of 70..600Hz [9], and then it is high power and speed due to the peculiarities of the timing
obvious that the requirements for the microphone module system in ARM microcontrollers, it is possible to significant-
bandwidth are low - for the electret condenser microphone ly reduce power consumption. Particularly convenient for
CZN used in the microphone module [7] 20Hz..14kHz. Also, developing a prototype device is the STM32F4DISCOVERY
the sampling frequency of the signal can be reduced, which board [13] (shown in Fig. 2), based on the
will reduce the memory and speed requirements of the con- STM32F407VGT6 microcontroller [14] (Cortex M4,
troller in comparison with the known task of speech recogni- 168MHz, flash 1MB, RAM 192Kb). Of course, the presence
tion, for example. of DSP and FPU is especially valuable, which will speed up
the processing of sound, but also significantly higher clock
frequency, a large amount of RAM, as well as the presence
of a board-based digital microphone (ST MEMS sensor
MP45DT02).
In addition, there is an audio DAC with an amplifier of
Fig. 2. Wi-Fi module ESP8266-07, microphone module, SPI - reader mod- class D, which you can try to use to reproduce pre-recorded
ule for micro SD card. in memory samples of the uterus sounds in a calm state in
Thus, we propose to implement monitoring on the sounds order to calm, while digging, for example. Thus, it becomes
of the bee-family and the temperature in the hive. We believe possible to investigate the influence on the behavior of bees
that the implementation of the regulation of temperature and with the help of standard uterus sounds, which could possi-
171
Authorized licensed use limited to: Monash University. Downloaded on August 29,2020 at 01:40:59 UTC from IEEE Xplore. Restrictions apply.
XIV Международная научно-техническая конференция АПЭП – 2018
172
Authorized licensed use limited to: Monash University. Downloaded on August 29,2020 at 01:40:59 UTC from IEEE Xplore. Restrictions apply.
2018 14th International Scientific-Technical Conference APEIE – 44894
173
Authorized licensed use limited to: Monash University. Downloaded on August 29,2020 at 01:40:59 UTC from IEEE Xplore. Restrictions apply.