Next Article in Journal
An Optimized Fuzzy Logic Control Model Based on a Strategy for the Learning of Membership Functions in an Indoor Environment
Next Article in Special Issue
A Cost-Effective Air Quality Supervision Solution for Enhanced Living Environments through the Internet of Things
Previous Article in Journal
Small-Signal Stability Analysis of Multi-Terminal DC Grids
Previous Article in Special Issue
Embedded Microcontroller with a CCD Camera as a Digital Lighting Control System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Wireless Sensor Networks for Smart Homes: A Fuzzy-Based Solution for an Energy-Effective Duty Cycle

by
Giovanni Pau
* and
Valerio Mario Salerno
Faculty of Engineering and Architecture, Kore University of Enna, 94100 Enna, Italy
*
Author to whom correspondence should be addressed.
Electronics 2019, 8(2), 131; https://doi.org/10.3390/electronics8020131
Submission received: 23 December 2018 / Revised: 21 January 2019 / Accepted: 23 January 2019 / Published: 27 January 2019

Abstract

:
This paper introduces a fuzzy-based method that, according to the ratio of Throughput to Workload and the battery level, manages the sleeping time of devices in Wireless Sensor Networks (WSNs) for smart homes. The purpose of this work is a system that can be executed on off-the-shelf hardware and offers enhanced performance confronted with other approaches. The challenge here is to achieve a practical method that reaches the target while bypassing complex and computationally expensive solutions, which would diminish the possible applicability of the method in real scenarios. The retrieved results prove that the proposed approach outperforms other solutions, significantly prolonging the life of battery-powered wireless devices with also satisfactory values of the ratio Throughput to Workload. Besides, a proof-of-concept implementation on off-the-shelf devices confirms that the proposed method does not expect powerful hardware and can be surely implemented on a low-cost device.

1. Introduction

In the last few years, technological progress in the wireless communication, energy consumption, and chip miniaturization have facilitated the growth and the deployment of original applications based on Wireless Sensor Networks (WSNs) [1,2,3,4,5]. Several works have been published in the research fields related to WSNs, and many architectures [6,7,8] and protocols [9,10,11] have been produced. Typical WSNs are not complicated monitoring systems, whose applications embrace environment monitoring [12], infrastructure security [13], industrial sensing [14] and intelligent transportation systems [15]. In these WSNs, sensors collect the demanded information, frequently according to a fixed temporal schedule, and transmit it to the sink, which interfaces with a server or a computer. The nodes of a WSN are typically battery-powered and equipped with low-performance processors and small memories to decrease the power requirements. The power consumption represents a crucial problem in WSNs. For instance, a battery-operated sensor device that wakes up once every few minutes to examine an environmental parameter requires to spend as little power as possible to lessen the battery replacement. In several instances, nodes can be disposed of in harsh conditions, such as underwater or underground, where the battery replacement could be a tricky procedure. Accordingly, the extension of the network lifetime is a critical issue.
In generical home automation, WSNs serve several home device controllers, such as HVAC, lights, doors, and more [16,17,18]. The open problem, in the contemporary transition period, is to adopt those new home automation technologies into already built and furnished houses, minimizing the annoyance during the installation phase. For this reason, the power management is a crucial factor, and despite the vastness of smart homes literature [19,20,21,22,23,24,25], it is still challenging to state that the batteries life issue has been solved.
Recently, two classes of parallel procedures have been utilized to face up the problem related to energy consumption, i.e., power management and energy scavenging methods [26]. The above techniques gain the energy from the monitored environment, e.g., employing photo-voltaic cells [27], vibration or motion-driven micro-electromechanical devices [28], thermoelectric converters [29], or particular radio frequency receivers [30]. Other approaches move intelligence and analytic capacities into the network to achieve better utilization of the limited energy resources at IoT nodes, with fewer transmissions leading to less network load and a higher data yield. This solution is known as edge mining, or data mining that takes place on wireless, battery- powered, smart sensing devices that sit at the edge of the IoT network [31,32,33]. The application of this method reduces the transmissions number but, at the same time, involves various overheads leading to a small additional increase in devices lifetime. On the contrary, power management methods rely on hardware and/or software solutions that momentarily disable those components which are unused or underused. In particular, since the radio part is frequently the most power-hungry characteristic of a WSN node, the appropriate control of the duty cycle is significant to extend the battery life. For instance, the amount of consumed power could be significantly diminished through energy-efficient routing schemes [34,35] to find, among all the possible communication paths, which one lessens the energy consumption. Besides, the nodes can be grouped through a clustering algorithm. In this way, the data obtained by the nodes of a cluster can be aggregated and lessened by the cluster head before being sent, with a consequent energy saving [36,37]. At the data link layer, a Medium Access Control (MAC) protocol can implement energy-efficient methods for managing multiple accesses to the wireless channel. The differences among the existing MAC protocols are moved by the variety of WSN in which they are applied. For instance, several protocols, such as the IEEE 802.15.4 standard [38], regulate the wireless communication of short-range, low-data-rate, and low-power devices. It specifies two working forms: active and sleep. Nodes are active only when they have to communicate, or they presume to accept data. Contrarily, they start the sleep mode, and they switch off their modules to preserve power. At the application layer, regulating the sampling time, i.e., the rate of the environment measurements [39,40], can influence the network lifetime. A high sampling time decreases the energy consumption since few measures are expected, but it also penalizes the reactivity and effectiveness of the WSN, due to the latency in recognizing environmental variations. The adjustment of the sampling time influences also on the data link layer [41,42], because a node can sense the environment only during the active state.
This paper introduces a solution based on fuzzy logic to cope with the energy consumption issue in battery-powered devices composing a WSN for smart homes. In detail, regarding the duty cycle, the sleeping time of network nodes is dynamically adjusted by a Fuzzy Logic Controller (FLC). It is useful to note that the approach proposed in this work is an extension of the excellent solution presented in [43]. In this paper, not only a different type of membership function is used in the FLC but, mainly, the target here is to realize a practical method that reaches the goal while avoiding difficult and computationally costly solutions, such as the Particle Swarm Optimization (PSO), which would decrease the possible applicability of the procedure in real situations. The objective is to develop a proof-of-concept implementation on off-the-shelf devices, highlighting that the suggested method does not demand compelling hardware and can be openly realized on low-cost devices. The application scenario represents another difference. An Industrial WSN is considered in [43] while a WSN for smart homes is regarded in this work. It is well-known that both scenarios have different requirement concerning the duty cycle of battery-powered devices composing the wireless network. Fuzzy logic has been chosen even in this paper because the use of rule-based FLCs expedites the development of multi-criteria control policies [44,45]. Fuzzy logic can perform real-time settlements even with incomplete information while other common control systems are based on a precise characterization of the environment. Considering that fuzzy-based systems can quickly examine the linguistic rules, they can be expressly applicable in numerous scenarios, such as WSNs employment, including smart homes. For instance, the adoption of smart tuning and setting methods for FLCs can increase the energy preservations in a WSN. As a consequence, the FLCs can be the appropriate option to represent a procedure for energy saving to lengthen network’s lifetime.
In this research field, a fuzzy logic system is introduced in [46] whose goal is to preserve the battery life of WSN nodes and to produce an active sensing network. The FLC suggested in [46] assists efficiently to ascertain the on/off state for active/sleep mode of sensor nodes. Simulation results prove that the proposed system is energy efficient. Considering that, usually, in a WSN most of the energy is spent in data communication to the sink and that, in recent years, several researchers have offered mobile sink methods to lessen the energy consumption, the authors of [47] present an approach in which a fuzzy-based mechanism administers the movement of the sink. Simulation results are compared with a method having a stationary base station, and results emphasize that the strategy recommended by the authors reduces the energy consumption and, thereby, enhances the lifetime of the WSN. Another approach, based on a distributed fuzzy logic control method, is offered in [48]. This fuzzy logic engine is developed on each node of the wireless network to decrease the number of message transmissions. Even in this case, the procedure proposed by the authors is compared with others in the literature, and the results are promising concerning energy consumption. Another method is proposed in [49] where the authors introduce a novel solution for cluster formation in WSNs that uses fuzzy logic to improve the network lifetime. The obtained results reveal that the protocol proposed by the authors advances the overall network lifetime. Another fuzzy-based clustering solution is introduced in [50] where the main aim is to extend the lifetime of a WSN. The obtained results reveal that this approach also resolves the ineffectual utilization of the remaining energy in sensor nodes efficiently with the cooperation of the proper cluster head selection method. The authors of [51] propose a fuzzy-based algorithm to increase the network lifetime and to enhance the energy efficiency of WSNs. The sectors of the network are formed, through a fuzzy inference system, taking into account the residual energy of nodes and the proximities to the base station. Simulation results are promising since the proposed solution can extend the total number of live nodes and increasing the lifetime of nodes on each round. Another fuzzy-based approach that deals with the power management in WSNs is proposed in [52]. In this case, the goal is to adjust the duty cycle of the sensing node dynamically. The experimental results highlight that the proposed method outperforms other comparing methods concerning the residual battery energy and exercised duty cycle.
The paper is organized as follows. The system architecture is described in Section 2, while the fuzzy-based approach and the considered membership functions are introduced in Section 3. The performance gained by the proposed method, from simulations and real testbed, is presented In Section 4. Lastly, in Section 5, the paper is summed up reporting conclusions.

