Articles | Volume 11, issue 1
https://doi.org/10.5194/jsss-11-29-2022
https://doi.org/10.5194/jsss-11-29-2022
Regular research article
 | 
20 Jan 2022
Regular research article |  | 20 Jan 2022

An in-hive soft sensor based on phase space features for Varroa infestation level estimation and treatment need detection

Andreas König
Abstract

Bees are recognized as an indispensable link in the human food chain and general ecological system. Numerous threats, from pesticides to parasites, endanger bees, enlarge the burden on hive keepers, and frequently lead to hive collapse. The Varroa destructor mite is a key threat to bee keeping, and the monitoring of hive infestation levels is of major concern for effective treatment. Continuous and unobtrusive monitoring of hive infestation levels along with other vital bee hive parameters is coveted, although there is currently no explicit sensor for this task. This problem is strikingly similar to issues such as condition monitoring or Industry 4.0 tasks, and sensors and machine learning bear the promise of viable solutions (e.g., creating a soft sensor for the task). In the context of our IndusBee4.0 project, following a bottom-up approach, a modular in-hive gas sensing system, denoted as BeE-Nose, based on common metal-oxide gas sensors (in particular, the Sensirion SGP30 and the Bosch Sensortec BME680) was deployed for a substantial part of the 2020 bee season in a single colony for a single measurement campaign. The ground truth of the Varroa population size was determined by repeated conventional method application. This paper is focused on application-specific invariant feature computation for daily hive activity characterization. The results of both gas sensors for Varroa infestation level estimation (VILE) and automated treatment need detection (ATND), as a thresholded or two-class interpretation of VILE, in the order of up to 95 % are presented. Future work strives to employ a richer sensor palette and evaluation approaches for several hives over a bee season.

Dates
1 Introduction

Major issues from environmental pollution to invasive species are threatening our ecological system and the human food supply. Insects – honey bees in particular – play a decisive role (e.g., for pollination) in maintaining this system. The Varroa mite is a parasite that poses a major threat to bee keeping and is the cause of many bee colony losses. The monitoring of the Varroa infestation level is one important task of conventionally operating bee keepers. Although there is a community practicing treatment-free bee keeping (Hudson and Hudson2020) or chemical-free alternatives like thermal treatment (Wimmer2020), the majority of bee keepers follows standard treatment practice (e.g., employing formic acid) and needs to know the right time to start treatment based on the hive infestation level. In general, access to information on the current hive infestation level without having to disturb the bees would be of high value, independent of the treatment method. Sensors and automation (Werthschützky2018), like in home automation (Eric Mounier2017), automated agriculture (Rembert2020), condition monitoring (Lee et al.2011; IEEE2015; Zhang et al.2017; Weckbrodt2019), and Industry 4.0 (Kagermann et al.2011; Kohlert and König2016), can both alleviate hive keeping and make it much more effective. Thus, over the last 10–15 years, numerous approaches to digital bee keeping have been observed (e.g., Ohashi et al.2009; Cecchi et al.2020; Gil-Lebrero et al.2017; Kulyukin et al.2018; Nolasco et al.2018; Wallich2011; Suta2014; Bromenschenk et al.2007; König2019). In our IndusBee4.0 project, small, effective, and affordable cognitive integrated sensor systems (i.e., acting as a soft sensor) for continuous in-hive monitoring and state estimation (e.g., monitoring and reporting the Varroa infestation level) are pursued. In particular, affordable integrated gas sensors, namely SGP30 (SENSIRION2022; Rüffer et al.2018) or BME680 (Bosch2020) sensors, and suitable domain-specific features are of interest here. Although individual sensor readings can already provide meaningful information on the Varroa infestation level estimation (VILE) and the automated treatment need detection (ATND), the focus of this paper is on the investigation of increasingly invariant feature computation based on a phase space abstraction to hive activity over day cycles. The approach, the most meaningful features, and possible recognition rates will be presented and compared to the individual sensor readings.

2 Ground truth determination by conventional Varroa monitoring

There are several standard methods available for conventional VILE. A common feature of these methods is that they all imply substantial effort for the bee keeper and deliver results only at larger time steps. The analysis of hive debris, including mites dropping from the hive bottom that are collected on a slider or Varroa board, is the most common technique (Bayerische Landesanstalt für Weinbau und Gartenbau2021). Usually, a probing time (tp) of 3 days is expended until a manual (or more recently (semi) automated vision-based) analysis of the debris for the number of dropped Varroa (Nd) can be conducted. The ground truth of the hive infestation level (GT) or current Varroa population size can be estimated from this count (Bayerische Landesanstalt für Weinbau und Gartenbau2021; König2019) by employing a scaling factor, e.g., Fs=150:

(1) GT = F s × N d t p .

Another common approach, also denoted as the flotation method, extracts a bee sample from the hive and submerges the sample in water (drowning the bees) to separate the bees and Varroa mites. The powdered sugar and CO2-based sedation methods are two alternative, more bee-friendly variants. Again, the hive infestation level can be estimated from a count, but the sample adequateness will probably depend on the location of extraction in the hive. More recent principle approaches try to scrutinize in- and outgoing bees at the flight hole for Varroa mites clinging to them (e.g., Chazette et al.2016; König2019); however, all methods based on the count of mites clinging to bees are not able to give an immediate reckoning of the mite population in the brood.

Thus, in this work, standard counting on a Varroa board was applied to obtain the required GT for VILE and ATND, but a higher-than-standard inspection frequency was used (approximately twice on average throughout the bee season) in order to obtain an improved temporal analysis of the hive infestation state.

