1. Introduction
Interactions between bees and flowering plants involve complex processes of nectar collection, pollination, and foraging decision-making. Bees visit flowers primarily to obtain nectar, a reward whose availability significantly influences their behavior, visitation patterns, and pollination efficiency. These interactions are dynamic, with nectar volume and concentration fluctuating due to factors like bee consumption, evaporation, and environmental conditions. To effectively study these processes under controlled experimental conditions, researchers frequently employ artificial flowers, as discussed by Giray et al. [
1].
Behavioral assays gather data by monitoring the visits of pollinators to the artificial flowers in terms of number, timing, and duration while controlling the quantity and concentration of the nectar available in a small well at the center of each flower. Honey bees visit the well and collect the nectar using their proboscis. Following Cakmak et al. [
2], the typical protocol is to refill the well with nectar solution after each visit to ensure the consistent availability of nectar during an experiment.
Such behavioral assays are quite demanding in terms of visual observation and timely refill due to the fast moving insects, which has motivated the design of automated nectar delivery systems and automatic visit detection.
For example, research by Debeuckelaere et al. [
3] and Kuusela and Lämsä [
4] proposed the automation of nectar delivery and the detection of visits. The systems of Essenberg [
5] and Sokolowski et al. [
6] designed artificial flowers that deliver nectar in a discrete or controlled manner. Others, such as Moffatt et al. [
7] and Keasar et al. [
8], manipulate variables such as the reward rate, spatial arrangement of flowers, or metabolic conditions. However, this previous research has focused solely on measuring the number of visits to flowers, and the control of the nectar delivery, but has not addressed the variables that affect the amount of nectar available in them and its automatic measurement. Furthermore, recent computer vision approaches, such as that of Rodriguez-Cordero et al. [
9], allow for real-time bee tracking and visit detection at the flower-patch but with the difficulty of independently detecting the presence of nectar or quantifying or estimating the volume consumed. Integrating a nectar detection sensor into this field offers the possibility of direct nectar detection, thus complementing visual tracking in flower patch experiments.
In this context, the present work stands out by proposing an innovative methodology that not only measures visits but also the volume of nectar remaining in artificial flowers. This allows for more precise data on bee behavior and nectar dynamics, which represents a significant advance in the understanding of nectar collection processes.
The second objective is to develop a model that can be used with sensor readings to improve the estimation of the presence or absence of nectar in artificial flowers.
3. Materials and Methods
In this section, we present and discuss the details of each module and how they are validated experimentally.
3.1. Flower Design
In this study, artificial flowers are designed as flat plates with a central hole leading to the nectary, where trained bees access nectar. The FPNS sensor detects nectar absence when it is withdrawn. This type of bee interaction with the artificial flower is comparable to that in other autonomous floral patches, such as Debeuckelaere et al. [
3].
The artificial flower design consists of two parts as shown in
Figure 2: a 3D-printed block for a removable top with the nectary hole in the middle, and a PCB with the electrodes at the bottom.
The removable top was modeled in OnShape (model available at [
10]). It consists of a central nectary hole and a side tube through which the nectar is supplied. The design was exported as an STL file for 3D printing and replication. It was printed with a resin printer (Elegoo Saturn 8k, Shenzhen, China), thanks to its ability to manufacture parts with a precision of 0.0285 mm. The accessible side of the flower has an internal thickness of 1 mm, and this type of printer allows these high-precision tasks.
At the base of the flower are the electrodes that cross the nectary and maintain direct contact with the nectar for its measurement (see
Figure 2). The model maintains this shape to prevent external factors such as wind from directly affecting the nectar and also to mitigate its impact somewhat due to natural conditions.
3.2. Circuit Board Design
The electrodes of the flower PCB are connected to an external curcuit board that drives the electrical signal of the electrodes and measures the reaction using an oscillatory circuit.
Figure 3 shows the diagram of the circuit. A 555 timer IC configured in astable mode was integrated into this sensor, using a 555 package, an external 1 k
resistor, 0.1
F and 10 nF capacitors, and protoboard jumper wires, all controlled by an Arduino Uno, which was chosen for its low cost, ease of programming, and versatility due to its extensive library support. Power and ground were provided by connecting pin 8 (VCC) and pin 4 (RESET) of the 555 to the Arduino’s 5 V terminal, while pin 1 (GND) and one lead of each capacitor (
and
) were tied to the Arduino’s ground. To set the oscillation frequency, resistor
(1 k
) links VCC (pin 8) to pin 7 of the 555, and resistor
(replaced by the electrodes) connects pin 7 to the common node of pins 6 (threshold) and 2 (trigger). Additionally,
(0.1
F) is placed between pin 6 and ground, and
(10 nF) between pin 5 and ground. The output signal at pin 3 is routed to digital pin 2 of the Arduino to generate external interrupts, as specified in the implemented pseudocode shared at [
11].
To develop the system, the FPNS detection circuit was first designed as a breadboard (see
Figure 4) connected to the flower electrodes on one side and outputting a frequency for the Arduino on the other side.
3.3. Microcontroller Design
Frequency measurement is carried out through pin 2 of the Arduino, which is configured as an external interrupt. This allows for the detection of signal state changes (rising edges) from the 555 oscillator without requiring constant polling in the main program loop, thereby enabling accurate frequency measurement.
Each time a pulse is detected, a counter increments. After a predefined time interval (measured using an internal system timer that counts the milliseconds since the device was turned on), the frequency is calculated by dividing the number of pulses detected by the elapsed time (see
Figure 5). The resulting data can be transmitted via serial communication to an external laptop for storage and further processing.
3.4. Experimental Design and Validation
Experimental validation of the FPNS system was conducted under controlled laboratory conditions (31 °C and 61% RH), which served as the basis for all measurements, without a loss of generality. The validation aimed to evaluate the sensor’s ability to detect changes in nectar concentration and volume in artificial flowers.
Two main experiments were performed for this validation. The first experiment evaluated the sensor’s temporal response and the effect of evaporation on frequency measurements. This test involved monitoring the sensor reading every second over a 25-min period for a 4 L nectar droplet.
The nectar solution was prepared by dissolving 69.45 g of sugar in 100 mL of water (2 M), under ambient conditions maintained at 31 °C and 61% relative humidity.
The second experiment analyzed the FPNS’s sensitivity to gradual volume increases. This was conducted by adding successive 1 µL increments of nectar every 30 s until a total volume of 4 L was reached, with the frequency being measured after each addition.
Each of these experiments was repeated three times under identical laboratory conditions to ensure data consistency. The same procedure was also replicated for different initial volumes, such as 6
L, to confirm consistent behavior under similar conditions. All raw data and experimental logs can be found in the online repository [
11] for further details.
5. Discussion
The observed gradual behavior demonstrates the sensor’s ability to accurately detect minute variations in nectar volume. This level of sensitivity is excellent for experiments seeking to replicate natural conditions, where dynamic fluctuations in nectar availability are common. Furthermore, the system’s demonstrated accuracy contributes to the development of more comprehensive models of nectar dynamics, significantly improving our understanding of the complex interactions between pollinators and plants.
The main challenge of this study was to build a suitable sensor capable of measuring or detecting the presence of nectar in the artificial flower, especially for small droplets of approximately 4
L. Initial attempts to use standard components, such as the FC28 soil moisture sensor, proved unfeasible due to their excessive size and integration complexity. Therefore, a custom circuit was developed to handle low-level signals and accurately measure minute amounts of nectar. Leveraging fundamental principles of electronics and considering nectar as a variable “resistor” due to its low electrical conductivity, a sensor based on a 555 oscillator circuit was designed. This design converts variations in the intrinsic resistance of nectar into an oscillating output signal, which increases or decreases with the presence or absence of nectar. This approach culminated in the development of the FPNS sensor, a tool that leverages recent advances in sensor design and offers great potential for future autonomous systems, robotics, and equipment that require the precise measurement and detection of rewards such as nectar (including varying sugar concentrations). This methodology also presents a new avenue for addiction experiments in pollinator studies, for example, by monitoring substances such as alcohol in honeybees as by Giannoni et al. [
12].
The results presented for the FPNS sensor demonstrate its capability to detect dynamic changes in nectar over time, rendering it suitable for continuous data collection and accurate presence/absence detection. The observed decrease in frequency, particularly relevant in the 25-min evaporation experiment, provides valuable real-time information for behavioral studies with bees, allowing for the estimation of nectar volume and concentration. Furthermore, by integrating computational methods, the FPNS system offers the potential for dynamically adjusting nectar availability, thereby optimizing the reward system for pollinators. This dynamic adjustment capability is especially relevant in natural environments, where variables such as temperature fluctuations and direct sun exposure directly impact nectar solutions.
Therefore, the proposed FPNS system provides information not previously available for automated nectar delivery, by detecting the presence of the nectar itself. Existing systems for nectar delivery either focus on the delivery itself, as proposed by Essenberg [
5], Sokolowski and Abramson [
6], Keasar [
7], or use bee arrival and/or departure detection, as proposed by Debeuckelaere et al. [
3], Moffatt [
8] and Kuusela and Lämsä [
4], but may not have enough direct evidence to determine whether a bee has partially or fully consumed nectar before refilling the well. The FPNS sensor provides crucial support by allowing for the integration of nectar status into predictive models for artificial flowers equipped with dedicated detection hardware. This feature is particularly beneficial as it now allows for integrating nectar presence/absence with other sensors and systems aimed at detecting bee visits and foraging behavior, helping to determine the nectar’s state and protecting it from abrupt changes caused by environmental exposure. This also provides a complementary signal to computer vision systems such as those proposed by Rodriguez et al. [
13] and Rodriguez-Cordero et al. [
9].
The FPNS sensor is designed for straightforward replication, as most of its key components lack defined polarity, simplifying assembly with basic electronics knowledge or by following the provided methodological instructions. To enhance practicality and facilitate the generation of multiple FlowerPatch units (e.g., as described by Lara-Pérez [
11]), the proposed design also allows for the rapid cleaning of the nectar without compromising the electronics that is separated from the flower. The electrodes are integrated in the PCB and are easily cleaned and dried for storage without risk of damage. The modular design in two parts also facilitates the long-term maintenance of the flowers through the easy replacement of damaged parts.
Given that the nectar signal gradually decreases in frequency from the moment of application—a phenomenon influenced by environmental conditions causing evaporation or solidification—it becomes essential to integrate a mathematical model within the sensor system if the aim is to predict or accurately estimate the solution’s state over time. This temporal weakening of the signal is a direct consequence of the nectar’s susceptibility to variable environmental factors, specifically the temperature and relative humidity conditions replicated in these experiments. Therefore, future work will focus on integrating additional temperature and humidity sensors to model and compensate for such influences in real time, thereby extending the sensor’s reading range and enabling robust operation beyond controlled laboratory settings.
While the sensor can be adapted to different nectar volumes or rewards and was tested from 1
L to 4
L, it also has potential for larger quantities. Higher initial volumes are anticipated to yield a stronger, more stable signal with elevated frequency values. However, considering that the reward delivered to pollinators in these types of experiments is often limited, our focus remained on optimizing performance within the low-volume range. It should be noted that the current design presents some limitations, such as the necessity to readjust components for detecting even smaller nectar volumes. As per the manufacturer’s datasheet by Diodes Incorporated [
14], the sensor output frequency is inversely proportional to both nectar resistance and capacitance; therefore, only by changing capacitors can the output frequency be affected. While the sensor’s intrinsic sensitivity cannot be varied by this means, the reading range can be extended by adjusting the frequency as previously mentioned. This ensures that variable environmental conditions outside the laboratory would begin to affect the nectar at higher initial frequency values, providing a broader spectrum for detecting changes before the signal reaches zero. Additionally, current system encodes nectar concentration into an oscillating signal whose frequency is decoded by the Arduino Uno on the binary valued digital input pin. Other design may be explored in the future to convert the oscillatory signal into a DC voltage signal electronically to simplify the software reading by using an analog input pin on the microcontroler side.
Future work will integrate temperature and humidity sensors to account for environmental influences or help estimate the current nectar state, aiming to improve measurement accuracy. The data obtained will support the development of mathematical models for nectar evaporation, freezing, and consumption, which can be combined to build autonomous systems. The strong correlation between frequency and volume identified in this work serves as a basis for developing advanced predictive models. These models can incorporate dynamic changes in nectar properties, such as evaporation, freezing, and consumption, which are challenging for autonomous systems to determine without human intervention. They can contribute to variables that are difficult to ascertain (e.g., nectar presence, absence, and amount consumed by bees), thereby offering valuable feedback for studies aiming to understand the reaction of pollinators to nectar status more accurately.
Furthermore, the FPNS will be applied in open-field conditions with freely flying, marked bees, connecting the sensors to a continuous data acquisition system during real foraging trials. By implementing automated systems with artificial intelligence that reads sensor signals and predicts overall system behavior, we can significantly enrich the understanding of nectar dynamics in pollinator behavior studies. These results thus open up new opportunities for more comprehensive and robust experiments, including integration with systems such as the system proposed by Rodriguez-Cordero et al. [
9], allowing for dynamically linking variables such as the current nectar state with the identification and tracking of individual bee behavior using neural networks, as shown by Santiago et al. [
15].