2. System Model

Widespread networks of inexpensive wireless sensor devices concede a valuable opportunity to check more precisely the surrounding physical phenomena’s when compared to conventional sensing methods. WSNs for smart homes are distinguished by scenarios in which tiny devices, like actuators and sensors, use most of their time in a sleep state and wake up with a given periodicity or when a critical event occurs. The WSN has its design restrictions, correlated with the purpose and the features of the installation context. The latter delimit the extension of the network, the deployment scheme, and the network topology. The network structure considered in this paper is represented in Figure 1 and is composed of several Home Monitoring Cells (HMCs) based on the IEEE 802.15.4 wireless standard [38].
Two network topologies are maintained by the IEEE 802.15.4, i.e., peer-to-peer and star. Several purposes would typically employ a one-hop star topology. On the contrary, the peer-to-peer topology can be adopted for more elaborate arrangements, like the cluster-tree and mesh networking topologies, and can be the favored option for purposes such as smart homes. An IEEE 802.15.4 network can operate either in beacon-enabled or in non-beacon-enabled mode. In the former method, the transmission is managed by a network coordinator, which delivers regular beacons for synchronization and correlation procedures. In the non-beacon-enabled mode, there are no regular beacons, but the coordinator may unicast beacons to a soliciting device. The transmission among devices in the non-beacon-enabled mode practices the un-slotted CSMA (Carrier Sensing Multiple Access) for decentralized access. Furthermore, in the beacon-enabled method, the standard permits the energy saving by fulfilling the duty cycling, so that all nodes can periodically go to sleep. For this reason, in this paper, the IEEE 802.15.4 network works in the beacon-enabled mode.
The wireless network for smart home considered in this work is constituted by all the HMCs within which various devices are dealing with a specific task. Considering the IEEE 802.15.4 standard, Reduced Function Device (RFD) nodes evaluate a physical parameter of the monitored environment, such as temperature, humidity, light, smoke density, carbon monoxide, and so on. Suddenly, they send the acquired data to their Full Function Device (FFD) nodes. An FFD node could be a ZigBee router [53]. It forwards data obtained by RFD nodes to the First Pan Coordinator (FPC) that processes information and sends proper command messages to the sensor nodes. It is helpful to note that in the IEEE 802.15.4 the transmission range changes considerably based on the nature of the path that must be in a line of sight (LOS) for the most part. The transmit power level and receiver sensitivity are also characteristics to take into account. Under the favorable conditions, the range can be as high as 1000 m with a clear outdoor path. In this case, proper hardware with range extender is needed to improve the receiver sensitivity and increase the total link budget, enabling up to four times the range of each node in the network. For instance, considering ZigBee PRO [54], sub GHz channels transmission ranges up to 1 km. Most applications cover a shorter range of 10–75 m. Anyhow, it is essential to take into account the energy consumption of battery-powered wireless devices. Accordingly, the Fuzzy Controller presented in this paper, detailed in Section 3, can be a proper solution to ensure adequate power consumption management. This module dynamically handles sampling times to increase the sleeping periods of sensor nodes. In this way, it is feasible to increase energy savings and, at the same time, prolong the batteries and network life-cycle.