3 Measurement approach and system

With regard to the objective of finding a solution that is unobtrusive to bees, a compact realization is aspired to, even for the first prototype, for the hive monitoring system: it should not consume significant volume in the supporting comb nor significantly limit hive traffic routes and air ventilation. Limited power consumption and cost were further sensor selection criteria. The block diagram of the IndusBee4.0 apiary hive monitoring system is given in Fig. 1, which enumerates the current sensor palette: the standard DHT22 T/RH (temperature and relative humidity) sensors (Adafruit2021); the HX711 (AVIA Semiconductor2020) weight sensor module with four standard weight cells for hive, honey storage, or feeder module scale implementation; a Knowles SPH0645 MEMS (micro-electromechanical system) microphone (Knowles2021) for vibration and sound recording; and the SGP30 (SENSIRION2022) and BME680 (Bosch2020) gas sensors. One SmartComb unit with the number and placement of the named sensor types is shown in Fig. 2. This instrumented comb is placed in the center (slot 5 of 10) in the middle or center super of the regarded three-super hive. This placement situated the sensors close to the center of breeding activity and associated Varroa occurrence. The measurement system was programmed in Python, employing existing libraries for the sensors where possible: the Adafruit library for the DHT22 (Adafruit2021); the HX711 library (Zak2020) in its Python 2 version; the Pimoroni libraries for the SGP30 (Pimoroni2020b), employing the DHT22 RH reading and the required absolute humidity (AH) computation algorithm from Mander (2021), and the BME680 (Pimoroni2020a); and the scikit-learn package (Pedregosa et al.2011) in Python for the machine learning part. Recently, much more efficiently integrated universal sensor platforms (USePs) have emerged, such as the USeP research platform and the follow-up Sensry platform (Sensry2021), which have quite similar sensor portfolios. Basic investigations in the past have revealed that both the sound patterns emitted by bees and the air composition inside the hive host information that correlates with the Varroa infestation level, as determined by the conventional methods outlined in the previous section. Hive sound patterns also allow one to detect information on factors such as a “missing queen” or the development of “swarming mood”. Thus, in our work and in many previous studies, microphones and signal processing analysis have been applied (Kulyukin et al.2018; Nolasco et al.2018; Bromenschenk et al.2007; König2019). MEMS microphones deliver the acoustic information on the hive state in our Pi-Zero-W-based SmartComb in-hive measurement system, including continuous cues for VILE in a multi-sensor or soft sensor approach. Recent intriguing work, based on a set of Figaro gas sensors and an external measurement system, confirmed the existence and usefulness of a correlation between hive air analysis results and the Varroa infestation level (Szczurek et al.2019, 2020a; Ba̧k et al.2020). With the advent of highly integrated gas sensing systems, such as the Sensirion SGP30 multi-pixel gas sensor system1 (SENSIRION2022) or the BOSCH Sensortec BME680 (Bosch2020), the possibility for VILE using an in-hive low-cost gas sensing system and (in)direct indicators from hive air analysis over the bee season was added to our IndusBee4.0 system. Numerous projects exploiting these and other sensor chips have recently been carried out; these studies have predominantly focused on air quality issues (e.g., Arroyo et al.2020), but breath analysis (Jaeschke et al.2019) has also been carried out and inspired the use case in this work. The BME680 allows for the control of a sensor hot plate or the heating of the single gas sensor pixel, i.e., it can be modulated for temperature cycles (Lee and Reedy1999; Jaeschke et al.2019) in measurement. One significant advantage of a hive-integrated solution is measurement in the stable “bee climate”, which avoids numerous issues such as those related to the dew point that have been reported for external measurement setups (Szczurek et al.2020a; Ba̧k et al.2020).

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f01

Figure 1Overview of the IndusBee4.0 apiary monitoring system with SmartComb units including BeE-Nose for VILE (adapted from König2021a).

Download

4 Feature computation

Although instantaneous sensor readings can already be useful, as will be outlined in the following section, several issues with regard to sensor nonuniformity, drift, dynamics, or other temporal dependencies can advocate for the calculation of meaningful invariant features, as common in most pattern recognition applications. In gas sensing, normalization of sensor readings to a baseline value and/or compression by logarithm computation are the most common steps. Other techniques are the calculation of statistical or frequency domain features, such as the mean value, standard deviation, or spectral features. In particular, the dynamics of gas sensors under temperature modulation inspired the use of a technique from general systems theory related to the concept of phase space (PS) and features calculated from the resulting trajectories. There is an interesting relationship between established blob analysis and blob description by features in vision problems (e.g., lucidly described in Mallick2021) and phase space trajectory analysis and description by related features. The concept of phase space trajectory computation and description by meaningful compact features can be found in studies such as Martinelli et al. (2003) and Penza et al. (2009), where it serves to generate features from sensor dynamics observed for appropriately thermically modulated gas sensors.

This proven approach, employing, for instance, so-called dynamic moments (DM) (Penza et al.2009) or energy vectors (EV) is very attractive, and it inspired the investigation of the abstraction of the concept to the observable dynamics of a bee hive (e.g., Khoury et al.2013; Russell et al.2013), associating the dynamics of a daily activity cycle with the temperature modulation cycle of a sensor. With this aim, the data reported in the next section will be grouped into 24 h cycles, from midnight to midnight, and an abstraction of the phase space concept and related features will be computed. In the simplest case, a phase space can be generated by the temporal measurement series and its derivative (Penza et al.2009). A plot of these two quantities will return trajectories reflecting hive activity, which is assumed here to be affected or modulated by the Varroa infestation level, and descriptive features can be calculated for ensuing classification. This will reduce the weaknesses of instantaneous sensor readings, and, in contrast to the “real-time” character of bee swarm indication, the VILE or ATND can be reported on a less challenging timescale. The heuristic finding of the following descriptive features for the resulting trajectories in the phase space abstraction was inspired by standard blob analysis features (e.g., centroid and area, circumference) and Penza et al. (2009), leading to the ensuing list:

