Chapter 2 Literature

This section provides a basic introduction on the European honey bee, beekeeping and the first literature on the integration of Internet of things technology into beekeeping practice. Further, various machine learning methods appropriate for the analysis of sensor data in beekeeping are presented.

2.1 Short introduction to apiology

The European honey bee is the most common species of honey bees. Honey bees are eusocial, that means they live in highly organized societies, called colonies, with different social castes and strong cooperation and division of labor (Wikipedia (2020)). A colony is formed by a single queen, a female with a fully developed reproductive tract, a large number of non-reproductive females, called worker bees, and a small proportion of fertile male drones. One colony can house tens of thousands of bees. Worker bees leave the hive during the day in spring and summer to forage nectar, water and pollen for the colony (thereby pollinating different plants) and convert it into honey and bee bread for immediate consumption or storage. In their earlier stages in life, workers nurse the brood within the hive, and build and maintain the hive using wax. The only purpose of the drones is to mate with and fertilize the queen, after which they immediately die. Individual workers and drones have a rather short life-span, but due to the continuous breeding by the queen, a colony can exist for multiple years. Communication within a colony happens via vibration, pheromones and dances. Given the high degree of social organization one can consider a bee colony a superorganism and reproduction of the colony (via swarming) rather than of individual bees is the significant unit to consider.
In regions with temperate climate, such as Germany, the life cycle of a colony is typically as follows: in spring or early summer environmental conditions are favorable and the hive is filled with honey, leaving little space for new eggs. This will signal to the worker bees to nurse some eggs with royal jelly, which is higher in protein than honey, so that the eggs develop into queens. Normally, the pheromones of the queen would suppress the urge of worker bees to develop these queen cells, but with higher age the queen cannot produce enough of this scent. If the nursing of new queens is not suppressed, a swarm occurs: when the new queen hatches, the old queen leaves the hive with around half of the worker bees to found a new colony. After a few days of orientation, the young queen mates with multiple drones until she has collected enough sperm to start laying eggs. The number and pace of egg-laying depends on weather and resource availability. In Europe, queens typically stop breeding over the winter as workers cannot forage pollen and the colony is drawing on the food stored over the warmer periods. They will slowly resume breeding again in late winter when the days get longer. Before the winter the colony also expels the drones, as they would require too many resources.
Honey bees have been domesticated for thousands of years, and with more industrialized agriculture across the world, the number of colonies globally has increased steadily. Nevertheless, in recent decades there have been increasing reports of colonies lost over the winter, which is a problem for beekeepers and farmers, whose crops may be dependent on pollination. A major cause behind this is Varroa Destructor, a mite species originally from Asia which became a problem in Europe in the 1970s (Rosenkranz, Aumeier, and Ziegelmann (2010)).
Without technological solutions, the only way a beekeeper could monitor the health of his/her colonies was to conduct physical inspections of the hive. The process of inspections, however, can cause intense stress to the bees. Typically, a beekeeper lifts the cover of the hive and spreads smoke into the hive, which triggers an emergency behavior in the bees: in fear of a wildfire, they retreat into the inside of the hive and eat honey to prepare for a later evacuation. Due to this retreat it is now easier for the beekeeper to take out the individual frames of the beehive and inspect them one by one. During an inspection the carefully maintained micro-climate inside the hive is disturbed and will required substantial work by the colony to reestablish it after the inspection. During colder temperatures in winter, however, physical inspections would not be possible at all, as this could be fatal. To complement traditional methods of research, using manual inspections of beehives and laboratory analysis, but also to improve practical beekeeping, in recent years researches have worked on less invasive methods for monitoring bees, to be discussed in the following section.

2.2 First steps in precision beekeeping