3. Fuzzy Controller

In smart homes applications, the battery-powered end nodes discover information on the environment in which they are located continually. Hence, it can be advantageous to develop an energy control model to guarantee network versatility, adjustability, and scalability. Besides, this mechanism must be able to optimize power resources and, at the same time, to increase the life-cycle of devices. In the WSN considered in this paper, it is not reasonable to define the behavior of all nodes preventively since they are often employed to monitor sporadic events. Nevertheless, data generated by WSNs can be considered as periodic, as stated in [55].
In this paper, a smart approach is proposed to adjust the sleeping time of battery-powered field devices in an IEEE 802.15.4 network for smart homes, with the aim of diminishing their power consumption. Each RFD transmits information about its working conditions to the FPC when its sleeping time is expired. The FPC is a unique device developed adequately for performing computational tasks. Anyhow, it is useful to remark that, generally, in an IEEE 802.15.4-based network, the FPC nodes are not always battery-powered.
A comprehensive illustration of the system introduced in this work is pictured in Figure 2. Although the representation is simplistic and generic, it shows explicitly what are the input contents of the FLC and also the one that returns as output. It is valuable to mention that the proposed FLC is applied to save the battery life and to have an efficient and cost-effective sensing network to monitor the event of interest in a smart home. The arrangement of the FLC displayed in Figure 2 is simplistic because it enables both a straightforward implementation on real devices and, mainly, a low computational complexity. The proposed system comprises small data exchanges, as the data to be transferred to the FLC are the ratio of Throughput to Workload ( T h / W l ) and the battery level of the device. This situation involves a lower computational cost than, for instance, other approaches based on more complex fuzzy controllers (such as Type-2 fuzzy or Petri net), other methods that utilize different controllers in parallel (for instance, a FLC in each cluster in the network), or other solutions that consider several parameters (more than two) as the inputs to the controller. These qualities of the Fuzzy Controller not only concede to execute the proposed approach on low-cost hardware but are also are expected to be advantageous concerning lower data processing times and lower command actuation rates for the fuzzy logic controllers.
As shown in Figure 2, in the proposed solution the FPC node employs an FLC to ascertain the new values of the s l e e p i n g _ t i m e of each RFD. The FLC settles the s l e e p i n g _ t i m e of the RFD taking into account the ratio of Throughput to Workload ( T h / W l ) and the b a t t e r y _ l e v e l . The throughput [56] (Equation (1)) is the quantity of data transferred from one node to another in a specified measure of time, i.e., how many packets are transferred over some time.
T h r o u g h p u t = d a t a t r a n s f e r r e d t i m e i n t e r v a l
On the contrary, the workload (Equation (2)) is the quantity of data that a device has to transfer in a defined measure of time. Then, the workload is the number of packets that the device has to send. The T h / W l returns a percentage value due to the ratio of the number of packets that are obtained at the target and the number of packets that have been transmitted. If the T h / W l value is 100% then all the transferred packets have reached the destination.
W o r k l o a d = d a t a t o t r a n s f e r t i m e i n t e r v a l

3.1. Used Membership Functions

A Membership Function (MF) is a graphical representation that determines how every location in the input area is outlined to a degree of membership between 0 and 1. The input range is seldom mentioned as the universe of discourse. An MF can possess various aspects. Nevertheless, in this article, trapezoidal MFs have been granted. It is necessary to describe the scientific illustration of these MFs (available in the literature) concisely as they are the basis for the explanation of the inference rules employed by the FLC introduced in this work.
Considering a general variable x containing a series of values from the minimum to the maximum that the variable itself can arrogate, each MF can be realized, for instance, in a generic trapezoidal-shaped way [57]. In detail, considering the Figure 3, this MF is defined by a lower limit a, an upper one d, a lower support limit b, and an upper support one c, where a < b < c < d :
μ A ( x ) = 0 if   ( x < z )   or   ( x > d ) x a b a if   a x b 1 if   b x c d x d c if   c x d

3.2. Description of the FLC

