论文信息

Weslen Schiavon de Souza / Lisane Brisolara / Paulo R. Ferreira

Design Automation for Embedded Systems

论文解读

AI 辅助整理
方法
利用缓存和感知区域重叠,设计TDMEN-CACHE和TDMEN-INTERSEC
发现
在精准农业和鸟类监测中,显著提高能效、事件检测率和网络寿命。
机会点
可探索将任务分配与边缘计算结合,或针对动态场景优化缓存策略,以进一步提升网络适应性。

论文摘要

Abstract This paper introduces two novel techniques, TDMEN-CACHE and TDMEN-INTERSEC, designed to enhance load balancing and energy efficiency in Wireless Multimedia Sensor Networks (WMSNs). These techniques leverage temporal and spatial redundancies to optimize task division among sensor nodes, reducing energy consumption and extending network lifetime. TDMEN-CACHE minimizes reprocessing by utilizing cached data from previous multimedia events, while TDMEN-INTERSEC capitalizes on overlapping sensing areas to distribute processing tasks among neighboring nodes. The proposed methods were evaluated using real-world case studies in precision agriculture and bird monitoring, demonstrating significant improvements in energy efficiency, event detection rates, and network longevity compared to conventional solutions. A packet loss model was also integrated to simulate real-world communication scenarios, further validating the robustness of the techniques under varying conditions.

全文

Design Automation for Embedded Systems

Design Automation for Embedded Systems (2026) 30:3
https://doi.org/10.1007/s10617-026-09300-5
Applying task division techniques on wireless multimedia
sensor networks to improve lifetime
Weslen Schiavon de Souza 1 · Lisane Brisolara de Brisolara 1 ·
Paulo Roberto Ferreira Jr. 1
Received: 28 September 2024 / Accepted: 1 July 2026
© The Author(s) 2026
Abstract
This paper introduces two novel techniques, TDMEN-CACHE and TDMEN-INTERSEC,
designed to enhance load balancing and energy efficiency in Wireless Multimedia Sensor
Networks (WMSNs). These techniques leverage temporal and spatial redundancies to opti-
mize task division among sensor nodes, reducing energy consumption and extending network
lifetime. TDMEN-CACHE minimizes reprocessing by utilizing cached data from previous
multimedia events, while TDMEN-INTERSEC capitalizes on overlapping sensing areas to
distribute processing tasks among neighboring nodes. The proposed methods were evaluated
using real-world case studies in precision agriculture and bird monitoring, demonstrating
significant improvements in energy efficiency, event detection rates, and network longevity
compared to conventional solutions. A packet loss model was also integrated to simulate real-
world communication scenarios, further validating the robustness of the techniques under
varying conditions.
Keywords Load balancing · Task division · Multimedia events · Reactive networks · Local
processing
1 Introduction
In recent years, the rapid advancement of technology has enabled the development of Wireless
Sensor Networks (WSNs), which are essential for various applications. This transformative
technology has emerged as a fundamental component in environmental monitoring, health-
care, smart cities, and industrial automation. WSNs commonly comprise spatially distributed
autonomous sensors that monitor and collect data from the physical environment, transmit-
ting this information over a network to a central station (Sink) for processing and analysis
B Weslen Schiavon de Souza
wsdsouza@inf.ufpel.edu.br
B Lisane Brisolara de Brisolara
lisane@inf.ufpel.edu.br
Paulo Roberto Ferreira Jr.
paulo@inf.ufpel.edu.br
1 CDTec, Universidade Federal de Pelotas, Pelotas, Brazil
0123456789().: V,-vol 123

3 Page 2 of 31 W. S. Souza et al.

[1]. The typical architecture of each node in a WSN consists of memory, sensors, a battery,
a wireless transceiver, and a microcontroller or microprocessor [ 2].
As primary energy source nodes usually use non-rechargeable batteries, saving energy is
a crucial issue in wireless sensor networks. Today, WSNs could be designed using devices
that capture multimedia data from the environment, such as images, audio, and video [ 3].
These networks are known as WMSN (Wireless Multimedia Sensor Network) and present
new challenges. To extract valuable information from this data, it should be processed. This
processing could be done locally; otherwise, this data should be sent to the central station.
Transmitting large volumes of data consumes a considerable amount of battery from the
nodes. Sending multimedia data across the network until the Sink represents a high energy
consumption, especially in Multi-Hop networks, due to the number of hops that the data
makes. Protocols also have limitations on the packet size, which contributes to the increase
in the number of transmissions required.
To reduce energy consumption, some kinds of WSNs operate by capturing data only
when a given event is triggered, called reactive WSNs. The reactive behavior consequently
achieves heterogeneous load distributions, since it depends on the spatial distribution of
events. Reactive behavior is most appropriate when multimedia data is collected, thereby
reducing the application load. This behavior, coupled with the use of local processing, can
help avoid the high energy consumption associated with communication. However, local
processing also consumes the node’s battery; therefore, energy-saving techniques based on
processing should be adopted to improve the network’s efficiency [ 4].
Load balancing techniques have been proposed for energy-efficiency management in
WSNs, although they are more commonly used to address communication rather than pro-
cessing. Some studies focus on homogenizing the processing load in reactive WSNs [ 4–6].
However, these techniques typically determine which node should process the event data (e.g.,
in sensor-overlapping scenarios) without splitting the event-processing workload among mul-
tiple nodes.
In WMSNs, nodes capture multimedia data, which significantly increases the workload
and requires more communication or higher processing capacity [ 3]. Our research group has
proposed a method to distribute the processing load among neighboring nodes, achieving
more efficient load balancing and consequently extending the network’s lifetime.
This technique, known as TDMEN (Task Division for Multimedia Events in Wireless
Sensor Networks), introduced in [ 7], defines a task as the processing of data generated
by an entire multimedia event. Under TDMEN, a node does not process the whole event
on its own; instead, it splits the task into multiple subtasks and assigns these subtasks to
neighboring nodes, each handling a subset of the event data. This distribution promotes a
more homogeneous battery discharge and avoids long transmissions of raw multimedia data,
thereby reducing latency and improving security [ 8]. From this point onward in the article,
we use the following terminology: a task refers to the processing of the data for an entire
event. At the same time, a subtask denotes a partition (or subdivision) of that event’s data
assigned for processing.
This paper presents two techniques based on the TDMEN strategy for task division. The
first technique, TDMEN-CACHE, leverages redundancy in multimedia data captured from
consecutive events to reduce reprocessing. The second technique, TDMEN-INTERSEC,
leverages spatial redundancy during task division, thereby reducing the required communi-
cation. Both techniques were implemented using the Eboracum framework [7] and evaluated
through real-world case studies using Eboracum simulations. To better approximate our
experiments to real-world scenarios, we also propose a packet loss model, which was inte-
123

Applying task division techniques... Page 3 of 31 3
grated into our simulation environment. The experiments using this model are presented and
discussed in this paper.
The rest of the paper is organized as follows: Sect.2 discusses related works; Sect.3 details
the proposed techniques, as well as the path loss model; Sect.4 presents a case study applying
TDMEN-CACHE, while TDMEN-INTERSEC is evaluated in another case study presented
in Sect. 5; and Sect. 6 presents the conclusions and future work.
2 Related work
Load balancing in Wireless Sensor Networks (WSNs) is crucial for maximizing network
lifetime. Recent works have focused on various techniques to address this challenge. Some
of these techniques are exclusively adopted in scenarios with sensor coverage redundancy,
avoiding reprocessing, and utilizing the decision on which node should process the event to
balance the load.
A strategy inspired by the behavior of sociable insects, called Pheromone-Signaling (PS),
has been proposed in [ 6]. This technique was designed to reduce redundancy in sensor net-
works with overlapping sensor coverage. The algorithm determines which node will process
the event among those that detected the same occurrence. PS performance depends on the level
of overlap among the coverage areas of multiple sensors. This is because its load-balancing
strategy is based on enabling or disabling nodes for processing through the exchange of
pheromones with neighboring nodes, ensuring an alternation between active and inactive
nodes. When redundancy among the coverage areas is limited, the likelihood of missing
events increases.
An Ant-based technique was also proposed for load balancing in sensor networks with
sensing redundancy in [ 5]. In this technique, events produce stimuli for nodes that, based
on their internal thresholds, determine different probabilities of processing these events.
When nodes detect an event, each node decides whether to process it or not, considering its
computed internal probability. It works by adjusting the probability that a node processes
an event based on the number of nodes that detected the same event simultaneously and the
frequency of that node’s previous event processing. This technique, inspired by the behavior
of Ants, achieves results very similar to those of PS, with the advantage that its performance
is not dependent on overlap.
Unlike Ant-based and PS techniques, in previous work, we proposed distributing the pro-
cessing load among neighboring nodes [8], thereby enhancing load-balancing capabilities in
applications that require high processing power. Although the approach has shown promising
results, the technique, called TDMEN, does not address temporal or spatial redundancies.
Thus, this work presents TDMEN-CACHE for use in applications that involve cumulative
multimedia data captured over time. Moreover, this work also proposes TDMEN-INTERSEC,
which is intended for use in applications where spatial redundancy is commonly present.
Finally, this work also proposes integrating a packet loss model into the Eboracum simulator
to improve the accuracy of our experimental results. The results presented here use this loss
model alongside load-balancing techniques and discuss the impact of signal quality on their
performance.
To the best of our knowledge, and based on an updated search in major digital libraries,
there are no other works directly addressing network lifetime extension in WMSNs through
explicit load balancing/task division mechanisms comparable to the setting studied in this
paper.
123

