<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">jsan</journal-id>
      <journal-title>Journal of Sensor and Actuator Networks</journal-title>
      <abbrev-journal-title abbrev-type="publisher">JSAN</abbrev-journal-title>
      <abbrev-journal-title abbrev-type="pubmed">JSAN</abbrev-journal-title>
      <issn pub-type="epub">2224-2708</issn>
      <publisher>
        <publisher-name>MDPI</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3390/jsan1010003</article-id>
      <article-id pub-id-type="publisher-id">jsan-01-00003</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>A Discrete Wavelet Transform (DWT)-Based Energy-Efficient Selective Retransmission Mechanism for Wireless Image Sensor Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Costa</surname>
            <given-names>Daniel G.</given-names>
          </name>
          <xref rid="af1-jsan-01-00003" ref-type="aff">1</xref>
          <xref rid="af2-jsan-01-00003" ref-type="aff">2</xref>
          <xref rid="c1-jsan-01-00003" ref-type="corresp">*</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Guedes</surname>
            <given-names>Luiz Affonso</given-names>
          </name>
          <xref rid="af1-jsan-01-00003" ref-type="aff">1</xref>
        </contrib>
      </contrib-group>
      <aff id="af1-jsan-01-00003"><label>1 </label>DCA-CT-UFRN, Campus Universitário, Lagoa Nova, Federal University of Rio Grande do Norte, 59072-970 Natal RN, Brazil; Email: <email>affonso@dca.ufrn.br</email></aff>
      <aff id="af2-jsan-01-00003"><label>2 </label>DTEC-UEFS, Av Transnordestina, S/N, Novo Horizonte, State University of Feira de Santana, 44036-900 Feira de Santana BA, Brazil</aff>
      <author-notes>
        <corresp id="c1-jsan-01-00003"><label>*</label> Author to whom correspondence should be addressed; Email: <email>danielgcosta@uefs.br</email>; Tel.: +55-84-8827-1120.</corresp>
      </author-notes>
      <pub-date pub-type="epub">
        <day>01</day>
        <month>02</month>
        <year>2012</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>06</month>
        <year>2012</year>
      </pub-date>
      <volume>1</volume>
      <issue>1</issue>
      <fpage>3</fpage>
      <lpage>35</lpage>
      <history>
        <date date-type="received">
          <day>08</day>
          <month>12</month>
          <year>2011</year>
        </date>
        <date date-type="rev-recd">
          <day>16</day>
          <month>01</month>
          <year>2012</year>
        </date>
        <date date-type="accepted">
          <day>29</day>
          <month>01</month>
          <year>2012</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2012 by the authors; licensee MDPI, Basel, Switzerland.</copyright-statement>
        <copyright-year>2012</copyright-year>
        <license xmlns:xlink="http://www.w3.org/1999/xlink" license-type="open-access" xlink:href="http://creativecommons.org/licenses/by/3.0/">
          <p>This article is an open-access article distributed under the terms and conditions of the Creative Commons Attribution license (http://creativecommons.org/licenses/by/3.0/).</p>
        </license>
      </permissions>
      <abstract>
        <p>Source nodes in wireless image sensor networks transmit much more information than traditional scalar sensor networks, thereby demanding more energy of intermediate relaying nodes and putting energy efficiency as a key design issue. Intermediate nodes are usually interconnected by error-prone links where bit-errors are common, potentially degrading the application monitoring quality. When reliability is assured by retransmission mechanisms, higher packet error rates do not affect the application quality but result in additional energy consumption due to packet retransmission, even though many monitoring applications can tolerate some loss in the quality of the received image. DWT coding can decompose an image in data subbands, each one with different relevancies for the reconstruction of the original image at the receiver side. We propose an energy-efficient selective hop-by-hop retransmission mechanism where the reliability level of each packet is a function of the relevance of the payload data, according to the resulting subbands and the number of times a 2D DWT is applied over the images captured by the sensors’ cameras. In so doing, some lost packets are not retransmitted, saving energy of intermediate nodes with low impact to the quality of the reconstructed images. In order to estimate the benefits of this tradeoff between energy consumption and image quality, we designed a comprehensive energy consumption model and applied it in extensive mathematic simulations, providing substantial information about the mean performance of the proposed approach when compared with a fully-reliable transmission mechanism.</p>
      </abstract>
      <kwd-group>
        <kwd>wireless image sensor networks</kwd>
        <kwd>DWT</kwd>
        <kwd>hop-by-hop retransmission</kwd>
        <kwd>energy-efficiency</kwd>
        <kwd>wireless sensor networks</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="intro">
      <title>1. Introduction</title>
      <p>In recent years, Wireless Sensor Networks (WSNs) have raised a lot of attention of the industry and academic communities [<xref ref-type="bibr" rid="B1-jsan-01-00003">1</xref>], addressing applications as surveillance, tracking, disaster monitoring, home automation, industrial control, battlefield surveillance, among others. Typically, WSNs are composed of many self-organizing disposable electronic devices equipped with a short-range wireless transceiver, limited energy supply (usually batteries), a sensing unity and processing and memory resources [<xref ref-type="bibr" rid="B2-jsan-01-00003">2</xref>,<xref ref-type="bibr" rid="B3-jsan-01-00003">3</xref>]. When deployed over an area of interest, sensors can collect scalar information as humidity, pressure, temperature, luminosity and seismic variations, according to the application requirements and the nature of the sensing unit endowed in each source node [<xref ref-type="bibr" rid="B4-jsan-01-00003">4</xref>,<xref ref-type="bibr" rid="B5-jsan-01-00003">5</xref>].</p>
      <p>The use of low-cost, low-power and low-resolution cameras to collect visual information can strongly enhance the monitoring capability of such networks, allowing for the development of Video-based Wireless Sensor Networks (VWSNs) [<xref ref-type="bibr" rid="B6-jsan-01-00003">6</xref>,<xref ref-type="bibr" rid="B7-jsan-01-00003">7</xref>]. However, such visual monitoring capability imposes some challenges due to the resource-constrained nature of wireless sensors, since transmissions of visual data usually require higher communication bandwidth than transmissions of scalar data. In addition, source nodes need to process multimedia encoding algorithms and reliable communication is required for most VWSNs applications due to the lack of redundancy when video-based sensors are employed [<xref ref-type="bibr" rid="B8-jsan-01-00003">8</xref>,<xref ref-type="bibr" rid="B9-jsan-01-00003">9</xref>]. As an example of how such a communication scenario can be challenging: while few bytes can represent monitored scalar information, such as humidity, pressure and temperature, a small uncompressed 128 × 128 pixels 8-bit grayscale image is represented by 16,384 bytes (excluding the image header), demanding more bandwidth and potentially consuming more energy of intermediate nodes than scalar data. In such contexts, the resource-constrained hardware of modern wireless sensor motes [<xref ref-type="bibr" rid="B4-jsan-01-00003">4</xref>] and the limited transmission bandwidth imposed by LR-WPAN communication technologies as IEEE 802.15.4 will render visual monitoring by still images a more suitable option for most video-based wireless sensor networks, since video transmission may rapidly deplete the energy resources of the nodes or be even unfeasible for transmissions from multiple sources through braided paths. The sensor networks where source nodes transmit still images and optionally some complementary scalar data can be referred to as Wireless Image Sensor Networks (WISNs).</p>
      <p>When transmitting image packets over error-prone wireless links, packets can be corrupted, and can require retransmission. In wireless image sensor networks, the lack of redundancy and the unique view of source sensors over the monitored field [<xref ref-type="bibr" rid="B9-jsan-01-00003">9</xref>] turn the recovery of lost packets into a required service, since the desired view of a target may be only achieved by a unique source node. Additionally, some parts of the visual information transmitted from source nodes may be extremely relevant for the decoding process at the sink node. Data link technologies such as IEEE 802.15.4 retransmit corrupted packets, where correct reception is usually acknowledged in each link between intermediate nodes. As packet transmission consumes energy of the receiving and transmitting nodes, we can establish a direct relation between energy consumption and packet retransmission. In other words, when the packet error rate increases, more energy consumption is expected due to packet retransmission, but with very low or absent impact in the quality of the visual data received by the sink. While such behavior may be acceptable for traditional scalar sensor networks, some visual applications can afford loss in the image quality since the overall energy of the network is preserved. </p>
      <p>Camera-enabled source nodes can encode still images using Discrete Wavelet Transform (DWT). In short, DWT decomposes the original image in subbands with different relevancies for the reconstruction of the original image. As a result, packets will have different priorities for the applications depending on the carried information, and such priorities may be exploited by cross-layer optimization solutions [<xref ref-type="bibr" rid="B10-jsan-01-00003">10</xref>]. In such contexts, we propose a DWT-based selective retransmission mechanism where reliable transmission is only assured for the most relevant data to the application, while low relevant packets are not retransmitted if they are discarded due to corruption during transmission. When the packet error rate is low, most data will reach the sink, resulting in high-quality images. On the other hand, increasing in the packet error rate will decrease the image quality since lost low-relevant packets will not be retransmitted. We believe that, for many WISN applications, reduction in the image quality is acceptable since energy is preserved.</p>
      <p>The proposed approach assumes that the images gathered by the source nodes are encoded using a DWT-based technique, where the information carried by each packet through a multi-hop network has its own relevance for the application. Thus, the source nodes establish a priority level to every packet transmitted to the sink. Based on such priorities, the network can provide three different transmission services: reliable, semi-reliable and unreliable. The adopted transmission service is reflected on the way intermediate nodes process corrupted packets, which can be retransmitted or silently discarded. It is assumed that source nodes transmit only still images or scalar data, but the operation of the transmission services could be easily adapted if video streaming is required, depending on the application requirements and the adopted video coding technique.</p>
      <p>In order to assess the expected benefits, we designed a comprehensive energy consumption model to be applied in extensive mathematic simulations, showing the average results for different network configurations. Additionally, the expected image quality when some packets are lost and not retransmitted is analyzed. </p>
      <p>The rest of this paper is organized as follows. <xref ref-type="sec" rid="sec2-jsan-01-00003">Section 2</xref> brings some related works that contributed to our investigation. The problem formulation is presented in <xref ref-type="sec" rid="sec3-jsan-01-00003">Section 3</xref>. <xref ref-type="sec" rid="sec4-jsan-01-00003">Section 4</xref> describes the proposed selective retransmission solution, followed by mathematical verifications in <xref ref-type="sec" rid="sec5-jsan-01-00003">Section 5</xref>. Finally, the conclusions and references are presented.</p>
    </sec>
    <sec id="sec2-jsan-01-00003">
      <title>2. Related Works</title>
      <p>While most real-time multimedia communications on Internet backbones are delay-intolerant and can generally afford some packet loss, reliability is more critical to image transmissions over WSNs than delay. Usually, errors during packet transmission over hop-by-hop wireless links may happen when network face congestion (resulting in packet discarding in congested nodes), when intermediate nodes fail or run out of energy or even due to signal attenuation and interference. To cope with such errors, many works have proposed MAC and transport protocols to recover lost packets/data in wireless sensor networks, where retransmission is the most usual approach. </p>
      <p>Retransmission can be performed in an end-to-end or hop-by-hop fashion. End-to-end retransmission is easier to implement but can rapidly deplete the energy resources of the used paths as the number of intermediate nodes increases. A hop-by-hop retransmission mechanism consumes less energy of the network, but demands that intermediate nodes cache the transmitted packets until the transmission is successful. Although this additional complexity may count against hop-by-hop retransmissions, it is argued to be the best option for source nodes that transmit a large amount of data, as in video-based wireless sensor networks [<xref ref-type="bibr" rid="B4-jsan-01-00003">4</xref>,<xref ref-type="bibr" rid="B11-jsan-01-00003">11</xref>].</p>
      <p>An end-to-end retransmission mechanism for WSN applications is proposed in [<xref ref-type="bibr" rid="B12-jsan-01-00003">12</xref>]. The sink verifies the sequence number of received packets searching for some packet loss. If a gap in the sequence number is found, an explicit request is sent to the source node requesting retransmission of the lost packet. In a different way, in [<xref ref-type="bibr" rid="B13-jsan-01-00003">13</xref>] a transport protocol is proposed that performs in-network caching of transmitted packets for hop-by-hop retransmission. In that work, packet loss is identified by proper timers enabled in intermediate nodes and notifications are performed by explicit NACK messages sent to the next hop on the reverse reinforced path toward the source. Moreover, the work in [<xref ref-type="bibr" rid="B14-jsan-01-00003">14</xref>] employs multiple redundant paths as well as hop-by-hop retransmission for increased reliability, where congestion is also mitigated dynamically choosing appropriate transmission paths. Although very advantageous for VWSNs, all packets have the same reliability level in those proposed hop-by-hop retransmission mechanisms.</p>
      <p>Alternative solutions to provide reliability guarantees have also been proposed in recent years. In [<xref ref-type="bibr" rid="B15-jsan-01-00003">15</xref>], authors propose image transmission over sensor networks where intermediate nodes perform error recovery based on redundancy and correction codecs. As retransmissions may result in additional end-to-end delay, the authors propose correction mechanisms based on the transmission of redundant packets through multiple paths and the use of Forward Error Correction (FEC) codes, which are computed by each intermediate node instead of only in the source node and in the sink. However, the reduced end-to-end delay when compared with retransmission-based approaches also result in additional energy consumption, since more paths (and intermediate nodes) are necessary to transmit redundant packets, besides the energy consumption and required processing for computing the FEC code in intermediate nodes. In fact, we argue that energy is a more critical issue than delay for many WVSN applications.</p>
      <p>To the best of our knowledge, a mechanism for selective retransmission based on DWT coded images has not been proposed by the academic community [<xref ref-type="bibr" rid="B10-jsan-01-00003">10</xref>]. However, some works propose other interesting cross-layer optimization solutions for DWT-based image transmission in wireless sensor networks, directly influencing our investigation. In [<xref ref-type="bibr" rid="B16-jsan-01-00003">16</xref>] full reliable transmission is only required for high-priority data, since the remaining DWT subbands are transmitted in a semi reliable mode, where intermediate nodes silently discard low relevant packets if their residual energy is below a threshold. The expected outcome is the prolonging of the network lifetime, keeping an acceptable quality level for the received images. The work in [<xref ref-type="bibr" rid="B17-jsan-01-00003">17</xref>] exploits DWT to reduce the total amount of information to be transmitted to the sink when facing congestion, with a low impact on the overall quality of the application. In case of congestion, priorities resulted from the different relevancies of DWT subbands are considered by intermediate nodes. The idea is to discard packets containing less relevant data when the congested node may choose what packets must to be discarded. </p>
      <p>All those works exploit DWT in different ways, achieving different optimization results. In a similar way, DWT image coding is exploited here for cross-layer optimization in video-based wireless sensor networks, but we propose an innovative retransmission service where the relevancies of DWT subbands are considered by intermediate nodes for retransmission purposes, achieving energy saving by the cost of some loss of image quality. </p>
    </sec>
    <sec id="sec3-jsan-01-00003">
      <title>3. Problem Formulation</title>
      <p>In this section we make some basic definitions and assumptions that are considered for the design of the proposed DWT-based selective retransmission mechanism. </p>
      <sec>
        <title>3.1. Packet Retransmission</title>
        <p>When camera-enabled source nodes are transmitting still images over error-prone wireless links, packets can be corrupted requiring retransmission. As stated before, the lack of redundancy and the unique view of source sensors over the monitored field [<xref ref-type="bibr" rid="B9-jsan-01-00003">9</xref>] turn recovery of lost packets into a required service. Additionally, some parts of the visual information transmitted from source nodes may be extremely relevant for the decoding process at the sink, such as LL<sub>(n)</sub> DWT subbands. Data link technologies such as IEEE 802.15.4 [<xref ref-type="bibr" rid="B3-jsan-01-00003">3</xref>] and T-MAC [<xref ref-type="bibr" rid="B18-jsan-01-00003">18</xref>] retransmit corrupted packets, where correct reception is usually acknowledged in each link between intermediate nodes. In general, higher packet error rates and packet retransmissions result in higher energy consumption. </p>
        <p>There are different data recovery mechanisms for wireless sensor networks [<xref ref-type="bibr" rid="B10-jsan-01-00003">10</xref>]. Among the possibilities, we consider packet retransmission as a suitable option for wireless image sensor network, where hop-by-hop retransmission will be implemented instead of end-to-end approaches for increased energy saving [<xref ref-type="bibr" rid="B4-jsan-01-00003">4</xref>,<xref ref-type="bibr" rid="B14-jsan-01-00003">14</xref>]. For simplicity and considering the use of contention-free MAC protocols, we assume that every transmitted packet in a link will be acknowledged by a 1-hop ACK message. This Automatic Repeat Request (ARQ) approach is an easy way to provide a reliable communication service in WSNs, although some technologies as T-MAC may employ ACK messages that can acknowledge more than one packet at once. Nevertheless, our theoretical formulation is reasonable due to the reduced complexity and because this approach is suitable for error-prone wireless links. <xref ref-type="fig" rid="jsan-01-00003-f001">Figure 1</xref> shows an example of ARQ in a single-path transmission.</p>
        <fig id="jsan-01-00003-f001" position="anchor">
          <label>Figure 1</label>
          <caption>
            <p>ACK messages in hop-by-hop packet retransmission.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g001.tif"/>
        </fig>
        <p>In <xref ref-type="fig" rid="jsan-01-00003-f001">Figure 1</xref>, packet transmission flows from node 1 to node <italic>n</italic>, and a packet corruption happens during transmission from node 3 to node 4. When no ACK message is received before a timeout, the packet is assumed to be corrupted and a retransmission takes place. Recovery of lost packets through retransmission is suitable for most wireless sensor network applications, preserving the transmitted packets by the cost of additional energy consumption and end-to-end communication delay. </p>
        <p>Intermediate nodes will transmit packets using a FIFO transmission queue. Considering that the communication between intermediate nodes will be half-duplex due to the fact that they will be typically endowed with only one wireless communication antenna, the communication is expected to follow a “stop-and-wait” paradigm, where the packet at the top of the queue is only removed if it is successfully acknowledged by the next hop toward the sink. </p>
      </sec>
      <sec>
        <title>3.2. Fundamental Concepts for Energy Consumption</title>
        <p>We consider a WSN composed of <italic>P</italic> hop-by-hop wireless paths. Each path <italic>p</italic>, <italic>p</italic> = 1, …, <italic>P</italic>, comprises <italic>H<sub>p</sub></italic> intermediate nodes, where data packets flow from the source node (<italic>h</italic> = 0) to the sink of the network (<italic>h</italic> = <italic>H<sub>p</sub></italic> + 1). A number of <italic>D<sub>p</sub></italic> data packets are transmitted in each path <italic>p</italic>. The size of the transmitted packets may vary according to the link layer technology and the application requirements, but small data packets are expected (reducing the error probability [<xref ref-type="bibr" rid="B19-jsan-01-00003">19</xref>]) with the same size. Considering that most wireless sensor motes communicates through IEEE 802.15.4 wireless link-layer technology, the maximum MAC frame size is assumed to be 127 bytes including all packet overhead. If we exclude the MAC header and the overhead for network, transport and/or application layer protocols, as well as the image fragmentation header required for image decoding at the receiver size, the effective data size in each packet may be lower than 90 bytes in this link-layer technology [<xref ref-type="bibr" rid="B20-jsan-01-00003">20</xref>]. Considering that even a very small 64 × 64 uncompressed grayscale image sizes 4,096 bytes (excluding the image header of the entire image), it is natural to expect transmission of packets with maximum size to achieve a minimal packet overhead. Thus, in our model, every data packet has the same size in bits, <italic>s</italic>, corresponding to the entire packet (data payload + headers), since all transmitted bits should be considered when computing the expected energy consumption. This initial idea is further extended to account the expected reduced size of the last packet after fragmentation, as described later in this section.</p>
        <p>For simplicity, the communication scenario is assumed to be contention-free, considering packet transmission using protocols as TDMA or the CFP (Contention-Free Period) in IEEE 802.15.4. Such assumption is intended to reduce the complexity of our mathematic models, but still keeping it highly realistic, following a trend often found in the literature [<xref ref-type="bibr" rid="B15-jsan-01-00003">15</xref>,<xref ref-type="bibr" rid="B16-jsan-01-00003">16</xref>,<xref ref-type="bibr" rid="B21-jsan-01-00003">21</xref>]. Although not explicitly defined, the routing protocol may be cluster-based, allowing the creation of hop-by-hop paths from the source to the sink node. Moreover, node failure or harming were not considered. A large set of image-based WSN monitoring applications or even traditional scalar monitoring applications where the collected information is complemented by visual data attend such requirements.</p>
        <p>Considering that it is highly probable that all intermediate nodes in a path <italic>p</italic> are homogeneous (excepting the source and the sink), we can expect the same hardware characteristics and energy consumption pattern. Based on [<xref ref-type="bibr" rid="B15-jsan-01-00003">15</xref>], <italic>e<sub>t</sub></italic> is defined as the energy consumed for the transmission of one bit by each relaying node, and <italic>e<sub>e</sub></italic> as the energy consumption for processing of a single bit. The energy consumption for packet transmissions (<italic>Et<sub>ph</sub></italic>) and receptions (<italic>Er<sub>ph</sub></italic>) in an intermediate node <italic>h</italic> of the path <italic>p</italic> is a function of the energy consumption characteristics of the employed hardware and the total amount of bits to be transmitted/received, as expressed in Equation (1). The variable <italic>d<sub>ph</sub></italic> is the maximum transmission range (in meters) of the node <italic>h</italic>, and it is a direct function of the sensor’s hardware. <italic>T<sub>ph</sub></italic> is the total amount of bits to be transmitted from hop <italic>h</italic> to the hop (<italic>h</italic> + 1) in path <italic>p</italic>, and <italic>T<sub>ph</sub></italic> = <italic>D<sub>p</sub></italic> × <italic>s</italic> when there are no packet retransmission.</p>
        <p><disp-formula id="jsan-01-00003-i002">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i002.tif"/>
          <label>(1)</label>
          </disp-formula></p>
        <p>As most energy consumption is expected in transmission and reception procedures instead of processing and storage [<xref ref-type="bibr" rid="B21-jsan-01-00003">21</xref>,<xref ref-type="bibr" rid="B22-jsan-01-00003">22</xref>,<xref ref-type="bibr" rid="B23-jsan-01-00003">23</xref>], we can roughly state the total energy consumption in path <italic>p</italic> as expressed in Equation (2). The total consumed energy is the sum of the energy consumption in transmission and reception in all intermediate nodes (<italic>h</italic> = 1, …, <italic>H<sub>p</sub></italic>), plus the energy for transmissions from the source node (<italic>h</italic> = 0) and reception of data packets at the sink (<italic>h</italic> = <italic>H<sub>p</sub></italic> + 1). As the sink is expected to be resource-full, the corresponding energy was not considered. </p>
        <p><disp-formula id="jsan-01-00003-i003">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i003.tif"/>
          <label>(2)</label>
          </disp-formula></p>
        <sec>
          <title>3.2.1. Error Model</title>
          <p>Packets in WSNs may be discarded for many reasons, as congestion, node failure and optimization mechanisms [<xref ref-type="bibr" rid="B10-jsan-01-00003">10</xref>]. Moreover, multiple accesses to the communication medium may also result in packet collision, requiring a MAC protocol to handle the shared access to the channel and to retransmit collided packets. In such cases, many works have proposed solutions to recover lost data or to minimize the impact of packet loss in the final quality of the received data at the sink [<xref ref-type="bibr" rid="B4-jsan-01-00003">4</xref>,<xref ref-type="bibr" rid="B15-jsan-01-00003">15</xref>,<xref ref-type="bibr" rid="B24-jsan-01-00003">24</xref>].</p>
          <p>Wireless sensor networks are composed of resource-constrained nodes interconnected by ad-hoc wireless links that are expected to be deployed in regions with diverse characteristics, where signal interference may be a constant. Due to the nature of packet transmission over wireless links, communications also face channel fading. Such characteristics result in bit-errors that may happen in any part of the communication and in any hop from the source to the sink. Bit-errors resulting from transmission over wireless links is an inner characteristic of radio communications that directly results in packet losses, while the other causes of data loss depends on the employed sensor hardware, unexpected physical harming and/or the procedures of the physical/MAC protocols. For example, IEEE 802.15.4 allows the transmission of packets controlled by a slotted CSMA/CA protocol to handle packet collision but most or even all multimedia content can be transmitted during a Contention Free Period (CFP), where source nodes have dedicated access to the communication channel and frames do not collide [<xref ref-type="bibr" rid="B25-jsan-01-00003">25</xref>]. As we are designing a generic solution for selective hop-by-hop retransmission, we are exclusively concerned with bit-errors and packet losses resulted from the characteristics of wireless communications. </p>
          <p>Errors in wireless links will happen as bursts [<xref ref-type="bibr" rid="B19-jsan-01-00003">19</xref>,<xref ref-type="bibr" rid="B25-jsan-01-00003">25</xref>]. Although it is simpler to define the same error probability for every transmitted bit in a theoretical model, it is not practical for real-world applications since the error rate depends on the size of the packets [<xref ref-type="bibr" rid="B19-jsan-01-00003">19</xref>]. The Gilbert/Elliot error model defines a Markov chain with two states: “good” and “bad”. For simplicity, all the bits are unchanged in the good state, while in the bad state at least one of the bits is corrupted [<xref ref-type="bibr" rid="B26-jsan-01-00003">26</xref>]. <xref ref-type="fig" rid="jsan-01-00003-f002">Figure 2</xref> presents the Gilbert/Elliot Markov chain, where <italic>g</italic> is the probability to stay in good state and <italic>b</italic> is the probability to stay in the bad state.</p>
          <fig id="jsan-01-00003-f002" position="anchor">
            <label>Figure 2</label>
            <caption>
              <p>Gilbert/Elliot Markov chain.</p>
            </caption>
            <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g002.tif"/>
          </fig>
          <p>This error model refers to the transmission of bits in a wireless link connecting two nodes, and the values for <italic>g</italic> and <italic>b</italic> depend on physical characteristics of the considered link. Although this model refers to bit-errors, an error in a single bit will corrupt a whole packet, requiring retransmission. As we want to measure the energy consumption for packet transmissions and possible retransmissions, we are concerned with the average Packet Error Rate (PER) for transmitted packets from hop <italic>h</italic> to hop (<italic>h</italic> + 1) in path <italic>p</italic>, <italic>Pn<sub>ph</sub></italic>, considering the transmission of <italic>n</italic> bits. For that, we need to compute the steady-state probability to good (<italic>G<sub>ph</sub></italic>) and bad (<italic>B<sub>ph</sub></italic>) states [<xref ref-type="bibr" rid="B26-jsan-01-00003">26</xref>] in the wireless link from hop <italic>h</italic> to hop (<italic>h</italic> + 1) in path <italic>p</italic>, as presented in Equation (3). </p>
          <p><disp-formula id="jsan-01-00003-i004">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i004.tif"/>
          <label>(3)</label>
          </disp-formula></p>
          <p>Based on these probabilities, we can compute the average PER for a packet with <italic>n</italic> bits (<italic>Pn<sub>ph</sub></italic>), as expressed in Equation (4). Such formulation is obtained considering the two cases where no bit error occurs during a transmission of a packet: the channel is in a good state and remains there for the entire transmission or the channel is initially in a bad state but the channel changes to a good state before transmission and remains in good state for the transmission of all bits [<xref ref-type="bibr" rid="B26-jsan-01-00003">26</xref>].</p>
          <p><disp-formula id="jsan-01-00003-i005">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i005.tif"/>
          <label>(4)</label>
          </disp-formula></p>
          <p>For simplicity, we define <italic>Pt<sub>ph</sub></italic> as the PER for data packets (<italic>n</italic> = <italic>s</italic>) in the link from hop <italic>h</italic> to hop (<italic>h</italic> + 1) in path <italic>p</italic>. Additionally, it is assumed that <italic>Pn<sub>ph</sub></italic> = 0 if <italic>n</italic> = 0.</p>
        </sec>
        <sec>
          <title>3.2.2. Energy Consumption due to Packet Retransmission</title>
          <p>We can extend the basic equations for energy consumption adding the energy costs for transmissions and receptions of 1-hop ACK messages when the communications links are free of errors. For simplicity and considering the use of contention-free MAC protocols, we assume that every transmitted packet in a link will be acknowledged by an ACK message. Such simplification facilitates the desired mathematical verifications, even though some MAC protocols employ ACK messages that can acknowledge more than one packet at once. As comparisons are required among different approaches using the same model, such simplification will not prejudice the desired analyses. Nevertheless, the presented theoretical formulation is reasonable due to the reduced complexity and because this approach is suitable for error-prone wireless links. </p>
          <p>If we define the size of ACK messages in bits as <italic>a</italic> and <italic>A<sub>ph</sub></italic> as the total amount of bits to be transmitted for acknowledgement from hop (<italic>h</italic> + 1) to hop <italic>h</italic> in path <italic>p</italic>, and <italic>A<sub>ph</sub></italic> = <italic>D<sub>p</sub></italic> × <italic>a</italic>, we achieve new equations for energy consumption, as presented in (5). We expect <italic>s</italic> &gt; <italic>a</italic> in most cases.</p>
          <p><disp-formula id="jsan-01-00003-i006">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i006.tif"/>
          <label>(5)</label>
          </disp-formula></p>
          <p>The resulting energy consumption equation for path <italic>p</italic> is defined in Equation (6). That equation takes into account the energy consumption for transmission of data packets and the corresponding ACK messages for the entire path (excluding transmission cost of the sink). One should notice that in Equation (6), bit-errors in the wireless communication links were not considered.</p>
          <p><disp-formula id="jsan-01-00003-i007">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i007.tif"/>
          <label>(6)</label>
          </disp-formula></p>
          <p>As it was computed the average packet error rate for transmitted packets, we can also estimate the average number of packet retransmissions. We define <italic>Pa<sub>ph</sub></italic> as the packet error rate for ACK messages (<italic>n</italic> = <italic>a</italic>), and usually <italic>Pt<sub>ph</sub></italic> &gt; <italic>Pa<sub>ph</sub></italic> since we expect <italic>s</italic> &gt; <italic>a</italic>.</p>
          <p>A packet must be retransmitted in some particular cases. The first case is when the packet is corrupted in transmission from hop <italic>h</italic> in path <italic>p</italic> with probability <italic>Pt<sub>ph</sub></italic>, usually detected by computation of the CRC code of the packet. The other possibility of retransmission is when the packet is successfully received by the hop (<italic>h</italic> + 1) but the correspondent ACK message is lost with probability ((1 – <italic>Pt<sub>ph</sub></italic>)<italic>Pa<sub>ph</sub></italic>) [<xref ref-type="bibr" rid="B27-jsan-01-00003">27</xref>]. Considering that the maximum number of retransmission attempts is <italic>r</italic>, the average number of data packet transmissions in the steady-state (initial packet transmission + retransmission attempts) of a single packet in any hop <italic>h</italic> is defined in Equation (7).</p>
          <p><disp-formula id="jsan-01-00003-i008">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i008.tif"/>
          <label>(7)</label>
          </disp-formula></p>
          <p>If is considered an unlimited number of retransmissions, we obtain a geometric series that can be simplified to Equation (8).</p>
          <p><disp-formula id="jsan-01-00003-i009">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i009.tif"/>
          <label>(8)</label>
          </disp-formula></p>
          <p>The probability of sending exactly one ACK message is (1 – <italic>Pt<sub>ph</sub></italic>), referring to the correct reception of a data packet. Moreover, errors in the packet transmission or in the ACK message, with subsequent retransmission, will also result in new transmissions of ACK messages. Following the same approach in Equation (7), the average number of ACK messages is computed to be transmitted by hop <italic>h</italic> in path p, as expressed in Equation (9).</p>
          <p><disp-formula id="jsan-01-00003-i010">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i010.tif"/>
          <label>(9)</label>
          </disp-formula></p>
          <p>If we also assume an unlimited number of retransmissions, we obtain a new geometric series that can be simplified to Equation (10).</p>
          <p><disp-formula id="jsan-01-00003-i011">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i011.tif"/>
          <label>(10)</label>
          </disp-formula></p>
          <p>Although unlimited number of retransmissions may sound not practical, it allows for reasonable mathematical assumptions about the average number of retransmissions in the steady-state. Moreover, virtually unlimited retransmission attempts may be desired by some applications and there are some practical mechanisms to increase the maximum number of retransmissions in a sensor node [<xref ref-type="bibr" rid="B28-jsan-01-00003">28</xref>].</p>
          <p>Based on Equations (8) and (10), it is defined a new interpretation for the total number of transmitted bits for data (<italic>T<sub>ph</sub></italic>) and ACK messages (<italic>A<sub>ph</sub></italic>), as presented in Equation (11). These variables should be applied directly in Equation (6) for the computation of the total energy consumption in a path <italic>p</italic> in the occurrence of errors in wireless links.</p>
          <p><disp-formula id="jsan-01-00003-i012">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i012.tif"/>
          <label>(11)</label>
          </disp-formula></p>
        </sec>
        <sec>
          <title>3.2.3. Energy Consumption Model for Image Transmission</title>
          <p>The analytical energy consumption model defined in Equations (6) and (11) represent reliable communications in sensor networks where every packet is acknowledged and retransmitted if necessary, considering a hop-by-hop approach implemented in MAC or transport layer. We can further extend this model to adapt to the transmission of images, where every image <italic>i</italic>, <italic>i</italic> = 1, …, <italic>i</italic> = <italic>I</italic>, sizing <italic>B<sub>i</sub></italic> bits is transmitted from a source node to the sink. It was stated before that the (maximum) size in bits of data packet is <italic>s</italic>, but this size corresponds to the payload and all protocol headers. If the packet header regarding all employed protocols sizes <italic>k</italic> bits, <italic>k</italic> &lt; <italic>s</italic>, the maximum effective payload size for every transmitted packet is (<italic>s</italic> – <italic>k</italic>) bits. As <italic>B<sub>i</sub></italic> &gt;&gt; <italic>s</italic> in most cases, the original image <italic>i</italic> will be fragmented, and a fragmentation header with <italic>f</italic> bits containing information for the decoding at the receiver side will be added to every packet. Moreover, an image <italic>i</italic> may have an image header, with <italic>i<sub>o</sub></italic> bits, providing information as the width and height of the image and the number of bits used to represent a pixel. Thus, the number of packets to be transmitted is (<italic>B<sub>i</sub></italic> + <italic>i<sub>o</sub></italic>)/(<italic>s</italic> – <italic>k</italic> – <italic>f</italic>), with packets carrying data information to their maximum payload excepting the last one, which may be carrying less data than its capacity. We define <italic>D<sub>pi</sub></italic> as the number of packets to be transmitted sizing <italic>s</italic> bits. The last packet has <italic>Ld<sub>pi</sub></italic> as the payload size, <italic>Ld<sub>pi</sub></italic> &lt; (<italic>s</italic> – <italic>k</italic> – <italic>f</italic>). Defining the maximum packet payload as <italic>l</italic>, <italic>l</italic> = (<italic>s</italic> – <italic>k</italic> – <italic>f</italic>), it is achieved the formulas for <italic>D<sub>pi</sub></italic> and <italic>Ld<sub>pi</sub></italic>, as expressed in Equation (12).</p>
          <p><disp-formula id="jsan-01-00003-i013">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i013.tif"/>
          <label>(12)</label>
          </disp-formula></p>
          <p>Assuming <italic>Ptd<sub>ph</sub></italic> as the packet error rate in hop <italic>h</italic> when <italic>n</italic> = (<italic>Ld<sub>pi</sub></italic> + <italic>s</italic> – <italic>l</italic>) in Equation (4), where (<italic>s</italic> – <italic>l</italic>) is the total packet headers and overheads, it is obtained the average number of transmissions and retransmissions of the last packet in hop <italic>h</italic>, <italic>Rtd<sub>ph</sub></italic>, when employing <italic>Ptd<sub>ph</sub></italic> in Equation (8). This is necessary since the packet error rate is a function of the sizes of the packets. The probability of ACK transmissions is also affected by the possible smaller size of the last packet after fragmentation. Applying the value of <italic>Ptd<sub>ph</sub></italic> to Equation (10), it is obtained the average number of ACK messages to acknowledge the transmission of the last packet in hop <italic>h</italic>, <italic>Rad<sub>ph</sub></italic>. The new formulations for <italic>T<sub>pih</sub></italic> and <italic>A<sub>pih</sub></italic> for the transmission of an image <italic>i</italic> are presented in Equation (13). We define <italic>Ptd<sub>ph</sub></italic> = 0, <italic>Rtd<sub>ph</sub></italic> = 1 and <italic>Rad<sub>ph</sub></italic> = 1 if <italic>Ld<sub>pi</sub></italic> = 0.</p>
          <p><disp-formula id="jsan-01-00003-i014">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i014.tif"/>
          <label>(13)</label>
          </disp-formula></p>
          <p>Using the definitions for <italic>T<sub>pih</sub></italic> and <italic>A<sub>pih</sub></italic> in Equation (13), the resulting equation in Equation (6) presents a comprehensive energy consumption model for transmission and reception of packets carrying parts of an image <italic>i</italic> in full reliable communications. The required energy for processing the original image was not accounted in this model, but a standard energy formulation for DWT processing will be considered in next section. Furthermore, the size <italic>B<sub>i</sub></italic> refers to a raw image <italic>i</italic>, but compression could be used to reduce the total amount of information to be transmitted, at the cost of processing and energy resources of source nodes. Image compression is not considered in this work but, in the case that compression is employed, lossless compression should be used since it is typically less complex and resource-demanding than lossy compression [<xref ref-type="bibr" rid="B16-jsan-01-00003">16</xref>,<xref ref-type="bibr" rid="B29-jsan-01-00003">29</xref>]. However, lossy algorithms could be exploited if resource-rich source nodes are deployed, achieving higher compression efficiency. </p>
        </sec>
      </sec>
    </sec>
    <sec id="sec4-jsan-01-00003">
      <title>4. The Proposed Selective Retransmission Mechanism</title>
      <p>The energy consumption model described in <xref ref-type="sec" rid="sec3-jsan-01-00003">Section 3</xref> refers to a fully-reliable hop-by-hop retransmission mechanism where all packets have the same treating by the nodes and every packet is acknowledged. When the packet error rises, the quality of the data received by the sink is preserved, but the energy consumption also increases, potentially impacting the expected network lifetime. </p>
      <p>Energy is a crucial resource that must be saved as much as possible in order to extend the sensor network lifetime. Considering the context of wireless image sensor networks, we propose a selective hop-by-hop retransmission mechanism that can save energy by avoiding retransmission of some packets by the cost of the quality of the received image at the sink. It is expected that sensor nodes may be interconnected by error-prone wireless links where burst of errors may be constant, but temporary. In such context, we argue that some visual monitoring applications can tolerate some loss of quality in the received images, since the energy resources of intermediate nodes are preserved. Moreover, we expect that such applications are delay-tolerant and immune to jitter, since all parts of an image must to be buffered at the sink to allow the decoding process and typical transmission rate of visual information collected from the monitored field should be one snapshot per second or lower. However, the decision not to retransmit some corrupted packet results in less than average end-to-end delay, but we do not consider it to be crucial for some types of applications. </p>
      <p>The proposed selective hop-by-hop retransmission mechanism is based on the relevance of the data resulted when we apply DWT over original images, where only the packets that carry the most significant information are retransmitted if corrupted. Doing so, we achieve a tradeoff between energy consumption and image quality, bringing a valuable contribution to wireless image sensor networks. </p>
      <sec>
        <title>4.1. DWT-Based QoS</title>
        <p>There are many coding techniques suitable for wireless image sensor networks, each one bringing advantages and drawbacks [<xref ref-type="bibr" rid="B10-jsan-01-00003">10</xref>]. Among the possibilities, DWT has been considered by the academic community as a flexible option for image coding [<xref ref-type="bibr" rid="B30-jsan-01-00003">30</xref>], allowing a series of cross-layer optimizations for energy preservation with low impact on the application general quality. In fact, when applied over images, DWT can produce data with different priorities, and such priorities can be reflected into QoS levels that can be exploited for network optimizations. If packets carrying less relevant information are lost, the image quality is lower-bounded, and an acceptable played-out image quality is assured at the receiver size if more relevant packets successfully reach the sink.</p>
        <p>Wavelet transforms provide data decomposition in multiple levels of resolution, where DWT is achieved discretely sampling the wavelets. DWT decomposes a signal (a series of digital samples) by passing it through two filters: a lowpass filter L and a highpass filter H [<xref ref-type="bibr" rid="B30-jsan-01-00003">30</xref>]. The lowpass subband represents a down-sampled low resolution version of the original signal, while the highpass subband contains residual information of the signal. For the perfect reconstruction of the original signal at the receiver side, all information from lowpass and highpass filters are necessary. </p>
        <p>Digital images are two-dimensional signals, usually represented as a matrix of pixels. A 2D DWT processes such signal considering the rows and columns, generating four subbands: LL, LH, HL and HH. The LL subband represents the lowest resolution and a half-sized version of the original image. In fact, it is the most significant information for the decoding process (without it, the image cannot be rebuilt), while the remaining subbands contain vertical, horizontal and diagonal details for the decoding process. Such processing produces two groups of relevance, but the LL subband can be transformed again to generate more levels of resolution. <xref ref-type="fig" rid="jsan-01-00003-f003">Figure 3</xref> presents an original image that is processed by a DWT applied once and twice, resulting in two and three levels of resolution, respectively from left to right. </p>
        <p>In <xref ref-type="fig" rid="jsan-01-00003-f003">Figure 3</xref> a grayscale 256 × 256 pixels image is transformed by DWT but the LL <sub>(2)</sub> subband (64 × 64) could be processed again to generate more levels of resolution. Apart from being influenced by the number of times DWT is applied, the resulted subbands are influenced by the coefficients of the lowpass and highpass filters [<xref ref-type="bibr" rid="B29-jsan-01-00003">29</xref>,<xref ref-type="bibr" rid="B30-jsan-01-00003">30</xref>,<xref ref-type="bibr" rid="B31-jsan-01-00003">31</xref>], resulting in different discrete wavelet transforms.</p>
        <fig id="jsan-01-00003-f003" position="anchor">
          <label>Figure 3</label>
          <caption>
            <p>DWT processing generating two and three levels of resolution.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g003.tif"/>
        </fig>
        <p>The original image is obtained by performing an inverse DWT over the computed subbands. The lowest resolution representation of the image (the LL<sub>(n)</sub> subband) is required, while the other subbands will be used to increase the quality of the final image. If the other subbands are lost, the image quality decreases. In fact, the acceptable image quality depends on the application requirements and the expected uses of the retrieved images, but many applications support reduction in the image quality due to changes in the network conditions. We must consider the fact that each bit must be transmitted over the sensor network, which implies energy consumption in the source and over the path(s) toward the sink. Moreover, retransmissions increase such energy consumption. In short, higher quality of received images usually demands more energy resources of the sensor network.</p>
        <p>Each packet will be assigned a QoS level according to the packet’s payload. As the original images will be processed by 2D DWT, the QoS of each packet depends on the relevance of the produced subbands. The packet’s QoS is represented by the Data Relevance (DR), an 8-bit field to be inserted in every transmitted packet, just after the fragmentation header <italic>f</italic>. The value of DR is computed depending on the number of times DWT is applied, which in our proposed solution can be once (1-level) or twice (2-level). </p>
        <p>During packet transmission, intermediate nodes will check DR in order to verify the expected reliability level of the packet. In practical terms, the relaying node will check it to decide if a timeout must be set and if an ACK message is expected from the next hop toward the sink, while the receiving node relies on the value of DR to decide if an ACK message must be sent to the previous hop for positive acknowledgment purposes. </p>
        <p><xref ref-type="table" rid="jsan-01-00003-t001">Table 1</xref> presents the possible values of DR according to DWT subbands, and the corresponding transmission service. It is interesting to notice that packets carrying data of a single image may experience different reliability guarantees, according to the packet’s DR. An important remark is that the image header of the entire image (<italic>i<sub>o</sub></italic>) must be transmitted with the same priority of LL<sub>(n<italic>)</italic></sub> subbands (highest priority), since it is mandatory for the proper reconstruction of the original image at the receiver side.</p>
        <table-wrap id="jsan-01-00003-t001" position="anchor">
          <object-id pub-id-type="pii">jsan-01-00003-t001_Table 1</object-id>
          <label>Table 1</label>
          <caption>
            <p>Values for the Data Relevance.</p>
          </caption>
          <table style="border: solid thin" rules="all">
            <thead>
              <tr>
                <th align="center" valign="middle">DR</th>
                <th align="left" valign="middle">DWT subbands</th>
                <th align="left" valign="middle">Expected level of reliability</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="center" valign="middle">0</td>
                <td align="left" valign="middle">LL<sub>(1)</sub>, LL<sub>(2)</sub></td>
                <td align="left" valign="middle">Reliable transmission</td>
              </tr>
              <tr>
                <td align="center" valign="middle">1–254</td>
                <td align="left" valign="middle">HL<sub>(2)</sub>, LH<sub>(2)</sub>, HH<sub>(2)</sub></td>
                <td align="left" valign="middle">Semi-reliable transmission</td>
              </tr>
              <tr>
                <td align="center" valign="middle">255</td>
                <td align="left" valign="middle">HL<sub>(1)</sub>, LH<sub>(1)</sub>, HH<sub>(1)</sub></td>
                <td align="left" valign="middle">Unreliable transmission</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p><xref ref-type="table" rid="jsan-01-00003-t001">Table 1</xref> gives us a clear notion that most information (75%) will be unreliably transmitted over the network (not retransmitted if corrupted), saving energy avoiding packet retransmissions and transmission of ACK messages. For a 1-level 2D DWT, the proposed solution assures reliable transmission for only 25% of the image information (LL<sub>(1<italic>)</italic></sub>), while for a 2-level 2D DWT, only 6.25% of the original visual information (LL<sub>(2)</sub>) will be granted with full reliability guaranties. If packets carrying part of the remaining subbands are lost and not retransmitted, the sink can interpolate the received data to overcome the missing information or consider zeros to complete the subband. </p>
        <p>After applying DWT over the original image, the resulting packets should be transmitted in a scrambled order according to their Data Relevance, alternating the packets of highest relevance with low relevant packets. As the occurrence of error bursts is unpredictable (it is estimated only the average errors occurrence), a scrambled transmission may reduce the probability of mass losses of least relevant packets in the worst cases, providing a fairer distribution of retransmission attempts across time.</p>
        <p>As a final comment, DWT processing at source nodes demands energy that should be considered when computing the overall energy consumption. Such required energy, <italic>C<sub>pi</sub></italic>, is a direct function of the type (coefficients of the L and H filters) of the employed DWT and it is consumed only in the source node, since we do not consider the energy consumption at the sink. As we are comparing the proposed solution with traditional hop-by-hop retransmission mechanisms, where original images will also need to be processed/coded at source nodes in most cases, we do not consider such energy crucial to the desired analyses. Nevertheless, we compute such energy adapting the corresponding equation in [<xref ref-type="bibr" rid="B16-jsan-01-00003">16</xref>], where DWT is performed using a integer 5-tap/3-tap filter. For a <italic>m</italic> x <italic>n</italic> image, and considering <italic>e<sub>shift</sub></italic> the energy required for a 1-byte shift operation, <italic>e<sub>add</sub></italic> the energy for an 1-byte add operation, <italic>e<sub>read</sub></italic> the energy to read one byte from memory and <italic>e<sub>write</sub></italic> the energy to write one byte, the computation of <italic>C<sub>pi</sub></italic> is defined in Equation (14), where <italic>T</italic> is the number of times DWT is applied.</p>
        <p><disp-formula id="jsan-01-00003-i015">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i015.tif"/>
          <label>(14)</label>
          </disp-formula></p>
      </sec>
      <sec>
        <title>4.2. The Proposed DWT-Based Selective Retransmission Mechanism</title>
        <p>We define three levels of reliability according to the value of DR: reliable, unreliable and semi-reliable. Based on the mapping in <xref ref-type="table" rid="jsan-01-00003-t001">Table 1</xref>, if a 1-level 2D DWT is applied over an original image, packets will be transmitted in a reliable or unreliable way. On the other hand, packets carrying data produced by a 2-level 2D DWT may be transmitted under any of the three reliability levels. The number of times DWT is applied over original images (defining possible values of DR) will indicate the transmission service that must be considered. We will extend the energy consumption model described in <xref ref-type="sec" rid="sec3-jsan-01-00003">Section 3</xref> to incorporate these new definitions. </p>
        <p>In reliable transmission, every corrupted packet is retransmitted. For unreliable transmission, no retransmission is performed for the corrupted packet. Finally, in semi-reliable transmission, corrupted packets may be retransmitted depending on where the event occurred. <xref ref-type="fig" rid="jsan-01-00003-f004">Figure 4</xref> depicts the three different reliability services.</p>
        <fig id="jsan-01-00003-f004" position="anchor">
          <label>Figure 4</label>
          <caption>
            <p>Reliable, semi-reliable and unreliable transmission services. </p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g004.tif"/>
        </fig>
        <p>It is considered that an original image <italic>i</italic>, <italic>i</italic> = 1, …, <italic>i</italic> = <italic>I</italic>, sizing <italic>B<sub>i</sub></italic> bytes may be decomposed by a 2D DWT applied once or twice. Whatever the case, 75% of the resulted data will correspond to the HL<sub>(1)</sub>, LH<sub>(1)</sub> and HH<sub>(1)</sub> subbands, and packets containing such data will be unreliably transmitted. We can define <italic>U<sub>pi</sub></italic> as the number of required packets with size <italic>s</italic> to transmit these three subbands and <italic>Lu<sub>pi</sub></italic> as the size of the payload of the last packet after fragmentation, if any, as expressed in Equation (15). We define <italic>l</italic> as the maximum payload size in bits of each packet, <italic>l</italic> = (<italic>s</italic> – <italic>k</italic> – <italic>f</italic> –<italic>8</italic>), considering the 8-bit Data Relevance field. The total number of packets carrying data of the HL<sub>(1)</sub>, LH<sub>(1)</sub> and HH<sub>(1)</sub> subbands is <italic>U<sub>pi</sub></italic> + 1, for <italic>Lu<sub>pi</sub></italic> &gt; 0. </p>
        <p><disp-formula id="jsan-01-00003-i016">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i016.tif"/>
          <label>(15)</label>
          </disp-formula></p>
        <p>In average, each hop (<italic>h</italic> + 1) will transmit less packets with DR = 255 to the next hop than hop <italic>h</italic> transmitted to it, for the same path, since some of them will be lost and not retransmitted. Defining <italic>Ptu<sub>ph</sub></italic> as the packet error rate in hop <italic>h</italic> when <italic>n</italic> = (<italic>Lu<sub>pi</sub></italic> + s – l) in Equation (4), we can estimate the average number of bits to be transmitted from hop <italic>h</italic> as <italic>Tu<sub>pih</sub></italic>, as presented in Equation (16).</p>
        <p><disp-formula id="jsan-01-00003-i017">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i017.tif"/>
          <label>(16)</label>
          </disp-formula></p>
        <p>A 2D DWT is applied only after the LL<sub>(1)</sub> subband is produced, representing 25% of the size of the original image. We define <italic>M<sub>pi</sub></italic> as the number of packets for the LL<sub>(1)</sub> subband and the image header <italic>i<sub>o</sub></italic> considering that all packets are carrying data to their maximum capacity and <italic>Lm<sub>pi</sub></italic> as the size of the last packet after fragmentation, if any, as presented in Equation (17). The total number of packets carrying data of the LL<sub>(1)</sub> subband is <italic>M<sub>pi</sub></italic> + 1, for <italic>Lm<sub>pi</sub></italic> &gt; 0.</p>
        <p><disp-formula id="jsan-01-00003-i018">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i018.tif"/>
          <label>(17)</label>
          </disp-formula></p>
        <p>Defining <italic>Ptm<sub>ph</sub></italic> as the packet error rate in hop <italic>h</italic> when <italic>n</italic> = (<italic>Lm<sub>pi</sub></italic> + <italic>s</italic> – <italic>l</italic>) in Equation (4), we achieve the average number of transmissions of the last packet, <italic>Rtm<sub>ph</sub></italic>, when employing <italic>Ptm<sub>ph</sub></italic> in Equation (8), where <italic>Ptm<sub>ph</sub></italic> = 0 and <italic>Rtm<sub>ph</sub></italic> = 1 if <italic>Lm<sub>pi</sub></italic> = 0. As packets with DR = 0 will be retransmitted if corrupted, <italic>Tm<sub>pih</sub></italic> refers to the total amount of bit transmission (considering possible retransmissions) of subband LL<sub>(1)</sub> in path <italic>p</italic> and from hop <italic>h</italic> to (<italic>h + 1</italic>). As the probability of ACK transmissions is also affected by the possible smaller size of the last packet, we apply <italic>Ptm<sub>ph</sub></italic> to Equation (10), achieving the average number of ACK messages to acknowledge the transmission of the last packet after fragmentation in hop <italic>h</italic> of path <italic>p</italic>, <italic>Ram<sub>ph</sub></italic>, where <italic>Ram<sub>ph</sub></italic> = 0 if <italic>Lm<sub>pi</sub></italic> = 0. The values of <italic>Tm<sub>pih</sub></italic> and <italic>Am<sub>pih</sub></italic> for the most relevant data (DR = 0) and for a 1-level 2D DWT are defined in Equation (18). </p>
        <p><disp-formula id="jsan-01-00003-i019">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i019.tif"/>
          <label>(18)</label>
          </disp-formula></p>
        <p>When source nodes process gathered images using a 1-level 2D DWT, packets can only be transmitted in a reliable or unreliable way. We can estimate the expected energy consumption in such a case, as presented in Equation (19). For transmission of multiple images, all one has to do is to sum the expected energy consumption in path <italic>p</italic> for each image <italic>i</italic>. </p>
        <p><disp-formula id="jsan-01-00003-i020">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i020.tif"/>
          <label>(19)</label>
          </disp-formula></p>
        <p>The final energy consumption model when images are processed by a 1-level 2D DWT, considering the energy costs of the source node, is presented in Equation (20).</p>
        <p><disp-formula id="jsan-01-00003-i021">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i021.tif"/>
          <label>(20)</label>
          </disp-formula></p>
        <p>When a 2-level 2D DWT is applied over a raw image, reliable, unreliable and semi-reliable transmission services may be provided according to the resulted subbands. The subbands HL<sub>(1)</sub>, LH<sub>(1)</sub> and HH<sub>(1)</sub> present the same visual information of the equivalent subbands after a 1-level 2D DWT, thereby receiving the same treating by intermediate nodes. The subband LL<sub>(2)</sub> contains the most significant visual information to the reconstruction of the original image, and so the highest relevance (DR = 0) is assigned to it. As the LL<sub>(2)</sub> subband is only 6.25% of the size of original image, <italic>M<sub>pi</sub></italic> cannot be considered for energy consumption computation in this case. Thus, <italic>Z<sub>pi</sub></italic> is defined as the number of packets for the LL<sub>(2)</sub> subband, and <italic>Lz<sub>pi</sub></italic> as the size of the payload of the last packet after fragmentation, as presented in Equation (21).</p>
        <p><disp-formula id="jsan-01-00003-i022">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i022.tif"/>
          <label>(21)</label>
          </disp-formula></p>
        <p>Defining <italic>Ptz<sub>ph</sub></italic> as the packet error rate in hop <italic>h</italic> when <italic>n</italic> = (<italic>Lz<sub>pi</sub></italic> + <italic>s</italic> – <italic>l</italic>) in Equation (4), we achieve the average number of transmissions of the last packet, <italic>Rtz<sub>ph</sub></italic>, when employing <italic>Ptz<sub>ph</sub></italic> in Equation (8), where <italic>Ptz<sub>ph</sub></italic> = 0 and <italic>Rtz<sub>ph</sub></italic> = 1 if <italic>Lz<sub>pi</sub></italic> = 0. As the probability of ACK transmissions is also affected by the possible smaller size of the last packet, we apply <italic>Ptz<sub>ph</sub></italic> to Equation (10), achieving <italic>Raz<sub>ph</sub></italic>, where <italic>Raz<sub>ph</sub></italic> = 0 if <italic>Lz<sub>pi</sub></italic> = 0. The values of <italic>Tz<sub>pih</sub></italic> and <italic>Az<sub>pih</sub></italic> are presented in Equation (22). </p>
        <p><disp-formula id="jsan-01-00003-i023">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i023.tif"/>
          <label>(22)</label>
          </disp-formula></p>
        <p>The subbands HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> are obtained from a 2D DWT applied over the subband LL<sub>(1)</sub>. We define <italic>Q<sub>pi</sub></italic> as the number of packets with maximum size <italic>s</italic> for these subbands, and <italic>Lq<sub>pi</sub></italic> as the size of the payload of the last packet after fragmentation, if any, expressed in Equation (23).</p>
        <p><disp-formula id="jsan-01-00003-i024">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i024.tif"/>
          <label>(23)</label>
          </disp-formula></p>
        <p>As defined in <xref ref-type="table" rid="jsan-01-00003-t001">Table 1</xref>, the packets containing part of subbands HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> will have a DR between 1 and 254. Moreover, they will be subject to a semi-reliable transmission mechanism. Such transmission mechanism assures reliability only when packets are being relaying by some of the intermediate nodes of the path. Considering a path <italic>p</italic> with <italic>H<sub>p</sub></italic> intermediate hops, packets will not be retransmitted if they are lost in any intermediate node from the source (<italic>h</italic> = 0) to the hop DR, 0 &lt; DR &lt;= <italic>H<sub>p</sub></italic>, and no ACK message has to be transmitted to acknowledge these packets. After hop DR, packets are reliably transmitted to the sink. The idea is to preserve packets that have already been relayed by some hops and consequently consumed energy, considering that such packets have an intermediate impact in the final image quality. </p>
        <p>The value for DR may be defined deterministically before deployment or dynamically measuring the number of hops of the path and setting the better value for DR according to the application requirements. If DR &gt; <italic>H<sub>p</sub></italic>, packets receive the same treatment as when DR = 255. One can notice that, for paths with more than 254 intermediate nodes, the proposed semi-reliable transmission approach cannot be applied. However, typical paths in most real-world wireless sensor networks are expected to be composed of less than 254 hops.</p>
        <p>The value of DR will be directly related to the energy consumption and image quality, where higher DR means in average more energy saving at the cost of quality loss of the reconstructed images. In general cases where applications are not concerned with optimization of it, the DR should refer to the middle of the path.</p>
        <p>During packet relaying, each intermediate node decrements the value of DR just before transmission to the next hop, when the value of Data Relevance is not 0 or 255. When DR reaches 0, it is assumed that the packet must be reliably transmitted, as is the case for packets carrying LL<sub>(1)</sub> and LL<sub>(2)</sub> subbands. </p>
        <p>The transmission of <italic>Q<sub>pi</sub></italic> packets requires a partially reliable communication approach, where packets are never retransmitted from <italic>h</italic> = 0 to <italic>h</italic> = DR and packets are always retransmitted if corrupted from hop <italic>h</italic> = DR to <italic>h</italic> = (<italic>H<sub>p</sub></italic> + 1), for 0 &lt; DR &lt;= <italic>H<sub>p</sub></italic>. The average number of bit transmission in hop <italic>h</italic> for packets with DR from 1 to 254, <italic>Tq<sub>pih</sub></italic>, is presented in Equation (24). <italic>Ptq<sub>ph</sub></italic> represents the average packet error rate in hop <italic>h</italic> when <italic>n</italic> = (<italic>Lq<sub>pi</sub></italic> + <italic>s</italic> – <italic>l</italic>) in Equation (4) and the average number of transmissions of the last packet after fragmentation is defined as <italic>Rtq<sub>ph</sub></italic>, when employing <italic>Ptq<sub>ph</sub></italic> in Equation (8). Note that <italic>Ptq<sub>ph</sub></italic> = 1 and <italic>Rtq<sub>ph</sub></italic> = 0 when <italic>Lq<sub>pi</sub></italic> = 0.</p>
        <p><disp-formula id="jsan-01-00003-i025">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i025.tif"/>
          <label>(24)</label>
          </disp-formula></p>
        <p>The total number of bit transmission for acknowledgment is defined as <italic>Aq<sub>pih</sub></italic>. The hop DR in path <italic>p</italic> receives ACK messages from hop (DR + 1), but does not transmit ACK to the previous hop (DR – 1). Applying the value of <italic>Ptq<sub>ph</sub></italic> in Equation (10), we achieve the average number of ACK messages to acknowledge the transmission of the last packet after fragmentation received from hop <italic>h</italic>, <italic>h</italic> &gt; DR, that is <italic>Raq<sub>ph</sub></italic>. The definitions for <italic>Aq<sub>pih</sub></italic> is presented in Equation (25), where <italic>Raq<sub>ph</sub></italic> = 0 if <italic>Lq<sub>pi</sub></italic> = 0 and <italic>Aq<sub>pih</sub></italic> = 0 for h &lt; DR.</p>
        <p><disp-formula id="jsan-01-00003-i026">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i026.tif"/>
          <label>(25)</label>
          </disp-formula></p>
        <p>The computation of the energy consumption due to transmissions and receptions of an image <italic>i</italic> in hop <italic>h</italic> of path <italic>p</italic>, considering original images processed by a 2-level 2D DWT, is defined in Equation (26). </p>
        <p><disp-formula id="jsan-01-00003-i027">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i027.tif"/>
          <label>(26)</label>
          </disp-formula></p>
        <p>The energy consumption of the path is presented in Equation (27). Note that the value for <italic>Aq<sub>pi0</sub></italic> is zero for the source node.</p>
        <p><disp-formula id="jsan-01-00003-i028">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i028.tif"/>
          <label>(27)</label>
          </disp-formula></p>
        <p>When a 1-level 2D DWT is applied over the original image, the energy consumption can be estimated using Equation (20). For the 2-level 2D DWT, the equation in Equation (27) must be considered.</p>
      </sec>
      <sec>
        <title>4.3. Measuring the Image Quality</title>
        <p>When the two proposed DWT-based selective retransmission mechanism is employed in wireless image sensor networks, some packets containing visual information may be lost according to their Data Relevance and the packet error rate in each link from the source to the sink. The received payloads will be used to reconstruct an approximated version of the original image by an inverse DWT, where we consider that the lost information (if any) will be replaced by zeros for simplicity. As some less relevant packets may be corrupted and discarded during transmission, resulting in energy saving when those packets are not retransmitted and not acknowledged, the final image quality will be typically lower than the original image quality. </p>
        <p>The simpler way to assess the quality of an image transmission is to count the number of packets received by the sink. The formulation in Equation (28) presents the average success ratio (<italic>S<sub>1</sub></italic>) when a 2D DWT is applied only once, where the maximum attainable success ratio is 1.0 when all packets are always retransmitted if lost or no bit-errors occur during transmission. <italic>V<sub>0</sub></italic> e <italic>V<sub>255</sub></italic> are the proportion of data received for packets with DR = 0 and DR = 255, respectively. </p>
        <p><disp-formula id="jsan-01-00003-i029">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i029.tif"/>
          <label>(28)</label>
          </disp-formula></p>
        <p>When we apply a 2-level 2D DWT, we achieve the average success ratio <italic>S<sub>2</sub></italic>, as presented in Equation (29). Note that we only count packets transmitted before hop <italic>DR</italic> for <italic>V<sub>DR</sub></italic> (proportion of data received for packets transmitted in a semi-reliable way), since all packets after it are reliably transmitted to the sink.</p>
        <p><disp-formula id="jsan-01-00003-i030">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i030.tif"/>
          <label>(29)</label>
          </disp-formula></p>
        <p><italic>S<sub>1</sub></italic> and <italic>S<sub>2</sub></italic> show the average percentage of received data when compared with the total visual information of the original image, but do not give us a good indication of the quality of the reconstructed image, since the packets’ payloads have different relevancies for the reconstruction of the original image. A common approach to measure such quality is the Peak Signal-to-Noise Ratio (PSNR), as defined in Equation (30). The value for <italic>x</italic> is the number of bits to represent a pixel: for example, every pixel in a grayscale image may be represented by 8 bits, but more bits are required for RGB color images.</p>
        <p><disp-formula id="jsan-01-00003-i031">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i031.tif"/>
          <label>(30)</label>
          </disp-formula></p>
        <p>The variable <italic>MSE<sub>pi</sub></italic> is the mean squared error, considering an original <italic>m</italic> x <italic>n</italic> image <italic>i</italic> and a final <italic>m</italic> x <italic>n</italic> image <italic>v</italic>, where the last one is a noisy approximation of the original image. Considering that <italic>i</italic>(<italic>a</italic>,<italic>b</italic>) and <italic>v</italic>(<italic>a</italic>,<italic>b</italic>) return the value of the corresponding pixel in position (<italic>a</italic>,<italic>b</italic>) of the image, 0 &lt; <italic>a</italic> &lt; <italic>m</italic> and 0 &lt; <italic>b</italic> &lt; <italic>n</italic>, we have the definition of <italic>MSE<sub>pi</sub></italic> in Equation (31).</p>
        <p><disp-formula id="jsan-01-00003-i032">
          <inline-graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-i032.tif"/>
          <label>(31)</label>
          </disp-formula></p>
        <p>The closer to the original is the reconstructed image, higher is the <italic>PSNR<sub>pi</sub></italic>. In fact, PSNR is a good measure for comparing reconstruction results for the same image, but it is meaningless for comparisons between images, since one image with lower PSNR may look much better than another image with higher PSNR. In the improbable case that no packet is discarded in any link during the transmission of the image <italic>i</italic> from the source to the sink, due to the absence of error bursts, the value for <italic>MSE<sub>pi</sub></italic> is 0, and the <italic>PSNR<sub>pi</sub></italic> is undefined.</p>
      </sec>
      <sec>
        <title>4.4. Conceptual Location of the Proposed Solution</title>
        <p>Packet retransmission can be usually performed in two logical layers: link and transport. Some MAC protocols provide a reliable service where lost packets are retransmitted in a hop-by-hop manner, as performed by the IEEE 802.15.4. On the other hand, most transport protocols provide an end-to-end reliable communication service where retransmission requests are sent by the sink. However, the energy constraints of sensor networks fostered the development of hop-by-hop transport protocols, disrupting the traditional protocol modularization. An interesting discussion about the appropriate layer where packet retransmission should be performed is presented in [<xref ref-type="bibr" rid="B13-jsan-01-00003">13</xref>].</p>
        <p>In such contexts, we believe that the proposed selective retransmission mechanisms can be employed in MAC or transport layers alike, since the hop-by-hop paradigm is respected for higher energy efficiency. For solutions based on link-layer, the IEEE 802.15.4 or T-MAC protocols could be adapted to support selective retransmission based on the data relevance of the packets. For transport protocols, errors not treated by lower protocol layers but that must to be corrected due to the value of DR would result in retransmission requests at the current hop. Alternatively, selective retransmission could be employed in conjunction with both layers, but the final solution should be designed to allow the cooperative operation of the employed protocols. Whatever the case, the same energy and quality analyses discussed in this paper are valid.</p>
      </sec>
    </sec>
    <sec id="sec5-jsan-01-00003">
      <title>5. Numerical Results</title>
      <p>Previous section defined comprehensive energy consumption models for the proposed energy-efficient selective retransmission mechanism, where DWT image coding is exploited to produce visual data with different relevancies for the application. Based on the presented equations, we conducted a series of mathematical verifications in Matlab to compare the mean performance of the proposed solution with a fully-reliable transmission mechanism. As we argue that the proposed solution can replace existing approaches for reliable communications in wireless image sensor networks, we are indeed concerned with the gains over traditional solutions, instead of absolute performance values. Moreover, the quality of the reconstructed image is simulated when some packets are lost, computing the average success ratio and the equivalent PSNR. </p>
      <p>For the experiments, the transmission of a single uncompressed 128 × 128 8-bit grayscale image was considered, as presented in <xref ref-type="fig" rid="jsan-01-00003-f005">Figure 5</xref>. The image size in question was 16,384 bytes plus an image header of 40 bytes, since the transmission of bitmap images was considered, and 40 bytes is the most common size of bitmap image headers. Thus, <italic>B<sub>i</sub></italic> + <italic>i<sub>o</sub></italic> = 16,424 bytes. The maximum packet size is 127 bytes (<italic>s</italic> = 127 × 8 bits), the total protocol headers is defined as 30 bytes (<italic>k</italic> = 30 × 8 bits), the fragmentation header was defined having 8 bytes (<italic>f</italic> = 8 × 8 bits) and DR sizes 1 byte, as expected. So, in the mathematical verifications, <italic>l</italic> = 88 bytes. We also define <italic>a</italic> = 40 bytes.</p>
      <fig id="jsan-01-00003-f005" position="anchor">
        <label>Figure 5</label>
        <caption>
          <p>Original image for the experiments. </p>
        </caption>
        <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g005.tif"/>
      </fig>
      <sec>
        <title>5.1. Energy Consumption</title>
        <p>The energy consumption for processing/transmission of every single bit depends on the hardware characteristics of the employed sensors. However, such characteristics do not affect the experiments, since they will be considered for all tests. The parameters for energy consumption computation are based on [<xref ref-type="bibr" rid="B15-jsan-01-00003">15</xref>,<xref ref-type="bibr" rid="B21-jsan-01-00003">21</xref>], as presented in <xref ref-type="table" rid="jsan-01-00003-t002">Table 2</xref>. </p>
        <table-wrap id="jsan-01-00003-t002" position="anchor">
          <object-id pub-id-type="pii">jsan-01-00003-t002_Table 2</object-id>
          <label>Table 2</label>
          <caption>
            <p>Parameters for the experiments.</p>
          </caption>
          <table style="border: solid thin" rules="all">
            <thead>
              <tr>
                <th align="center" valign="middle">Variable</th>
                <th align="center" valign="middle">Value</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>e</sub></italic>
                </td>
                <td align="center" valign="middle">50 × 10<sup>−9</sup> J/bit</td>
              </tr>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>t</sub></italic>
                </td>
                <td align="center" valign="middle">100 × 10<sup>−12</sup> J/bit/m<sup>2</sup></td>
              </tr>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>shift</sub></italic>
                </td>
                <td align="center" valign="middle">3.3 nJ</td>
              </tr>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>add</sub></italic>
                </td>
                <td align="center" valign="middle">3.3 nJ</td>
              </tr>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>read</sub></italic>
                </td>
                <td align="center" valign="middle">0.26 µJ</td>
              </tr>
              <tr>
                <td align="center" valign="middle">
                  <italic>e<sub>write</sub></italic>
                </td>
                <td align="center" valign="middle">4.3 µJ</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The DWT processing in each source node for the image in <xref ref-type="fig" rid="jsan-01-00003-f005">Figure 5</xref> consumes 150.6 mJ for a 1-level 2D DWT and 188.3 mJ for a 2-level 2D DWT, when the parameters in <xref ref-type="table" rid="jsan-01-00003-t002">Table 2</xref> are considered. Such energy is always accounted when assessing the energy consumption of the proposed approach.</p>
        <p>Initially, we analyzed the energy consumption as a function of the number of hops that compose the path from the source to the sink. For simplicity, we considered that all nodes have the same transmission range (50 meters), and the previous (<italic>h</italic> – 1) and next (<italic>h</italic> + 1) hops are both in the transmission range of hop <italic>h</italic>. </p>
        <p><xref ref-type="fig" rid="jsan-01-00003-f006">Figure 6</xref>(a) shows the overall energy consumption (mJ) when the mean PER is 5% (<italic>b</italic> = 0.9994 and <italic>g</italic> = 0.99998) for all links between neighbor intermediate nodes, while <xref ref-type="fig" rid="jsan-01-00003-f006">Figure 6</xref>(b) considers the mean PER of 15% (<italic>b</italic> = 0.99987 and <italic>g</italic> = 0.99998). Three different transmission approaches were considered: fully-reliable, selective retransmission for 1-level 2D DWT and selective retransmission for 2-level 2D DWT, respectively based on equations in Equations (6), (20) and (27). For the subbands HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> produced by a 2-level 2D DWT in both tests, DR = (<italic>H<sub>p</sub></italic>/2). It is also assumed that all packets are transmitted with DR=0 for the traditional fully-reliable transmission approach.</p>
        <fig id="jsan-01-00003-f006" position="anchor">
          <label>Figure 6</label>
          <caption>
            <p>Energy consumption over the path.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g006.tif"/>
        </fig>
        <p>The initial obvious conclusion is that the energy consumption increases when packets have to cross more intermediate nodes. Moreover, it is interesting to note that higher PER results in energy saving for the proposed approach when compared with the lower PER case, as most data (75%) are unreliably transmitted (DR = 255) over the path, in a different way of the fully-reliable approach.</p>
        <p>As we did not consider the energy costs of any coding technique for the fully-reliable transmission mechanism, the proposed solution is less energy-efficient for communications over very short paths, since DWT energy costs have to be accounted. However, such behavior changes when packets have to cross more hops, and it is more evident for higher mean PER. Additionally, even following the fully-reliable paradigm some image coding may be required, also demanding energy of source nodes. There is also an interesting difference between transmissions for packets generated after 1-level and 2-level 2D DWT. The transmission of packets using the semi-reliable transmission service is only advantageous for larger paths and for higher PER, since 2-level 2D DWT consumes more energy than 1-level 2D DWT.</p>
        <p>When the fully-reliable transmission mechanism is employed, we expect that, on average, every intermediate node consumes an equivalent amount of energy. However, the energy consumption in each intermediate node is likely to be different for the proposed selective retransmission mechanism, since packets that are lost and not retransmitted in previous hops do not consume energy in subsequent hops in the path to the sink. Considering the same mean PER of the last experiments, <xref ref-type="fig" rid="jsan-01-00003-f007">Figure 7</xref> presents the energy consumption (mJ) in each hop for a path with 10 intermediate nodes, testing three different values of DR for semi-reliable transmission. For the fully-reliable approach, the average consumed energy in each hop is 94.60 mJ for a mean PER of 5% and 115.12 mJ for a mean PER of 15%.</p>
        <fig id="jsan-01-00003-f007" position="anchor">
          <label>Figure 7</label>
          <caption>
            <p>Energy consumption in each intermediate node.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g007.tif"/>
        </fig>
        <p>In both graphics in <xref ref-type="fig" rid="jsan-01-00003-f007">Figure 7</xref>, the 1-level 2D DWT approach always consumes more energy since only packets with DR = 255 are not retransmitted. For the retransmission mechanism based on 2-level 2D DWT, packets with DR = 2, DR = 5 and DR = 8 are also not retransmitted if lost in hops before the hop DR. Another interesting observation is that nodes closer to the sink always consume less energy, and such a difference is more evident for a higher mean PER. As intermediate nodes closer to the sink tend to consume more energy due to the fact that they receive more combined upstream traffic, the proposed retransmission approach may considerably preserve such nodes, potentially prolonging the network lifetime. Finally, note the energy consumption for different values of DR. For low mean packet error rates, the additional energy consumption for ACK transmissions and packet retransmissions is significant, as can be seen in hops 3, 6 and 9 in <xref ref-type="fig" rid="jsan-01-00003-f007">Figure 7</xref>(a) when DR is equal to 2, 5 and 8, respectively. For higher mean PER, the energy saving avoiding reception and relaying of packets that are lost and not retransmitted in previous hops is more significant than additional transmission of ACK messages and packet retransmissions, as can be seen in <xref ref-type="fig" rid="jsan-01-00003-f007">Figure 7</xref>(b).</p>
        <p>Besides the relation between energy consumption and number of hops, we can also relate energy with the mean packet error rate, as presented in <xref ref-type="fig" rid="jsan-01-00003-f008">Figure 8</xref>. In that graphic the active used path is composed of 10 intermediate hops and DR = 5 for the 2-level 2D DWT. Moreover, the considered PER is for packets sizing <italic>s</italic> bits, where <italic>g</italic> and <italic>b</italic> assume different values, resulting in mean PER from 2% to 20%, although we also computed the PER for smaller packets when necessary. </p>
        <p>As one can see in <xref ref-type="fig" rid="jsan-01-00003-f008">Figure 8</xref>, the fully-reliable transmission mechanism is severely affected by higher packet error rate, directly impacting the expected network lifetime. For the proposed selective retransmission mechanism, the impact in the expected average energy consumption is considerably lower than traditional fully-reliable transmission approaches, where all packets have the same treatment by intermediate nodes. Once again, it is worth noting that, while energy consumption rises when packets have to cross links with higher PER for the fully-reliable transmission approach, the average energy consumption decreases for the proposed selective retransmission mechanism, considering the same network conditions. Also as expected, the image transmission after a 2-level 2D DWT consumes less energy than the retransmission mechanism based on 1-level 2D DWT, for DR = 5 and <italic>H<sub>p</sub></italic> = 10, and this difference increases for higher mean PER.</p>
        <fig id="jsan-01-00003-f008" position="anchor">
          <label>Figure 8</label>
          <caption>
            <p>Energy consumption for a path composed of 10 intermediate nodes.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g008.tif"/>
        </fig>
        <p>We can also analyze the effect of the value of DR for a 2-level 2D DWT. In <xref ref-type="fig" rid="jsan-01-00003-f009">Figure 9</xref>, we show the total energy consumption for a path composed of 20 hops when an image is transmitted employing the proposed retransmission mechanism based on 2-level 2D DWT, considering different values of DR for the HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> subbands. Lower DR implies in more energy consumption, since packets will be transmitted with reliability guarantees over a bigger part of the path.</p>
        <fig id="jsan-01-00003-f009" position="anchor">
          <label>Figure 9</label>
          <caption>
            <p>Energy consumption for different values of Data Relevance (DR).</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g009.tif"/>
        </fig>
        <p>At last, we estimated the effect of a higher packet error rate in some links of the path. Considering a path composed of 20 intermediate nodes, we established a very low 2% PER for all links except in the middle of the path, where higher mean PER were simulated. As the links between hops 9 and 11 experienced a higher packet error rate, it was also verified the effect of the proposed retransmission mechanism for 2-level 2D DWT, considering DR before (DR = 5) an after (DR = 15) the region with increased PER. The results of this experiment are presented in <xref ref-type="fig" rid="jsan-01-00003-f010">Figure 10</xref>.</p>
        <fig id="jsan-01-00003-f010" position="anchor">
          <label>Figure 10</label>
          <caption>
            <p>Energy consumption for a path with different mean packet error rates.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g010.tif"/>
        </fig>
        <p>As previously attested, we note in <xref ref-type="fig" rid="jsan-01-00003-f010">Figure 10</xref> that the proposed selective retransmission mechanism performs better than traditional fully-reliable transmission approaches, saving energy of intermediate nodes. Moreover, such saved energy is higher when a 2-level 2D DWT is applied over the original image, especially when DR = 15 for HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> subbands. An interesting consideration is that the selective retransmission mechanism based on 1-level 2D DWT consumes more energy for higher mean PER at the middle of the path, even though fewer packets with DR = 255 will need to be transmitted on average over half the path. This happens because packets with DR = 0 will require on average more retransmissions and transmission of ACK messages, impacting the resulting energy consumption.</p>
      </sec>
      <sec>
        <title>5.2. Image Quality</title>
        <p>The simplest way to measure the quality of the reconstructed image is the success ratio. We initially used the same parameters of the experiments of <xref ref-type="fig" rid="jsan-01-00003-f006">Figure 6</xref> to compute the success ratios, as depicted in <xref ref-type="fig" rid="jsan-01-00003-f011">Figure 11</xref>. As expected, more packets are lost on average when the current used path is composed of more hops. </p>
        <fig id="jsan-01-00003-f011" position="anchor">
          <label>Figure 11</label>
          <caption>
            <p>Success ratios for different mean packet error rates.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g011.tif"/>
        </fig>
        <p>We can also relate the success ratio with the mean packet error rate, as presented in <xref ref-type="fig" rid="jsan-01-00003-f012">Figure 12</xref>, where a path composed of 10 intermediate nodes is considered. Note that success ratio is severely affected by higher PER. An interesting consideration is that the 2-level 2D DWT based retransmission approach consumes less energy, but results in higher mean packet loss, especially for values of DR closer to the sink.</p>
        <fig id="jsan-01-00003-f012" position="anchor">
          <label>Figure 12</label>
          <caption>
            <p>Success ratio <italic>versus</italic> PER.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g012.tif"/>
        </fig>
        <p>The success ratio presents the expected mean packet loss, but does not provide a direct value for the image quality, since packets have different relevancies for the reconstruction of the image at the receiver side. In order to have a better feeling of the resulted image quality, we estimated some packet loss and computed the PSNR of the reconstructed image. </p>
        <p><xref ref-type="fig" rid="jsan-01-00003-f013">Figure 13</xref> presents the image quality after transmission considering the 1-level 2D DWT based approach, where packets with DR = 255 may be lost. In that figure, we simulated different percentage of packet loss, including the worst case when all packets with DR = 255 are lost. A total of 140 packets with DR = 255 are transmitted for the original image of <xref ref-type="fig" rid="jsan-01-00003-f005">Figure 5</xref>.</p>
        <fig id="jsan-01-00003-f013" position="anchor">
          <label>Figure 13</label>
          <caption>
            <p>Visual quality and Peak Signal-to-Noise Ratio (PSNR) after loss of packets with DR = 255 and 1-level 2D DWT.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g013.tif"/>
        </fig>
        <p>Analyzing the reconstructed images it can be seen that, even in the worst case, the visual quality seems to be very acceptable for many types of wireless image sensor networks applications. And if so, we noted that the energy saving is highly significant when the retransmission approach based on 1-level 2D DWT is applied, strongly benefiting such applications. </p>
        <p>We also analyzed the impact of loss of packets with DR = 255 when some packets with DR &gt; 0 and DR &lt; 255 are also lost. <xref ref-type="fig" rid="jsan-01-00003-f014">Figure 14</xref> presents the resulted images considering 20% of loss of packets carrying the HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> subbands (totalizing 7 packets), considering that 35 packets of such packets are transmitted.</p>
        <fig id="jsan-01-00003-f014" position="anchor">
          <label>Figure 14</label>
          <caption>
            <p>Visual quality and PSNR after loss of packets with DR = 255 and 2-level 2D DWT. It is assumed that 20% of packets with 0 &lt; DR &lt; 255 are lost.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g014.tif"/>
        </fig>
        <p>After a 2-level 2D DWT, the HL<sub>(2)</sub>, LH<sub>(2)</sub> and HH<sub>(2)</sub> subbands are more significant for the reconstruction of the image than the HL<sub>(1)</sub>, LH<sub>(1)</sub> and HH<sub>(1)</sub> subbands. We can note in <xref ref-type="fig" rid="jsan-01-00003-f014">Figure 14</xref> that the loss of only 20% of packets with DR &gt; 0 and DR &lt; 255 negatively impact the image quality, as can be seen by the computed PSNR. Such a negative impact is more severe for ~50% of loss of such packets (totaling 17 packets), as presented in the images in <xref ref-type="fig" rid="jsan-01-00003-f015">Figure 15</xref>.</p>
        <fig id="jsan-01-00003-f015" position="anchor">
          <label>Figure 15</label>
          <caption>
            <p>Visual quality and PSNR after loss of packets with DR = 255 and 2-level 2D DWT. Almost 50% of packets with 0 &lt; DR &lt; 255 are lost.</p>
          </caption>
          <graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="jsan-01-00003-g015.tif"/>
        </fig>
        <p>In this last case, we can note the lower quality of the reconstructed images, which may harm the visual monitoring capability of the application. One should notice, however, that images that look better may have a lower PSNR, since it is a way to measure the quality of the reconstructed images when compared with the original image, and thus it is useless to make comparisons between reconstructed images. </p>
        <p>The impact when packets with 0 &lt; DR &lt; 255 are lost are very severe for the quality of the reconstructed image, but the energy saving when compared with the 1-level 2D DWT retransmission approach is not as significant as the loss of the image quality. After the performed analyses and mathematical verifications, we concluded that if the application cannot afford higher loss of quality of the reconstructed images, the semi-reliable transmission service should not be considered for the application, leading source nodes to apply only 1-level 2D DWT over original images. </p>
        <p>As a final comment, one may argue that if the application can afford some packet loss, it is better to discard packet at the source, avoiding transmission of less relevant information. However, such an approach would result in low quality images even when the packet error rates of the links are low. The proposed selective retransmission mechanism is more adequate to real-world applications where errors happen as burst, saving energy and keeping an acceptable average image quality over time. </p>
      </sec>
    </sec>
    <sec sec-type="conclusions">
      <title>6. Conclusions</title>
      <p>In this paper we have proposed a DWT-based energy-efficient selective retransmission mechanism for wireless image sensor networks, where packets are transmitted with different reliability guarantees according to the relevancies of the packets’ payloads for the reconstruction of the original image at the receiver side. We designed comprehensive energy consumption models and performed extensive mathematical verifications, estimating the average energy consumption and the resulted image quality when some less relevant packets are lost.</p>
      <p>When applications can afford some loss in the image quality, it was showed that the proposed solution performs better than traditional fully-reliable transmission mechanisms, achieving considerable energy saving in intermediate nodes. Moreover, we noted that the visual quality of the received images may be highly acceptable in different error conditions, especially for the 1-level 2D DWT based selective retransmission approach. In fact, the conclusions are based on the average cases, which although not sufficient to attest the effectiveness of the proposed solution, present an average behavior that can be expected in most cases along the time. The performed mathematical verifications have brought numeric values that indicated better options in average, turning the proposed solution promising for wireless image sensor networks. Nevertheless, future works will be concerned with experimental verifications in a discrete event simulator featuring IEEE 802.15.4 MAC technology, in order to allow analyzes of punctual values of error rate, retransmission attempts and energy consumption in more realist communication scenarios. In fact, transmissions using duty-cycle contention-based protocols are controlled by messages as RTS and CTS and generally synchronization messages are transmitted among the nodes to optimize the sleeping time, adding new issues to the energy consumption estimation. </p>
      <p>Image transmissions over wireless sensor networks may be challenging when resource-constrained sensor nodes are deployed. The huge amount of information that has to cross the network considerably increases the energy consumption over the network, when compared with traditional scalar wireless sensor networks. A reasonable solution to address such particular issue is to compress data before transmission [<xref ref-type="bibr" rid="B29-jsan-01-00003">29</xref>,<xref ref-type="bibr" rid="B31-jsan-01-00003">31</xref>,<xref ref-type="bibr" rid="B32-jsan-01-00003">32</xref>]. Future works will investigate how compression strategies can be combined with the proposed solution: if DWT is applied over original images, the resulted subbands could be compressed to reduce the number of packets to be transmitted, but still allowing differentiated transmission services according to the value of DR. We expect that the adoption of compression algorithms can reduce the overall energy consumption of the network, but the proportional gains of the proposed solution over fully-reliable transmission approaches should remain if packets can still be classified according to the payload relevance for the reconstruction of the original images. </p>
      <p>Moreover, we envisage that the proposed selective retransmission mechanism can be employed as part of a global solution, addressing issues as network congestion and node failure. Dynamic adaptation of parameters of the retransmission procedures can be performed according to the current network conditions. At last, although it is expected that many wireless image sensor network applications are delay-tolerant, we intend to investigate the potential benefits of the proposed selective retransmission mechanism for the end-to-end delay of the communication. As the use of ACK messages for acknowledgment and retransmission procedures demand additional time, the proposed solution may reduce the overall delay of the communication, potentially benefiting real-time WISN applications. </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1-jsan-01-00003">
        <label>1.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Yick</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Mukherjee</surname>
              <given-names>B.</given-names>
            </name>
            <name>
              <surname>Ghosal</surname>
              <given-names>D.</given-names>
            </name>
          </person-group>
          <article-title>Wireless sensor network survey</article-title>
          <source>Comput. Netw.</source>
          <year>2008</year>
          <volume>52</volume>
          <fpage>2292</fpage>
          <lpage>2330</lpage>
          <pub-id pub-id-type="doi">10.1016/j.comnet.2008.04.002</pub-id>
        </citation>
      </ref>
      <ref id="B2-jsan-01-00003">
        <label>2.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Akyildiz</surname>
              <given-names>I.</given-names>
            </name>
            <name>
              <surname>Su</surname>
              <given-names>W.</given-names>
            </name>
            <name>
              <surname>Sankarasubramaniam</surname>
              <given-names>Y.</given-names>
            </name>
            <name>
              <surname>Cayirci</surname>
              <given-names>E.</given-names>
            </name>
          </person-group>
          <article-title>Wireless sensor networks: A survey</article-title>
          <source>Comput. Netw.</source>
          <year>2002</year>
          <volume>38</volume>
          <fpage>393</fpage>
          <lpage>422</lpage>
          <pub-id pub-id-type="doi">10.1016/S1389-1286(01)00302-4</pub-id>
        </citation>
      </ref>
      <ref id="B3-jsan-01-00003">
        <label>3.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Baronti</surname>
              <given-names>P.</given-names>
            </name>
            <name>
              <surname>Pillai</surname>
              <given-names>P.</given-names>
            </name>
            <name>
              <surname>Chook</surname>
              <given-names>V.</given-names>
            </name>
            <name>
              <surname>Chessa</surname>
              <given-names>S.</given-names>
            </name>
            <name>
              <surname>Gotta</surname>
              <given-names>A.</given-names>
            </name>
            <name>
              <surname>Hu</surname>
              <given-names>Y.</given-names>
            </name>
          </person-group>
          <article-title>Wireless sensor networks: A survey on the state of the art and the 802.15.4 and ZigBee standards</article-title>
          <source>Comput. Commun.</source>
          <year>2006</year>
          <volume>30</volume>
          <fpage>1655</fpage>
          <lpage>1695</lpage>
        </citation>
      </ref>
      <ref id="B4-jsan-01-00003">
        <label>4.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Almalkawi</surname>
              <given-names>I.</given-names>
            </name>
            <name>
              <surname>Zapata</surname>
              <given-names>M.</given-names>
            </name>
            <name>
              <surname>Al-Karaki</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Morillo-Pozo</surname>
              <given-names>J.</given-names>
            </name>
          </person-group>
          <article-title>Wireless multimedia sensor networks: Current trends and future directions</article-title>
          <source>Sensors</source>
          <year>2010</year>
          <volume>10</volume>
          <fpage>6662</fpage>
          <lpage>6717</lpage>
          <pub-id pub-id-type="doi">10.3390/s100706662</pub-id>
        </citation>
      </ref>
      <ref id="B5-jsan-01-00003">
        <label>5.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Misra</surname>
              <given-names>S.</given-names>
            </name>
            <name>
              <surname>Reisslein</surname>
              <given-names>M.</given-names>
            </name>
            <name>
              <surname>Xue</surname>
              <given-names>G.</given-names>
            </name>
          </person-group>
          <article-title>A survey of multimedia streaming in wireless sensor networks</article-title>
          <source>IEEE Commun. Surv. Tutor.</source>
          <year>2009</year>
          <volume>10</volume>
          <fpage>18</fpage>
          <lpage>39</lpage>
        </citation>
      </ref>
      <ref id="B6-jsan-01-00003">
        <label>6.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Soro</surname>
              <given-names>S.</given-names>
            </name>
            <name>
              <surname>Heinzelman</surname>
              <given-names>W.</given-names>
            </name>
          </person-group>
          <article-title>On the Coverage Problem in Video-Based Wireless Sensor Networks</article-title>
          <source>Proceedings of the International Conference on Broadband Networks</source>
          <conf-loc>Boston, MA, USA</conf-loc>
          <conf-date>3–7 October 2005</conf-date>
          <fpage>932</fpage>
          <lpage>939</lpage>
        </citation>
      </ref>
      <ref id="B7-jsan-01-00003">
        <label>7.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Soro</surname>
              <given-names>S.</given-names>
            </name>
            <name>
              <surname>Heinzelman</surname>
              <given-names>W.</given-names>
            </name>
          </person-group>
          <article-title>A survey of visual sensor networks</article-title>
          <source>Adv. Multimed.</source>
          <year>2009</year>
          <volume>2009</volume>
          <fpage>1</fpage>
          <lpage>21</lpage>
        </citation>
      </ref>
      <ref id="B8-jsan-01-00003">
        <label>8.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Charfi</surname>
              <given-names>Y.</given-names>
            </name>
            <name>
              <surname>Canada</surname>
              <given-names>B.</given-names>
            </name>
            <name>
              <surname>Wakamiya</surname>
              <given-names>N.</given-names>
            </name>
            <name>
              <surname>Murata</surname>
              <given-names>M.</given-names>
            </name>
          </person-group>
          <article-title>Challenging issues in visual sensor networks</article-title>
          <source>IEEE Wirel. Commun.</source>
          <year>2009</year>
          <volume>16</volume>
          <fpage>44</fpage>
          <lpage>49</lpage>
          <pub-id pub-id-type="doi">10.1109/MWC.2009.4907559</pub-id>
        </citation>
      </ref>
      <ref id="B9-jsan-01-00003">
        <label>9.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Costa</surname>
              <given-names>D.</given-names>
            </name>
            <name>
              <surname>Guedes</surname>
              <given-names>L.</given-names>
            </name>
          </person-group>
          <article-title>The coverage problem in video-based wireless sensor networks: A survey</article-title>
          <source>Sensors</source>
          <year>2010</year>
          <volume>10</volume>
          <fpage>8215</fpage>
          <lpage>8247</lpage>
          <pub-id pub-id-type="doi">10.3390/s100908215</pub-id>
        </citation>
      </ref>
      <ref id="B10-jsan-01-00003">
        <label>10.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Costa</surname>
              <given-names>D.</given-names>
            </name>
            <name>
              <surname>Guedes</surname>
              <given-names>L.</given-names>
            </name>
          </person-group>
          <article-title>A survey on multimedia-based cross-layer optimization in visual sensor networks</article-title>
          <source>Sensors</source>
          <year>2011</year>
          <volume>11</volume>
          <fpage>5439</fpage>
          <lpage>5468</lpage>
          <pub-id pub-id-type="doi">10.3390/s110505439</pub-id>
        </citation>
      </ref>
      <ref id="B11-jsan-01-00003">
        <label>11.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Akyildiz</surname>
              <given-names>I.</given-names>
            </name>
            <name>
              <surname>Melodia</surname>
              <given-names>T.</given-names>
            </name>
            <name>
              <surname>Chowdhury</surname>
              <given-names>K.</given-names>
            </name>
          </person-group>
          <article-title>A survey on wireless multimedia sensor networks</article-title>
          <source>Comput. Netw.</source>
          <year>2007</year>
          <volume>51</volume>
          <fpage>921</fpage>
          <lpage>960</lpage>
          <pub-id pub-id-type="doi">10.1016/j.comnet.2006.10.002</pub-id>
        </citation>
      </ref>
      <ref id="B12-jsan-01-00003">
        <label>12.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Boukerche</surname>
              <given-names>A.</given-names>
            </name>
            <name>
              <surname>Du</surname>
              <given-names>Y.</given-names>
            </name>
            <name>
              <surname>Feng</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Pazzi</surname>
              <given-names>R.</given-names>
            </name>
          </person-group>
          <article-title>A Reliable Synchronous Transport Protocol for Wireless Image Sensor Networks</article-title>
          <source>Proceedings of IEEE Symposium on Computers and Communications</source>
          <conf-loc>Marrakesh, Morocco</conf-loc>
          <conf-date>6–9 July 2008</conf-date>
          <fpage>1083</fpage>
          <lpage>1089</lpage>
        </citation>
      </ref>
      <ref id="B13-jsan-01-00003">
        <label>13.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Stann</surname>
              <given-names>F.</given-names>
            </name>
            <name>
              <surname>Heidemann</surname>
              <given-names>J.</given-names>
            </name>
          </person-group>
          <article-title>RMST: Reliable Data Transport in Sensor Networks</article-title>
          <source>Proceedings of International Workshop on Sensor Network Protocols and Applications</source>
          <conf-loc>Anchorage, AK, USA</conf-loc>
          <conf-date>11 May 2003</conf-date>
          <fpage>102</fpage>
          <lpage>112</lpage>
        </citation>
      </ref>
      <ref id="B14-jsan-01-00003">
        <label>14.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Liu</surname>
              <given-names>Y.</given-names>
            </name>
            <name>
              <surname>Huang</surname>
              <given-names>H.</given-names>
            </name>
            <name>
              <surname>Xu</surname>
              <given-names>K.</given-names>
            </name>
          </person-group>
          <article-title>Multi-path-based Distributed TCP Caching for Wireless Sensor Networks</article-title>
          <source>Proceedings of International Conference on Software EngineeringArtificial IntelligenceNetworking and Parallel/Distributed Computing</source>
          <conf-loc>Phuket, Thailand</conf-loc>
          <conf-date>6–8 August 2007</conf-date>
          <fpage>331</fpage>
          <lpage>335</lpage>
        </citation>
      </ref>
      <ref id="B15-jsan-01-00003">
        <label>15.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Wu</surname>
              <given-names>H.</given-names>
            </name>
            <name>
              <surname>Abouzeid</surname>
              <given-names>A.</given-names>
            </name>
          </person-group>
          <article-title>Error resilient image transport in wireless sensor networks</article-title>
          <source>Comput. Netw.</source>
          <year>2006</year>
          <volume>50</volume>
          <fpage>2873</fpage>
          <lpage>2887</lpage>
          <pub-id pub-id-type="doi">10.1016/j.comnet.2005.09.039</pub-id>
        </citation>
      </ref>
      <ref id="B16-jsan-01-00003">
        <label>16.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Lecuire</surname>
              <given-names>V.</given-names>
            </name>
            <name>
              <surname>Duran-Faundez</surname>
              <given-names>C.</given-names>
            </name>
            <name>
              <surname>Krommenacker</surname>
              <given-names>N.</given-names>
            </name>
          </person-group>
          <article-title>Energy-efficient transmission of wavelet-based images in wireless sensor networks</article-title>
          <source>EURASIP J. Image Video Process.</source>
          <year>2007</year>
          <volume>2007</volume>
          <fpage>1</fpage>
          <lpage>11</lpage>
        </citation>
      </ref>
      <ref id="B17-jsan-01-00003">
        <label>17.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Lee</surname>
              <given-names>J.-H.</given-names>
            </name>
            <name>
              <surname>Jun</surname>
              <given-names>I.-B.</given-names>
            </name>
          </person-group>
          <article-title>Adaptive-compression based congestion control technique for wireless sensor networks</article-title>
          <source>Sensors</source>
          <year>2010</year>
          <volume>10</volume>
          <fpage>2919</fpage>
          <lpage>2945</lpage>
          <pub-id pub-id-type="doi">10.3390/s100402919</pub-id>
        </citation>
      </ref>
      <ref id="B18-jsan-01-00003">
        <label>18.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Dam</surname>
              <given-names>T.</given-names>
            </name>
            <name>
              <surname>Langendoe</surname>
              <given-names>K.</given-names>
            </name>
          </person-group>
          <article-title>An Adaptive Energy-Efficient MAC Protocol for Wireless Sensor Networks</article-title>
          <source>Proceedings of ACM SenSys</source>
          <conf-loc>Los Angeles, CA, USA</conf-loc>
          <conf-date>5–7 November 2003</conf-date>
          <fpage>1</fpage>
          <lpage>10</lpage>
        </citation>
      </ref>
      <ref id="B19-jsan-01-00003">
        <label>19.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Korhonen</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Wang</surname>
              <given-names>Y.</given-names>
            </name>
          </person-group>
          <article-title>Effect of Packet Size on Loss Rate and Delay in Wireless Links</article-title>
          <source>Proceedings of IEEE Wireless Communications and Networking Conference</source>
          <conf-loc>New Orleans, FL, USA</conf-loc>
          <conf-date>13–17 March 2005</conf-date>
          <fpage>1608</fpage>
          <lpage>1613</lpage>
        </citation>
      </ref>
      <ref id="B20-jsan-01-00003">
        <label>20.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Pekhteryev</surname>
              <given-names>G.</given-names>
            </name>
            <name>
              <surname>Sahinoglu</surname>
              <given-names>Z.</given-names>
            </name>
            <name>
              <surname>Orlik</surname>
              <given-names>P.</given-names>
            </name>
            <name>
              <surname>Bhatti</surname>
              <given-names>G.</given-names>
            </name>
          </person-group>
          <article-title>Image Transmission over IEEE 802.15.4 and ZigBee Networks</article-title>
          <source>Proceedings of IEEE International Symposium on Circuits and Systems</source>
          <conf-loc>Kobe, Japan</conf-loc>
          <conf-date>23–26 May 2005</conf-date>
          <fpage>539</fpage>
          <lpage>3542</lpage>
        </citation>
      </ref>
      <ref id="B21-jsan-01-00003">
        <label>21.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Lecuire</surname>
              <given-names>V.</given-names>
            </name>
            <name>
              <surname>Duran-Faundez</surname>
              <given-names>C.</given-names>
            </name>
            <name>
              <surname>Krommenacker</surname>
              <given-names>N.</given-names>
            </name>
          </person-group>
          <article-title>Energy-efficient image transmission in sensor networks</article-title>
          <source>Int. J. Sens. Netw.</source>
          <year>2008</year>
          <volume>4</volume>
          <fpage>37</fpage>
          <lpage>47</lpage>
          <pub-id pub-id-type="doi">10.1504/IJSNET.2008.019250</pub-id>
        </citation>
      </ref>
      <ref id="B22-jsan-01-00003">
        <label>22.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Qaisar</surname>
              <given-names>S.</given-names>
            </name>
            <name>
              <surname>Radha</surname>
              <given-names>H.</given-names>
            </name>
          </person-group>
          <article-title>Multipath Multi-stream Distributed Reliable Video Delivery in Wireless Sensor Networks</article-title>
          <source>Proceedings of Conference of Information Sciences and Systems</source>
          <conf-loc>Baltimore, MA, USA</conf-loc>
          <conf-date>18–20 March 2009</conf-date>
          <fpage>207</fpage>
          <lpage>212</lpage>
        </citation>
      </ref>
      <ref id="B23-jsan-01-00003">
        <label>23.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Liang</surname>
              <given-names>Y.</given-names>
            </name>
            <name>
              <surname>Peng</surname>
              <given-names>W.</given-names>
            </name>
          </person-group>
          <article-title>Minimizing energy consumptions in Wireless sensor networks via two-modal transmission</article-title>
          <source>ACM SIGCOMM Comput. Commun. Rev.</source>
          <year>2010</year>
          <volume>40</volume>
          <fpage>12</fpage>
          <lpage>18</lpage>
          <pub-id pub-id-type="doi">10.1145/1764873.1764876</pub-id>
        </citation>
      </ref>
      <ref id="B24-jsan-01-00003">
        <label>24.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Demirkol</surname>
              <given-names>I.</given-names>
            </name>
            <name>
              <surname>Ersoy</surname>
              <given-names>C.</given-names>
            </name>
            <name>
              <surname>Alagöz</surname>
              <given-names>F.</given-names>
            </name>
          </person-group>
          <article-title>MAC protocols for wireless sensor networks: A survey</article-title>
          <source>IEEE Commun. Mag.</source>
          <year>2006</year>
          <volume>44</volume>
          <fpage>115</fpage>
          <lpage>121</lpage>
        </citation>
      </ref>
      <ref id="B25-jsan-01-00003">
        <label>25.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Garcia-Sanchez</surname>
              <given-names>A.-J.</given-names>
            </name>
            <name>
              <surname>Garcia-Sanchez</surname>
              <given-names>F.</given-names>
            </name>
            <name>
              <surname>Garcia-Haro</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Losilla</surname>
              <given-names>F.</given-names>
            </name>
          </person-group>
          <article-title>A cross-layer solution for enabling real-time video transmission over IEEE 802.15.4 networks</article-title>
          <source>Multim. Tools App.</source>
          <year>2011</year>
          <volume>51</volume>
          <fpage>1069</fpage>
          <lpage>1104</lpage>
          <pub-id pub-id-type="doi">10.1007/s11042-010-0460-z</pub-id>
        </citation>
      </ref>
      <ref id="B26-jsan-01-00003">
        <label>26.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Han</surname>
              <given-names>B.</given-names>
            </name>
            <name>
              <surname>Lee</surname>
              <given-names>S.</given-names>
            </name>
          </person-group>
          <article-title>Efficient Packet Error Rate Estimation in Wireless Networks</article-title>
          <source>Proceedings of Conference on Testbeds and Research Infrastructure for the Development of Networks and Communities</source>
          <conf-loc>Orlando, FL, USA</conf-loc>
          <conf-date>21–23 May 2007</conf-date>
          <fpage>1</fpage>
          <lpage>9</lpage>
        </citation>
      </ref>
      <ref id="B27-jsan-01-00003">
        <label>27.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Dunkels</surname>
              <given-names>A.</given-names>
            </name>
            <name>
              <surname>Alonso</surname>
              <given-names>J.</given-names>
            </name>
            <name>
              <surname>Voigt</surname>
              <given-names>T.</given-names>
            </name>
            <name>
              <surname>Ritter</surname>
              <given-names>H.</given-names>
            </name>
          </person-group>
          <article-title>Distributed TCP Caching for Wireless Sensor Networks</article-title>
          <source>Proceedings of Annual Mediterranean Ad Hoc Networking Workshop</source>
          <conf-loc>Bodrum, Turkey</conf-loc>
          <conf-date>27–30 June 2004</conf-date>
          <fpage>1</fpage>
          <lpage>11</lpage>
        </citation>
      </ref>
      <ref id="B28-jsan-01-00003">
        <label>28.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Shon</surname>
              <given-names>T.</given-names>
            </name>
            <name>
              <surname>Choi</surname>
              <given-names>H.</given-names>
            </name>
          </person-group>
          <article-title>Towards the implementation of reliable data transmission for 802.15.4-based wireless sensor networks</article-title>
          <source>Lecture Notes Comput. Sci.</source>
          <year>2008</year>
          <volume>5061</volume>
          <fpage>363</fpage>
          <lpage>372</lpage>
          <pub-id pub-id-type="doi">10.1007/978-3-540-69293-5_29</pub-id>
        </citation>
      </ref>
      <ref id="B29-jsan-01-00003">
        <label>29.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Chew</surname>
              <given-names>L.</given-names>
            </name>
            <name>
              <surname>Ang</surname>
              <given-names>L.-M.</given-names>
            </name>
            <name>
              <surname>Seng</surname>
              <given-names>K.</given-names>
            </name>
          </person-group>
          <article-title>Survey of Image Compression Algorithms in Wireless Sensor Networks</article-title>
          <source>Proceedings of International Symposium on Information Technology</source>
          <conf-loc>Kuala Lumpur, Malaysia</conf-loc>
          <conf-date>26–28 August 2008</conf-date>
          <fpage>1</fpage>
          <lpage>9</lpage>
        </citation>
      </ref>
      <ref id="B30-jsan-01-00003">
        <label>30.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Antonini</surname>
              <given-names>M.</given-names>
            </name>
            <name>
              <surname>Barlaud</surname>
              <given-names>M.</given-names>
            </name>
            <name>
              <surname>Mathieu</surname>
              <given-names>P.</given-names>
            </name>
            <name>
              <surname>Daubechies</surname>
              <given-names>I.</given-names>
            </name>
          </person-group>
          <article-title>Image coding using wavelet transform</article-title>
          <source>IEEE Trans. Image Process.</source>
          <year>1992</year>
          <volume>1</volume>
          <fpage>205</fpage>
          <lpage>220</lpage>
          <pub-id pub-id-type="doi">10.1109/83.136597</pub-id>
        </citation>
      </ref>
      <ref id="B31-jsan-01-00003">
        <label>31.</label>
        <citation citation-type="confproc">
          <person-group person-group-type="author">
            <name>
              <surname>Lee</surname>
              <given-names>D.</given-names>
            </name>
            <name>
              <surname>Dey</surname>
              <given-names>S.</given-names>
            </name>
          </person-group>
          <article-title>Adaptive and Energy Efficient Wavelet Image Compression for Mobile Multimedia Data Services</article-title>
          <source>Proceedings of IEEE International Conference on Communications</source>
          <conf-loc>New York, USA</conf-loc>
          <conf-date>28 April-2 May 2002</conf-date>
          <fpage>2484</fpage>
          <lpage>2490</lpage>
        </citation>
      </ref>
      <ref id="B32-jsan-01-00003">
        <label>32.</label>
        <citation citation-type="journal">
          <person-group person-group-type="author">
            <name>
              <surname>Duran-Faundez</surname>
              <given-names>C.</given-names>
            </name>
            <name>
              <surname>Lecuire</surname>
              <given-names>V.</given-names>
            </name>
            <name>
              <surname>Lepage</surname>
              <given-names>F.</given-names>
            </name>
          </person-group>
          <article-title>Tiny block-size coding for energy-efficient image compression and communication in wireless camera sensor networks</article-title>
          <source>Signal Process. Image Commun.</source>
          <year>2011</year>
          <volume>26</volume>
          <fpage>466</fpage>
          <lpage>481</lpage>
          <pub-id pub-id-type="doi">10.1016/j.image.2011.07.005</pub-id>
        </citation>
      </ref>
    </ref-list>
  </back>
</article>