The FLC introduced in this paper considers three MFs (Low, Medium, High) for the input variables. These functions fuzzify the crisp inputs, while the ranges of which are:
  • T h / W l : [ 0 , 100 ] (percentage);
  • b a t t e r y _ l e v e l : [ 0 , 1024 ] , where 0 is the lowest level of battery while 1024 is the highest one and it is the maximum value at the output of a 10-bit AD converter (with an appropriate electronic signal conditioning circuit.
Furthermore, three MFs (Low, Medium, High) are applied for the s l e e p i n g _ t i m e . In this case, the range of the crisp values of this output variable is:
  • s l e e p i n g _ t i m e : [ 0 , 10 ] s a m p l i n g _ t i m e (seconds).
where the s a m p l i n g _ t i m e value is a constant value defined at design time for each field device. Trapezoidal MFs of the T h / W l , the b a t t e r y _ l e v e l and the s l e e p i n g _ t i m e are depicted in Figure 4, where the degree of membership is represented by normalized values [ 0 , 1 ] . Moreover, considering the Equation (3), the different values of the variables are depicted in Table 1.
As presented in Table 2, the output value is discovered through 9 fuzzy rules. They are based on the IF-THEN statement of standard programming languages. For instance, regarding rule 5, if the T h / W l is Medium and b a t t e r y _ l e v e l is High, then the s l e e p i n g _ t i m e will be Low. The outputs of the inference mechanism are fuzzy output variables. The FLC needs to turn its internal fuzzy output variables toward crisp values, through the defuzzification method, so that the system can practice these variables. The defuzzification can be performed in several ways. In this paper, the Centroid of Area (COA) method [58] has been chosen.

4. Performance Assessment

4.1. Model Development

Several assessments have been conducted to compare the proposed method with another similar in the literature. The method of Wang et al. [46] has been taken into account. In the wireless network, both the FPC, FFD, and RFD nodes are provided with a micro-controller and a wireless module IEEE 802.15.4 compliant. The values used in the simulations have been deduced from the following devices:
  • 16 bit MCU—Microchip PIC24F family (PIC24FJ256GB108) [59];
  • MRF24J40MB Radio Frequency Transceiver IEEE 802.15.4 2.4 GHz [60].
The simulations have been administered with a model built in Simulink/Matlab pictured in Figure 5. The main aim of this model is to simulate the procedure between a coordinator and a sensor. Precisely, the Sensor Node block accomplishes the battery waste of the RFD node. The s l e e p i n g _ t i m e , the transmission power ( T X P o w e r ) and the power in receiving ( R X P o w e r ) are earned as inputs of this block through a feedback loop system. This block returns two output variables ( T h / W l and b a t t e r y _ l e v e l ) that are employed as input variables by the FLC.
It is useful to remark that the actions of the micro-controller and a joined sensor have a low impact on battery consumption. Their power demand is evaluated at 50 m A ( M C P C ). This value has been measured in an electronic board distinguished by the PIC24FJ256GB108 micro-controller and a DS18B20 [61] sensor. Therefore, the energy waste is related to the working state of the device. When the device is sleeping, the battery consumption is 50 mA + 5 µA (5 µA is the power consumption of the IEEE 802.15.4 module in sleeping mode, obtained from the datasheet [60]). Contrarily, when the device is transmitting, the transmission power profoundly influences energy consumption. The battery loss trend is evaluated concerning the sleeping time through the Simulink/StateFlow environment. This tool practices flow charts and finite state machines to describe the evolution of a system. The Chart section, created in Simulink/StateFlow, related to the operation of the battery loss, is pictured in Figure 6.
Considering a 10.8 V lithium-ion battery in the performance evaluation, the maximum level of the battery when it is completely energized is 3100 mAh ( F u l l B a t t e r y ), while the comparable digital value, acquired through a 10-bit AD Converter, is 1024 ( M a x D V ). It is significant to perceive that when the device is in sleeping mode, the power consumption is largely due to the micro-controller and the sensor since the radio frequency transceiver consumption is negligible, as shown also in [43,62,63,64,65]. In this case, the consumption is 0.0046 bit/s. The following relation determines this value:
S l e e p M o d e c o n s u m p t i o n = M C P C · M a x D V F u l l B a t t e r y
where the number of seconds in an hour is 3600. By employing the Equation (4) the power consumption of each device in sleeping mode is:
S l e e p M o d e c o n s u m p t i o n = 50 × 1024 3100 × 3600 = 0.0046
In case of maximum transmission power (0 dB) the radio frequency transceiver consumption is 130 mA [60]. As shown in Figure 5 the TXPower value is obtained as follows:
T r a n s m i s s i o n M o d e c o n s u m p t i o n = 130 × 1024 3100 × 3600 = 0.0119
The evolution of StateFlow is established to 1 second. In the transmission mode, the system is unmistakably in his A c t i v e S t a t e , so able to receive. It is required to check the receiving power, 19 mA [60], then the RXPower value is accomplished as follows:
R e c e i v i n g M o d e c o n s u m p t i o n = 19 × 1024 3100 × 3600 = 0.0017
The idle state of sensor nodes is not supposed. Idle listening would be another source of energy loss because a sensor node starts this mode when is listening for traffic that is not sent. Lastly, the proposed FLC gets the T h / W l and b a t t e r y _ l e v e l as input variables and dynamically produces the s l e e p i n g _ t i m e . Anyhow, beyond the battery considered in this paper, it is necessary to note that the proposed approach can be used with any battery, concerning voltage and capacity.

4.2. Obtained Results

Several simulations have been carried out to prove the proposed solution. Both the ratio of Throughput to Workload ( T h / W l ) and the battery level have been assessed. The battery level during a simulation period of 48 h is depicted in Figure 7. Even the results achieved without FLC have been taken into account, i.e., assuming that the transmission power (0 dB) and the sleeping time (equal to 1, coinciding with the sampling time) are both fixed. Figure 7 reveals that the proposed fuzzy-based approach reaches a real power consumption reduction and, consequently, it lengthens the device lifetime. Using trapezoidal MFs, the battery is fully discharged after about 169,950 s (47 h and 21 min). In the case without the FLC, the battery is fully discharged much earlier, after about 120,000 s, i.e., after 33 h and 50 min. Hence, it is evident that the trapezoidal MFS has obtained concrete improvement respect to the case without FLC. Using the approach proposed by Wang et al. the battery is fully discharged after about 155,600 s (43 h and 22 min). Even in this case, it is proved that the performance of the proposed fuzzy-based solution is better than the one proposed by Wang et al.
During the simulation period of 48 h, the ratio of T h / W l has been assessed, and its performance is represented in Figure 8. As it is possible to recognize, practicing the fuzzy-based approach proposed in this work the T h / W l flutters between about 20% and 70%. Considering the method suggested by Wang et al. the T h / W l range differs from 25% to 59% on average. On the contrary, the values collected without FLC fluctuate from 31% to 77%, representing the soundest results concerning the ratio of T h / W l but at the expense of the battery consumption. Nevertheless, it is essential to remark that the values obtained with the proposed FLC and even those measured with the approach of Wang et al. are satisfactory particularly in those application fields in smart homes with a reasonable variety of data, e.g., temperature, humidity or light detection. In these cases, the most relevant goal is to increase, as much as possible, the battery life rather than guaranteeing high T h / W l performance. Instead, the T h / W l behavior achieved with the proposed FLC would not be appropriate in a context characterized by real-time constraints, in which the s l e e p i n g _ t i m e of network nodes should not be increased too much to obtain and ensure high values of the ratio T h / W l .
A real testbed scenario has been effectuated to prove the obtained results also on physical hardware devices. This situation allows demonstrating both the facility of implementation of the fuzzy-based approach proposed in this paper and its effectiveness. The hardware boards used in the considered IEEE 802.15.4 network for smart home use the Microchip PIC24F [59] and the MRF24J40MB IEEE 802.15.4 Radio Frequency Transceiver [60]. The Microchip PIC24F integrates the control characteristics of a microcontroller unit with the processing and throughput capacities of a digital signal processor. This 16-bit microcontroller has a maximum processing power of 16 MIPS and grants multiple serial ports (3xI2C, 3xSPI), 4xUARTS and 23 independent timers. The availability of 16 kB of RAM memory for buffering, of up to 256 kB of enhanced flash program memory, and other features make this microcontroller very suitable for low power (<100 nA standby current), embedded control and monitoring applications.The considered WSN has been a star network with one central network controller and 4 sensor nodes that communicate directly with the network controller. Considering the MRF24J40MB at 2.4 GHz operating mode, the data rate is 250 kbps, while the initial s l e e p i n g _ t i m e has been set to 5 s. The fuzzy controller, based on trapezoidal MFs, has been realized in the micro-controller PIC24F of the network controller, in C language, through the embedded code generator included in Matlab/Simulink. The network controller gets the battery level from each field device and, then, transmits a frame to them with the indication of the sleeping time.
The retrieved results, summed in Table 3, are comparable to those collected through the Matlab simulations. It is useful to note that the data acquired in the testbed are lower because the power wasted by the devices in the idle mode has not been taken into account during the simulations, as stated previously. Nonetheless, using the solution introduced in this paper, the battery life extends considerably compared to both the case without FLC and the method of Wang et al. even in the testbed scenario. These values prove the goodness of the proposed solution and that the purpose of this work is fulfilled. Additionally, the retrieved results reveal that the solution here proposed is flexible and efficient regarding the energy consumption control of battery-powered nodes in WSNs for smart homes that do not require expensive and complicated hardware and so can be implemented on low-cost Commercial Off-The-Shelf (COTS) devices.

5. Conclusions

A fuzzy logic-based mechanism has been introduced in this paper to improve the lifetime of devices in smart homes applications based on WSNs. The fuzzy-based approach presented in this work dynamically adjusts the sleeping time to extend the battery duration of the sensor devices. This paper has proposed a smart approach that couples several technologies (i.e., WSN and fuzzy logic control) to achieve a lightweight but effective solution, implementable on COTS devices, that is proven to provide better performance than other approaches. Simulations results, obtained with Matlab, have been auspicious and confirm that adopting the proposed FLC an ample decrease of the energy consumption is achieved. Regarding the T h / W l , measured values are satisfactory particularly in those application fields with a moderate variation of data where the most important thing is to prolong, as much as possible, the battery life rather than to ensure high T h / W l performance. The workability of the proposed system on real hardware is validated through implementation on a prototyping board based on the Microchip PIC24FJ256GB108 microcontroller [59], a COTS device accessible at affordable price. Experimental results are compliant with simulation ones and confirm the effectiveness of the proposed solution. The potential impact of the proposed approach is broad as, being a non-expensive arrangement to actualize, it can be broadly and efficiently employed in practice. Besides, the suggested approach satisfies several targeted design requests, i.e., scalability, lightweight computation, flexibility, and low cost.

Author Contributions

All authors committed to the development of the paper and contributed to experiences and ideas for the definition of the scenario. Besides, they designed the fuzzy logic controller and performed significant verifications. All authors participated in the writing of the manuscript and performed revisions.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chhaya, L.; Sharma, P.; Bhagwatikar, G.; Kumar, A. Wireless Sensor Network Based Smart Grid Communications: Cyber Attacks, Intrusion Detection System and Topology Control. Electronics 2017, 6, 5. [Google Scholar] [CrossRef]
  2. Depari, A.; Ferrari, P.; Flammini, A.; Rinaldi, S.; Rizzi, M.; Sisinni, E. Development and Evaluation of a WSN for Real-time Structural Health Monitoring and Testing. Procedia Eng. 2014, 87, 680–683. [Google Scholar] [CrossRef] [Green Version]
  3. Zhang, C.; Fu, Y.; Deng, F.; Wei, B.; Wu, X. Methane Gas Density Monitoring and Predicting Based on RFID Sensor Tag and CNN Algorithm. Electronics 2018, 7, 69. [Google Scholar] [CrossRef]
  4. Pan, J.S.; Kong, L.; Sung, T.W.; Tsai, P.W.; Vaclav, S. α-Fraction First Strategy for Hierarchical Model in Wireless Sensor Networks. J. Internet Technol. 2017, 19, 1717–1726. [Google Scholar]
  5. Zhang, J.; Liu, S.J.; Tsai, P.W.; Zou, F.M.; Ji, X.R. Directional virtual backbone based data aggregation scheme for Wireless Visual Sensor Networks. PLoS ONE 2018, 13, 1–27. [Google Scholar] [CrossRef] [PubMed]
  6. Neves, P.A.; Rodrigues, J.J.; Chen, M.; Vasilakos, A.V. A multi-channel architecture for IPv6-enabled wireless sensor and actuator networks featuring PnP support. J. Netw. Comput. Appl. 2014, 37, 12–24. [Google Scholar] [CrossRef]
  7. Lee, D.K.; Kim, T.H.; Jeong, S.Y.; Kang, S.J. A three-tier middleware architecture supporting bidirectional location tracking of numerous mobile nodes under legacy WSN environment. J. Syst. Arch. 2011, 57, 735–748. [Google Scholar] [CrossRef]
  8. Dias, G.M.; Margi, C.B.; de Oliveira, F.C.P.; Bellalta, B. Cloud-Empowered, Self-Managing Wireless Sensor Networks: Interconnecting Management Operations at the Application Layer. IEEE Consum. Electron. Mag. 2019, 8, 55–60. [Google Scholar] [CrossRef]
  9. Li, Y.; Bartos, R. A survey of protocols for Intermittently Connected Delay-Tolerant Wireless Sensor Networks. J. Netw. Comput. Appl. 2014, 41, 411–423. [Google Scholar] [CrossRef] [Green Version]
  10. Buratti, C.; Conti, A.; Dardari, D.; Verdone, R. An Overview on Wireless Sensor Networks Technology and Evolution. Sensors 2009, 9, 6869–6896. [Google Scholar] [CrossRef] [Green Version]
  11. Dhiviya, S.; Sariga, A.; Sujatha, P. Survey on WSN Using Clustering. In Proceedings of the 2017 Second International Conference on Recent Trends and Challenges in Computational Models (ICRTCCM), Tindivanam, India, 3–4 Feburary 2017; pp. 121–125. [Google Scholar]
  12. Shkurti, L.; Bajrami, X.; Canhasi, E.; Limani, B.; Krrabaj, S.; Hulaj, A. Development of ambient environmental monitoring system through wireless sensor network (WSN) using NodeMCU and “WSN monitoring”. In Proceedings of the 2017 6th Mediterranean Conference on Embedded Computing (MECO), Bar, Montenegro, 11–15 June 2017; pp. 1–5. [Google Scholar]
  13. Chen, J.; DÃ az, M.; Llopis, L.; Rubio, B.; Troya, J.M. A survey on quality of service support in wireless sensor and actor networks: Requirements and challenges in the context of critical infrastructure protection. J. Netw. Comput. Appl. 2011, 34, 1225–1239. [Google Scholar] [CrossRef]
  14. Li, H.; Savkin, A.V. Wireless Sensor Network Based Navigation of Micro Flying Robots in the Industrial Internet of Things. IEEE Trans. Ind. Inf. 2018, 14, 3524–3533. [Google Scholar] [CrossRef]
  15. Srinivasan, R.; Sharmili, A.; Saravanan, S.; Jayaprakash, D. Smart vehicles with everything. In Proceedings of the 2016 2nd International Conference on Contemporary Computing and Informatics (IC3I), Noida, India, 14–17 December 2016; pp. 400–403. [Google Scholar]
  16. Vinay Sagar, K.; Kusuma, S. Home automation using internet of things. Int. Res. J. Eng. Technol. 2015, 2, 1965–1970. [Google Scholar]
  17. Salerno, V.; Rabbeni, G. An extreme learning machine approach to effective energy disaggregation. Electronics 2018, 7, 235. [Google Scholar] [CrossRef]
  18. Kodali, R.K.; Jain, V.; Bose, S.; Boppana, L. IoT based smart security and home automation system. In Proceedings of the 2016 International Conference on Computing, Communication and Automation (ICCCA), Greater Noida, India, 29–30 April 2016; pp. 1286–1289. [Google Scholar]
  19. Han, J.; Choi, C.S.; Park, W.K.; Lee, I.; Kim, S.H. Smart home energy management system including renewable energy based on ZigBee and PLC. IEEE Trans. Consum. Electron. 2014, 60, 198–202. [Google Scholar] [CrossRef]
  20. Teixidó, P.; Gómez-Galán, J.; Gómez-Bravo, F.; Sánchez-Rodríguez, T.; Alcina, J.; Aponte, J. Low-Power Low-Cost Wireless Flood Sensor for Smart Home Systems. Sensors 2018, 18, 3817. [Google Scholar] [CrossRef] [PubMed]
  21. Nair, K.; Kulkarni, J.; Warde, M.; Dave, Z.; Rawalgaonkar, V.; Gore, G.; Joshi, J. Optimizing power consumption in iot based wireless sensor networks using Bluetooth Low Energy. In Proceedings of the 2015 International Conference on Green Computing and Internet of Things (ICGCIoT), Noida, India, 8–10 Octorber 2015; pp. 589–593. [Google Scholar]
  22. Hautamäki, V.; Siniscalchi, S.M.; Behravan, H.; Salerno, V.M.; Kukanov, I. Boosting universal speech attributes classification with deep neural network for foreign accent characterization. In Proceedings of the Sixteenth Annual Conference of the International Speech Communication Association, Dresden, Germany, 6–10 September 2015. [Google Scholar]
  23. Froiz-Míguez, I.; Fernández-Caramés, T.; Fraga-Lamas, P.; Castedo, L. Design, implementation and practical evaluation of an IoT home automation system for fog computing applications based on MQTT and ZigBee-WiFi sensor nodes. Sensors 2018, 18, 2660. [Google Scholar] [CrossRef]
  24. Rinaldi, S.; Flammini, A.; Pasetti, M.; Tagliabue, L.C.; Ciribini, A.C.; Zanoni, S. Metrological issues in the integration of heterogeneous lot devices for energy efficiency in cognitive buildings. In Proceedings of the 2018 IEEE International Instrumentation and Measurement Technology Conference (I2MTC), Houston, TX, USA, 14–17 May 2018; pp. 1–6. [Google Scholar]
  25. Touati, Y.; Ali-Cherif, A.; Daachi, B. Optimization Techniques for Energy Consumption in WSNs. Energy Manag. Wirel. Sens. Netw. 2017, 5, 9–22. [Google Scholar]
  26. Faheem, M.; Abbas, M.Z.; Tuna, G.; Gungor, V.C. EDHRP: Energy efficient event driven hybrid routing protocol for densely deployed wireless sensor networks. J. Netw. Comput. Appl. 2015. [Google Scholar] [CrossRef]
  27. Raghunathan, V.; Kansal, A.; Hsu, J.; Friedman, J.; Srivastava, M. Design considerations for solar energy harvesting wireless embedded systems. In Proceedings of the IPSN 2005—Fourth International Symposium on Information Processing in Sensor Networks, Nashville, TN, USA, 19–21 April 2005; pp. 457–462. [Google Scholar]
  28. Torah, R.; Tudor, M.; Patel, K.; Garcia, I.; Beeby, S. Autonomous Low Power Microsystem Powered by Vibration Energy Harvesting. Sensors 2007. [Google Scholar] [CrossRef]
  29. Lhermet, H.; Condemine, C.; Plissonnier, M.; Salot, R.; Audebert, P.; Rosset, M. Efficient Power Management Circuit: From Thermal Energy Harvesting to Above-IC Microbattery Energy Storage. IEEE J. Solid State Circuits 2008, 43, 246–255. [Google Scholar] [CrossRef]
  30. Paing, T.; Shin, J.; Zane, R.; Popovic, Z. Resistor Emulation Approach to Low-Power RF Energy Harvesting. IEEE Trans. Power Electron. 2008, 23, 1494–1501. [Google Scholar] [CrossRef]
  31. Mahmood, A.; Shi, K.; Khatoon, S.; Xiao, M. Data Mining Techniques for Wireless Sensor Networks: A Survey. Int. J. Distrib. Sens. Netw. 2013, 9, 406316. [Google Scholar] [CrossRef]
  32. He, W.; Yang, S.; Yang, L.; Li, P. In-network data processing architecture for energy efficient wireless sensor networks. In Proceedings of the 2015 IEEE 2nd World Forum on Internet of Things (WF-IoT), Milan, Italy, 14–16 December 2015; pp. 299–304. [Google Scholar]
  33. Bhargava, K.; Ivanov, S.; Donnelly, W.; Kulatunga, C. Using Edge Analytics to Improve Data Collection in Precision Dairy Farming. In Proceedings of the 2016 IEEE 41st Conference on Local Computer Networks Workshops (LCN Workshops), Dubai, UAE, 7–10 November 2016; pp. 137–144. [Google Scholar]
  34. Wang, J.; Li, B.; Xia, F.; Kim, C.S.; Kim, J.U. An Energy Efficient Distance-Aware Routing Algorithm with Multiple Mobile Sinks for Wireless Sensor Networks. Sensors 2014, 14, 15163–15181. [Google Scholar] [CrossRef] [PubMed]
  35. Pantazis, N.; Nikolidakis, S.; Vergados, D. Energy-Efficient Routing Protocols in Wireless Sensor Networks: A Survey. Commun. Surv. Tutor. 2013, 15, 551–591. [Google Scholar] [CrossRef]
  36. Abbasi, A.A.; Younis, M. A survey on clustering algorithms for wireless sensor networks. Comput. Commun. 2007, 30, 2826–2841. [Google Scholar] [CrossRef]
  37. Mammu, A.S.K.; Hernandez-Jayo, U.; Sainz, N.; de la Iglesia, I. Cross-Layer Cluster-Based Energy-Efficient Protocol for Wireless Sensor Networks. Sensors 2015, 15, 8314–8336. [Google Scholar] [CrossRef] [PubMed]
  38. IEEE. IEEE Standard for Information Technology-Telecommunications and Information Exchange Between Systems-Local and Metropolitan Area Networks-Specific Requirements Part 15.4: Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks (WPANs); IEEE: Piscataway, NJ, USA, 2006. [Google Scholar]
  39. Yan, J.; Pei, L.; Chen, Z.; Wang, M. Local adaptive sampling for wireless sensor network powered by energy harvesting. Opt. Int. J. Light Electron Opt. 2012, 123, 2195–2197. [Google Scholar] [CrossRef]
  40. Tiberi, U.; Fischione, C.; Johansson, K.; Benedetto, M.D. Energy-efficient sampling of networked control systems over IEEE 802.15.4 wireless networks. Automatica 2013, 49, 712–724. [Google Scholar] [CrossRef] [Green Version]
  41. Tuset-Peiro, P.; Vazquez-Gallego, F.; Alonso-Zarate, J.; Alonso, L.; Vilajosana, X. LPDQ: A self-scheduled TDMA MAC protocol for one-hop dynamic low-power wireless networks. Pervasive Mob. Comput. 2014. [Google Scholar] [CrossRef]
  42. Anchora, L.; Capone, A.; Mighali, V.; Patrono, L.; Simone, F. A novel MAC scheduler to minimize the energy consumption in a Wireless Sensor Network. Ad Hoc Netw. 2014, 16, 88–104. [Google Scholar] [CrossRef]
  43. Collotta, M.; Pau, G.; Maniscalco, V. A Fuzzy Logic Approach by Using Particle Swarm Optimization for Effective Energy Management in IWSNs. IEEE Trans. Ind. Electron. 2017, 64, 9496–9506. [Google Scholar] [CrossRef]
  44. Wang, M.S.; Hsieh, M.F.; Lin, H.Y. Operational Improvement of Interior Permanent Magnet Synchronous Motor Using Fuzzy Field-Weakening Control. Electronics 2018, 7, 452. [Google Scholar] [CrossRef]
  45. Collotta, M.; Pau, G.; Salerno, V.M.; Scatà, G. A novel trust based algorithm for carpooling transportation systems. In Proceedings of the 2012 IEEE International Energy Conference and Exhibition (ENERGYCON), Florence, Italy, 9–12 September 2012; pp. 1077–1082. [Google Scholar]
  46. Wang, Q.; Kulla, E.; Mino, G.; Barolli, L. Prediction of Sensor Lifetime in Wireless Sensor Networks Using Fuzzy Logic. In Proceedings of the 2014 IEEE 28th International Conference on Advanced Information Networking and Applications, Victoria, BC, Canada, 13–16 May 2014; pp. 1127–1131. [Google Scholar]
  47. Singh, A.; Alkesh, A.; Purohit, N. Minimization of Energy Consumption of Wireless Sensor Networks Using Fuzzy Logic. In Proceedings of the 2011 International Conference on Computational Intelligence and Communication Networks, Gwalior, India, 7–9 Octorber 2011; pp. 519–521. [Google Scholar]
  48. Alaybeyoglu, A. A distributed fuzzy logic-based root selection algorithm for wireless sensor networks. Comput. Electr. Eng. 2014. [Google Scholar] [CrossRef]
  49. Mhemed, R.; Aslam, N.; Phillips, W.; Comeau, F. An Energy Efficient Fuzzy Logic Cluster Formation Protocol in Wireless Sensor Networks. Procedia Comput. Sci. 2012, 10, 255–262. [Google Scholar] [CrossRef] [Green Version]
  50. Ahamad, F.; Kumar, R. Energy efficient region based clustering algorithm for WSN using fuzzy logic. In Proceedings of the 2016 IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), Bangalore, India, 20–21 May 2016; pp. 1020–1024. [Google Scholar]
  51. Sundaran, K.; Ganapathy, V.; Sudhakara, P. Fuzzy logic based Unequal Clustering in wireless sensor network for minimizing Energy consumption. In Proceedings of the 2017 2nd International Conference on Computing and Communications Technologies (ICCCT), Chennai, India, 23–24 February 2017; pp. 304–309. [Google Scholar]
  52. Hsu, R.C.; Lin, T. A Fuzzy Q-learning Based Power Management for Energy Harvest Wireless Sensor Node. In Proceedings of the 2018 International Conference on High Performance Computing & Simulation (HPCS), Orleans, France, 16–20 July 2018; pp. 957–961. [Google Scholar]
  53. Kalaivani, T.; Allirani, A.; Priya, P. A survey on Zigbee based wireless sensor networks in agriculture. In Proceedings of the 3rd International Conference on Trendz in Information Sciences & Computing (TISC2011), Chennai, India, 8–9 December 2011; pp. 85–89. [Google Scholar]
  54. ZigBee Alliance. Zigbee PRO Offers Low-Power Wireless Mesh Networking. It Is the First Multi-Band Mesh Supporting Cross-Band Communication Across 2.4 GHz and Sub-GHz Devices; ZigBee Alliance: Davis, CA, USA, 2015. [Google Scholar]
  55. Khader, O.; Willig, A.; Wolisz, A. Distributed wakeup scheduling scheme for supporting periodic traffic in wsns. In Proceedings of the 2009 European Wireless Conference, Aalborg, Denmark, 17–20 May 2009; pp. 287–292. [Google Scholar]
  56. Shin, S.Y. Throughput analysis of IEEE 802.15.4 network under IEEE 802.11 network interference. Int. J. Electr. Commun. 2013, 67, 686–689. [Google Scholar] [CrossRef]
  57. Martin, J. Some geometrical properties of trapezoidal functions for their association with linguistic labels leading to a reduced 2-D representation. In Uncertainty and Intelligent Systems; Bouchon, B., Saitta, L., Yager, R., Eds.; Springer: Berlin/Heidelberg, Germany, 1988. [Google Scholar]
  58. Runkler, T.A.; Glesner, M. DECADE—Fast Centroid Approximation Defuzzification for Real Time Fuzzy Control Applications. In Proceedings of the 1994 ACM symposium on Applied computing, Phoenix, AZ, USA, 6–8 March 1994; pp. 161–165. [Google Scholar]
  59. Microchip Technology. PIC24FJ256GB108—16-bit PIC and dsPIC Microcontrollers; Microchip Technology: Chandler, AZ, USA, 2009. [Google Scholar]
  60. Microchip Technology. MRF24J40MB—rfPIC; Microchip Technology: Chandler, AZ, USA, 2009. [Google Scholar]
  61. Maxim Integrated. DS18B20—Programmable Resolution 1-Wire Digital Thermometer; Maxim Integrated: San Jose, CA, USA, 2008. [Google Scholar]
  62. Huang, C.; Zhou, S.; Xu, J.; Niu, Z.; Zhang, R.; Cui, S. Energy Harvesting Wireless Communications; John Wiley & Sons Inc.: New York, NY, USA, 2018. [Google Scholar]
  63. Farahani, S. ZigBee Wireless Networks and Transceivers; Elsevier: New York, NY, USA, 2011. [Google Scholar]
  64. Akyildiz, I.; Vuran, M. Wireless Sensor Networks; Wiley: New York, NY, USA, 2010. [Google Scholar]
  65. Casilari, E.; Cano-GarcÃa, J.M.; Campos-Garrido, G. Modeling of Current Consumption in 802.15.4/ZigBee Sensor Motes. Sensors 2010, 10, 5443–5468. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Network architecture.