3 Page 4 of 31 W. S. Souza et al.

3 Task division techniques for load balancing on WMSN
TDMEN technique, presented in [8], proposes decentralizing the processing load by dividing
tasks into subtasks, enabling their distribution among neighboring nodes. However, redun-
dancy is common in multimedia applications [ 9], such as identical quadrants in images
captured from insect traps or identical songs detected at different times [ 10]. Sections 3.1
and 3.2 detail our approaches to addressing temporal and spatial redundancy in processing
task division using TDMEN. To improve simulation accuracy, we also integrate a model to
estimate packet loss in our simulation scenarios, which is presented in Sect. 3.3.
3.1 TDMEN-CACHE: addressing temporal redundancy
To avoid redundant processing, the TDMEN-CACHE technique is proposed, which uses
a cache scheme to detect temporal redundancies. The detector node stores data from the
previous event, which has already been processed. By comparing this previously processed
data with the current event data, new image fragments are identified, and only these new
data segments are processed. Once the new segments are identified, the task division and
distribution among neighboring nodes proceed in the same way as in the original TDMEN
[8].
The task division performed by TDMEN, when integrated with the caching scheme pro-
posed here, limits processing to only non-redundant data between events. In the context of
this new approach, we refer to the new data of an event as a segment. A segment is treated
as a subtask that can be further processed for neighboring nodes; we use the term segment
to make it explicit that we are processing only the new part of the event data. This targeted
approach not only enhances efficiency but also significantly conserves battery life for the
nodes by reducing unnecessary computations.
To illustrate how TDMEN-CACHE operates, we apply it to the scenario of identifying
insects captured in traps with adhesive floors, as presented in [ 11] and detailed by [ 12]. By
integrating motion sensors to trigger the cameras, the nodes work as a reactive intelligent trap.
Each insect captured on the adhesive floor generates new events, resulting in new images of the
same area. Over time, this process leads to temporal redundancy, as subsequent images will
inevitably include segments from earlier captures, highlighting the importance of efficiently
processing only the new data.
As proposed by [ 12], the pest management application uses image segmentation tech-
niques to aid the insect identification process. TDMEN-CACHE explores image segmentation
and temporal redundancy to optimize image processing. Figure 1 illustrates this scheme, rep-
resenting the segmented image from the previous event (state 1) and the image captured by
the current event (state 2). By comparing the two images, only segment C2 has changed.
Therefore, this will be the only segment that should be processed. In this example, instead
of processing all 11 segments from the current captured image, only segment C2 needs to be
processed. Thus, the cache scheme enables a considerable reduction in the number of seg-
ments to be processed, and consequently, saves energy consumption. To work, this scheme
requires an operation of intersection between image segments; however, it is still significantly
less costly than reprocessing all segments.
The task division techniques proposed here require communication among neighboring
nodes, and the decision about division is based on a neighbor table built by the node that detects
the event. Figure2 illustrates the communication scheme adopted by TDMEN-CACHE, using
an illustrative scenario, where node G detects an event, and node A is one of its immediate
123

Applying task division techniques... Page 5 of 31 3
Fig. 1 Cache states and temporal redundancy
Fig. 2 TDMEN-CACHE—communication scheme for task distribution
neighbors. Figure 2 details the sequence of messages exchanged between them. Initially,
node G checks its cache to identify whether the current sensed event is present. Otherwise, if
the event data is already cached, the node immediately returns the known result to the Sink
node. If the cache check results in a Miss, node G sends a Hello message by broadcasting
to its immediate neighbors (A). Node A receives this message identified by the Hello tag
and, in response, A sends a message to G that includes its battery level, the number of
processed segments, and its status. This response message, marked as Hey, was simplified
in Fig. 2 to show only the battery. When the Master node (node G, in this example) receives
a Hey message, it updates A ’s information in the neighbor table. Then, having the updated
information of all neighbors, G uses this information to decide to which of its neighbors it
will distribute tasks. In the illustrated example, G sends a Segment message to A, which then
sends the segment data to be processed by the neighbor. When node A receives a Segment,i t
processes it. Then it sends an OK message back to G, including information about its current
battery level and the result of processing the received segment.
To evaluate the TDMEN-CACHE technique, the Eboracum [ 7] was used, which is based
on Ptolemy II 1 simulation framework. This structure has already been used to implement
1 https://ptolemy.berkeley.edu/ptolemyII.
123

3 Page 6 of 31 W. S. Souza et al.

Fig. 3 TDMEN-CACHE implementation: class diagram
other load balancing techniques, including TDMEN [8]. To allow the integration of the cache
scheme, we defined the TaskDivisionWithCacheWSNNode class. Nodes represented by this
class have a storage area for multimedia event data, which is described in the framework by
the Segment class. The new class extends TaskDivisionWSNNode, which represents nodes
capable of dividing tasks, following TDMEN. These classes and their relationships are illus-
trated in the diagram from Fig. 3.
The TaskDivisionWithCacheWSNNodeclass includes the cache scheme implementation,
which involves detecting redundancy. TheIntersecSegments method is primarily responsible
for comparing the current multimedia event data and the event available in the cache, thus
extracting only the new segments to be processed. Meanwhile, the Segment class represents
the storage of bytes of a segment, which in turn means the data of a multimedia event.
Algorithm 1 presents a pseudocode of the TDMEN-CACHE technique proposed by this
study. This simplified code shows the basic sequence executed by each node in the network.
In line 1, the algorithm checks whether the node still has battery power to perform tasks; in
line 2, the execution flow waits for an event to be detected.
In line 3, the algorithm checks whether an event has been detected. If so, the node that
detected the event in line 4 checks whether the data for this event are already included in
its cache, identifying whether the current event is a recurrence and thus avoiding duplicate
processing of the same information. Additionally, in line 4, the method’s parameter and return
values are updated to reflect the cache and the segments to be processed, respectively. In line
5, the node checks whether a segment is to be processed; if so, it sends a broadcast message
with the Hello tag. Furthermore, in line 8, if there is no segment to be processed, indicating
that the data is already in the cache, the node sends the results to the Sink.
123

Applying task division techniques... Page 7 of 31 3
Algorithm 1: TDMEN-CACHE technique pseudo-code
1 while hasBattery() do
2 event ←waitSenseEvent();
3 if event then
4 segmentsToProc ←checkCachedSegments(event.currentSegments());
5 if segmentsToProc > 0 then
6 sendBroadCastMessage(tag , msgData ); // send Hello tag
7 else
8 sendToSink(getCached(event )); // send results to Sink
9 while msg ←waitMessage() do
10 if msg.HasHello() then
11 sendMessage(msg .nod I D, tag , msgData ); // send hey tag
12 else if msg.HasHey() then
13 updateNeighborsTable(msg .nod I D, msgData );
14 nod Id ←checkNeighborsTable();
15 sendMessage(nod Id , tag , msgData ); // send segment tag
16 else if msg.HasSegment() then
17 resultData ←procSegment(msg.data()); // get segment and do
18 SendResult(msg .nod I D, tag , resultData );
19 else
20 results ←gedAndCheckResults(msg .No dID , msg .resultData );
21 sendToSink(results ); // summarize results and send to Sink
In line 9, the algorithm checks whether it has received any messages from its neighbors.
If it has been received, it is identified by the message tag, which indicates whether it is a
message to process a segment (e.g., “Hey”), a notification message (e.g., “Hello”), or even a
result message (e.g., “ok”).
If it is a Hello message, on line 11, the node responds to the node that sent the message with
a ‘Hey’ tag and informs its battery. Even if the message received is a Hey, in line 13, the node
updates the neighbor table with the information received; in line 14, it decides which nodes
will process the data based on the nodes’ battery levels; in line 15, it sends the segments to the
nodes that will process the data. If the received message contains a processing tag (segment),
it performs this task in line 17, using the data sent from the segment in the message. In line
18, the result is returned to the Master node using the node’s identifier, which is included in
the message.
Finally, in lines 20 and 21, if it is a resulting message (ok), the master node, upon receiving
it, summarizes this data with the others already processed and, if finished, sends the result to
the Sink.
3.2 TDMEN-INTERSEC: addressing spatial redundancy
The original TDMEN, introduced in [ 8], proposes dividing the processing tasks of an event
and distributing the resulting subtasks to neighboring nodes. However, in WSN with overlap-
ping sensing areas, which means that multiple nodes can detect the same event, the original
TDMEN offers limited advantages. Each node detecting the same event distributes tasks
among its neighbors, potentially resulting in increased overhead due to the redundant trans-
mission of information about the same event. To address this issue in spatial redundant
sensor networks, the TDMEN-INTERSEC technique is proposed. This approach lever-
123

3 Page 8 of 31 W. S. Souza et al.

