Next Article in Journal
Brachialis Pulse Wave Measurements with Ultra-Wide Band and Continuous Wave Radar, Photoplethysmography and Ultrasonic Doppler Sensors
Next Article in Special Issue
Development of a Low-Cost Electronic Nose for Detection of Pathogenic Fungi and Applying It to Fusarium oxysporum and Rhizoctonia solani
Previous Article in Journal
Applying Differential Wave-Front Sensing and Differential Power Sensing for Simultaneous Precise and Wide-Range Test-Mass Rotation Measurements
Previous Article in Special Issue
Instrumental Odour Monitoring System Classification Performance Optimization by Analysis of Different Pattern-Recognition and Feature Extraction Techniques
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Classifying the Biological Status of Honeybee Workers Using Gas Sensors

1
Apiculture Division, Faculty of Animal Bioengineering, University Warmia and Mazury in Olsztyn, Sloneczna 48, 10-957 Olsztyn, Poland
2
Mathematical Methods and Computer Science Division, Faculty of Mathematics and Computer Science, University Warmia and Mazury in Olsztyn, Sloneczna 48, 10-957 Olsztyn, Poland
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(1), 166; https://doi.org/10.3390/s21010166
Submission received: 26 November 2020 / Revised: 20 December 2020 / Accepted: 24 December 2020 / Published: 29 December 2020
(This article belongs to the Collection Electronic Noses)

Abstract

:
Honeybee workers have a specific smell depending on the age of workers and the biological status of the colony. Laboratory tests were carried out at the Department of Apiculture at UWM Olsztyn, using gas sensors installed in two twin prototype multi-sensor detectors. The study aimed to compare the responses of sensors to the odor of old worker bees (3–6 weeks old), young ones (0–1 days old), and those from long-term queenless colonies. From the experimental colonies, 10 samples of 100 workers were taken for each group and placed successively in the research chambers for the duration of the study. Old workers came from outer nest combs, young workers from hatching out brood in an incubator, and laying worker bees from long-term queenless colonies from brood combs (with laying worker bee’s eggs, humped brood, and drones). Each probe was measured for 10 min, and then immediately for another 10 min ambient air was given to regenerate sensors. The results were analyzed using 10 different classifiers. Research has shown that the devices can distinguish between the biological status of bees. The effectiveness of distinguishing between classes, determined by the parameters of accuracy balanced and true positive rate, of 0.763 and 0.742 in the case of the best euclidean.1nn classifier, may be satisfactory in the context of practical beekeeping. Depending on the environment accompanying the tested objects (a type of insert in the test chamber), the introduction of other classifiers as well as baseline correction methods may be considered, while the selection of the appropriate classifier for the task may be of great importance for the effectiveness of the classification.

1. Introduction

The development of gas sensor technology, including increasing accuracy and affordability, allows research into solutions supporting various areas of economy. Practical beekeeping struggles with many problems related to the functioning of bee colonies. Among the most important factors resulting from bee biology is the presence of the queen bee. One of the disturbances of the normal state of a bee colony is queenlessness, which, when it is long lasting, usually leads to a colony’s destruction. In some cases, the queenless state is difficult to recognize, even by experienced beekeepers. The phenomenon of changing the smell of a bee colony, depending on its biological status associated with the presence of the queen, gives potential for the use of gas sensor technology to support this area of the economy, which is one of the most important sectors of agriculture due to the pollination function.

1.1. Biological Status of Worker Bees vs. Odor

It is known that social insects living in large colonies can identify each other. This is due to the specific pheromone profile generated by the mechanism of homogenization and transmission of the cuticular hydrocarbons [1] inside the colony. The honey bee is one such insect. Additionally, its workers play strictly defined, age-dependent roles in the superorganism of a bee colony. Recent studies have shown that the individual profile of the cuticular hydrocarbons of the entire bee colony depends on the quantity and quality of chemical mediators of bees differing in age. Moreover, the cuticular hydrocarbon profile of individual workers of honeybees is also associated with age-related role distribution [2].
The link that integrates a bee colony with the pheromone of the maternal substance is the queen [3]. She is the only female in the bee colony with a fully mature reproductive system; because of this, she can mate with drones and lay fertilized eggs from which female specimens—workers—develop. Male individuals develop from unfertilized eggs.
A special condition of a bee colony is the appearance of physiological laying worker bees (worker bees that lay unfertilized eggs). The reason for this unfavorable phenomenon is the long-term absence of a queen in the bee colony. As a result, there is a deficiency of the queen substance, which normally inhibits the development of the reproductive system in workers [4]. In a queenless colony, some workers develop swollen ovaries, and after some time, 5–24% of workers start laying eggs. However, worker bees are not capable of mating, so these eggs are unfertilized and they develop into drones, which is why workers who produce them are called physiological laying worker bees. This abnormal condition is characterized by the increased amount of drone brood present in the honeycomb cells. However, until the 10th day after laying the egg, before the brood comb cell is sealed, it is difficult to distinguish such brood from normal bee brood [5].
Colonies with laying worker bees find it difficult to undergo emergency procedures aimed at rearing a new queen. This can lead to the destruction of the bee colony.

1.2. The Context of the Problem in Practical Beekeeping

During the beekeeping season, problems arise with colonies where physiological laying worker bees lay eggs. Beekeepers may find it difficult to distinguish a queenless colony in which laying worker bees started the process of laying eggs from a colony that is functioning properly, or one in which the queen has become a laying worker bee, i.e., has lost the ability to lay fertilized eggs. Individual physiological laying worker bees cannot be distinguished with the naked eye from an ordinary bee worker. The beekeeper is therefore unable to identify their presence. Laying worker bees’ eggs are often laid several in one bee cell or on the sidewalls of the cell. These are characteristic symptoms, but do not always denote the existence of physiological laying worker bees who lay eggs. The presence of unfertilized eggs in the combs can sometimes confuse even experienced beekeepers, who mistakenly believe that they are dealing with the eggs of a queen. Difficulties in proper assessment of the colony’s status will delay rescue procedures, leading to increased losses in the apiary.
In a properly functioning bee colony without a queen, workers can rear a new queen, a so-called emergency queen. It arises from 1–3 day-old bee larvae, which hatches from fertilized eggs previously deposited by the lost queen. This must take place within 6 days.
Even when gradually emerging laying worker bees begin to lay eggs, workers will not be able to rear a new queen from them, because these eggs are unfertilized and form drone larvae. This situation leads to the destruction of the bee colony, as a result of the gradual extinction of old workers. Although there is a chance to rear a queen from an unfertilized egg [6,7], it is so small that it is negligible from the practical point of view of beekeeping.
For the reasons described, the condition of the colony should be constantly monitored for the presence of a properly reproductive queen. The type and effectiveness of emergency procedures depend on the negative consequences of a queenless colony, which increases over time.

