Chapter 1 Introduction
The European honey bee (apis mellifera) provides a significant contribution to agriculture in Germany and worldwide: the production of roughly 35% of globally consumed agricultural products relies on pollination by bees and other pollinators (Klein et al. (2007)). Besides that, bees produce honey, a product with up to 25 thousand tons of production and an even larger domestic consumption in Germany, according to the Federation of German Beekeepers (DIB). While the longer-term population trend of bee colonies has been positive in Germany, every year significant numbers of colonies do not survive the winter (Deutscher Imkerbund (2020)). A number of studies have identified as the largest, and statistically significant factors for the loss of colonies over the winter in particular mite pests and virus infections. Other factors, such as increased use of pesticides in nearby fields or global warming have been discussed in the literature with controversy: many critics of industrialized agriculture suggest that while modern pesticides are not directly lethal to bees when ingested via pollen, they might still have effects on the breeding of new bees and thus contribute to colony collapse at a later stage.
A longitudinal study conducted since 2004 by a number of stakeholders in science and industry is the German Bee Monitoring Project (DeBiMo) (Genersch et al. (2010)), which collects high quality data from selected 120 beekeepers across Germany. This is done by means of regular surveys throughout the season as well as three annual inspections including detailed lab analyses. Up to now, the regular reports have identified as significant factors contributing to colony losses over the winter infestations with the Varroa mite, certain virus infections and old age of the queen, while there seems to be no indication of wrong beekeeping practice. The results obtained in this project might, however, be somewhat biased due to the selection of experienced beekeepers, which by definition lowers the possibility of wrong beekeeping practices. A wider survey of a different apicultural institute shows higher rates of colony losses over the winter than in DeBiMo (Klockgether and Hefner (2016)). A monitoring as in DeBiMo with only few inspections per year, however, only serves as a means of research, but provides little or no real-time support to the participating beekeepers to quickly react to possible mite pests or other problems. At the same time, a higher frequency of inspections, which involve physically opening the beehive, can cause intense stress to the bees and especially in the winter may be fatal for the colony. In recent years academia and industry have increasingly invested in finding less invasive solutions using Internet of Things (IoT) technologies, namely by installing various sensors within beehives for continuous observation and using machine learning methods to improve beekeeping practices.
Bee Observer BOB, a Citizen Science project with a grant of the German Federal Ministry of Education and Research (BMBF) (BMBF-Internetredaktion (2019)), under project management of the University of Bremen “Sensorbeuten - Cognitive Neuroinformatics” (5/2/2020), is one project in this field. Being a Citizen Science project, BOB relies on support by volunteers, often via associations. In this context the stakeholders involved are the Hiveeyes project (The Hiveeyes Developers (10/2/2019)) and individual citizens for the development and implementation of the framework for the technical system of sensors, and CorrelAid “CorrelAid” (4/1/2020) for data analysis. The project further includes the participating beekeepers individually and via associations. The costs for the sensors as well as necessary spare parts for repairs are covered by the project, while the costs for electricity and internet connection have to be covered by the beekeepers themselves. The project grant of the BMBF is running out in December 2020, but the University of Bremen is currently exploring ways to continue the project afterwards.
Work on the project has started in 2018 with the development of the sensors and since February 2019 data is continuously collected from beehives across Germany (and a few in other countries), providing information on temperature, humidity, air pressure and weight. Further, the participating beekeepers are storing the observations made during their regular inspections via a mobile application. The aim of CorrelAid’s involvement is to find out whether by using methods of machine learning one can detect outliers and anomalous trends and predict certain events in the development of the bee population. Successful models should then be implemented directly into the mobile app by the project team of the University of Bremen, so that beekeepers receive useful notifications to maintain colony health.
1.1 Objective
The Internet of Things opens up enormous opportunities to research in general and apiology in particular: with growing amounts of data, researchers are able to get better insights into bee behavior and help beekeepers in their work, but also analyze the impact of external environmental changes on bees such as the use of pesticides. The open and voluntary nature of the Bee Observer project allows for a good inflow of data, but this comes at the cost of somewhat lower data quality: while the project team provides guidance on how to install the sensor kits, compliance with these guidelines and regular maintenance of the sensors cannot be ensured. Also, the sensors used in the project were selected for their relatively low costs, to keep entry barriers low for newcomers. These factors lead to a rather low data quality, expressed predominantly through lower than expected data volumes, when sensor fail to transmit data completely, or erroneous measurements, when sensor transmit data that is either outside the feasible sensor range or within the range, but implausible. This can happen when the sensor kits lose access to electricity or get damaged, which can happen e.g. when they overheat. As a second source of information there is a database on beekeeper inspections filled by the beekeepers via a mobile app, where, however, most fields are voluntary.
To build a good basis for future bee research, in this thesis I will conduct an in-depth data quality analysis of the sensor data and propose appropriate data cleaning steps for the existing data on the one hand as well as monitoring solutions to improve the quality of future raw data. To keep the beekeepers active and engaged in the project I will also propose as an analytical use case a classification model to detect swarm events.
1.2 Methodology
In the data quality assessment, the sensor and the inspections data will be analyzed with simple summary statistics and more detailed analyses, addressing seasonal patterns, missingness and correlation between variables. The sensor data will further be assessed under a data quality framework developed with a special focus on the Internet of Things (Cheng et al. (2018)). Based on the insights obtained from the analysis, rules to remove implausible sensor values and ideally impute them are defined. Further, suggestions to improve the design of the mobile app to record beekeeper inspections are made to improve the internal consistency of the data.
As an analytical use case, a training dataset on swarming events is built, based on sensor data joined with information from on beekeeper inspections. Swarms should be detected in a timely manner, so that the beekeeper can react and move the colony into a new home instead of losing it. Different classification models are trained to detect swarming events, and the best is identified using standard performance metrics in a cross-validation exercise. The selected model should, however, also avoid too many false positives: too many unnecessary trips to the apiary may discourage the beekeepers from participating in the project. Afterwards, the model is tested on new unlabeled data collected during the swarming season to check how sensitive the model is.