The first feature, diNorm, is the daily mean of the sensor reading di normalized by the mean number of days (NoD) in the campaign (which is calculated as Cm=1NoDiNoDdi):

(2) d i Norm = d i C m .

The second feature, ddiNorm, is the daily mean of the sensor reading derivative ddi normalized by the campaign maximum value of the derivatives, Cdm=maxi=1NoDddciddi, where ddci is the number of derivative values per day:

(3) dd i Norm = dd i Cd m .

The third feature, tlength, is the length of the daily trajectory normalized by the number of measurements of the regarded day, dci, in phase space:

(4) tlength = 1 dc i i = 2 dc i ( | d i - d i - 1 | + | dd i - dd i - 1 | ) .

The fourth feature, tangle, is the accumulated angle of the daily trajectory:

(5) tangle = i = 2 dc i arctan ( d i - d i - 1 ) ( dd i - dd i - 1 .

The fifth feature, diNormmaxr, is the ratio of the maximum sensor reading and the maximum derivative ddi, each normalized as given in Eqs. (2) and (3), respectively:

(6) d i Norm maxr = d i max / C m dd i max / Cd m .

The sixth feature, diNormminr, is the ratio of the minimum sensor reading and the minimum derivative ddi, each normalized as given in Eqs. (2) and (3), respectively:

(7) d i Norm minr = d i min / C m dd i max / Cd m .

The respective seventh and eighth features, dispanC and ddispanC, give the span center of the sensor readings and sensor readings' derivative displaced by the respective minimum value:

(8)dispanC=dimax-dimin2+diminCm,(9)ddispanC=ddimax-ddimin2+ddiminCdm.

Features 9 to 13 correspond to the dynamic moment calculations given in Penza et al. (2009), denoted as DM2, DM3X, DM3Y, DM3PB, and DM3SB, respectively:

(10)DM2=1dcii=1dci(di×ddi),(11)DM3X=12×dcii=1dci(di3-3×di×ddi2),(12)DM3Y=12×dcii=1dci(di3-3×di2×ddi),(13)DM3PB=2dcii=1dci(di2×ddi-di×ddi2),(14)DM3SB=2dcii=1dci(2×di3+3×(di2×ddi-di×ddi2)).

Feature 14, NoSC, adds information on the number of direction changes derived from the angle sign changes according to feature 4 (Eq. 5):

(15)αi=arctan(di-di-1)(ddi-ddi-1),(16)NoSC=i=2dci(Sign(αi)Sign(αi-1)).

Features 15 and 16 add information on the daily span of original and derived signal normalized by the respective normalization value:

(17)dispanC=dimax-diminCm,(18)ddispanC=ddimax-ddiminCdm.

This set of features with the described normalization will be calculated in the experiments outlined in the next section, based on the obtained and smoothed gas sensor readings from the SGP30 eCO2 and total volatile organic compound (TVOC) outputs and the BME680, and will be selectively used in the ensuing classifications with either four or two classes. Details of the methods and parameter settings are given in the next section.

5 Experiments and results

One SmartComb module, given in Fig. 2, was deployed in a mature hive that had released a swarm, and sensor data on temperature, relative humidity, weight, and hive sound as well as gas sensor data from hive air were collected from 8 July to 11 September until formic acid treatment. A baseline in this work was to look for indirect indications of the hive state from the sensor readings (König2021a), i.e., deviations from a normal state correlating with mite infestation. The direct indication or detection of certain gas components and absolute quantities (e.g., originating from the mites' metabolism) is a more ambitious and more costly next step that will require increased effort from the sensor portfolio to the data evaluation. The acquired and archived measurement data were processed based on standard Python. In the first step, a moderate smoothing of the data, sampled at approximately six samples per minute, was conducted using a digital low-pass filter from the SciPy signal package (The SciPy community2021) with the corner parameter set to 0.1. The smoothing settings have an immediate influence on the achievable classification rates of the following experiments.

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f02

Figure 2The SmartComb unit related to the reported measurements, including BeE-Nose for VILE.

Download

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f03

Figure 3BME680 resistance data for the period from 8 July to 11/19 September for temperature steps from 50 to 400 C as well as the scaled-up Varroa count GT.

Download

Figure 3 shows a subset of gas sensing measurements from the BME680 for eight temperature steps as well as the Varroa counting GT, the latter of which was scaled-up for the sake of visual representation, corresponding to the description in Sect. 2 for this campaign for 56 (58) d from 8 July to 11 (19) September 20202. The SGP30 (SENSIRION2022) and the BME680 (Bosch2020) gas sensors both served for measurement in this campaign. The SGP30 delivers both eCO2 and TVOC outputs as well as two additional outputs, denoted as Raw1 and Raw2 for hydrogen and ethanol, respectively. Results obtained for the SGP30 standard use in this application have been reported in König (2021b). The BME680 gives a single resistance value, which was acquired here for eight equidistant levels from 50 to 400 C in a basic staircase-shaped temperature cycle with an approximate 500 ms step time and the sensor reading at the end of the step time. These measurements from both sensors were directly employed in the first step as features for the VILE and ATND based on a hold-out approach: 837 samples per training and test set were extracted from the complete measurement data in steps of 250 with a displacement between the training and testing data of 125.

With regard to VILE, the problem has been simplified into four discrete steps or levels derived from the GT described in Sect. 2: No Varroa, Low Varroa, Mid Varroa, and Treatment !, corresponding to counted daily averages of 0, 2.5, 8.6, and 14 Varroa on the board from 3 days of screening in four inspection runs. With the established treatment threshold value of 10, the last daily average is definitely above the threshold. However, due to the sparseness of GT sampling, there are several days that are actually a better fit with the Treatment ! class than with the Mid Varroa class with which they were affiliated. The acquired data set, which actually ended with the onset of formic acid treatment, was extended by 2 days, 18 and 19 September, after the first week of treatment. These additional samples, extending the campaign to 58 d, can be affiliated with the Treatment ! class. To elucidate if 1 week of formic acid treatment had a perceivable effect, a fifth class, “Post-treatment”, was added for illustration purposes in the following (see Fig. 7).

For ATND, the first three classes are merged into the “SubTh” class, denoting a sensor reading below the treatment threshold. In this case, the 2 extra days after the first week of formic acid treatment are either labeled as Treatment ! or as SubTh. Figure 4 illustrates a scatterplot of the first and seventh BME680 temperature steps, showing a weak to moderate support for the VILE hypothesis. Table 1 shows the classification results, based on the scikit-learn package (Pedregosa et al.2011) and the included k-nearest neighbor (kNN) classifier, for the BME680 data from the campaign as well as the described VILE and ATND class labels and the hold-out approach (Pedregosa et al.2011, and Fukunaga1990; from p. 219 and p. 310, respectively) for all eight temperature steps. The results coincide with the scatterplot in Fig. 4 and are quite similar to previously obtained results from the SGP30 (König2021b).

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f04

Figure 4Campaign data for the period from 8 July to 11/19 September for the BME680 sensor at 50 and 350 C.

Download

Table 1Classification results for BME680 data using the hold-out approach for the 8 July to 19 September campaign with kNN (k=3).

Download Print Version | Download XLSX

The approach described so far has been based on the use of instantaneous sensor readings; however, this technique is restricted, as there is an obvious temporal dependence of information on the time of acquisition and/or on the sequence of sensory readings.

Recently, there have been investigations indicating that the time of day matters in this kind of measurement and interpretation (Szczurek et al.2020b). For this reason, data between 12:00 and 13:00 CET, as a time of commonly high hive activity, have been extracted from the database. Due to the significant reduction in samples in only 1 h of a 24 h period, the hold-out approach was modified to 1814 samples per training and test set, which were extracted from the complete measurement data set in steps of 5 and with a displacement between the training and testing data of just 3. Figure 5 shows the resulting scatterplot of the BME680 sensor at 50 and 350 C, and Table 2 gives the corresponding classification results again for all eight readings from the eight temperature levels; however, both visual assessment of the plot and repetition of the hold-out classification does not (with regard to the increased similarity of the training and test set) show significant improvement or change compared with the complete data.

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f05

Figure 5The extraction of campaign data for the period from 12:00 to 13:00 CET for the BME680 sensor at 50 and 350 C.

Download

Table 2Classification results for BME680 data using the hold-out approach for the 8 July to 19 September campaign for the period between 12:00 and 13:00 CET.

Download Print Version | Download XLSX

To advance from the evaluation of instantaneous sensor values to an analysis of hive daily activity, as well as to better cope with hive and sensor variations, the available database has been grouped into daily cycles, and (following the concept outlined in Sect. 4) a simple phase space with the original sensor readings on the abscissa and their first temporal derivative on the ordinate has been computed for each day and each sensor output or channel. Each phase space axis has been normalized by the corresponding campaign mean or maximum value, respectively, giving axes values without units. As a first example, Fig. 6 shows the resulting phase space trajectories for the whole campaign for the BME680 sensor at 50 C, with the class affiliation emphasized by the corresponding color, as employed and indicated in the legends of all scatterplots (e.g., in Fig. 5). Figure 7 shows a scatterplot of phase space features diNorm and ddiNorm for the phase space of Fig. 6 and the four classes of VILE as well as the 2 post-treatment days (in green). This plot suggests that the hive state gradually tends to move back to normal after 1 week of treatment.

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f06

Figure 6A phase space example of campaign data for the BME680 sensor at 50 C and the four classes of VILE.

Download

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f07

Figure 7An example of phase space features diNorm and ddiNorm for the BME680 sensor at 50 C and the four classes of VILE as well as the 2 post-treatment days (in green).

Download

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f08

Figure 8A phase space example of campaign data for the SGP30 sensor, TVOC output, and the four classes of VILE.

Download

Figure 8 shows the corresponding information for the concurrently measuring SGP30 sensor and its TVOC output. The trajectory families associated with the four classes in Figs. 6 and 8 obviously show promising interclass differences for a useful feature computation. Thus, from these daily trajectories in the phase space, features can be computed as outlined in Martinelli et al. (2003) and Penza et al. (2009) and extended upon in Sect. 4. From the 16 available features computed for every sensor output, the most relevant ones have been identified by common feature selection techniques. Summarizing, the daily means diNorm and ddiNorm, the trajectory length (tlength), the trajectory angle (tangle), and the trajectory number of sign change (NoSC) provide the most promising performance in this particular use case. The promise in the pursued modeling and feature computation is not so much the gain in recognition rate for one particular hive and sensor system; instead, it exists in the improvement of the invariance with regard to factors such as readings from different hives and sensor/measurement systems. This would be required to effectively deploy a functional VILE or ATND unit to all hives of an apiary or to different apiaries.

For this aim, the daily trajectory length (tlength) from Sect. 4, e.g., calculated from SGP30 eCO2 and TVOC outputs and related phase spaces, was selected. The resulting two-dimensional data already gave both compact and suitable results. Figure 9 shows the scatterplot of the tlength feature for SGP30 eCO2 and TVOC outputs. Table 3 shows the related classification results for kNN (k=1), a hold-out approach and ATND two-class labeling, where every second day samples were added to the test set and the other half were added to the training set, as well as the result of a leave-one-out (loo) validation run, as the number of days (and, thus, the available number of samples) is sparse compared with the use of instantaneous values.

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f09

Figure 9Scatterplot of the tlength feature for the SGP30 eCO2 and TVOC outputs and the four classes of VILE.

Download

Table 3Classification results of the tlength feature from the SGP30 eCO2 and TVOC outputs and the 8 July to 19 September campaign data with kNN (k=1) and the ATND two-class labeling.

Download Print Version | Download XLSX

To tentatively validate the approach and the underlying feature computation, data from a second campaign acquired from a different hive and different measurement system instance, equipped only with the SGP30 gas sensor, in 34 d of May and June 2020 for SGP30 eCO2 and TVOC outputs were reactivated. There was no calibration of the two sensor systems with regard to each other. As reported in König (2021a), the investigated hive unfortunately collapsed and perished before the Varroa population crossed the treatment need threshold. Therefore, data are only available for three classes, No Varroa, Low Varroa, and Mid Varroa. The Mid Varroa level is only represented by the last day of this campaign. Thus, for a first invariance investigation of the proposed feature computation, for both data sets from the two campaigns, the No Varroa and Low Varroa classes and the Mid Varroa and Treatment ! classes were merged into two respective classes as a modified ATND. Corresponding to Fig. 9, Fig. 10 shows the training (circles) and test (triangles) data sets from these two different hives. Classifier training and resubstitution then took place with the first campaign, and generalization was done with the second campaign, again using a kNN with k=1. Table 4 shows the results obtained. Moreover, Fig. 11 shows the first and second principle components of all 16 features for SGP30 eCO2 and TVOC outputs, i.e., 32 features, for both campaigns as well as the two classes of VILE used in the classification given in Table 4. Finally, Fig. 12 shows the first and second linear discriminant analysis (LDA) components for the same data and class affiliation.

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f10

Figure 10Scatterplot of the tlength feature for the SGP30 eCO2 and TVOC outputs for cross classification of the July–September (circles) and additional May–June (triangles) campaigns with two classes of VILE.

Download

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f11

Figure 11Scatterplot of the first and second principal components of the SGP30 eCO2 and TVOC outputs for cross classification of the July–September (circles) and additional May–June (triangles) campaigns with two classes of VILE.

Download

https://jsss.copernicus.org/articles/11/29/2022/jsss-11-29-2022-f12

Figure 12Scatterplot of the first and second LDA components of the SGP30 eCO2 and TVOC outputs for cross classification of the July–September (circles) and additional May–June (triangles) campaigns with two classes of VILE.

Download

Table 4Cross classification of the July–September and May–June campaigns with kNN (k=1).

Download Print Version | Download XLSX

Although there are 10 false positives, the single true positive day was detected. Classification runs with the principal component analysis (PCA) and LDA two-dimensional data gave an identical resubstitution but inferior generalization. This last experiment suggests that the proposed modeling and feature computation provides a baseline for invariant feature computation based on hive activity. Integration of data from several hives and campaigns as well as enlargement of the calibrated sensor spectrum has the potential to further advance the approach. The sparseness of the currently available data has to be overcome by concurrently monitoring a larger number of hives over the entire bee season.

6 Conclusions

Motivated by the importance of honey bees and the increasing challenges imposed on bees and beekeepers, an in-hive close-to-brood nest sensing system was conceived and applied in a single colony for a substantial period of time during the 2020 bee season in a single measurement campaign. One major goal of this work was to obtain an useful estimate of the Varroa infestation level (VILE) and the treatment need level (ATND) from indirect cues obtained from the noninvasive and continuous monitoring of bee hives by simple and cost-effective multi-sensor systems, effectively creating a soft sensor for VILE and ATND. The underlying measurement system and the first results for the SGP30 sensor have already been reported in König (2021a) and König (2021b). In this paper, the focus is on the extension to the BME680 sensor along with temperature modulation (König2021c) as well as an approach to invariant feature computation, based on the adoption of the phase space concept related to hive daily activity. From phase space daily trajectories, features from the literature (Martinelli et al.2003; Penza et al.2009) and custom heuristic additional features have been computed.

The classification results obtained for both instantaneous sensor readings and the abovementioned phase-space-based features are encouraging, but due to substantial overlap in the still all too sparse data, only mediocre classification results in the order of 95 % could be achieved for data from the 8 July to 19 September campaign. Thus, only the kNN classifier was applied, as the effort involved with studying numerous classifiers will not pay off until further optimization of the earlier system stages is achieved (König2021b).

The discussed phase-space-based features were not expected to offer a classification boost with regard to the features from instantaneous sensor values of a single hive, but they were anticipated to deliver improved invariance properties. This was basically studied by classifying an earlier campaign from May to June 2020 from a different hive with a classifier trained using the data from the 8 July to 19 September campaign with moderate but motivating results.

In future work, several lines of improvement will be pursued, such as adding sensor capability using the SGP4x and temperature modulation in a proprietary configuration and bee monitoring system update (under an NDA courtesy of Sensirion); considering the BME688 (Bosch2021) and the UST Triplesensor (Umweltsensortechnik2021) further; extending the phase space and feature computation concept to multi-sensing; including the context of temperature, moisture, or acoustic sensing; and concurrently monitoring a larger number of hives over an entire future bee season. The pursued approach has the potential to be generalizable to other illnesses and issues, such as foulbrood and small hive beetle.

Code availability

The codes developed for the measurement system and the host-based analysis are not publicly available. This ongoing, privately funded work is still in flux, and only a first stepping stone has been reported. Further development as well as scientific, funding, and commercial exploitation would likely be compromised by publishing the code at this point in the research process.

Data availability

The data obtained from the measurement activities are not publicly available. This ongoing, privately funded work is still in flux, and only a first stepping stone has been reported. Further development as well as scientific, funding, and commercial exploitation would likely be compromised by publishing the research data at this point in the research process.

Competing interests

The contact author has declared that there are no competing interests.

Disclaimer

Publisher’s note: Copernicus Publications remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Special issue statement

This article is part of the special issue “Sensors and Measurement Science International SMSI 2021”. It is a result of the Sensor and Measurement Science International, 3–6 May 2021.

Review statement

This paper was edited by Gabriele Schrag and reviewed by three anonymous referees.

References

Adafruit: DHT11, DHT22 and AM2302 Sensors, Adafruit [code], available at: https://cdn-learn.adafruit.com/downloads/pdf/dht.pdf, last access: 19 November 2021. a, b

Arroyo, P., Meléndez,, F., Suárez,, J. I., Herrero, J. L., Rodríguez,, S., and Lozano, J.: Electronic Nose with Digital Gas Sensors Connected via Bluetooth to a Smartphone for Air Quality Measurements, Sensors, 20, 786, https://doi.org/10.3390/s20030786, 2020. a

AVIA Semiconductor: HX711 – 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales, available at: https://datasheetspdf.com/pdf-file/842201/Aviasemiconductor/HX711/1 (last access: 19 November 2021), 2020. a

Ba̧k, B., Wilk, J., Artiemjew, P., Wilde, J., and Siuda, M.: Diagnosis of Varroosis Based on Bee Brood Samples Testing with Use of Semiconductor Gas Sensors, Sensors, 20, 4014, https://doi.org/10.3390/s20144014, 2020. a, b

Bayerische Landesanstalt für Weinbau und Gartenbau: Gemülldiagnose, available at: https://www.lwg.bayern.de/mam/cms06/bienen/dateien/gemülldiagnose_fzbienen2012.pdf, last access: 18 November 2021. a, b

Bosch: BME680 – Low power gas, pressure, temperature & humidity sensor, available at: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf (last access: 19 November 2021), 2020. a, b, c, d

Bosch: BME688 – Digital low power gas, pressure, temperature & humidity sensor with AI, available at: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme688-ds000.pdf, last access: 19 November 2021. a

Bromenschenk, J., Henderson, C., Seccomb, R., Rice, S., and Etter, R.: Honey Bee Acoustic Recording and Analysis System for Monitoring Hive Health, U.S. Patent 7549907 B2, available at: https://patents.google.com/patent/US7549907 (last access: 18 Januar 2022), 2007. a, b

Cecchi, S., Spinsante, S., Terenzi, A., and Orcioni, S.: A Smart Sensor-Based Measurement System for Advanced Bee Hive Monitoring, Sensors, 20, 2726, https://doi.org/10.3390/s20092726, 2020. a

Chazette, L., Becker, M., and Szczerbicka, H.: Basic algorithms for bee hive monitoring and laser-based mite control, IEEE Symposium Series on Computational Intelligence (SSCI), 2016, 1–8, https://doi.org/10.1109/SSCI.2016.7850001, 2016. a

Eric Mounier: Sensors and Sensing Modules for Smart Homes and Buildings – 2017 Report by Yole Developpement, available at: http://www.yole.fr/ (last access: 20 November 2021), 2017. a

Fukunaga, K.: Introduction to Statistical Pattern Recognition, Academic Press, 2 edn., ISBN 0-12-269851-7, 1990. a

Gil-Lebrero, S., Quiles-Latorre, F. J., Ortiz-López, M., Sánchez-Ruiz, V., Gómiz-López, V., and Luna-Rodríguez, J. J.: Honey Bee Colonies Remote Monitoring System, Sensors, 17, 55, https://doi.org/10.3390/s17010055, 2017. a

Hudson, C. and Hudson, S.: Notes on Treatment Free Beekeeping, available at: https://beemonitor.files.wordpress.com/2018/04/notes-on-treatment-free-beekeeping-jan-2018.pdf, last access: 30 March 2020. a

IEEE: Conditioning Monitoring – A Decade of Proposed Techniques, IEEE Ind. Electron. M., 9, 22–36, 2015. a

Jaeschke, C., Gonzalez, O., Padilla, M., Richardson, K., Glöckler, J., Mitrovics, J., and Mizaikoff, B.: A Novel Modular System for Breath Analysis Using Temperature Modulated MOX Sensors, Proceedings, 14, 49, https://doi.org/10.3390/proceedings2019014049, 2019. a, b

Kagermann, H., Lukas, W., and Wahlster, W.: Industrie 4.0: Mit dem Internet der Dinge auf dem Weg zur 4. industriellen Revolution, Tech. Rep. 13, VDI Nachrichten, available at: https://www.dfki.de/fileadmin/user_upload/DFKI/Medien/News_Media/Presse/Presse-Highlights/vdinach2011a13-ind4.0-Internet-Dinge.pdf (last access: 18 Januar 2022), 2011. a

Khoury, D. S., Barron, A. B., and Myerscough, M. R.: Modelling Food and Population Dynamics in Honey Bee Colonies, PLOS ONE, 8, 1–7, https://doi.org/10.1371/journal.pone.0059084, 2013. a

Knowles: SPH0645LM4H-B I2S Output Digital Microphone, available at: https://pdf1.alldatasheet.com/datasheet-pdf/view/791053/KNOWLES/SPH0645LM4H-B.html, last access: 19 November 2021. a

Kohlert, M. and König, A.: Advanced multi-sensory process data analysis and on-line evaluation by innovative human-machine-based process monitoring and control for yield optimization in polymer film industry, TM–Tech. Mess., 83, 474–483, https://doi.org/10.1515/teme-2015-0120, 2016. a

König, A.: IndusBee 4.0 – integrated intelligent sensory systems for advanced bee hive instrumentation and hive keepers' assistance systems, Sensors & Transducers, 237, 109–121, available at: https://www.sensorsportal.com/HTML/DIGEST/september-october_2019/Vol_237/P_3118.pdf (last access: 18 Januar 2022), 2019. a, b, c, d

König, A.: BeE-Nose – An In-Hive Multi-Gas-Sensor Extension to the IndusBee4.0 System for Hive Air Quality Monitoring and Varroa Infestation Level Estimation, in: Advances in Signal Processing: Reviews, edited by: Yurish, S. Y., vol. 2, chap. 8, IFSA Publishing, 1 edn., 443–463, available at: https://www.sensorsportal.com/HTML/BOOKSTORE/Advances_in_Signal_Processing_Vol_2.htm (last access: 18 Januar 2022), 2021a. a, b, c, d

König, A.: First Results of the BeE-Nose on Mid-Term Duration Hive Air Monitoring for Varroa Infestation Level Estimation, Sensors & Transducers, 250, 39–43, available at: https://www.sensorsportal.com/HTML/DIGEST/march_2021/Vol_250/P_3218.pdf (last access: 18 Januar 2022), 2021b. a, b, c, d

König, A.: Cognitive Integrated Sensor Systems for In-Hive Varroa Infestation Level Estimation based on Temperature-Modulated Gas Sensing, in: Sensor and Measurement Science International (SMSI) 2021, chap. B4 Bio and Chemo Sensors AMA, Nuernberg, 127–128 https://doi.org/10.5162/SMSI2021/B4.3, 2021c. a

Kulyukin, V., Mukherjee, S., and Amlathe, P.: Toward Audio Beehive Monitoring: Deep Learning vs. Standard Machine Learning in Classifying Beehive Audio Samples, Appl. Sci.-Basel, 8, 1573, https://doi.org/10.3390/app8091573, 2018. a, b

Lee, A. P. and Reedy, B. J.: Temperature modulation in semiconductor gas sensing, Sensor. Actuat. B-Chem., 960, 35–42, 1999. a

Lee, J., Ghaffari, M., and Elmeligy, S.: Self-maintenance and engineering immune systems: Towards smarter machines and manufacturing systems, Annu. Rev. Control, 35, 111–122, https://doi.org/10.1016/j.arcontrol.2011.03.007, 2011. a

Mallick, S.: LeanOpenCV – Blob Detection Using OpenCV (Python, C++), available at: https://learnopencv.com/blob-detection-using-opencv-python-c/, last access: 19 November 2021. a

Mander, P.: Carnotcycle Blog – How to convert relative humidity to absolute humidity, available at: https://carnotcycle.wordpress.com/2012/08/04/how-to-convert-relative-humidity-to-absolute-humidity/, last access: 19 November 2021. a

Martinelli, E., Falconi, C., D'Amico, A., and Di Natale, C.: Feature Extraction of chemical sensors in phase space, Sensors Actuator. B-Chem., 95, 132–139, https://doi.org/10.1016/S0925-4005(03)00422-2, 2003. a, b, c

Nolasco, I., Terenzi, A., Cecchi, S., Orcioni, S., Bear, H. L., and Benetos, E.: Audio-based identification of beehive states, CoRR, arXiv [preprint], arXiv:1811.06330, 2018. a, b

Ohashi, M., Okada, R., Kimura, T., and Ikeno, H.: Observation system for the control of the hive environment by the honeybee (Apis mellifera), Behav. Res. Methods, 41, 782–786, https://doi.org/10.3758/BRM.41.3.782, 2009. a

Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., and Duchesnay, E.: Scikit-learn: Machine Learning in Python, J. Mach. Learn. Res., 12, 2825–2830, 2011. a, b, c

Penza, M., Vergara, A., Martinelli, E., Llobet, E., D'Amico, A., and Di Natale, C.: Optimized Feature Extraction for Temperature-Modulated Gas Sensors, J. Sensors, 2009, 716316, https://doi.org/10.1155/2009/716316, 2009. a, b, c, d, e, f, g

Pimoroni: BME680 – Python Library, GitHub [code], available at: https://github.com/pimoroni/bme680-python (last access: 19 November 2021), 2020a. a

Pimoroni: SGP30 – Python Library, GitHub [code], available at: https://github.com/pimoroni/sgp30-python (last access: 19 November 2021), 2020b. a

Rembert, L.: How AI and the IoT are improving farming sustainability, available at: https://www.embedded.com/how-ai-and-the-iot-are-improving-farming-sustainability/, last access: 20 June 2020. a

Rüffer, D., Hoehne, F., and Bühler, J.: New Digital Metal-Oxide (MOx) Sensor Platform, Sensors, 18, 1052, https://doi.org/10.3390/s18041052, 2018. a

Russell, S., Barron, A. B., and Harris, D.: Dynamic modelling of honey bee (Apis mellifera) colony growth and failure, Ecol. Model., 265, 158–169, https://doi.org/10.1016/j.ecolmodel.2013.06.005, 2013. a

SENSIRION: SGP30 Datasheet – Indoor Air Quality Sensor for TVOC and CO2eq Measurements, available at: https://sensirion.com/media/documents/984E0DD5/61644B8B/Sensirion_Gas_Sensors_Datasheet_SGP30.pdf, last access: 17 January 2022. a, b, c, d

Sensry: Universal Sensor Platform – To Build Customized Industrial Sensor Modules for Future IoT Applications, available at: https://sensry.net/, last access: 9 July 2021. a

Suta, V. E. A.: Apiary Monitoring System, patent application WO 2015/048308 A1, available at: https://patentimages.storage.googleapis.com/1a/4e/ec/afafdaeab9a9fd/WO2015048308A1.pdf (last access: 17 January 2022), 2014. a

Szczurek, A., Maciejewska, M., Ba̧k, B., Wilk, J., Wilde, J., and Siuda, M.: Detection Level of Honeybee Desease: Varroosis Using a Gas Sensor Array, in: Proc. 5th Int. Conf. on Sensors and Electronic Instrumentation Advances (SEIA 2019), Canary Islands (Tenerife), Spain, 25–27 September 2019, available at: https://www.researchgate.net/publication/338854809_Detection_Level_of_Honeybee_Desease_Varroosis_Using_a_Gas_Sensor_Array/citation/download (last access: 17 January 2022), 2019. a

Szczurek, A., Maciejewska, M., Ba̧k, B., Wilk, J., Wilde, J., and Siuda, M.: Detecting varroosis using a gas sensor system as a way to face the environmental threat, Sci. Total Environ., 722, 137866, https://doi.org/10.1016/j.scitotenv.2020.137866, 2020a.  a, b

Szczurek, A., Maciejewska, M., Zajiczek, Å., Ba̧k, B., Wilk, J., Wilde, J., and Siuda, M.: The Effectiveness of Varroa destructor Infestation Classification Using an E-Nose Depending on the Time of Day, Sensors, 20, 2532, https://doi.org/10.3390/s20092532, 2020b. a

The SciPy community: Signal processing (scipy.signal) – Filtering, The SciPy community [code], available at: https://docs.scipy.org/doc/scipy/reference/signal.html, last access: 19 November 2021. a

Umweltsensortechnik: Gas Sensors, Triple-Sensor, Datasheets, available at: http://www.umweltsensortechnik.de/en/gas-sensors/mox-gas-sensors-overview.html, last access: 9 April 2021. a

Wallich, P.: Beehackers – Cheap widgets are like honey to hive keepers, IEEE Spectrum, 48, 20–21, 2011. a

Weckbrodt, H.: Sensry Dresden horcht auf den Puls der Maschinen, available at: https://oiger.de/2019/03/29/sensry-dresden-horcht-auf-den-puls-der-maschinen/170959 (last access: 20 November 2021), 2019. a

Werthschützky, R.: Sensor Technologien 2022, Tech. rep., AMA Verband für Sensorik und Messtechnik e.V., available at: https://ama-sensorik.de/fileadmin/Pubikationen/180601-AMA-Studie-online-final.pdf (last access: 17 January 2022), 2018. a

Wimmer, W.: Praxishandbuch der thermischen Varroabekämpfung, available at: https://www.varroa-controller.de/wp-content/uploads/2020/06/Handbook_German.pdf (last access: 15 June 2021), 2020. a

Zak, M.: HX711 class for Rasperry Pi Zero, 2 and 3 written in Python 3, GitHub [code], available at: https://github.com/gandalf15/HX711 (last access: 19 November 2021), 2020. a

Zhang, W., Peng, G., Li, C., Chen, Y., and Zhang, Z.: A New Deep Learning Model for Fault Diagnosis with Good Anti-Noise and Domain Adaptation Ability on Raw Vibration Signals, Sensors, 17, 425, https://doi.org/10.3390/s17020425, 2017. a

1

The SGP30 contains four gas sensor pixels on a common hot plate, and control of the hot plate for temperature modulation as well as individual pixel access is feasible if additional programming information is provided by the manufacturer; however, the issued request in 2019 to access this information was not successful and unfortunately constrained the reported work to the standard SGP30 functionality.

2

Due to stability issues with the libraries included in the measurement system, several days were not recorded, and the number of days is less than the start and end date of the campaign imply. The missing days are 30 July; 2, 7, 8, 10, 17–20, and 28 August until treatment; and 12–17 September after treatment, resulting in a total of either 10 or 16 d.

Download
Short summary
Bees play a major role in our ecosystem and the human food supply chain. Numerous threats, from pesticides to parasites, endanger bees and possibly cause bee colony collapse. The Varroa mite is one major parasite, and its timely detection and treatment is a key task for beekeepers. Contemporary sensors, electronics, and AI/PR allow vital parameters of bee hives to be monitored. Recent gas sensors (e.g., SGP30 or BME680) allow continuous in-hive parameter and Varroa population monitoring.