1.3. Achievements to Date in the Use of Gas Sensors for this Type of Task

The electronic nose is a device that detects unidentified, complex substances. It is made up of a matrix of partially sensitive chemical sensors capable of recognizing simple or complex odors on the basis of a pattern recognition system [8]. The use of the electronic nose is one of the methods based on a comprehensive analysis of the volatile fraction without its division into individual components. This distinguishes it from methods based on the analysis of separated sample components, such as chromatography techniques. It does not require a time-consuming process of sample preparation, which also is usually destroyed [9]. In addition to the selection of sensors, the basis for the method is the appropriate analysis of measurement data, which can lead to the most effective classification.
There are many methods of analysis in the field of using the electronic nose in beekeeping, including linear discriminant analysis (LDA), principal component analysis (PCA), and cluster analysis (CA) with the furthest neighbor method (kNN). Good results have also been obtained using the artificial neural network (ANN) machine learning techniques, which use a neural network model based on a multilayer perceptron that learned using a backpropagation algorithm [8,9,10,11,12,13,14,15].
A related study found that the odor profile of the entire colony changed depending on the degree of infestation of the bee parasite Varroa destructor mite [16]. In this case, the gas sensors reacted to samples of the hive air taken directly from the bee colony being tested, constituting its general odor in the nest. Classification according to the degree of parasite infestation was successfully performed [10]. Rather than using one type of sensor, an electronic nose was employed. The sensor matrix was also successfully used to quickly recognize five different types of honey collected in Poland [9]. Other attempts to classify honey according to its type and origin also gave good results [12,13].

2. Materials and Methods

2.1. Characteristics of the Studied Objects

The samples were obtained from the Apis mellifera carnica bee colonies situated in the experimental apiary of the Department of Apiculture (University of Warmia and Mazury in Olsztyn, Poland), coordinates 53°44′41.8″ N 20°26′57.2″ E. Three classes of objects (samples) from bee colonies were used:
  • Young workers—class 5
  • Old workers—class 6
  • Workers from colonies with physiological laying worker bees—class 7 (Table 1)
Additionally, an empty test chamber was tested as a control class—class 1.
Young worker bees were obtained from sealed brood collected from six bee colonies on 18 and 23 October 2018. The brood honeycombs were placed in an incubator in an insulator to prevent divergence of bees and were kept at 35 °C until the bees emerged. As many as 100 emerged bees, 0–1 days old, were counted for each trial and placed in an aluminum mesh cage (Figure 1). In this way, 10 samples of young bees were prepared.
Old worker bees originated from the outer nest combs (not covered by brood) from six bee colonies. The samples were taken on 17 and 18 October 2018. After the CO2 anesthesia, 100 bees were counted for each test and placed in an aluminum mesh cage. Before testing, the samples were kept in an incubator at 35 °C for a minimum of 1 h to calm the bees. As many as 10 samples were prepared this way.
Workers from colonies with physiological laying worker bees originated from honeycombs taken from two long-term queenless colonies in which the presence of laying worker bees’ eggs, drone brood, a large number of drones, and no worker bee brood were found. The samples were taken on 24 and 25 September 2018 and on 4, 5, and 23 October 2018. After the CO2 anesthesia, the drones were collected and 100 bees were counted and placed in an aluminum mesh cage. As many as 10 samples were prepared this way (Figure 2).

2.2. Construction of a Laboratory Measuring Stand—Multi-Sensor Signal Recorder

The research used a prototype device constructed in the Laboratory of Sensor Technique and Indoor Air Quality Studies at Wroclaw University of Science and Technology. It was a multi-sensor, multi-channel signal recorder (Figure 3). The sensor matrix integrated into the module (named MCA-8) was made of six Figaro semiconductor gas sensors (Figure 4A).
Sensors commonly available for purchase were selected (Table 2). Each of the sensors placed in the matrix was led by an individual gas input and output, as well as appropriate electrical connections. The device was characterized by a dynamic method of sampling the tested gas, which was supplied to the matrix through a program-selected channel with the use of a pump. After passing through the separate chambers of each sensor, the gas was exhausted to the output of the device. The device had eight sequentially working channels creating separate gas paths to the device matrix. The operation of the device was controlled by reading the parameters from the configuration file recorded on the SD card, which made it possible to set the time and sequence of individual channels, heater power, number of repetitions, and pump power. The desired control of the gas path was carried out by valves.
Measurement results were recorded on an SD card and sent via the GSM (Global System for Mobile Communications) communication module (Figure 4C) to a dedicated server in the form of structured CSV (comma-separated values) files. A single measurement point was taken every 1 s and was the average reading of the measurement in a given second; this measurement was taken separately on each of the sensors. The device was powered by 220V mains voltage; however, it can also be run on the built-in 12V battery. The battery is charged from the mains or with a set of solar panels using the charge regulator control (Figure 4B).

2.3. Construction of a Laboratory Measuring Stand—Resarch Chamber

For the laboratory tests of hive environment objects, special research chambers were built using measuring instruments (Figure 5).
The chambers, measuring 32 × 22 × 32 cm, were made of Plexiglas. Each was equipped with three pneumatic connectors constituting an element of the gas track, three sealed visors for inserting any sensors, flexible plugs for interchangeable use for each visor (full and notched—sealing the introduction of, e.g., sensor cables), a fan equalizing the level of volatile substances from the tested object in the entire volume of the chamber, and an adjustable air supply valve.
Two inserts for the research chamber were prepared: polystyrene and wooden. The inserts reflected the properties of the materials of which the hives are built (wood, polystyrene).
The construction of the chamber met the following assumptions:
  • a tight structure, aimed at eliminating factors that may interfere with the odor of the tested objects,
  • small dimensions, maximizing the concentration of volatile substances around the sensors,
  • adjustable tightness of test chambers in terms of the possibility of external gas inflow,
  • using neutral, odorless materials to build the chambers, with removable inserts,
  • the possibility of measuring the pressure in the chamber,
  • the possibility of mechanical equalization of the level of volatile substances from the tested object in the entire volume of the chamber through use of the fan, and
  • the possibility of simultaneous measurement of a given object with at least two devices.

2.4. Measurement Procedure