Fig. 4 Example scenario for a WSN with spatial redundancy and communication done by the TDMEN-
INTERSEC technique
ages redundancy by enabling nodes that detect the same event to cooperate in processing
the multimedia data. By preventing data reprocessing and leveraging spatial redundancy,
TDMEN-INTERSEC reduces the communication load for subtask distribution and expands
the possibilities for task sharing with neighboring nodes within a one-hop distance.
To explain this technique, a WSN designed for the detection and identification of bird
sounds will be used as a case study. Figure 4 illustrates a scenario of this network, where
three nodes (H, G, and E) simultaneously detect the same event. In a network with spatial
redundancy, where two or more nodes can detect the same event, the propagation of this event
detection can be visualized as a waveform, depicted by the dashed circle. In the illustration,
nodes H, G, and E detect the event, a bird’s song.
Since all nodes H, G, and E have the event information in their memory, they can work
collaboratively to process the event, eliminating the need to send segments between them.
Communication among them is reduced to verify whether the detected event is the same.
Additionally, since the three nodes that sensed the event (H, G, and E) have distinct neighbors,
the approach improves the possibilities for task distribution, allowing subtasks to be assigned
to each immediate neighbor of these nodes. In Fig. 4, nodes I, F, and D, which did not detect
the event, can also receive subtasks related to the processing of the current event.
To implement the proposed technique, a communication protocol was designed between
the nodes, which defines the message exchanges performed by the network nodes when
TDMEN-INTERSEC is adopted. Figure 5 illustrates this protocol. In the example presented,
the nodes that detect an event (G and H) send a broadcast message ‘Hello’ to all their
neighbors. This message contains a unique identifier that represents the event and the current
battery information of the sending node.
When the nodes receive a ‘Hello’ message, they check, using the identifier, if they recently
sensed the same event. If the response is negative (F and I), they send a ‘Hey’ message back
to the sending node, including information about their own battery, thus signaling their
availability to collaborate in processing the event.
123

Applying task division techniques... Page 9 of 31 3
If the node has already detected the event (in the example, G and H), the node with the
highest battery level assumes the role of Master (G). The Master node is responsible for
determining which nodes will process which segments of the event. The other node, referred
to as the Slave (H), sends a table of its immediate neighbors to the Master node. This table
includes the names and battery levels of the neighboring nodes.
The Master node (G in the illustrated scheme) receives responses from its neighbors and
makes decisions based on their battery levels to determine which nodes will collaborate in
the event processing. In the described scenario, the Master node (G) decides to send a part of
the multimedia data of the event (segment) to node F, its immediate neighbor, for processing.
Additionally, the Master node (G) communicates to the Slave node (H) via a ‘Send’ message,
instructing it to forward a part of the event to its neighbor, node I. Since node H also detected
the same event, it is not necessary to send the segment itself; only the identification of the
segment to be processed is required, as node H already has the data related to the current
event. This strategy reduces the energy cost of this communication, resulting in only the cost
of sending a standard message, i.e., the cost of sending a message without the multimedia
data payload.
Node F receives the message from node G, processes it, and sends back the result, along
with its new battery level. This battery level will enable the Master node to update its neighbor
table and use it as a reference if new distributions are required to process the current event.
Meanwhile, the Slave node (H), upon receiving the message from the Master node (G),
forwards a ‘Segment’ message to node I, as illustrated in Fig. 5. This message contains the
data for segment 1, enabling node I to process it. Node I, upon receiving the segment from
H, processes it and sends the result back to node H, including its new battery level. Finally,
the Slave node (H) returns the result of the processing performed by node I to the Master
node (G).
In the example, node I is not an immediate neighbor of node G, and therefore, if G were
to forward the segment data to node I, there would be associated retransmission costs (a
distance of two hops). However, through this technique, multimedia segment data, which
involves higher transmission costs, always traverses only a single hop in the network. Y et,
we can reach nodes at a considerably greater distance. Since this segment transfer message
may involve a large volume of data, this technique has the potential to reduce the relative
communication cost significantly.
The master–slave scheme proposed in TDMEN-INTERSEC expands the pool of collab-
orators for processing an event without increasing the costs associated with large messages,
while leveraging spatial redundancy. As more nodes detect the same event, the list of eli-
gible nodes for collaboration in processing the multimedia data (or its segments) grows.
This enhances load balancing and promotes more uniform energy consumption across the
network.
For the implementation of this approach, as well as the others proposed in the context
of this study, the Eboracum was used. To represent the nodes following this technique, the
class TaskDivisionIntersecProtocol was created. This class extends the TaskDivisionWith-
CacheWSNode. Instances of TaskDivisionIntersecProtocol must have information about the
segments. EventControlData is a class that represents the segments and event data. The
Protocol is used to represent an interface, whose resolve method must be implemented to
represent the execution flow of each of the protocol’s Tags; thus, there is a class implementing
this interface for each of the defined protocol’s Tags. The class diagram depicted in Fig. 6
summarizes the implementation of the TDMEN-INTERSEC technique in the Eboracum.
Algorithm 2 presents the pseudocode of the TDMEN-INTERSEC implementation. This
code summarizes the basic sequence executed by each node in the network when the technique
123

3 Page 10 of 31 W. S. Souza et al.

Fig. 5 TDMEN-INTERSEC: communication scheme
123

Applying task division techniques... Page 11 of 31 3
Fig. 6 TDMEN-INTERSEC implementation: class diagram
Algorithm 2: TDMEN-INTERSEC technique pseudo-code
1 while hasBattery do
2 event ←waitSenseEvent();
3 if event then
4 for all node nodID in neighborhood do
5 sendMessage(nodID, tag, msgData); // send Hello tag
6 while msg ←waitMessage() do
7 for all proTag proc in protocolResolver do
8 proc.resolve(msg.getTag(), msg.data()); // get tag and do
is applied. In line 1, the algorithm checks if the node still has enough battery to perform tasks;
in line 2, the execution flow waits for the detection of an event. In line 3, the algorithm checks if
an event has been detected. If affirmative (lines 4–5), the node that detected the event notifies
its neighbors via a tag, indicating the sensor that made the detection and including basic
information about the event identification in the message. In line 6, the node checks if it has
received any messages from its neighbors. If it has received messages, it identifies, through
the tag in the message, which task it should perform, whether it is processing an event or
signaling its availability.
123

3 Page 12 of 31 W. S. Souza et al.

3.3 Packet loss modeling
This section will discuss packet loss caused by various real-world factors that affect wireless
communication channels. We propose integrating a packet loss model into our simulation
scenarios to enhance accuracy and achieve results that more closely reflect real-world exper-
iments.
The loss modeling conceived here was based on studies found in [ 13, 14], which con-
ducted tests with the S2C module and the ZigBee protocol. These studies allowed for the
identification and modeling of equations that describe path loss and signal strength based on
the distance between nodes, both in outdoor and indoor environments.
p = 1.279 ∗ 10−11 ∗ e−0.2641x . (1)
Equation 1 models the percentage of packet loss in a wireless network using the ZigBee
protocol. The parameter x represents the RSSI (Received Signal Strength Indicator) of the
data receiver node, and the value of p expresses the percentage of losses, as presented in
[13]. Based on the equation and other data and results presented in [ 13], it can be observed
that when the RSSI value is equal to or less than 75, the packet loss percentage does not
exceed 0.5%. However, the authors also note that with RSSI values above 75, the packet loss
percentage increases exponentially. Losses remain below 1% up to an RSSI of 77, but this
percentage rises to approximately 7% when the RSSI reaches 85.
RSSI =− 17.435 log(d) − 35.149. (2)
Equation 2, presented in the study [14], models an estimate of RSSI signal in S2C ZigBee
in outdoor environments. In this equation, the variable d represents the distance in meters
between two nodes. Based on this equation and considering the distance between nodes,
and correlating it with the study by [ 13], which correlates RSSI values with packet loss, it
is possible to model the approximate packet loss in our simulations. For example, in a pest
management WMSN scenario where nodes are 150 m apart, an RSSI of 75 can be considered,
resulting in an average packet loss of approximately 0.5%.
Despite the simulations and signal strength tests presented in [ 14], which cover a broad
range of outdoor environments, there may still be adverse and unknown factors that impact
signal quality. However, as identified based on the work of [ 13] and supported by Eq. 1,
packet loss is directly related to the received RSSI intensity. Therefore, if the signal strength
between the nodes in the network deviates significantly from the expected average of 75, or
if there is a need, it would be possible to adjust the spacing of the network nodes so that the
RSSI aligns with the acceptable packet loss, based on Eq. 1.
In our case studies presented in Sects. 4 and 5, an average packet loss rate of 1% was
considered to ensure a margin of safety. Additionally, we explore different percentages of
packet loss in the pest management case study to discuss the impact of loss on our task division
technique. These scenarios can also represent extreme weather events or other extraordinary
conditions that may affect connection quality, thereby impacting the RSSI of the network.
4 Case Study 1: task division on WMSN with temporal redundancy
In this section, the TDMEN-CACHE technique will be evaluated in the context of a WMSN
for pest management in orchards. This network does not have overlapping sensing areas, but
123