Interdisciplinary research on bees using IoT technology is a field still in development, yet expanding rapidly. There are numerous commercial initiatives offering full-service solutions for monitoring and analysis (“Solutionbee” (5/2/2020), “Beewise” (5/2/2020), “Arnia - Remote Bee Hive Monitoring System” (5/2/2020), “World’s Best Smart Beehive Monitoring System - Gobuzzr” (5/2/2020), “Innovative Beehive Monitoring System by Pollenity” (4/22/2020)), yet also more academic work on the topic is getting published, with useful insights on the relationships between various environmental variables recorded via sensors and various events in a beehive: for example, before a colony starts swarming, one can observe a steady increase in temperature and humidity in the hive within the 20 minutes before the actual event, as many bees are warming up their muscles for flight at the same time (Zacepins et al. (2016), Anand et al. (2018)). Also, during swarming the queen bee is emitting a specific sound signal at a higher frequency (Anand et al. (2018)). Food consumption in non-foraging periods or the number of foraging workers can be estimated from weight changes (Zacepins et al. (2015)). Other use-cases for sensor data are simple alerts in case the hive gets too hot, too cold or too damp (Edwards Murphy, Magno, O’Leary, et al. (2015), Markovic et al. (2016)) or in case the hive was knocked over by wind or a wild animal (Edwards Murphy, Magno, Whelan, et al. (2015)) using rule-based algorithms.
In most cases, simple fixed decision rules are implemented and often based only on a single variable, but there have been first applications of machine-learning methods: in one case a decision-tree model classifies the current state of the colony to one of seven states (Edwards-Murphy et al. (2016)), in another application a two-class boosted decision-tree model predicts whether a colony will survive the winter or not (Dineva and Atanasova (2018)). Some proposed monitoring systems with analysis done directly in processing units close to the hive, so that less data needs to be transmitted via the internet, which however may limit computing power and restrict the toolset to simpler algorithms.

2.3 Useful methods of machine learning from other domains

The main data of interest used in this project are continuous time series of numerical data. While there may be use cases for regression problems, for example to forecast the potential harvest of honey in a season given the data recorded at the hive level and external factors, the more obvious interest will lie in classification: what is the current status of the hive? Are the development conditions for the brood favorable? One well established method of classification is the logistic regression, where the probabilities of a specific event occurring are regressed on numerical predictors using an S-shaped logistic function (James et al. (2017)), with applications in many domains including economic research (Estrella and Hardouvelis (1991)). The logistic regression model is characterized by a linear relationship between the predictors and the logarithm of the odds of an event occurring. This property allows for a straightforward interpretation of the predictors’ model coefficients (in particular their signs) and their importance, but may make this model less appropriate in situations where relationships are non-linear. A more general method used for both regression and classification, with many applications across domains, are based on decision trees (Breiman et al. (1998)): here, the data are recursively segmented using randomly selected split variables so that the difference between segments is maximized and difference between observations within segments minimized. The model outcome is then the mode of each segment in terms of the categorical output variable in the case of a classification problem, or the means of the numerical output variable in the case of a regression problem. To avoid an overfitting of the tree models to the training data, the trees can be pruned, i.e. hyper-parameters can be set to limit the maximum depth of the tree in terms of the number of split nodes or to set a minimum number of data points contained in a node before it is split further. Later extensions of this principle, like Random Forests (Breiman (2001)) or Gradient Boosted Trees (Friedman (2001)) are built on combining and averaging multiple trees, rather than using just one, to further improve the generalization of the models to unseen data.
Given the overall low number of observations on beekeeper inspections in the present dataset and thus labels to be used in classification models, it may be also useful to perform unsupervised learning methods for anomaly detection, classifying observations into normal and anomalous. Recurrent Auto-Encoders (Goodfellow, Bengio, and Courville (2016)) are a method of Deep Learning to analyze sequences of (numerical) data, in which the various transformation layers of the neural network are set in such a way that their inputs are recreated as good as possible. Depending on the distance between the original data and the output of the auto-encoder, the sequences receive an anomaly score and those beyond a certain threshold are classified as anomalies. This method has been successfully been applied for example in the domains of network security (Filonov, Lavrentyev, and Vorontsov (2016)) and maintenance of industrial machinery (Malhotra et al. (2016)).