The measurements were carried out in the Laboratory of Bee Products Quality at the Department of Apiculture at the University of Warmia and Mazury in Olsztyn. Two twin measuring devices, called M1 and M2, were used simultaneously. Before starting the first measurements on a given day, the device was heated up; it ran for a minimum of 1 h at 100% of the heater’s power, without the pump running (pump power 0%). Following this, measurements were carried out continuously on a given day to prevent the device from cooling down. The study was carried out on one of eight working channels (1–8). The working channel was changed after every two days of work. Object measurements were made at room temperature with both devices simultaneously.
The tested objects were placed in the research chamber. Directly above the tested object, at a distance of 2–3 cm, the tip of the pneumatic conduit was introduced to collect a gas sample above the object. The gas was sucked dynamically through a working pump of the device and polyethylene (PE) pipes introduced through sealed pneumatic joints (Figure 5A). The gas was sent to the chamber of the sensory matrix of the device. In addition, the filter was placed in the gas track to retain solid particles (Figure 5B). The sucked air was replenished into the chamber freely from the ambient air through the fully open inlet valve (Figure 5D). The gas sampling procedure was not to cause changes in the atmospheric pressure in the test chamber. During all measurements, the pump was running at 50% power.
The measurement sequence of a given object consisted of the 10 min phase of exposure to the test object placed in the chamber. Immediately after exposure to the tested object, the device was switched to the sensor regeneration phase, following the set configuration. Channel 8 was always used; the air was drawn through the carbon filter for the same time, with the same power of the pump and heaters. Each object was tested twice; immediately after the end of the measurement in the polystyrene chamber, the object was transferred to the chamber with a wooden insert and a new measurement of the same object was started.
The single described phase of exposure to an object and the subsequent regeneration phase together formed the measurement of one object, during which the measurement signal reading was recorded every second. This gave a total of 600 readings during the exposure phase and 600 readings during the sensor regeneration phase. This resulted in a total of 1200 readings for one full measurement of an object in the chamber with a polystyrene insert and 1200 readings for a full measurement of the object in the chamber with a wooden insert for each of the devices.

2.5. Data Analysis Procedure

The measurement data collected was analyzed. In the first step, the data in the prepared visualization system was reviewed. Based on the observation of line charts from sensor readings, no disturbances were found in the course of measurements of individual objects, and rapid stabilization of the signal was noted. Based on the observation of the average reading graphs for the objects in a given group for individual sensors, 270 s of the measurement were arbitrarily determined, after the signal stabilization, as a reference for further analyses (Figure 6).
The results were analyzed before and after the baseline adjustment. The baseline correction improved the separability of the tested objects within the classes in previous research in the field of beekeeping, based on the same type of sensor matrices [6,7]. The baseline differential correction was applied by subtracting from the value of the measurement of the tested object in 270 s the values from the last 600 s of the ambient air measurement. The results for the objects tested in chambers with both types of inserts (wooden and polystyrene) were analyzed and compared separately for both devices.
The analyses aimed to investigate the differences in the responses of gas sensors exposed to air from worker bees with different biological status according to the assumed class division and type of insert in the chamber in which the measurement was performed (wooden or polystyrene) and to indicate an effective method of classification of the tested objects. In beekeeping practice, the presence of physiological laying worker bees in the bee colony creates a problem; therefore, special attention was paid to class 7 objects.
The possibility of recognition was tested, which consists of assigning a class to the tested object. Classification consists of a decision on which class the tested object can be assigned. This task was performed using classifiers constructed as follows.
In basic research, a five-fold cross-validation 2 test was performed. The nearest neighbor (kNN) algorithm with the default settings of the rough set exploration system (RSES) tool with automatically selected k was chosen as the classifier.
Following this, customized techniques dedicated to the task were used. Studies with dedicated methods were carried out according to the Monte Carlo cross-validation (MCCV) model, using the same subsets of data for all techniques studied. Conditional attributes used in the research were numerical, while decision classes were categorical; hence, we applied a Naïve Bayes classifier with a descriptors indiscernibility ratio [17], the kNN method with Euclidean, Manhattan, and Canberra metrics [17], and the weighted voting classification technique—algorithm 811 [17]. To correctly estimate the effectiveness of unbalanced data, we used balanced accuracy (the equivalent of the recall parameter) and true positive rate (the equivalent of the precision parameter). Where more than two classes were classified, each of these parameters was calculated separately for each class. Balanced accuracy is the average accuracy of the classification from all decision classes, while the accuracy of classification of a given test class is understood as the percentage of correctly classified objects in that class. True positive rate is the percentage of objects of a given class positively classified in relation to all objects classified in that class. The coverage parameter is the percentage of classified objects. In our case it was always equal to one; in other words, each test object was classified.

3. Results

3.1. The Visualization of the Tested Classes

As an additional element, we attempted to visualize the sensor readings for individual classes in the radar chart (Figure 7, Figure 8, Figure 9 and Figure 10). This is akin to a simple scent signature. To achieve this goal, we normalized the values of the TGS attributes to a range of [0.1] using Equation (1). Normalization of TGSi(obj) (i-th descriptor of j-th object) into [a, b] interval consists of the following step:
T G S i o b j = T G S i o b j m i n T G S i     b a m a x T G S i m i n T G S i + a
Then we calculated the average values in the classes for the individual TGS attributes (see Equation (2)) and squared the obtained values (see Equation (3)), as follows:
a v e r a g e T G S i c l a s s j = k = 0 c l a s s j T G S j o b l ,   w h e r e   o b l c l a s s j
a v e r a g e T G S i c l a s s j = a v e r a g e T G S i c l a s s j 2
These results clearly show that classes are potentially different and separable.

3.2. Searching for the Dedicated Method—Selected Results

We presented our implementation using the multiple MCCV model. MCCV is based on multiple executions of the train and test method, with a defined random percentage, split into training and test parts. In search of an effective, simple classification method, we implemented the Naive Bayes classifier [14], the weighted classification 811 method [14], and the local kNN using Manhattan, Euclidean, and Canberra metrics [14]. Naive Bayes uses sum instead of multiplication to avoid zeroing of parameters and descriptors’ indiscernibility ratio.
We considered the following test options, using two devices (M1 and M2):
(I)
M1 device in a wooden box,
(II)
M1 device in a polystyrene box,
(III)
M2 device in a wooden box,
(IV)
M2 device in a polystyrene box,
(V)
M1 device in a wooden box using baseline correction,
(VI)
M1 device in a polystyrene box using baseline correction,
(VII)
M2 device in a wooden box using baseline correction, and
(VIII)
M2 device in a polystyrene box using baseline correction.
We considered the following variants:
  • all classes together,
  • 1 vs. 5,6,7,
  • 5 vs. 1,6,7,
  • 6 vs. 1,5,7, and
  • 7 vs. 1,5,6.