Figure 1. Network architecture.
Electronics 08 00131 g001
Figure 2. The proposed FLC architecture.
Figure 2. The proposed FLC architecture.
Electronics 08 00131 g002
Figure 3. Trapezoidal membership functions.
Figure 3. Trapezoidal membership functions.
Electronics 08 00131 g003
Figure 4. Trapezoidal membership functions of input and output parameters for the FLC: (a) T h / W l ; (b) b a t t e r y _ l e v e l ; (c) s l e e p i n g _ t i m e .
Figure 4. Trapezoidal membership functions of input and output parameters for the FLC: (a) T h / W l ; (b) b a t t e r y _ l e v e l ; (c) s l e e p i n g _ t i m e .
Electronics 08 00131 g004
Figure 5. Simulation model developed in Matlab/Simulink.
Figure 5. Simulation model developed in Matlab/Simulink.
Electronics 08 00131 g005
Figure 6. Battery consumption flow chart created in Simulink/StateFlow.
Figure 6. Battery consumption flow chart created in Simulink/StateFlow.
Electronics 08 00131 g006
Figure 7. Battery consumption.
Figure 7. Battery consumption.
Electronics 08 00131 g007
Figure 8. T h / W l performance: (a) without FLC; (b) FLC with Trapezoidal MFs; (c) Wang et al.
Figure 8. T h / W l performance: (a) without FLC; (b) FLC with Trapezoidal MFs; (c) Wang et al.
Electronics 08 00131 g008
Table 1. Values of variables used in definition of trapezoidal membership functions.
Table 1. Values of variables used in definition of trapezoidal membership functions.
Universe of DiscorseSetabcd
T h / W l Low−40−101040
Medium10406090
High6090110140
b a t t e r y _ l e v e l Low−400−100100400
Medium100400600900
High60090011001400
s l e e p i n g _ t i m e Low−4−114
Medium1469
High691114
Table 2. Inference rules.
Table 2. Inference rules.
RuleAntecedent
( Th / Wl )
Antecedent
( battery _ level )
Consequent
( sleeping _ time )
1LowLowMedium
2LowMediumLow
3LowHighLow
4MediumLowMedium
5MediumHighLow
6MediumMediumMedium
7HighLowHigh
8HighMediumHigh
9HighHighHigh
Table 3. Battery lifetime obtained from simulations and measured in the testbed.
Table 3. Battery lifetime obtained from simulations and measured in the testbed.
SimulationsTestbed
Without FLC33 h and 50 min29 h and 47 min
With FLC (Trapezoidal MFs)47 h and 21 min45 h and 33 min
Wang et al.43 h and 22 min41 h and 58 min

Share and Cite

MDPI and ACS Style

Pau, G.; Salerno, V.M. Wireless Sensor Networks for Smart Homes: A Fuzzy-Based Solution for an Energy-Effective Duty Cycle. Electronics 2019, 8, 131. https://doi.org/10.3390/electronics8020131

AMA Style

Pau G, Salerno VM. Wireless Sensor Networks for Smart Homes: A Fuzzy-Based Solution for an Energy-Effective Duty Cycle. Electronics. 2019; 8(2):131. https://doi.org/10.3390/electronics8020131

Chicago/Turabian Style

Pau, Giovanni, and Valerio Mario Salerno. 2019. "Wireless Sensor Networks for Smart Homes: A Fuzzy-Based Solution for an Energy-Effective Duty Cycle" Electronics 8, no. 2: 131. https://doi.org/10.3390/electronics8020131

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

Article Metrics

Back to TopTop