Applying task division techniques... Page 13 of 31 3
Fig. 7 Block diagram of a smart
trap—our sensor node
it presents temporal redundancy since an insect is trapped within it. Thus, it is a powerful
real scenario to demonstrate the TDMEN-CACHE technique.
4.1 WMSN for pest management
An emerging application for WSNs is precision agriculture, where sensor nodes are used
to monitor various aspects of orchards and crops. The management and control of diseases
affecting crops has generated a growing and constant demand for numerous research efforts
and solutions that are more technological and less harmful to the environment [ 15]. In this
field, the use of electronic traps for pest control and monitoring in crops has proven to be
highly relevant and promising [ 16].
In this study, experiments were conducted using an application for pest management
with smart electronic traps. These traps can capture and identify target insects in orchards,
enabling effective monitoring and early detection of potential infestations. The traps use
pheromones to attract insects and capture them on an adhesive floor. An infrared sensor
detects the movement of an insect and triggers the capture of an image. Subsequently, the
image is processed to identify the insect of interest and count them.
The insect identification approach used in the traps was first proposed by [ 11]. It utilizes
Digital Image Processing techniques to identify regions of interest (ROI) within the image
that are likely to be insects. These regions are then analyzed and classified using an Artificial
Neural Network, specifically a Convolutional Neural Network (CNN), as detailed by Freitas
et al. [12]. This CNN is responsible for accurately categorizing the insects into their respective
fly classes.
The traps are connected via radio frequency (RF) modules, so when a sensor node detects
insects and performs their identification and counting, this count is then transmitted using
multi-hop connections to the base station. Due to the image capture requirements, this WSN
is classified as multimedia (WMSN). In this study, the simulated WMSN is based on the
proof of concept of the smart trap previously presented in [ 11] and detailed in [ 12]. Figure 7
illustrates the main modules used in the smart trap prototype, which are: CPU, RF Module,
Camera, Infrared Sensor, and a Battery to power the entire system.
The smart traps contain an infrared sensor that triggers the camera to capture a new
image when an insect enters the trap, providing reactive behavior for our sensor nodes. The
combination of the infrared sensor and the camera represents the detection capability of the
WSN node. However, the detection range is determined by the pheromone used to attract
insects. The CPU is a Raspberry Pi III with 32GB of storage, which executes the image
processing and machine learning techniques proposed in [ 12].
The device’s memory is used to store application data and the complete data organization
required by TDMEN. Among all stored data, the captured pictures consume the most storage
space. The application software must handle data overwriting to manage older information
123

3 Page 14 of 31 W. S. Souza et al.

Table 1 Current consumption per
module in the smart trap Module Current (mAs)
RX/Idle 28
Tx 33
Raspberry 800
Infra-red sensor 10
efficiently. The cache proposed by the TDMEN-CACHE approach also utilizes the available
free space in this memory. Furthermore, the lifecycle of our cache follows the temporal
interval between events. Specifically, when an event B occurs after an event A, the data from
event A is overwritten in the cache upon a cache miss. As a result, the TDMEN-CACHE
approach only uses the space necessary to store data from a single multimedia event.
For communication, the traps are equipped with XBee S2C RF modules [ 17]. The com-
munication range used was based on field experiments conducted by our research group,
which indicated a maximum range of 160 m in orchard areas. The protocol used is ZigBee:
a network and application layer built on the MAC and PHY layers specified in the IEEE
802.15.4 standard. ZigBee is preferred in agricultural WSN applications due to its low cost,
reliability, low power consumption, self-organization, self-healing, mesh topology mode, and
security features [ 18].
As a significant constraint in WSNs is the lifetime, for our case study, the energy con-
sumption of the trap modules was characterized. Table 1 details the current consumption
by each module, used to estimate energy costs and simulate battery depletion of the nodes.
These values are used in our simulation experiments to characterize the employed models.
Previously, our research group conducted a case study on the same target application,
adopting a proactive Wireless Sensor Network (WSN). This earlier study helped to define
key parameters, including sensing range, communication range, network density, and certain
aspects of energy consumption, which were applied in the present work.
4.2 Case Study 1: application modeling
We use Eboracum to model our simulation scenario, where each sensor node represents
an electronic trap with a defined sensing and communication range. The adopted sensing
coverage is set to 70 m, based on the use of the pheromone Bio Trimedlure. The scenario
employs one trap per hectare, representing a trap spacing of 100 m. An event in the simulator
represents an insect detected by the infrared sensor. Thus, the coverage of each sensor node
never overlaps, as the same insect cannot be in two different traps simultaneously. In the
simulations conducted, these nodes are modeled by instances of classes from our framework.
The class TaskDivisionWithCacheWSNNode and SimpleWSNNode are used in experiments
with TDMEN-CACHE and in the solution with no load-balancing technique, respectively.
In this study, a simulation scenario consisting of 36 sensor nodes uniformly distributed in
a square area of 810,000 m 2 (900 m × 900 m) was considered, with a Sink node positioned
on the side, as illustrated in Fig. 8. The nodes are connected to one of their four neighbors
(the closest to the Sink) or directly to the Sink. The communication radius is 160 m, ensuring
that the nodes’ messages always reach only the four nearby nodes, which we refer to as
immediate neighbors.
Figure 8 shows a screenshot of Eboracum during a simulation, where the sensor nodes can
be identified (small dark blue circle), the sensing radius (intermediate light blue circle), and
123

Applying task division techniques... Page 15 of 31 3
Fig. 8 Simulation scenario of the WMSN for pest management (color figure online)
Fig. 9 Spatial probability distribution for events: inverted normal
the communication radius (larger outer circle). It is also possible to observe the position of the
Sink used in the simulations, which is located on the left, outside the rectangle representing
the area of interest. In a precision agriculture scenario, it is common for the Sink to be located
outside the orchard, as it requires placement in an area with access to an unlimited power
source and reliable internet connectivity, which is typically found outside orchards and fields.
The red dots represent events, that is, the capture of insects in the traps.
Using the StochasticDailyJumperEvent class provided by Eboracum, the occurrence of
insects in orchards was modeled. Since the presence of this type of insect in an orchard is
considerably higher at the end of the day [ 19], the simulations generate events once a day.
The event frequency is modeled by a Poisson distribution with an average interval of 68,399 s
(19 h), a standard deviation of 7199 s (2 h), and an interval ranging from 0 to 86,399 s (24 h).
The simulation model generates ten events per day as the daily workload.
123

3 Page 16 of 31 W. S. Souza et al.

The sensor network is deployed within the orchard, and the presence of an insect triggers
each event. Since these insects typically enter from outside the orchard, traps located at the
edges of the area of interest have a higher probability of capturing more insects [ 20]. To
model the spatial dynamics of insect arrival in the orchard, we developed an event dispersion
model based on an Inverted Normal distribution as shown in Fig. 9. It models the probability
of event occurrence, which is lower in the central area and increases in traps close to the edge
o ft h ea r e ao fi n t e r e s t .
The method adopted in the traps, according to [ 12], has a processing cost that depends on
the number of regions of interest (NROI) in the image, i.e., the number of segments to be pro-
cessed. Since the trap’s adhesive floor is not replaced during the network lifetime, successive
events correspond to images of the same underlying surface over time. This has an important
implication for the temporal-difference strategy: each new event inherently contains a large
portion of unchanged content, because most of the scene (the floor texture and background)
remains constant across captures. Therefore, the amount of “new data” to be represented as
segments and disseminated for distributed processing is naturally limited to the parts of the
image that actually change between events (e.g., newly captured targets or localized varia-
tions), rather than scaling to the entire event payload. In practice, this means that the unit-cost
terms associated with segment exchange and processing (e.g., sending, comparing, and pro-
cessing segments) increase with the number of updated segments; however, this number is
structurally constrained by the experimental setup, which preserves substantial redundancy
from one event to the next. Thus, in our model, an event represents a newly detected insect,
and its occurrence leads to an increase in the NROI of the trap. By adopting the TDMEN-
CACHE technique, this number helps define how the segments should be distributed among
the network nodes.
Each node in the network has a battery capacity of 25,200,000 mAs. To evaluate the
energy consumption of different WMSN solutions for pest management, it was necessary to
characterize the network solutions for this target application. The energy costs used in these
characterizations were defined based on the trap prototype and its modules, as detailed in
Sect. 4.1, and also considering the protocols proposed by the task division technique.
The first characterization performed considers the network without any task division or
load-balancing technique. In this case, there are three costs to be applied, corresponding to
the nodes’ operating modes: image processing, sending the message with the count of regions
of interest, and idle mode. These costs can be seen in Table 2.
The IDLE_COST refers to the energy consumption of the node when it is neither pro-
cessing nor transmitting messages, but is enabled to capture events and receive messages.
SEND_APP_MESSAGE represents the energy consumption related to sending the insect
count message between two neighbor nodes. This cost refers to the estimated power con-
sumption for the RF module to send 36-byte messages, using a transmission rate of 250 kbps
and a current of 33 mA during transmission. In this characterization (Table 2), since there
is no task division, the processing cost corresponds to that required to process entire image
segments. The estimated time for the Raspberry Pi to process an ROI is 0.9 s, using a current
of 800 mA, which results in a total consumption of 720 mAs. Thus, the total energy pro-
cessing cost is 720 mAs multiplied by the NROI, plus the preprocessing cost (420 mAs). In
this case, the preprocessing refers to the segmentation performed internally by the machine
learning algorithm. The cost of this preprocessing was estimated based on the execution time
(0.525 s) required for this task on the CPU, which consumed a current of 800 mA. These
costs are the same as those used in the simulations conducted in the work of Zanini et al.
[21].
123