We considered the following classifiers:
  • canberra.1nn,
  • canberra.811,
  • eps = 0.01.nb,
  • eps = 0.01.nb2,
  • euclidean.1nn,
  • euclidean.811,
  • manhattan.1nn,
  • manhattan.811,
  • maxminnormalized.1nn, and
  • maxminnormalized.811.
Table 3 and Figure 11 presents the results of classifiers operation depending on the options and variants for the four-class problem, based on the accuracy balanced and true positive rate parameters, and taking into account the following calculations:
  • Accuracy balanced, the best classifier is m5, in five options, reaching the value of 0.646 for Option III,
  • True positive rate for class 1, the best classifier is m2, in four options, in three options reaching the value of 1,
  • True positive rate for class 5, the best classifiers are m5 and m10 pari passu, each in two options, while the m1 classifier reaches the highest value of up to 0.674 in Option VII,
  • True positive rate for class 6, the best classifiers are m4 and m5 pari passu, each in two options, while the m5 classifier reaches the highest value of up to 0.684 for Option VI, and
  • True positive rate for class 7, the best classifier is m5 in three options, with m10 reaching the highest value of 0.844 for Option V.
The best results in the four-class problem are given by the use of the m5 classifier, which produces the highest values in five options for accuracy balanced, reaching a value of up to 0.646 in Option III. In the case of the true positive rate class 7 parameter, the m5 classifier is also the best for the greatest number of options (3/8), reaching a value of up to 0.73 in Option I.
The results of the classifiers related to class 7 for variant 7 vs. 1, 5, 6 were compared. All options for the M1 device were selected for presentation.
The data in Table 4, Table 5, Table 6 and Table 7 correspond to Options I, II, V, and VI, respectively. In the case of type 1 vs. all test for class 7 (7 vs. 1, 5, 6), based on the results presented (Table 4, Table 5, Table 6 and Table 7), large discrepancies in the values of the parameters depending on the classifier used can be observed. Depending on the option, the largest discrepancies in the true positive rate 7 parameter between the best and the worst classifiers ranged from 0.307666 in Option VI to 0.410713 in Option I, and in the case of accuracy balanced, from 0.131192 in Option I to 0.208876 in Option II.
For Option I, the accuracy balanced parameter had values from 0.631352 (m3 classifier) to 0.762544 (m5 classifier), and the true positive rate parameter for class 7 had values from 0.331623 (m4 classifier) to 0.742336 (m5 classifier).
For Option II, the accuracy balanced parameter had values from 0.487912 (m3 classifier) to 0.696788 (m5 classifier), and the true positive rate parameter for class 7 had values from 0.195856 (m3 classifier) to 0.608952 (m5 classifier). A comparison of the results of the key parameters of Options I and II for all variants is shown in Figure 12. Significantly better results are observed for the wooden box (Option I).
For Option V, the accuracy balanced parameter had values from 0.6088 (m3 classifier) to 0.76078 (m8 classifier), and the true positive rate parameter for class 7 had values from 0.341942 (m4 classifier) to 0.710188 (m5 classifier).
For Option VI, the accuracy balanced parameter had values from 0.540308 (m3 classifier) to 0.74224 (m10 classifier), and the true positive rate parameter for class 7 had values from 0.342526 (m4 classifier) to 0.650192 (m6 classifier). A comparison of the results of the key parameters of Options I and V for all variants is shown in Figure 13. Generally better results can be observed for option without baseline correction (Option I).
Tests 1 vs. all performed for each of the classes in all options showed that the highest value of the parameter true positive rate = 1 was obtained in the test of classes 1 vs. 5, 6, and 7 for Options IV and VIII for several different classifiers (Table 8). In the test of class 7 vs. 1, 5, and 6, which is the most interesting for us, the highest value of true positive rate = 0.742 was obtained for Option I using the m5 classifier.
In a similar comparison for the accuracy balanced parameter (Table 9), the highest value of 0.964 was obtained in the test class 1 vs. 5, 6, and 7 for Option VIII using the m1 classifier. In the test of class 7 vs. 1, 5, and 6, the highest value of true positive rate = 0.742 was obtained for Option I using the m5 classifier.
We found that m5, euclidean.1nn, was most often the best classifier for 7 vs. 1, 5, and 6 among all the options. Thus, for this classifier, for the class 7 distinction task (7 vs. 1, 5, 6), Table 10 summarizes the results of the accuracy balanced and true positive rate parameters in all options, including device (M1, M2), type of insert in the chamber (wooden, polystyrene) and use of a baseline correction (without baseline correction, with baseline correction). The highest values of accuracy balanced (0.763) and true positive rate (0.742) were obtained in Option I.
To assess the validity of introducing the baseline correction method, Options I, II, III, and IV were respectively compared in pairs with Options V, VI, VII, and VIII. The only difference between these pairs was the baseline correction factor. We found that the baseline correction increases the effectiveness of the classification in both calculated parameters (accuracy balanced and true positive rate class 7) only for the M2 device with the use of a polystyrene chamber (Option VIII). In other cases, it caused deterioration of at least one of the parameters (Table 10).
In the case of accuracy balanced and true positive rate in test 7 vs. 1, 5, and 6, in individual options for the m5 method, the best results were achieved for both devices in the option with a wooden chamber (Options I and V). The baseline correction increased the efficiency of the classification in both calculated parameters (accuracy balanced and true positive rate class 7) only in the case of the M2 device with the use of a polystyrene chamber. In other cases, it caused deterioration of at least one of the parameters (Table 10).

4. Discussion

We can see that the results of the research indicate a profit in distinguishing classes, greater than the standard deviation and considering the expected value of random classification.
Considering that, with all the variants, there are 400 tests to perform, we specify the best results and techniques, as follows.

4.1. Four-Class Problem

Without using the baseline correction (Options I–IV), the m5 classifier worked best (it was the best twice), and after its introduction, m6 was the best (it was the best twice). However, globally, for all options and parameters (accuracy balanced, true positive rate for classes 1, 5, 6, 7), the m5 classifier most often appeared as the best; therefore, for this type of task, the m5 classifier is recommended.
In the chamber with a wooden insert (Options I, III, V, and VII), m5 turns was the best (it was the best twice), and in the chamber with a polystyrene insert (Options II, IV, VI, and VIII), m6 was the best (it was the best three times). Therefore, in the four-class problem, the selection of classifiers should be considered depending on the environment in which the tested object is placed. However, when the interest is limited to distinguishing class 7, the m5 classifier should be used as it yielded the best results for both types of chamber without baseline correction.

4.2. Choosing the Best Classifier to Distinguish Class 7

In the case of testing 7 vs. 1, 5, and 6, which has the best chance of implementation due to the potential of solving a defined problem occurring in practical beekeeping (detection of colonies with physiological laying worker bees), the m5 classifier was the best in seven out of eight options for the true positive rate parameter, which had a value of up to 0.742 for Option I (M1 device in a wooden chamber) and in five of eight options for the accuracy balanced parameter, the value of which reached 0.763 (also for Option I). One notable finding was that the options introducing potentially more odor noise from the insert material in the chamber (wooden insert, Options I, III, V, and VII) gave higher parameter values.
In summary, without building decision trees for the selection of the classifier depending on a given detailed problem, the m5 classifier is recommended. It was the most appropriate for the defined problem of class 7 differentiation, with the best results in Option I (wooden chamber without baseline correction). The highest results achieved, a true positive rate of 0.742 and an accuracy balanced value of 0.763 in the test 7 vs. 1, 5, and 6 for Option I, are promising and can be used in practical beekeeping. It is particularly noteworthy that wood, a popular hive construction material, does not interfere with the results in a way that would prevent class distinctions.
For the recommended variant of the m5 classifier, the baseline correction for the true positive rate and accuracy balanced parameters brought mixed results, and ultimately showed that no baseline correction should be made. We found that baseline correction, which in previous studies brought good results, should, in the case of the given problem and the selected classifier, be rejected or used only in variants for the polystyrene chamber, where it gave a slight improvement in results.
It is worth noting that there are significant differences in the accuracy of classification between the M1 and M2 devices. As both devices, constructed similarly, were used to measure the same objects at the same time, the difficulty of achieving repeatability in devices where sensors of the type used are the most important element, was confirmed. To achieve proper operation, individual calibration of each device is required.

5. Conclusions

The research proved that, with a device using gas sensors and based on testing a sample of 100 bees in the test chamber, the biological status of bees, specifically those from colonies with physiological laying worker bees, can be distinguished. The effectiveness of their differentiation from other classes (bees with a different biological status), determined by the parameters of accuracy balanced and true positive rate, which reached 0.763 and 0.742 in the case of the best euclidean.1nn classifier, may be satisfactory in the context of practical beekeeping. Depending on the environment accompanying the tested objects (the type of insert in the test chamber), the introduction of other classifiers and baseline correction methods can be considered; the selection of the appropriate classifier for the task may be of great importance for the effectiveness of the classification. Due to the differences between devices in the achieved key parameters, the potential problem of calibration deserves special attention.

Author Contributions

Conceptualization, J.T.W. and B.B.; methodology, J.T.W. and B.B.; software, J.T.W., B.B., P.A.; validation, J.T.W., B.B., J.W., P.A.; formal analysis, J.T.W., B.B., P.A.; investigation, J.T.W., B.B. and M.S.; resources, J.T.W., B.B., J.W., M.S. and P.A.; data curation, J.T.W., B.B. and M.S.; writing—original draft preparation, J.T.W.; writing—review and editing, J.T.W., B.B., J.W., M.S., P.A.; visualization, J.T.W.; supervision, J.W. and B.B.; project administration, J.W. and B.B.; funding acquisition, J.W. and B.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Centre for Research and Development under grant N° BIOSTRATEG3/343779/10/NCBR/2017 “Developing innovative, intelligent tools to monitoring the occurrence of malignant foulbrood and elevated levels of infestation with Varroa destructor in honeybee colonies”.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to business secret.

Acknowledgments

Andrzej Oponowicz (helping in data preparation).

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Van Zweden, J.S.; D’Ettorre, P. Nestmate recognition in social insects and the role of hydrocarbons. In Insect Hydrocarbons; Blomquist, G.J., Bagneres, A.-G., Eds.; Cambridge University Press: Cambridge, UK, 2010; pp. 222–243. [Google Scholar] [CrossRef]
  2. Vernier, C.; Krupp, J.; Marcus, K.; Hefetz, A.; Levine, J.; Ben-Shahar, Y. The cuticular hydrocarbon profiles of honey bee workers develop via a socially-modulated innate process. eLife 2019, 8, e41855. [Google Scholar] [CrossRef] [PubMed]
  3. Butler, C.G. Queen Substance. Bee World 1959, 40, 269–275. [Google Scholar] [CrossRef]
  4. Hoover, S.; Keeling, C.; Winston, M.; Slessor, K. The effect of queen pheromones on worker honey bee ovary development. Naturwissenschaften 2003, 90, 477–480. [Google Scholar] [CrossRef] [PubMed]
  5. Rojek, W.; Kuszewska, K.; Ostap-Chęć, M.; Woyciechowski, M. Do rebel workers in the honeybee Apis mellifera avoid worker policing? Apidologie 2019, 50, 821–832. [Google Scholar] [CrossRef] [Green Version]
  6. Gregg, A.L. The Unexplained Queen. Bee World 1939, 20, 133–134. [Google Scholar] [CrossRef]
  7. Woyke, J. Drones from fertilized eggs and biology of sex determination in the honeybee. Bull. Acad. Polon. Sci. Cl. 1963, 9, 251–254. [Google Scholar]
  8. Gardner, J.W.; Bartlett, P.N. A brief history of electronic noses. Sens. Actuators B Chem. 1994, 18, 210–211. [Google Scholar] [CrossRef]
  9. Dymerski, T.; Gebicki, J.; Wardencki, W.; Namieśnik, J. Application of an Electronic Nose Instrument to Fast Classification of Polish Honey Types. Sensors 2014, 14, 10709–10724. [Google Scholar] [CrossRef] [Green Version]
  10. Szczurek, A.; Maciejewska, M.; Bąk, B.; Wilk, J.; Wilde, J.; Siuda, M. Gas sensor array and classifier as a means of varroosis detection. Sensors 2020, 20, 117. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  11. Schaller, E.; Bosset, J.; Escher, F. “Electronic Noses” and Their Application to Food. LWT Food Sci. Technol. 1998, 31, 305–316. [Google Scholar] [CrossRef] [Green Version]
  12. Benedetti, S.; Mannino, S.; Sabatini, A.G.; Marcazzan, G.L. Original article electronic nose and neural network use for the classification of honey. Apidologie 2004, 35, 397–402. [Google Scholar] [CrossRef] [Green Version]
  13. Ampuero, S.; Bogdanov, S.; Bosset, J.O. Classification of unifloral honeys with an MS-based electronic nose using different sampling modes: SHS, SPME and INDEX. Eur. Food Res. Technol. 2004, 218, 198–207. [Google Scholar] [CrossRef]
  14. Abellán, J.; Castellano, J.G. Improving the Naive Bayes Classifier via a Quick Variable Selection Method Using Maximum of Entropy. Entropy 2017, 19, 247. [Google Scholar] [CrossRef] [Green Version]
  15. Saadatfar, H.; Khosravi, S.; Joloudari, J.H.; Mosavi, A.; Shamshirband, S. A New K-Nearest Neighbors Classifier for Big Data Based on Efficient Data Pruning. Mathematics 2020, 8, 286. [Google Scholar] [CrossRef] [Green Version]
  16. Szczurek, A.; Maciejewska, M.; Bąk, B.; Wilde, J.; Siuda, M. Semiconductor gas sensor as a detector of Varroa destructor infestation of honeybee colonies—Statistical evaluation. Comput. Electron. Agric. 2019, 162, 405–411. [Google Scholar] [CrossRef]
  17. Polkowski, L.; Artiemjew, P. Granular Computing in Decision Approximation, An Application of Rough Mereology. In Series: Intelligent Systems Reference Library; Springer: Berlin/Heidelberg, Germany, 2015; Volume 77, p. 452. [Google Scholar]