Applying task division techniques... Page 17 of 31 3
Table 2 Task energy cost without
load balancing Task name Cost (mAs)
SEND_APP_MESSAGE 0.038016
IDLE_COST 0.1
PROCESSING 420 + 720 * NROI
Table 3 Energy cost of each task
with TDMEN-CACHE Task name Cost (mAs)
SEND_SEGMENT 5.0012
SEND_DISCOVERY 0.038016
SEND_APP_MESSAGE 0.038016
IDLE_COST 0.1
PREPROCESSING 420
PROCESSING_SEGMENT 720
COMPARING_EQUALS 5
COMPARING_DIF 5
The IDLE_COST and SEND_APP_MESSAGE costs are the same across the characteri-
zations used in our experiments. However, to evaluate the consumption using our task division
techniques, it was required to extend the operating modes of the nodes in Eboracum. Table
3 presents the costs adopted for our experiments using the TDMEN-CACHE technique.
When adopting TDMEN-CACHE, segments can be sent among neighbor nodes. This
operation was named SEND_SEGMENT. The protocol adopted by this technique also
requires a discovery message and neighbor table setup; the message SEND_DISCOVERY
represents the cost of the node in exchanging discovery messages and/or updating its
neighbor table. The communication costs used for SEND_DISCOVERY are equivalent to
those for SEND_APP_MESSAGE, as they have the same number of bytes. However, for
SEND_SEGMENT, the cost was estimated based on the number of headers used per packet,
plus a message of 3.87 Kbytes, representing an image segment in our application.
Finally, by separating segment processing from the preprocessing of the entire image.
PROCESSING_SEGMENT represents the cost of processing an image segment, where 720
mAs was considered, maintaining the estimate for processing an ROI by the trap’s CPU. The
cost of PREPROCESSING was estimated at 420 mAs.
Additionally, in the characterization used in the TDMEN-CACHE experiments, sum-
marized in Table 3, the operations COMPARING_EQUALS and COMPARING_DIF are
responsible for determining whether a segment needs to be processed or not, based on the
intersection analysis between the image segments: the segments to be processed from the
current event and the segments saved in the node’s cache.
The COMPARING_EQUALS cost corresponds to the cost of an intersection between two
segments that are exactly the same, where all the pixels of the image are compared with
those of the segment in question to determine if this segment is already contained in the
cache, in which case it will not need to be processed. On the other hand, COMPARING_DIF
corresponds to the cost of performing the intersection between two distinct segments, where
each pixel of the segments in question is compared until a difference is found. Once a
difference is found, the comparison is stopped, determining that the new segment is either
not contained in the cache or simply not identical to the one currently being compared. To
123

3 Page 18 of 31 W. S. Souza et al.

Table 4 Case Study 1: lifetime results in days for the three different approaches
Approach Full network (Avg–V ar) Total duration (Avg–V ar)
TDMEN-CACHE 341–3 1164–31
TDMEN 282–5 923–20
Without Balancing 200–9 665–34
simplify the process and avoid underestimating the costs, the worst-case cost was adopted for
both situations, which corresponds to the cost of comparing all the pixels in a segment. Thus,
the costs of COMPARING_EQUALS and COMPARING_DIF were estimated at 5 mAs for
the characterization used in the experiments with TDMEN-CACHE.
This case study was employed in several experiments aimed at evaluating the TDMEN-
CACHE technique. All simulations were repeated 30 times due to the variability of the
stochastic models used to model event occurrences. The average values from the 30 runs
were used for comparison, and a Student’s t-test was employed to analyze whether the
improvements were statistically significant in comparing the two means.
4.3 TDMEN-CACHE experimental results
This section presents and discusses the results achieved by the TDMEN-CACHE technique in
the pest management case study. Firstly, the results from the TDMEN-CACHE are compared
to those obtained by the original TDMEN, which does not handle temporal redundancy.
Secondly, we analyze the impact of packet losses when TDMEN-CACHE is used in this
application scenario.
Our experiments compare the TDMEN-CACHE performance against the TDMEN origi-
nal when applied to an application scenario with temporal redundancy. For that comparison,
our WMSN for pest management is used. Table 4 reports network lifetime (in days) for the
three approaches, with each entry given as average–variance (Avg–V ar). The Full Network
metric refers to the time until the first node fails, marking the onset of service degradation as
the network begins to lose operational capacity. In contrast, Total Duration measures the time
until the last node that remains connected to the Sink dies, capturing the overall period dur-
ing which the network can still deliver data to the Sink through at least one connected node.
Therefore, the average reflects the typical longevity achieved by each strategy, while the vari-
ance indicates how consistent these lifetimes are across runs. TDMEN-CACHE delivers the
most extended lifetime under both criteria. For Full Network, TDMEN-CACHE reaches 341
days, compared to 282 days with TDMEN and 200 days without balancing—an increase of
about 21% over TDMEN and about 70% over the no-balancing baseline. For Total Duration,
TDMEN-CACHE achieves 1164 days, versus 923 days for TDMEN and 665 days without
balancing—roughly 26% and 75% improvements, respectively.
To analyze the impact of packet losses on the TDMEN-CACHE performance, this network
was evaluated in this section under four different scenarios: TDMEN-CACHE with no losses,
with 1% losses, with 4% losses, and with 7% losses. Additionally, for comparative purposes,
these solutions were compared to a solution without load balancing (and without packet
losses). Figure 10 illustrates the results for these five solutions, showing the average number
of events detected per day in each simulated scenario. Based on these results, it is evident
that the four different solutions that use the TDMEN-CACHE technique were considerably
superior to the solution without load balancing.
123

Applying task division techniques... Page 19 of 31 3
Fig. 10 Case Study 1: events detected by day in the five different solutions
Table 5 Case Study 1: lifetime results in days for the five different solutions
Technique Full network (Avg–V ar) Total duration (Avg–V ar)
TDMEN-CACHE 341–3 1164–31
TDMEN-CACHE: 1% 341–4 1100–31
TDMEN-CACHE: 4% 340–4 1114–31
TDMEN-CACHE: 7% 338–5 1101–32
Without Balancing 200–9 665–34
When comparing TDMEN-CACHE simulations with and without losses (Fig. 10), it is
observed that the network lifetime results remain unchanged. However, more events are lost
as the packet loss percentage increases. Even in the TDMEN-CACHE simulation with 7%
packet loss, there was an improvement of approximately 71% in maintaining the full network
and 66% regarding the total lifetime (total duration) compared to the WMSN without load
balancing. These behaviors can also be analyzed based on the results regarding lifetime in
days shown in Table 5.
This consistency in results is explained by the network’s behavior when a packet is lost.
In the loss simulation, the node does not resend the lost packet, leading to a partial or total
loss of the event. Additionally, different types of messages, such as the hello messages, do
not result in event loss since more than one node receives the same message, increasing the
chance that at least one node will receive the command and respond to the Master node,
processing the data and consuming the node’s energy. However, for the event result to be
counted, it must reach the Sink via multi-hop, where the data can be lost, impacting the final
count of processed events.
Thus, for a clearer analysis of the real impact on TDMEN-CACHE caused by the packet
loss simulation model, comparative tests were conducted on the total number of events
detected by the network. In Table 6, the average results for the total number of detected
events are presented for TDMEN-CACHE-based solutions, without and with different loss
packet rates, as well as for a solution without balancing. These results are illustrated in Fig.11.
It is evident that, even in simulations where packet loss was applied to TDMEN-CACHE
at a rate of 7%, the results remained significantly superior compared to a solution that does
not employ any load-balancing techniques. A significant increase in event detection can be
observed when using TDMEN-CACHE across all packet loss percentages, compared to the
123

3 Page 20 of 31 W. S. Souza et al.

Fig. 11 Case Study 1: number of detected events in the five different solutions
Table 6 Case Study 1: number of
detected events in the five
different solutions
Technique Avg–V ar
TDMEN-CACHE 6519–81
TDMEN-CACHE: 1% 5814–78
TDMEN-CACHE: 4% 4950–74
TDMEN-CACHE: 7% 4154–75
Without Balancing 3939–80
Table 7 Case Study 1:
percentage of events lost by the
TDMEN-CACHE solutions,
varying the percentage of losses
Packet loss Event loss (%)
TDMEN-CACHE 1% 11
TDMEN-CACHE 4% 24
TDMEN-CACHE 7% 36
version without load balancing, which shows reduced performance even without considering
any packet loss rate.
Meanwhile, Table 7 presents the percentage of events lost by the network using TDMEN-
CACHE at varying levels of packet loss. It can be observed that, with an average packet loss
of 1%, the number of lost events increases by 11%. When the packet loss rate is increased to
4% and 7%, the event losses rise to 24% and 36%, respectively. This effect occurs because,
as illustrated in Fig. 8, the event result, even after being processed, must be transmitted to the
Sink to be effectively counted. As a result, a single packet can be lost at any point during the
retransmissions along the multi-hop path to the Sink, leading to event loss rates higher than
the original packet loss percentages.
From the results obtained in the experiments with TDMEN-CACHE varying the packet
loss rates, a linear decreasing trend was observed in the reduction of the number of detected
events as the packet loss percentage increases. This trend can be seen in the graph in Fig. 12.
123

Applying task division techniques... Page 21 of 31 3
Table 8 Case Study 1: improvement achieved by the TDMEN-CACHE solutions compared to the non-
balancing solution regarding detected events
Packet loss TDMEN-CACHE × Without Balancing (%)
TDMEN-CACHE 1% 48
TDMEN-CACHE 4% 26
TDMEN-CACHE 7% 5
Fig. 12 Case Study 1: impact of packet loss on network event detection using TDMEN-CACHE
Furthermore, based on the results and the trend line of the graph, it can be inferred that when
the packet loss level reaches 10%, the number of lost events is approximately 46%.
Additionally, we compare solutions using TDMEN-CACHE against the network without
load balancing in terms of the number of detected events. Table 8 summarizes this com-
parison, presenting the percentage of additional events detected by each TDMEN-CACHE
solution against the without-balancing solution. It can be observed that, in the simulation with
1% losses, which represents the expected standard packet loss scenario, TDMEN-CACHE
improves the average number of detected events by 48% compared to the solution without
balancing. Even in the simulation with 7% losses, TDMEN-CACHE presents 5% of improve-
ment in the number of detected events. It is important to note that the 7% packet loss used is
a comparative case for potential extreme signal drops or rare climatic events that might cause
significant signal interference. Even under these conditions, the TDMEN-CACHE technique
demonstrated satisfactory results.
Even the non-balancing solution should send the event results through the network to the
Sink via a multi-hop scheme; packet loss can also result in the loss of events. Thus, for a more
accurate comparison, the network without load balancing was also evaluated with 1% packet
loss, and the results were compared to those of TDMEN-CACHE using the same packet
loss rate. The results of this comparison are illustrated in Figs. 13 and 14. In the line graph
from Fig. 13, it is noticeable that in the TDMEN-CACHE technique, the first inflection point
occurs significantly later, marking the first wave of node failures in the network. The TDMEN-
CACHE technique extends the operational life of the nodes by approximately 69% compared
123

3 Page 22 of 31 W. S. Souza et al.

Fig. 13 Case Study 1: events sensed per day by TDMEN-CACHE compared to the non-balancing solution,
both considering losses of 1%
Fig. 14 Case Study 1: number of events detected in the network with TDMEN-CACHE compared to the
non-balancing solution, both considering losses of 1%
Table 9 Case Study 1: number of
events detected by the
TDMEN-CACHE solution and
the non-balancing solution, both
considering 1% losses
Technique Avg–V ar
TDMEN-CACHE 1% 5814–78
Without Balancing 1% 3655–70
to the results obtained with the non-balancing solution. Additionally, regarding the total
network lifetime, the TDMEN-CACHE technique demonstrated a substantial improvement,
providing 61% more days of operation compared to the solution without load balancing.
Regarding the total number of detected events, as illustrated in Fig. 14, TDMEN-CACHE
technique achieved better performance, detecting up to 69% more events than the no-
balancing solution. These results are summarized in Table 9, which demonstrates that
TDMEN-CACHE can extend the network’s lifespan, allowing nodes to detect events over a
longer period.
123

Applying task division techniques... Page 23 of 31 3
Fig. 15 Block diagram for the
bird detection smart sensor node
5 Case Study 2: task division for WMSN with spatial redundancy
In this section, the TDMEN-INTERSEC technique will be evaluated within the context of a
Wireless Multimedia Sensor Network for bird species recognition. Due to the overlapping
sensing areas in this network, a bird song can be detected simultaneously by multiple nodes,
making it an ideal real-world scenario to demonstrate the effectiveness of the TDMEN-
INTERSEC technique.
5.1 WMSN for bird song recognition
Monitoring, identifying, and recognizing bird species in specific environments serve as impor-
tant indicators of environmental quality [22]. The use of automated and autonomous tools for
bird identification has gained attention [23], as these tools allow individuals without special-
ized knowledge to identify birds and facilitate remote monitoring. Additionally, AI-based
tools can now recognize and catalog birds through their calls, further improving both the
accessibility and accuracy of bird identification [ 24].
In this case study, experiments were conducted using a bird monitoring application with
smart sensor nodes. These nodes are capable of identifying birds in a forest by their songs,
enabling the recognition of species that inhabit that area. A noise sensor is used to detect
potential bird sounds, activating a microphone to capture the audio. Afterward, the sound is
processed on the node’s CPU, and a machine learning technique is employed to identify the
bird. Figure 15 illustrates the main modules used in the smart sensor node, which are: CPU,
RF Module, Microphone, Noise Sensor, and a battery to power the entire system.
The artificial intelligence used for bird identification is the BirdNET-Analyzer API 2 pre-
viously proposed in [ 24]. It enables the identification of over 6000 bird species worldwide.
This API also provides additional useful functionalities, such as audio segmentation, which
can be used to divide and balance the processing load of events. In our bird detection sensor
node, a Raspberry Pi III is used for audio processing and executes the AI methods proposed
in [24].
The smart sensor node contains a noise sensor used to activate the node when a bird sings.
This module is used to provide a reactive behavior for our nodes, activating the microphone
to record a new sound. When a sensor node detects a bird’s singing, the audio is processed,
and an AI-based technique is executed to identify the sound. The identification of the bird is
then transmitted using multi-hop connections to the base station. The nodes are connected via
radio frequency (RF) using XBee S2C RF modules [ 17] following the ZigBee protocol, as
2 https://github.com/kahst/BirdNET-Analyzer.
123

3 Page 24 of 31 W. S. Souza et al.

Table 10 Current consumption
per module in the bird detection
sensor node
Module Current × Time (mAs)
RX/Idle 28
Tx 33
Raspberry 800
Noise sensor 10
in our first case study. The communication range used in this experimental setup was 160 m,
reusing the factor measured in the orchard area.
The combination of the noise sensor and the microphone represents the node’s sensing
capability. Thus, the sensing radius is defined by the sensitivity of the microphone and noise
sensor (in dB), as well as the distance to the node and the intensity (in dB) of the bird’s call
to be recorded.
To evaluate TDMEN-INTERSEC and its impact on WMSN lifetime, the energy consump-
tion of the sensor node modules was characterized. Table 10 details the current requirements
by each module, which is used to model energy costs and simulate the battery discharge of
the network nodes. These values are used in the experiments to characterize the simulation
models employed.
5.2 Case Study 2: application Modeling
This second case study considers a WMSN used for monitoring and identifying birds through
their songs. The event that triggers the reactive nodes in the sensor network now represents
the song of a bird. The processing load for this application refers to the audio processing and
pattern recognition required to identify bird sounds. We employed BirdNET-Analyzer 3 [24]
API to characterize these processing operations. This API provides additional functionalities
useful for our case study, such as audio segmentation, which was used to divide processing
load and characterize subtask costs.
The node used in this case study features the same battery, CPU, and communication
module as in our first case study. However, the camera has been replaced with a microphone
module, and the passage sensor has been replaced with a noise sensor. Practical experiments
were conducted, considering the node’s architecture illustrated in Fig. 15, to estimate con-
sumption. Thus, the BirdNET-Analyzer API was installed on a Raspberry Pi III CPU, and
experiments were conducted to evaluate the processing and communication costs involved in
processing an audio sample representing 120 s, during which 7 birds were singing, totaling
320,000 bytes of information.
In previous work, we have proposed two load-balancing techniques that also explore spa-
tial redundancy but do not divide the processing of the same event among neighbors. In this
case study, we compare the TDMEN-INTERSEC performance with that of the other two
load balancing techniques and the results achieved by a network without load balancing.
In Table 11, the costs for the main operations are presented. In these solutions (Ant, PS,
and no balance), since a single node performs all multimedia event processing, the PRO-
CESSING_EVENT cost shown in the table encompasses the entire task of preprocessing
the audio, identifying bird sounds, and cataloguing which species these calls belong to. This
cost was computed considering the CPU time required to perform this task (51.63 s) and the
3 https://github.com/kahst/BirdNET-Analyzer.
123

Applying task division techniques... Page 25 of 31 3
Table 11 Case Study 2: energy
costs for tasks when using PS,
Ant, and WSN without load
balancing technique
Task name Cost (mAs)
SEND_APP_MESSAGE 0.038016
IDLE_COST 0.1
PROCESSING_EVENT 41,304
Table 12 Case Study 2: energy
costs for tasks when using
TDMEN-INTERSEC technique
Task name Cost (mAs)
SEND_SEGMENT 10.23
SEND_DISCOVERY 0.038016
SEND_APP_MESSAGE 0.038016
IDLE_COST 0.1
PREPROCESSING 6560
PROCESSING_SEGMENT 4963
current consumed by the CPU (800 mA), totalling 41,304 mAs. Additionally, the costs for
SEND_APP_MESSAGE and IDLE_COST remained the same as those used in the first case
study, as the message size and architecture were similar.
Through experiments, it was observed that processing a segment to identify the bird
responsible for the sound takes approximately 6204 s on the Raspberry Pi III. Considering
the current of 800 mA and this processing time, the PROCESSING_SEGMENT cost, equal
to 4963 mAs, was adopted in the TDMEN-INTERSEC experiments. The estimated PRE-
PROCESSING cost was 6560 mAs, considering the time (8.2 s) required to analyze the same
120-s audio sample, which contained the calls of 7 birds.
To characterize the communication load, a segment size of 8000 bytes was used, which
was the exact size obtained after preprocessing the 120-s base audio used in our experiments.
This preprocessing results in 7 segments, one for each bird, with each segment containing
3 s of bird song. Considering the maximum payload size of 104 bytes, the number of packets
needed for transmission was determined to be 77, ensuring that the entire segment could
be transmitted. The number of packets was multiplied by the header size to determine the
total volume of data to be transmitted, amounting to 9848 bytes. Considering a transmission
rate of 250,000 bits/s (or 31,250 bytes/s), and the energy cost to utilize this rate fully is 33
mAs, the percentage of bandwidth usage can be computed. By dividing the total number of
bytes in the identified segment (9848 bytes) by this transmission rate, we obtain a bandwidth
usage percentage of 31%. Consequently, the resultant energy cost is 10.23 mAs. The costs
for SEND_DISCOVERY and SEND_APP_MESSAGE remained the same as in other case
studies due to the message size in bytes being equal in both cases, despite differences in
structure and frequency of occurrence. The same applies to IDLE_COST, where the value
remains identical across all experiments due to the use of the same hardware in all simulations.
Table 12 summarizes the cost adopted for the nodes’ operation modes in the experiments
with TDMEN-INTERSEC.
These estimated costs were then incorporated into the simulation models built on Ebo-
racum and used to evaluate the network solutions with different load-balancing techniques,
as well as those without load-balancing. The simulations were repeated 30 times for each
scenario, and the average results were then compared. A Student’s t-test was employed to
analyze whether the improvements were statistically significant when comparing results.
123

3 Page 26 of 31 W. S. Souza et al.

Fig. 16 Simulation scenario for bird song recognition
Figure 16 presents a screenshot of the simulation for the bird monitoring case study. The
network is composed of 49 nodes, representing the hardware from Fig. 15. These nodes are
arranged to allow up to three nodes to detect the same event, which is a bird song. The
communication range of these nodes is defined by the Eboracum simulator’s commCover
attribute, with a value of 160 m. In contrast, the range of the communication sensors is given
by the sensorCover attribute, with a value of 120 m. The class StochasticDailyJumperEvent
is used to represent the behavior of birds singing in a forest. The events appear in space
following a Uniform distribution, and the frequency of the events is given by a Poisson
distribution, with an interval of occurrence between events of [1, 100] s.
In this case study, we use different classes to represent the node, as we are comparing four
distinct solutions. The classes already available at Eboracum were reused to build the solutions
using Ant-based, PS, and without balancing. The scenario using TDMEN-INTERSEC was
built using the new class TaskDivisionIntersecProtocol, presented in Sect. 3.2.
5.3 Case Study 2: experimental results
This section presents the results obtained by the network dedicated to bird identification using
the proposed TDMEN-INTERSEC technique. For comparison purposes, experiments were
also conducted using a non-balancing solution and solutions employing the Ant and PS load
balancing techniques. To closely approximate the results of tests in a real environment, this
case study applied an average packet loss rate of 1% for the different techniques.
In this application, performance is strongly influenced by spatial redundancy caused by
sensing overlap: the same bird song event can be detected by multiple reactive nodes within
acoustic range. Under this condition, the original TDMEN—while effective at distributing
the processing of a triggered event into subtasks among neighbors—still requires processing
every event instance triggered at each node, even when these instances correspond to the
same underlying song. Consequently, TDMEN inevitably incurs duplicated computation and
123

Applying task division techniques... Page 27 of 31 3
Fig. 17 Detection of events per day using TDMEN-INTERSEC, PS, Ant, and non-balancing solution
Fig. 18 Number of events detected by the TDMEN-INTERSEC, PS, Ant, and the Non-Balancing solution
communication across overlapping nodes, resulting in higher energy expenditure and a shorter
lifetime compared to overlap-aware approaches. In contrast, the techniques evaluated here
explicitly mitigate this redundancy by restricting processing to the non-redundant portions
of the sensed data.
The TDMEN-INTERSEC explores spatial redundancy while distributing the processing
tasks for neighbor nodes, achieving superior results in the conducted experiments. The pro-
posed technique kept all the network nodes active for a longer time (as shown in Fig. 17)a n d
processed and identified more events compared to the other solutions. In the non-balancing
solution, the first nodes failed as early as the second day of processing. The Ant-based tech-
nique introduced by [5] successfully maintained all nodes’ activity until the fifth day. The PS
technique [6] managed to maintain them until the sixth day, albeit with a high cost in terms of
message exchanges and a higher number of lost events. Figure 17 illustrates the comparison
among the four solutions regarding the number of events detected per day.
In terms of the number of detected events, our TDMEN-INTERSEC technique outper-
formed the Ant-based, PS, and non-balancing solutions in the bird song recognition case
study. These results for average detected events are illustrated in Fig. 18. As expected, both
PS and Ant techniques remain considerably superior to the non-balancing solution when
123

3 Page 28 of 31 W. S. Souza et al.

Table 13 Difference in the number of events detected by TDMEN-INTERSEC when compared against PS,
Ant, and without load-balancing
Compared techniques Difference in percentage
TDMEN-INTERSEC versus PS 27.8% More events
TDMEN-INTERSEC versus Ant 33.9% More events
TDMEN-INTERSEC versus without load balancing 122.5% More events
compared to the total number of sensed events and the network lifetime, as one can observe
from Figs. 18 and 17.
In our experiments, TDMEN-INTERSEC was able to detect 122.5% more events com-
pared to the non-balancing solution. Additionally, our proposed technique detected 33.9% and
27.8% more events than the bio-inspired Ant and PS techniques, respectively. These improve-
ments are attributed to the task division and exploitation of spatial redundancy inherent in the
TDMEN-INTERSEC technique. Table 13 presents the average percentage of fewer events
detected by each different network solution compared to the proposed TDMEN-INTERSEC.
These results demonstrate the effectiveness of the proposed technique in balancing the work-
load, enabling the network to remain functional for a more extended period and, consequently,
detect more events.
Among the solutions analyzed in this case study, the one that experienced the least inter-
ference from packet loss was the one that did not apply any load balancing, as expected.
The non-balancing solution does not require any additional communication between nodes,
as it neither distributes the workload among neighbor nodes nor prevents two nodes from
processing the same event. Consequently, this network solution is less impacted by packet
losses, missing an average of 242 events—the packet losses in this solution impact only the
transmission of results from the node to the Sink.
On the other hand, the Ant-based and PS solutions experienced similar impacts regarding
packet loss, with each suffering a reduction in the number of detected events by 3294 and 2756,
respectively. This is due to the additional message exchanges required to determine which
node will process, thereby avoiding duplicate processing. Consequently, these techniques
have a considerably greater impact in terms of event loss compared to the non-balancing
solution. Despite this reduction in the number of detected events due to packet loss, both PS
and Ant remain considerably superior to the non-balancing solution.
TDMEN-INTERSEC, proposed in this work, experienced less impact than the other two
load balancing techniques, losing an average of 1158 events. This result is attributed to the
different types of messages, where some, such as the hello messages, do not lead to event
loss because more than one node receives the same message (broadcast), which increases the
chance that at least one node will receive the command and respond to the Master node. Our
experimental results show that TDMEN-INTERSEC outperformed the Ant-based and PS
techniques by a significant margin, primarily due to its ability to explore spatial redundancy
for improved load balancing. The proposed technique not only detected a higher number
of events but also extended the operational lifetime of all network nodes to the maximum
possible duration.
123

Applying task division techniques... Page 29 of 31 3
6 Conclusion and future works
Energy consumption is a significant concern in WSN design, as nodes in remote environ-
ments are often powered by non-rechargeable batteries. WSNs that detect multimedia events
consume more energy than conventional networks due to the considerable volume of data
generated by each event. Transmitting this multimedia data may be prohibitive due to pro-
tocol limitations or its significant impact on energy consumption. A potential alternative is
to process the data locally; however, processing multimedia events on sensor nodes can also
drain their batteries, thereby impacting their overall lifespan.
In previous work, we introduced the TDMEN technique, which divides multimedia pro-
cessing tasks to distribute the load among neighboring nodes [ 8]. This technique reduces the
impact of local processing on individual nodes’ batteries, thereby alleviating energy con-
sumption and extending the overall network lifetime. This work presents two techniques,
which can be seen as variations of TDMEN, designed to address redundancy and leverage
it to enhance load balancing. Moreover, this work proposes a packet loss model that was
integrated into our simulations to better approximate real-world communication scenarios.
TDMEN-CACHE was proposed to exploit temporal redundancy during load distribution in
WMSNs. This technique allows nodes to identify redundant data in consecutive captures and
avoid reprocessing, thereby reducing the workload before task division and load distribution.
When integrated with TDMEN, the proposed technique achieved improvements of around
27% in network lifetime compared to TDMEN’s original results, and performed better than
a WSN without balancing.
A new solution, TDMEN-INTERSEC, was also introduced to address networks with
sensing overlap. This technique leverages spatial redundancy to enhance task division and
allocation. The strategy adopted by the TDMEN-INTERSEC takes advantage of the simulta-
neous detections of the same event by multiple nodes, reducing the communication required
to distribute subtasks and enabling collaboration. Furthermore, collaborating nodes can, when
necessary, send segments to other neighboring nodes, expanding the scope of cooperative pro-
cessing. Using a real-world application as a case study, we evaluated TDMEN-INTERSEC
through simulations. We compared its results with those of two other load-balancing tech-
niques, as well as a non-balancing solution.
In the tests conducted, the TDMEN-INTERSEC technique detected 44% more events
than the PS approach, 48% more than the Ant approach, and 117% more than the non-
balancing solution. This demonstrates that the proposed approach has the potential to sense
more events over time compared to other load-balancing strategies. Furthermore, regarding
network lifetime, the TDMEN-INTERSEC approach was able to keep all network nodes
active for longer than the other solutions: 17% longer than PS, 40% longer than Ant, and
250% longer than non-balancing.
This work also discussed the impact of external interference on network communications,
and we determined an expected average packet loss of about 0.5%. To improve safety, we
adopt 1% in packet loss rate as the default. However, we conducted experiments varying the
packet loss to observe the impact on the techniques’ performance.
The results achieved through two real-world case studies highlight the potential of the
TDMEN approaches to enhance various operational aspects in multimedia wireless sensor
networks, contributing to the overall network efficiency. Based on the results obtained, it
can be concluded that the TDMEN-based techniques not only offer a new perspective for
handling events in WMSN but also demonstrate a lower impact in networks exposed to
external interference that causes packet loss. Our techniques achieved significant performance
123

3 Page 30 of 31 W. S. Souza et al.

improvements compared to non-balancing solutions. In scenarios with spatial redundancy,
TDMEN-INTERSEC also proved to be more efficient in load distribution compared to bio-
inspired techniques.
Furthermore, two key advantages can be highlighted regarding the adoption of local pro-
cessing. Both benefits are directly related to the transmission of multimedia data. First, by
avoiding the need to transmit data from node to node through the network before reaching
the Sink, our techniques significantly enhance privacy. Second, this reduction in data trans-
mission also improves latency, as results are sent directly to the Sink, minimizing delays
associated with forwarding multimedia data for later processing.
As future work, we plan to incorporate swarm intelligence algorithms into our TDMEN-
INTERSEC technique to reduce the number of communications between nodes. By doing so,
we aim to decrease the network’s overall energy consumption significantly. Since our current
technique uses broadcast messages for node-to-node communication, neighboring nodes can
read messages exchanged between each other. Leveraging swarm intelligence algorithms,
nodes will be able to infer data and information from the exchanged messages, potentially
eliminating the need for certain types of communication. This, in turn, would further reduce
energy consumption across the network. Additionally, we plan to evaluate other applications
further to demonstrate the effectiveness and versatility of our techniques.
Acknowledgements This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de
Nível Superior—Brasil (CAPES)—Finance Code 001. The authors also gratefully acknowledge the support
of FAPERGS (Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul) under Project FAPERGS
Techfuturo—23/2551-0002199-4.
Author Contributions This work represents contributions from the doctoral thesis of WSS, developed under
the supervision of LBB and PRF Jr. Mr. Souza implemented the techniques and conducted the experiments. All
three authors collaboratively made decisions regarding implementation and experiment setup. The manuscript
was written by WSS and LBB, with all authors reviewing and approving the final version.
Funding The Article Processing Charge (APC) for the publication of this research was funded by the Coor-
denação de Aperfeiçoamento de Pessoal de Nível Superior - Brasil (CAPES) (ROR identifier: 00x0ma614).
Data Availability No datasets were generated or analysed during the current study.
Declarations
Conflict of interest The authors declare no conflict of interest.
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which
permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give
appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence,
and indicate if changes were made. The images or other third party material in this article are included in the
article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is
not included in the article’s Creative Commons licence and your intended use is not permitted by statutory
regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.
To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ .
References

  1. Khalaf OI, Sabbar BM (2019) An overview on wireless sensor networks and finding optimal location of
    nodes. Period Eng Nat Sci 7(3):1096–1101
  2. Alkhatib AAA, Baicher GS (2012) Wireless sensor network architecture. In: International conference on
    computer networks and communication systems (CNCS 2012), 2012. IACSIT Press, Singapore
    123

Applying task division techniques... Page 31 of 31 3
3. Usman M, Jan MA, He X, Chen J (2019) A survey on big multimedia data processing and management
in smart cities. ACM Comput Surv 52(3):1–29
4. Pereira IA, Brisolara L, Ferreira PR (2020) Application-level load balancing for reactive wireless sensor
networks: an approach based on constraint optimization problems. Brazilian conference on intelligent
systems (BRACIS). Springer, pp 63–76
5. Ferreira PR, Brisolara L, Indrusiak LS (2015) Decentralised load balancing in event-triggered WSNs
based on ant colony work division. pp 69–75 (41st Euromicro conference on software engineering and
advanced applications (SEAA). IEEE )
6. Caliskanelli I, Harbin J, Indrusiak LS, Mitchell P , Polack F, Chesmore D (2013) Bioinspired load balancing
in large-scale WSNs using pheromone signalling. Int J Distrib Sens Netw 9(7):172012
7. Marques MR, Brisolara L, Ferreira PR, Indrusiak LS (2016) Eboracum: an extensible framework for
high-level modeling and evaluation of reactive and adaptable WSNs. In: 2016 IEEE 21st international
conference on emerging technologies and factory automation (ETFA), 2016. IEEE, pp 1–8
8. Souza WS, Brisolara LB, Ferreira PR (2022) Load balancing based on multimedia task division for
reactive WSNs: case study for pest management. 2022 XII Brazilian symposium on computing systems
engineering (SBESC), 2022. IEEE, pp 1–8
9. Matheen M, Sundar S (2023) A novel technique to mitigate the data redundancy and to improvise network
lifetime using fuzzy criminal search Ebola optimization for WMSN. Sensors 23(4):2218
10. Williams H (2004) Birdsong and singing behavior. Ann NY Acad Sci 1016(1):1–30
11. Martins V AM, Freitas LC, Aguiar MS, Brisolara LB, Ferreira PR (2019) Deep learning applied to the
identification of fruit fly in intelligent traps. IX Brazilian symposium on computing systems engineering
(SBESC) 2019:1–8. https://doi.org/10.1109/SBESC49506.2019.9046088
12. Freitas LC, Martins V AM, Aguiar MS, Brisolara LB, Ferreira PR Jr (2022) Deep learning embedded into
smart traps for fruit insect pests detection. ACM Trans Intell Syst Technol. doi: 10.1145/3552435. ( Just
Accepted)
13. Yin L, Huang Y , Chen W (2016) Reliability analysis of wireless communication based on ZigBee. 4th
International conference on electrical and electronics engineering and computer science (ICEEECS 2016).
Atlantis Press, pp 67–70
14. Fakhri AB, Gharghan SK, Mohammed SL (2018) Path-loss modelling for WSN deployment in indoor
and outdoor environments for medical applications. Int J Eng Technol 7(3):1666–1671
15. V elusamy P , Rajendran S, Mahendran RK, Naseer S, Shafiq M, Choi J-G (2021) Unmanned aerial vehicles
(UA V) in precision agriculture: applications and challenges. Energies 15(1):217
16. Preti M, V erheggen F, Angeli S (2021) Insect pest monitoring with camera-equipped traps: strengths and
limitations. J Pest Sci 94(2):203–217
17. Digi International Inc. (2020) XBee/XBee-PRO S2C ZigBee: RF module. Digi International Inc. https://
www.digi.com/resources/documentation/digidocs/pdfs/90002002.pdf . Accessed 13 July 2021
18. Sahitya G, Balaji N, Naidu CD, Abinaya S (2017) Designing a wireless sensor network for precision
agriculture using ZigBee. In: IEEE 7th international advance computing conference (IACC), 2017. IEEE,
pp 287–291
19. Drew R, Y uval B (1999) The evolution of fruit fly feeding behavior. Fruit flies (Tephritidae). CRC Press,
pp 749–768
20. Clemente-Orta G, Madeira F, Batuecas I, Sossai S, Juárez-Escario A, Albajes R (2020) Changes in
landscape composition influence the abundance of insects on maize: the role of fruit orchards and alfalfa
crops. Agric Ecosyst Environ 291:106805
21. Zanini FF, Souza WS, Brisolara LB, Ferreira Jr PR (2021) Modelagem de uma rssf para manejo de pragas
em pomares usando o simulador eboracum. In: XIII Congresso Brasileiro de Agroinformática (SBIAgro),
2021. SBC, pp 197–206
22. Metcalf OC, Barlow J, Marsden S, Moura N, Berenguer E, Ferreira J, Lees AC (2022) Optimizing tropical
forest bird surveys using passive acoustic monitoring and high temporal resolution sampling. Remote Sens
Ecol Conserv 8(1):45–56
23. Brüggemann L, Schütz B, Aschenbruck N (2021) Ornithology meets the IoT: automatic bird identification,
census, and localization. IEEE 7th World Forum on Internet of Things (WF-IoT). IEEE, pp 765–770
24. Pérez-Granados C (2023) BirdNET: applications, performance, pitfalls and future opportunities. Ibis
165(3):1068–1075
Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and
institutional affiliations.
123

论文原文与出版信息

Design Automation for Embedded Systems
查看论文原文

继续探索