Figure 1. Object preparation and examination—young bees. (a) The sealed brood comb was enclosed in an insulator and placed in an incubator awaiting emergence of the bees. (b) An aluminum cage with the young bees (100 pcs) who emerged during the test in the test chamber (in this case, a chamber with a wooden insert).
Figure 1. Object preparation and examination—young bees. (a) The sealed brood comb was enclosed in an insulator and placed in an incubator awaiting emergence of the bees. (b) An aluminum cage with the young bees (100 pcs) who emerged during the test in the test chamber (in this case, a chamber with a wooden insert).
Sensors 21 00166 g001
Figure 2. Aluminum mesh cages with workers (100 pcs each) from colonies with physiological laying worker bees.
Figure 2. Aluminum mesh cages with workers (100 pcs each) from colonies with physiological laying worker bees.
Sensors 21 00166 g002
Figure 3. Gas sensor device—general view.
Figure 3. Gas sensor device—general view.
Sensors 21 00166 g003
Figure 4. Gas sensor device—main functional modules: (A) multi-sensor device MCA-8, (B) charge regulator, (C) communication controller, and (D) battery charge level indicator.
Figure 4. Gas sensor device—main functional modules: (A) multi-sensor device MCA-8, (B) charge regulator, (C) communication controller, and (D) battery charge level indicator.
Sensors 21 00166 g004
Figure 5. (a) Test chamber with a polystyrene insert. (A) Two gas lines to the measuring devices formed by a pneumatic connection. (B) Particulates filter. (C) Visibly disconnected power from the mechanical fan, which was not used during the tests. (D) Air inlet to the chamber with a regulator. (E) Pressure gauge. (F) Polystyrene insert placed in the chamber. (b) Identical test chamber with a wooden insert.
Figure 5. (a) Test chamber with a polystyrene insert. (A) Two gas lines to the measuring devices formed by a pneumatic connection. (B) Particulates filter. (C) Visibly disconnected power from the mechanical fan, which was not used during the tests. (D) Air inlet to the chamber with a regulator. (E) Pressure gauge. (F) Polystyrene insert placed in the chamber. (b) Identical test chamber with a wooden insert.
Sensors 21 00166 g005
Figure 6. An example of a line graph of the average reading from all class 6 objects for individual sensors. The safety of stabilizing the measurement signal ensures the 270 s of measurement.
Figure 6. An example of a line graph of the average reading from all class 6 objects for individual sensors. The safety of stabilizing the measurement signal ensures the 270 s of measurement.
Sensors 21 00166 g006
Figure 7. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using measuring device M1; wooden chamber on the left, polystyrene chamber on the right.
Figure 7. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using measuring device M1; wooden chamber on the left, polystyrene chamber on the right.
Sensors 21 00166 g007
Figure 8. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using M1 with baseline correction; wooden chamber on the left, polystyrene chamber on the right.
Figure 8. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using M1 with baseline correction; wooden chamber on the left, polystyrene chamber on the right.
Sensors 21 00166 g008
Figure 9. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using measuring device M2; wooden chamber on the left, polystyrene chamber on the right.
Figure 9. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using measuring device M2; wooden chamber on the left, polystyrene chamber on the right.
Sensors 21 00166 g009
Figure 10. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using M2 with baseline correction; wooden chamber on the left, polystyrene chamber on the right.
Figure 10. The visualization of the average reading intensity of TGS sensors for decision classes 1, 5, 6, and 7 using M2 with baseline correction; wooden chamber on the left, polystyrene chamber on the right.
Sensors 21 00166 g010
Figure 11. Best classifiers: parameter values in individual options, M1 device. Four-class problem—results of class separation. Values of the Acc balanced and true positive rate parameters, each class, depending on the option for the best classifiers (indicated in the Table 3), M1 device.
Figure 11. Best classifiers: parameter values in individual options, M1 device. Four-class problem—results of class separation. Values of the Acc balanced and true positive rate parameters, each class, depending on the option for the best classifiers (indicated in the Table 3), M1 device.
Sensors 21 00166 g011
Figure 12. Comparing of average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden (Option I) and polystyrene (Option II) chambers, all classifiers, Accuracy (acc) balanced, true positive rate 7 (tpr7). We can see that in Option I the parameters reach higher values. The m5 classifier is best for both options.
Figure 12. Comparing of average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden (Option I) and polystyrene (Option II) chambers, all classifiers, Accuracy (acc) balanced, true positive rate 7 (tpr7). We can see that in Option I the parameters reach higher values. The m5 classifier is best for both options.
Sensors 21 00166 g012
Figure 13. Baseline correction. Comparing of average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber with (Option V) and without (Option I) baseline correction, all classifiers, accuracy (acc) balanced, true positive rate 7 (tpr7). We can see that in Option I, the accuracy balanced parameter has higher values (except for the m8 variant) and the tpr7 parameter has higher values in 4 variants, so baseline correction decreased the accuracy balanced value, but increased the tpr7 value. However, the m5 classifier, which is best for both options, gives better results without baseline correction (Option I).
Figure 13. Baseline correction. Comparing of average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber with (Option V) and without (Option I) baseline correction, all classifiers, accuracy (acc) balanced, true positive rate 7 (tpr7). We can see that in Option I, the accuracy balanced parameter has higher values (except for the m8 variant) and the tpr7 parameter has higher values in 4 variants, so baseline correction decreased the accuracy balanced value, but increased the tpr7 value. However, the m5 classifier, which is best for both options, gives better results without baseline correction (Option I).
Sensors 21 00166 g013
Table 1. Examined objects and their source of origin, i.e., the colony and the date of examination.
Table 1. Examined objects and their source of origin, i.e., the colony and the date of examination.
Class 5—Young WorkersClass 6—Old WorkersClass 7—Workers from Colonies with Physiological Laying Worker Bees
Object No.Object Origin
(Colony ID)
Test DateObject No.Object Origin
(Colony ID)
Test DateObject No.Object Origin
(Colony ID)
Test Date
1063818 October 2018965117 October 2018181024 September 2018
1086818 October 2018975117 October 2018191025 September 2018
1105118 October 2018985117 October 2018201025 September 2018
11132218 October 2018995117 October 2018221025 September 2018
1126818 October 20181003817 October 201868664 October 2018
1254423 October 20181016817 October 201869664 October 2018
1267323 October 201810232217 October 201877665 October 2018
1277323 October 201810332217 October 201878665 October 2018
1287323 October 20181053818 October 20181146623 October 2018
1296823 October 20181074418 October 20181156623 October 2018
1096818 October 2018
Table 2. The measurement characteristics of TGS (Taguchi Gas Sensor) semiconductor gas sensors installed in the gas sensor device (https://www.figaro.co.jp/en).
Table 2. The measurement characteristics of TGS (Taguchi Gas Sensor) semiconductor gas sensors installed in the gas sensor device (https://www.figaro.co.jp/en).
SensorSubstances DetectedDetection RangeHeater Power Consumption [mW]
TGS 823Organic solvent vapors50 ppm~5000 ppm Ethanol, n-Hexane, Benzene, Acetone660
TGS 826Ammonia30 ppm~300 ppm Ethanol, Ammonia, Isobutane835
TGS 832Chlorofluorocarbons100 ppm~3000 ppm R-407c, R-134a, R-410a, R-404a, R-22835
TGS 2600Gaseous air contaminants1 ppm~100 ppm210
TGS 2602VOCs and odorous gases1~30 ppm Ethanol, Ammonia, Toluene280
TGS 2603Amine-series and sulfurous
odor gases
1 ppm–30 ppm Ethanol
0.1 ppm–3 ppm Trimethylamine,
0.3 ppm–2 ppm Methyl mercaptan
240
Table 3. Four-class problem—results of class separation, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII). Note: Tpr 1 = true positive rate class 1, Tpr 5 = true positive rate class 5, Tpr 6 = true positive rate class 6, and Tpr 7 = true positive rate class 7.
Table 3. Four-class problem—results of class separation, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII). Note: Tpr 1 = true positive rate class 1, Tpr 5 = true positive rate class 5, Tpr 6 = true positive rate class 6, and Tpr 7 = true positive rate class 7.
Option IOption IIOption IIIOption IVOption VOption VIOption VIIOption VIIIBest
Classifier/
Parameter
Acc balancedClassifierm5m5m5m7m5m5m1m6m5
Value0.5850.5760.6460.5640.570.5830.5980.567
Tpr 1Classifierm6m9m2m2, m6,
m8, m10
m2m10m1m2, m6, m8m2
Value0.9690.8830.99310.7810.8991
Tpr 5Classifierm7m5m10m10m5m6m1m8m5, m10
Value0.4620.5440.5810.4730.4420.3080.6740.483
Tpr 6Classifierm7m9m4m1m5m5m4m6m4, m5
Value0.320.4220.5330.5760.4760.6840.430.452
Tpr 7Classifierm5m5m5m6m10m6m1m9m5
Value0.730.470.6780.4830.8440.7680.540.721
Best classifier/option-Tpr parameterm7m5m2, m4, m5, m10m6, m10m5m6m1m6, m8
The best classifiers and their values are 5xMCCV5, depending on the option for the accuracy balanced (Acc balanced) parameter and the best classifiers for the true positive rate parameter according to individual classes (Tpr 1, Tpr 5, Tpr 6, and Tpr 7). As a summary, the classifiers that most often gave the best results for a given parameter (column Best classifier/parameter) and options (row Best classifier/option, TPR parameter) were given.
Table 4. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber (Option I). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Table 4. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber (Option I). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Classifieracc globalcov globalacc 156acc 7acc balancedtpr 156tpr 7
m10.80420410.9416960.4211440.6814160.8319520.718668
m20.5957810.4667610.7333810.386401
m30.63998810.4361160.570860.6313520.8318160.385934
m40.52210410.9304720.8382840.63720.9038640.331623
m50.83578810.9304720.594620.7625440.8711840.742336
m60.6652610.5894880.8926680.7410720.9624960.42656
m70.80210410.9281480.4880480.7080960.8407520.637808
m80.6189410.503080.9686680.735880.9893360.395088
m90.77683610.9415560.3243330.6329440.8061920.580668
m100.5957810.4741120.9786680.7263920.9898480.38302
Table 5. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, polystyrene chamber (Option II). Classifiers: m1 = uclidea.1nn, m2 = uclidea.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = uclidean.1nn, m6 = uclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Table 5. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, polystyrene chamber (Option II). Classifiers: m1 = uclidea.1nn, m2 = uclidea.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = uclidean.1nn, m6 = uclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Classifieracc globalcov globalacc 156acc 7acc balancedtpr 156tpr 7
m10.75789210.8813480.4340960.657720.8089720.589808
m20.46947610.4083360.657620.5329720.6739720.302018
m30.63578410.8187720.1570480.4879120.7266040.195856
m40.47789210.4711080.515620.4933640.7372680.250017
m50.76631210.8583320.535240.6967880.8348280.608952
m60.5031610.4090240.7634320.5862280.8084160.360549
m70.73263210.8413240.458480.6499040.8094680.527712
m80.477910.3910620.7207640.5559080.7492880.32875
m90.74105610.858720.4340960.6464040.8045920.515332
m100.50316410.4671760.6033360.5352520.7396720.326092
Table 6. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber, baseline correction (Option V). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Table 6. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, wooden chamber, baseline correction (Option V). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Classifieracc globalcov globalacc 156acc 7acc balancedtpr 156tpr 7
m10.77052410.9448520.3470470.6459480.7906960.622
m20.60421210.4659280.9840.7249680.9946680.404204
m30.62104810.6927360.5248560.60880.7954920.367568
m40.54315210.4695120.8040.6367640.8674520.341942
m50.8084210.9343880.511240.7228080.8377640.710188
m60.66947610.5922760.8817120.7369840.9438920.450932
m70.77894810.9423520.3833330.6628440.8005520.654
m80.65894410.5432920.9782840.760780.9902240.442968
m90.75578810.9385080.3062850.6223880.7800560.562004
m100.61052810.4857480.9579040.7218320.9800560.403856
Table 7. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, polystyrene chamber, baseline correction (Option VI). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Table 7. Average classification result from 25 tests, 5xMCCV5 experiment, 7 vs. all, M1 device, polystyrene chamber, baseline correction (Option VI). Classifiers: m1 = canberra.1nn, m2 = canberra.811, m3 = eps = 0.01.nb, m4 = eps = 0.01.nb2, m5 = euclidean.1nn, m6 = euclidean.811, m7 = manhattan.1nn, m8 = manhattan.811, m9 = maxminnormalized.1nn, and m10 = maxminnormalized.811.
Classifieracc globalcov globalacc 156acc 7acc balancedtpr 156tpr 7
m10.73262410.8502360.4540.652120.7985280.594572
m20.5915810.4471480.9750.7110760.9866680.428288
m30.65473210.8266520.2539520.5403080.7355120.396762
m40.53262810.4835880.676620.5801040.7862320.342526
m50.75157210.8435160.559760.701640.8337680.559636
m60.73894410.850240.4509520.65060.817280.650192
m70.7452610.8204080.5881920.7042960.8405160.588724
m80.73052410.8104880.5402840.6753840.8325880.589084
m90.74104810.855940.4690480.6624960.8033960.612092
m100.7136810.6944840.7899960.742240.9152520.5277
Table 8. Classes 1, 5, 6, and 7 vs. all—true positive rate; best classifiers, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII). Note: Tpr 1 = true positive rate class 1, Tpr 5 = true positive rate class 5, Tpr 6 = true positive rate class 6, and Tpr 7 = true positive rate class 7.
Table 8. Classes 1, 5, 6, and 7 vs. all—true positive rate; best classifiers, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII). Note: Tpr 1 = true positive rate class 1, Tpr 5 = true positive rate class 5, Tpr 6 = true positive rate class 6, and Tpr 7 = true positive rate class 7.
Option IOption IIOption IIIOption
IV
Option VOption VIOption VIIOption VIIIBest
Classifier/
parameter
Tpr 1 vs. 5, 6, 7Classifierm2m5m2m2, m5, m6, m7, m10m2, m10m2m1m1, m9m2
Value0.9810.8170.94810.9750.9950.9021
Tpr 5 vs. 1, 6, 7Classifierm6m5m6m6m6m10m1m6m6
Value0.5440.550.510.510.5250.2840.5820.530
Tpr 6 vs. 1, 5, 7Classifierm5m9m1m1m5m6m5m1, m9m1, m5
Value0.5320.5140.4890.5630.3720.6190.5420.413
Tpr 7 vs. 1, 5, 6Classifierm5m5m5m5m5m5m9m5m5
Value0.7420.610.4170.3760.7100.6500.4270.489
Best classifier/Option m5m5m1, m2, m5, m6m5, m6m5m2, m5, m6, m10m1m1, m9
The best classifiers and their results depending on the option for the true positive rate parameter in tests 1 vs. all performed for each class. As a summary, the classifiers delivering the best results for a given parameter (column Best classifier/parameter) and option (row Best classifier/option) were given. In individual options, the m5 classifier appears as the best (or equivalent) most frequently. In the case of parameters, the m5 classifier also appears most often (twice: in test 6 vs. 1, 5, 7 and 7 vs. 1, 5, 6).
Table 9. Classes 1, 5, 6, and 7 vs. all—accuracy balanced; best classifiers, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII).
Table 9. Classes 1, 5, 6, and 7 vs. all—accuracy balanced; best classifiers, 5xMCCV5—average classification results from 25 tests: all classes, M1 and M2 devices, wooden and polystyrene chambers, with and without baseline correction (Options I–VIII).
Option IOption IIOption
III
Option
IV
Option VOption VIOption VIIOption VIIIBest Classifier/
Parameter
Acc balanced 1 vs. 5, 6, 7Classifierm7m9m10m6m10m9m1m1m1, m9,
m10
Value0.8640.7880.8870.9250.8660.8860.8960.964
Acc balanced 5 vs. 1, 6, 7Classifierm6m5m6m10m6m10m1m6m6
Value0.7520.7410.7250.6630.7130.6380.7360.707
Acc balanced 6 vs. 1, 5, 7Classifierm6m5m10m1m10m5m10m10m10
Value0.8190.8140.7580.8220.6520.7750.7920.697
Acc balanced 7 vs. 1, 5, 6Classifierm5m5m5m5m1m10m9m5m5
Value0.7630.6970.6520.6650.6960.7420.4270.656
Best classifier/ option m6m5m10m1, m5, m6, m10m10m10m1m1, m5, m6, m10
The best classifiers depending on the options for the accuracy balanced parameter in tests type 1 vs. all performed for each class. As a summary, the classifiers delivering the best results for a given parameter (column Best classifier/parameter) and option (row Best classifier/option) were given. In individual options, the m5 classifier appears as the best (or equivalent) most frequently. In the case of parameters, the m5 classifier also appears most often (twice: in test 6 vs. 1, 5, 7 and 7 vs. 1, 5, 6).
Table 10. Class 7 vs. 1, 5, 6—accuracy balanced; true positive rate, results of separation. Results in options for the m5, euclidean.1nn method—the most effective method for distinguishing class 7; comparison of options, analysis of baseline correction application.
Table 10. Class 7 vs. 1, 5, 6—accuracy balanced; true positive rate, results of separation. Results in options for the m5, euclidean.1nn method—the most effective method for distinguishing class 7; comparison of options, analysis of baseline correction application.
Option IOption IIOption IIIOption IVOption VOption VIOption VIIOption VIII
Acc balanced True positive rate class 70.7630.6970.6510.5580.7230.7020.6120.601
0.7420.6090.4170.360.6120.560.3490.47
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wilk, J.T.; Bąk, B.; Artiemjew, P.; Wilde, J.; Siuda, M. Classifying the Biological Status of Honeybee Workers Using Gas Sensors. Sensors 2021, 21, 166. https://doi.org/10.3390/s21010166

AMA Style

Wilk JT, Bąk B, Artiemjew P, Wilde J, Siuda M. Classifying the Biological Status of Honeybee Workers Using Gas Sensors. Sensors. 2021; 21(1):166. https://doi.org/10.3390/s21010166

Chicago/Turabian Style

Wilk, Jakub T., Beata Bąk, Piotr Artiemjew, Jerzy Wilde, and Maciej Siuda. 2021. "Classifying the Biological Status of Honeybee Workers Using Gas Sensors" Sensors 21, no. 1: 166. https://doi.org/10.3390/s21010166

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop