Open access

Study of Event-based Sampling Techniques and Their Influence on Greenhouse Climate Control with Wireless Sensors Network

Written By

Andrzej Pawlowski, Jose L. Guzman, Francisco Rodriguez, Manuel Berenguel, Jose Sanchez and Sebastian Dormido

Published: 01 March 2010

DOI: 10.5772/9510

From the Edited Volume

Factory Automation

Edited by Javier Silvestre-Blanes

Chapter metrics overview

3,157 Chapter Downloads

View Full Metrics

1. Introduction

During last years, event-based sampling and control are receiving special attention from researchers in wireless sensor networks (WSN) and networked control systems (NCS). The reason to deserve this attention is due to event-based strategies reduce the exchange of information between sensors, controllers, and actuators. This reduction of information is equivalent to extend the lifetime of battery-powered wireless sensors, to reduce the computational load in embedded devices, or to cut down the network bandwidth (Miskowicz, 2005).

Event-based systems are becoming increasingly commonplace, particularly for distributed real-time sensing and control. A characteristic application running on an event-based operating system is that where state variables are updated asynchronously in time, e.g., when an event of interest is detected or because of delays in the computation and/or communication tasks (Sandee, 2005). Event-based control systems are currently being presented as solutions to many control problems (Arzen, 1999); (Sandee, 2005); (Miskowicz, 2005); (Astrom, 2007); (Henningsson et al., 2008). In event-based control systems, it is the proper dynamic evolution of system variables what decides when the next control action will be executed, whereas in a time-based control system, the autonomous progression of the time is what triggers the execution of control actions (Astrom & Wittenmark 1997). Current distributed control systems impose restrictions on the system architecture that makes difficult the adoption of a paradigm based on events activated per time. Especially, in the case of closed-loop control using computer networks or buses, as happens with field buses, local area networks, or even Internet. An alternative to these approaches consists of using event-based controllers that are not restricted to the synchronous occurrence of controller actions. The utilization of synchronous sampling period is one of the severest conditions that control engineers impose on the software implementation. As discussed above, in an event-based control system the control actions are executed in an asynchronous way, that is, the sampling period is governed by system events and it is called event-based sampling. The event-based sampling indicates that the most appropriate method of sampling consists of transmitting information only when a significant change happens in the signal that justifies the acquisition of a new sample. Researchers have demonstrated special interest on these sampling techniques (Vasyuntynskyy & Kabitzsch, 2006); (Miskowicz, 2007); (Suh, 2007) (Dormido et al., 2008). Nowadays, commercial systems present more flexibility in the implementation of control algorithms and sampling techniques, especially WSN, where each node of the network can be programmed with a different sampling or local control algorithm with the main goal of optimizing the overall performance. This kind of solution allows control engineers to distribute the control process, considering centralized supervision of all variables, thanks to the application of wireless communications. Furthermore, remote monitoring and control through data-communication networks are very popular for process supervision and control (Banatre at al., 2008). The usage of networks provides many well-known benefits, but it also presents some limitations in the amount of transmitted data. This fact is especially visible in WSN, where the bandwidth of the communication channels is limited and typically all nodes are battery-powered. Event-based sampling techniques appear as possible solutions to face this problem allowing considerably saving of network resources and reducing the power consumption. On the other hand, the control system performance is highly affected due to the event-based sampling techniques, being necessary to analyze and study a compromise between control quality and reduction in the control signal commutations.

The agro-alimentary sector is incorporating new technologies due to the large production demands and the diversity, quality, and market presentation requirements. A technological renovation of the sector is being required where the control engineering plays a decisive role. Automatic control and robotics techniques are incorporated in all the agricultural production levels: planting, production, harvesting and post-harvesting processes, and transportation. Modern agriculture is subjected to regulations in terms of quality and environmental impact, and thus it is a field where the application of automatic control techniques has increased substantially during last years (King & Sigrimis, 2000); (Sigrimis, 2001); (Farks, 2005); (Straten, 2007). As is well-known, greenhouses occupy very extensive surfaces where climate conditions can vary at different points (spatial distributed nature). Despite of that feature, it is very common to install only one sensor for each climatic variable in a fixed point of the greenhouse as representative of the main dynamics of the system. One of the reasons is that typical greenhouse installations require a large amount of wire to distribute sensors and actuators. Therefore, the system becomes complex and expensive and the addition of new sensors or actuators at different points in the greenhouses is thus quite limited. In the last years, WSN are becoming a convenient solution to this problem (Gonda & Cugnasca, 2006); (Narasimhan et al., 2007). A WSN is a collection of sensors and actuators nodes linked by a wireless medium to perform distributed sensing and acting tasks (Zhu et. al., 2006). The sensor nodes collect data and communicate over a network environment with a computer system, which is called base station. Based on the information collected, the base station takes decisions and then the actuator nodes perform the appropriate actions over the environment. This process allows users to sense and control the environment from anywhere (Gonda & Cugnasca, 2006). There are many situations in which the application of the WSN is preferred, for instance, environment monitoring, product quality monitoring, and others where supervision of big areas is necessary (Feng et al., 2007). In this work, WSN are used in combination with event-based systems to control the inside greenhouse climate.

Control problems in greenhouses are mainly focused on fertirrigation and climate systems. The fertirrigation control problem is usually solved providing the amount of water and fertilizers required by the crop. The climate control problem consists of keeping the greenhouse temperature and humidity in specific ranges despite of disturbances. Adaptive and feedforward controllers are commonly used for climate control problems. Therefore, fertirrigation and climate systems can be represented as event-based control problems where control actions will be calculated and performed when required by the system, for instance, when water is required by the crop or when ventilation must be closed due to changes in outside weather conditions. Furthermore, such as discussed above, with event-based control systems a new control signal is only generated when a change is detected in the system. That is, the control signal commutations are produced only when events occur. This fact is very important for the actuator life and from an economical point of view (reducing the use of electricity or fuel), especially in greenhouses where commonly actuators are composed by mechanical devices controlled by relays.

Therefore, this work presents the combination of WSN and event-based control systems to be applied in greenhouses. The main focus of this chapter is therefore the presentation of a complex real application using a WSN, as an emerging technology, and an event-based control, as a new paradigm in process control. The following issues have been addressed:

  • the issues posed to a multivariable, interacting control system by possibly faulty communications (as in a wireless context),

  • the location of sensors to correctly represent, for the purpose of control, spatially distributed quantities,

  • the efficient use of actuators, the term “efficient” referring also to correct use and wear minimization,

  • the effects of event-based sampling.

As a first approximation, event-based control has been applied for temperature and humidity control issues. The main advantage of the proposed control problem in comparison with previous works is that promising performance results are reached reducing the use of wire and the changes of the control signals, which are translated into reductions of costs and a longer actuator life. The ideas presented in this chapter could be easily extrapolated, for instance, to building automation.


2. The climatic control problem in greenhouses

2.1. Description of the climatic control problem

Crop growth is mainly influenced by the surrounding environmental climatic variables and by the amount of water and fertilizers supplied by irrigation. This is the main reason why a greenhouse is ideal for cultivation, since it constitutes a closed environment in which climatic and fertirrigation variables can be controlled to allow an optimal growth and development of the crop. The climate and the fertirrigation are two independent systems with different control problems. Empirically, the requirements of water and nutrients of different crop species are known and, in fact, the first automated systems were focused to control these variables. As the problem of greenhouse crop production is a complex issue, an extended simplification consists of supposing that plants receive the amount of water and fertilizers that they require at every moment. In this way, the problem is reduced to the control of crop growth as a function of climate environmental conditions (Rodríguez, 2002); (Rodríguez, 2008).

Figure 1.

Climatic control variables.

The dynamic behaviour of the greenhouse microclimate is a combination of physical processes involving energy transfer (radiation and heat) and mass balance (water vapour fluxes and CO2 concentration). These processes depend on the external environmental conditions, structure of the greenhouse, type and state of the crop, and on the effect of the control actuators (Bot, 1983). The main ways of controlling the greenhouse climate are by using ventilation and heating to modify inside temperature and humidity conditions, shading and artificial light to change internal radiation, CO2 injection to influence photosynthesis, and fogging/misting for humidity enrichment. A deeper study about the features of the climatic control problem can be found in (Rodríguez, 2002).

The approach presented in this work is applied to the climatic conditions of the mild winter in Southern Europe (the data used for the simulations performed in this work have been collected in a greenhouse located at Southeastern Spain), where the production in greenhouses is made without CO2 enrichment and the demand of quality products is increasing every day. Considering the greenhouse structures, the commonest actuators, the crop types, and the commercial conditions of this geographical area, the main climate variables to control are the temperature and the humidity. The PAR (Photosynthetically Active Radiation with a spectral range from 400 to 700 Wm2) is used by the plants as energy source in the photosynthesis process.) and it is controlled with shade screens but its use is not much extended. So, this work is focused on the temperature control problems.

2.2. Air temperature control

Plants grow under the influence of the PAR radiation (diurnal conditions) performing the photosynthesis process. Furthermore, temperature influences the speed of sugar production by photosynthesis, and thus radiation and temperature have to be in balance in the way that a higher radiation level corresponds to a higher temperature. Hence, under diurnal conditions, it is necessary to maintain the temperature in a high level, being optimal for the photosynthesis process. In nocturnal conditions, plants are not active (the crop does not grow); therefore it is not necessary to maintain such a high temperature. For this reason, two temperature set-points are usually considered: diurnal and nocturnal (Kamp & Timmerman, 1996).

Due to the favorable climate conditions of Southeastern Spain, during the daytime the energy required to reach the optimal temperature is provided by the sun. In fact, the usual diurnal temperature control problem is the refrigeration of the greenhouse (with temperatures higher than the diurnal setpoint) using natural ventilation to reach the optimal diurnal temperature. On the other side, the nocturnal temperature control problem is the heating of the greenhouse (with temperatures lower than the nocturnal set-point) using heating systems to reach the nocturnal optimal temperature. In Southeastern Spain, forced-air heaters are commonly used as heating systems. In this work, the diurnal and nocturnal temperature control is analyzed to test the proposed event-based control. Therefore, typical temperature control systems with ventilation and heating are described in the following section.

The natural ventilation determines the air exchange and air flow in the greenhouse as a consequence of the differences between outside and inside temperatures. The relationship between vents aperture and inside temperature is not linear (Rodríguez, 2001), but instead of using a nonlinear control schema, it was decided to implement a gain-scheduling control algorithm based on linear models for each operating point (see Figure 2). Most commercial solutions include this kind of gain scheduling controllers to cope with both fast and slow changing dynamics due to disturbances.

Figure 2.

Diurnal temperature controller.

This controller consists of a gain-scheduling PI scheme where the controller parameters are changed based on some disturbances: outside temperature and wind speed. For the nocturnal temperature control, there exist many control strategies, but for this study an on/off control with dead zone is used in forced-air heaters, which is the controller commonly used in conventional greenhouses. A full description of these algorithms can be found in (Rodríguez, 2002).

2.3. Event-based control in greenhouses with WSN

As discussed above, in an event-based control system, the control actions are executed in an asynchronous way. The event-based sampling suggests that the most appropriate method of sampling consist of transmitting information only when a significant change in the signal occurs, justifying the acquisition of a new sample. In this work, the idea is to combine WSN with event-based control (see Figure 3) such as is proposed in (Pawlowski et al., 2008).

Figure 3.

Event-based control with Wireless Sensor Network.

In this scheme, the process (a greenhouse in this case) is provided with a WSN where each sensor transmits data according to a specific sampling approach. For instance, in (Pawlowski et al., 2008), this architecture is proposed and the level crossing method is used. Therefore, in that case, each sensor will transmit data if the absolute value of the difference between the current value of the variable, v(tk ), and its value in the last transmission, v(ts ), is greater than a specific limit . In a general way, an event-based controller consists of two parts (see Figure 3a): an event detector and a controller. The event detector indicates to the controller when a new control signal must be calculated due to the occurrence of an event. Figure 3b shows the event-based controller structure, where two type of events are generated based on “u ” and “e” conditions. In our application, the actuator owns a ZOH (Zero-Order Hold), so the current control action is maintained until the arrival of a new one. Since the controller owns inputs and outputs, we have considered input- and output-side events. The input-side ones are the arrival of a new value of the controlled variable “y” (as consequence of the triggering of some sensor-side event) and the introduction of a new reference; both cases force the calculation of control actions. The u-based criterion of the output-side consists on just sending the new control action u(t) if it is different enough of the previous control action u(ts).

In next sections, the effect of different sampling techniques will be evaluated in the control system.

2.4. Control Performance

Different performance measurements have been used to compare the quality of the control system regarding to different event-based sampling techniques. These measurements are the following (Vasyuntynskyy & Miskowicz, 2007):

  • IAE: The Integrated Absolute Error is defined as:

    I A E = 0 e ( t ) d t E1
  • IAEP: It is the difference between the system response of an event-based strategy and the system response of the time-based approach:

    I A E P = 0 | y t i m e b a s e d ( t ) y e v e n t b a s e d ( t ) | d t E2
  • NE: The Number of Events is a sampling efficiency measure to compare the quality of the system response:

    N E = I A E P I A E E3
  • IAD: The integrated absolute difference is the difference between the IAE of the time-based strategy and the IAE of the event-based ones:

    I A D = 0 | I A E t i m e b a s e d ( t ) I A E e v e n t b a s e d ( t ) | d t E4
  • GPI: Global Performance Index (Vasyuntynskyy & Miskowicz, 2007) shows the compromise between the control performance and the sampling efficiency in the following way:

    G P I = W 1 C a l l s + W 2 A c t i o n s + W 3 S e n d i n g s + W 4 N E E5

    where Wi are weighting factors.

A Global Performance Index is calculated taking into account the quality of the system response and the efficiency of the sampling. The influence of sampling techniques on the performance is represented by the following factors:

  • Calls: It measures the number of communication messages sent from the sensor to the controller.

  • Actions: Number of invocations of the controller.

  • Sendings: Number of the control actions sent from the controller to the actuator in the event-based approaches.


3. Greenhouse climatic control problem

This section describes the different sampling techniques evaluated in the paper. According to the error based condition used in the sensor nodes, different event-based strategies are selected (Sánchez et al., 2009):

  • LC - When the difference between the current value and the last acquired value is greater than

    | x ( t k ) x ( t s ) | δ E6
  • ILC - When the value of the IAE from last acquired value is greater than

    t s t k | x ( t ) x ( t s ) | d t δ E7
  • LP - When the difference between a prediction of the signal value and its current value is greater than

    | x ( t k ) x ^ ( t k ) | δ E8
  • ILP - The integral of the difference between the prediction and the current value is greater than

    t s t k | x ( t ) x ^ ( t ) | d t δ E9
  • EN - The energy of the difference between the current value and value of last acquired value is greater than

    t s t k [ x ( t ) x ( t s ) ] 2 d t δ E10

First and second conditions do not need a detailed explanation since both are simple well-known deadband sampling strategies. Further details on these methods can be found in (Vasyuntynskyy & Kabitzsch, 2006); (Miskowicz, 2006); (Suh, 2007). The LP method, originally described in (Suh, 2007), consists of starting the calculation of future values of the signal after an event takes place. To calculate future values, a first order predictor:

x ^ ( t s ) = f ( x ^ ( t s 1 ) , x ^ ( t s 2 ) ) E11

is used to estimate the evolution of the signal from last time a sample was sent to the controller. When the difference between the current value and its prediction for the current time is greater than a limit , the condition becomes true and the current signal state is transmitted to the controller. The ILP is a new criterion based on the previous LP. In this case, the sample is taken and sent when the area between the signal and its prediction is greater than . The EN criterion (Miskowicz, 2005) sends a sample of the signal state when the energy of the signal from last sending exceeds a certain threshold. Depending on the error-based condition, an additional time-based expression must be included in the condition to force a sending when a time-out expires:

( e v e n t _ b a s e d _ c o n d i t i o n IS t r u e OR  ( h w i t h o u t ³ h m a x ) E12

where hwithout represents the elapsed time from the last sending to the controller. The main reason to do that is the avoidance of the sticking, which happens when the signal derivative tends to zero (Vasyuntynskyy & Kabitzsch, 2007). So, the LC and LP criteria can reach situations where the sensor does not sent information to the controller in spite of having a high error. However, the sticking is avoided in criteria where integration is done (ILC, ILP, and EN) since the error-based condition can become true even though the error derivative is zero. Table 1 shows the individual limits for the commonest variables used for control purposes.

Variable Limit ( = 5%) Limit ( = 3%)
Inside Temperature 0.60 0.36
Outside Temperature 0.61 0.36
Humidity 4.9 2.9
Solar Radiation 34.30 20.58
Wind Speed 0.53 0.31
Wind Direction 17.84 10.70

Table 1.

Limits for greenhouse variables.

These limits of = 3% and = 5% were calculated based on the authors experience and after analyzing three years of data (Pawlowski et al., 2008).

The calculation of limit for each individual variable was performed studying its minimum and maximum values. The value of the change of each variable for = 3% and = 5% was determined calculating the 3% and 5% of the difference between the maximum and minimum values. Instead of choosing only one limit for each variable, these two different limits were evaluated to analyze their effects, such as presented in next section.

To compare results between event-based sampling techniques from a data transmission point of view, the following efficiency factors have been considered:

  • Samples: The number of samples obtained and transmitted using event-based sampling.

  • Saving: Percentage of saving that can be done in comparison with the timed-based sampling when data are transmitted every sampling time.

  • Taverage : Average time between two consecutive events, that is, between two consecutive sendings from the sensors.


4. Simulation results

The simulations presented in this section have been performed using the greenhouse climatic model developed by (Rodríguez, 2002) and the TrueTime MATLAB/Simulink toolbox. TrueTime is a tool developed for the Simulink environment and it is used to simulate real-time systems, networked control systems, communication models, and WSN (Anderson et al., 2005). The main feature of TrueTime is the possibility of co-simulation of the interaction between the real-world continuous dynamics and the computer architecture in the form of task execution and network communication. The TrueTime computer block (see Figure 4) executes user-defined tasks and interrupt handlers representing e.g. I/O tasks, control algorithms, or network drivers. The scheduling policy of the individual computer block is arbitrary and decided by the user. TrueTime allows simulation of context switching and task synchronization using events or monitors (Henriksson, 2003).

TrueTime simulation environment allows us to implement a code in C++ or Matlab programming language for every simulated node. Hence it is possible to reuse this written code for direct implementation in WSN motes. This solution decreases significantly the time necessary for the implementation of simulated ideas. One of the most relevant advantages of WSN nodes is the ability/capability to remotely reprogram selected motes.

Figure 4.

Implementation of event-based controller with TrueTime.

4.1. Data Transmission

Process monitoring is vitally important in companies for supervision tasks and the quality of the collected information has a great influence on the precision and accuracy of control results. Currently, the agro-alimentary market field incorporates different data acquisition techniques. Normally, the type of acquisition system is chosen to be optimal for the control algorithm to be used. In traditional climate monitoring and control systems, all sensors are distributed through the greenhouse and connected by wire to the device performing the control tasks.

These equipments use time-based data sampling techniques as a consequence of using time-based controllers. In modern control systems, it is common to use communication networks to transmit data between different control system blocks. Large amount of data are usually transmitted, and the data required by the controller in each sampling time are especially critical. The most reasonable solution from an economical point of view is to make use of existing network structure, and to share the network resources between different services, for instance, using Ethernet networks. Sometimes, this solution can produce a big network traffic burden (in a typical greenhouse control system, all data are transmitted every minute or even faster) and introduce time delays in the delivery of the data packets.

When the network load increases, the probability of data losses increases too, and this factor can be very negative for control performance. In some extreme examples, the control system needs dedicated network structure to minimize the time delay and the data losses.

On the other hand, the development of network structures in places with large distances, such as greenhouse installations, can become very expensive and with a complicated management. Wireless networks present an economic and useful solution to this problem, and more concretely, WSN for recording data and control purposes. However, most transceivers in WSN are battery-powered and the power consumption is a critical parameter.

Every transmission means power consumption and thus these systems present the problem of limitation in the amount of data to transmit. A solution to this problem is the use of the event-based sampling techniques described in previous sections. These techniques allow that only the necessary data will be transmitted and thus only the necessary power will be consumed. In this study, WSN based on IEEE 802.15.4 ZigBee protocol has been simulated and its combination with event-based sampling in the greenhouse climatic control problem. Results of simulation were evaluated for a full crop campaign of 120 days. In this work, only eight days have been selected to present the obtained results. The limits described in Table 1 were used for the event-based sampling.

Table 2 presents the results obtained after simulation of the selected eight days, where the comparison of data transmission is presented for the greenhouse variables. The table compares the number of samples obtained and transmitted using event-based sampling techniques with a time-based sampling. Figure 5 shows how the events are generated from changes in the outside temperature for the LC technique.

On the other hand, the variable dynamics highly affects the number of taken samples-events. This can be observed for variables with high-frequency changes such as the wind speed and direction. Figure 6 shows the transmission data for the wind direction. The transmission data from the sensors using level crossing sampling is shown on the top graphic, where a high transmission frequency is observed. However, in order to reduce the number of events created by this variable, the signal is filtered in the event generator before detecting and sending events to the controller. The bottom graphics of Figure 6 shows how the number of samples is substantially reduced after filtering the signal. However, in order to cut down the number of events created by these variables, the signals should be filtered in the sensor node before sending events to the controller.

Variable Index Time-based LC ILC LP ILP EN
3% 5% 3% 5% 3% 5% 3% 5% 3% 5%
Inside Temperature Samples 11808 762 359 2601 1930 1063 534 3212 2389 1042 837
Saving 0 93,54 96,95 77,97 83,65 90,99 95,47 72,79 79,76 91,17 92,91
T_average 1 15,5 32,89 4,54 6,12 11,11 22,11 3,68 4,94 11,33 14,11
Outside Temperature Sample 11808 595 351 1715 1327 766 517 1846 1432 747 621
Saving 0 94,96 97,02 85,47 88,76 93,51 95,62 84,36 87,87 93,6 94,74
T_average 1 19,85 33,64 6,89 8,9 15,42 22,84 6,4 8,25 15,81 19,01
Humidity Sample 11808 600 284 1794 1333 834 409 2193 1615 1246 1026
Saving 0 94,91 97,59 84,80 88,71 92,93 96,53 81,42 86,32 89,44 91,31
T_average 1 19,68 41,58 6,58 8,86 14,16 28,87 5,38 7,31 9,48 11,51
Solar Radiation Sample 11808 826 553 1885 1464 1006 754 2244 1754 3170 2728
Saving 0 93,00 95,31 84,03 87,60 91,48 93,61 80,99 85,14 73,15 76,89
T_average 1 14,3 21,35 6,26 8,07 11,74 15,66 5,26 6,73 3,72 4,33
Wind Speed Sample 11808 802 386 2569 1890 1024 557 3070 2318 1015 802
Saving 0 93,20 96,73 78,24 83,99 91,32 95,28 74,00 80,36 91,40 93,20
T_average 1 14,72 30,59 4,6 6,25 11,53 21,2 3,85 5,09 11,63 14,72
Wind Direction Sample 11808 1707 993 3410 2489 2006 1162 3907 2989 5276 4607
Saving 0 85,54 91,59 71,12 78,92 83,01 90,15 66,91 74,68 55,31 60,98
T_average 1 6,92 11,89 3,46 4,74 5,89 10,16 3,02 3,95 2,24 2,56
Average saving [%] 0 92,53 95,87 80,27 85,27 90,54 94,44 76,75 82,36 82,36 85,00

Table 2.

Comparison of sampling techniques.

As it can be seen, the number of events is smaller for = 5%. It can be observed a considerable saving in transmission is obtained for all event-based techniques for both limits, = 3% and = 5%. The average of transmission saving is over 80% for most of the variables. As an example, Figure 7 shows the original signal of the outside temperature and its sampled cases, where it can be observed how very good signal results are obtained for all event-based sampling techniques. Furthermore, it is observed that the amount of transmitted data decreases when the limit increases.

Figure 5.

Event generation for outside temperature.

Figure 6.

Signal with high frequency dynamics.

The biggest saving is obtained for the LC and LP techniques with = 5% as consequence of the low sensibility to signal changes. The effects of the limit can be observed in Figure 8 where sampled signal of the solar radiation is shown. As it can be noticed, the transmission data is smaller for = 5% but producing a bigger signal destruction (Figure 8b).

So, it is clear that the number of samples depends on two factors: the limit and the variable dynamics. The Taverage value was described in section 3 and is directly related to the transmission frequency. Lower values mean a high number of samples. All techniques with integrator part present better signal reconstruction property for signals in steady state or with low-frequency changes. For this reason, in these cases, it is not necessary to use the condition from equation (12). In conclusion, and from a control design point of view, by choosing = 3% it is possible to obtain a high reduction of the acquired samples for all event-based sampling techniques without relevant information loss.

Figure 7.

Signal tracking for event-based sampling techniques.

Figure 8.

Influence of limit on the signal sampling.

4.2. Comparison of control performance

This section presents the simulation results obtained for the greenhouse climatic control problem. The control system works as described in Figure 3, where the controller calculates a new control signal when an event happens. The LC and LP techniques incorporate the additional condition (12) to guarantee event generation in steady state situations. The event triggering is governed by an event generator that detects the possible events affecting the controller. For this simulation study, these events are represented by changes on: set-point, inside temperature, outside temperature, and wind speed.

The events are generated when the controller node receives a data packet, and produces a new action from the PI control task. If the new value of the control signal is different from the value sent last time, a new transmission to actuator node is performed. As discussed above, only eight selected days have been used as representative of the simulation study. The temperature set-point (SP) was set at 26 oC and 17 oC for diurnal and nocturnal periods, respectively. Figure 9 and 10 presents the simulation results for a two-day diurnal period with the purpose of showing up the influence of event-based controllers. These Figures compare a time-based controller (TB) and an event-based controller (EB) for each different sampling method and with = 3%. For these specific days, event-based controllers (EB-ILC, EB-ILP, and EB- EN) present better performance that the time-based one and, at the same time, produce lesser commutations in the control signal (see Figures 9b and 10b). This effect is verified by the IAE presented in Table 3, which collects all control results for the diurnal period. Figure 11 shows all control performance indexes for diurnal period. Furthermore, the NE index confirms good results for the aforementioned techniques, especially for = 3%. The GPI weighting factors were set to 1 during calculation of this index, where large values of this index mean worst overall performance.

Index Time-based LC ILC LP ILP EN
3% 5% 3% 5% 3% 5% 3% 5% 3% 5%
IAE 134.91 135.88 152.96 124.03 136.31 149.72 162.87 124.46 126.64 134.18 135.45
IAEP 0 65.18 87.69 37.59 31.97 64.43 84.99 31.82 35.06 31.28 67.51
NE 0 0.479 0.561 0.303 0.234 0.430 0.521 0.255 0.276 0.233 0.498
IAD 0 0.965 21.40 10.87 1.40 14.81 27.95 10.45 8.26 0.729 0.543
GPI 24155 4379,4 2169,5 13860,3 10368,2 5775,4 3265,5 16351,2 12360,2 5662,2 4598,4
Calls 11808 2159 1060 6885 5145 2853 1608 8128 6139 2786 2260
Sending 11808 2159 1060 6885 5145 2853 1608 8128 6139 2786 2260
Actions 539 61 49 90 78 69 49 95 82 90 78

Table 3.

Control performance indexes for the diurnal period.

Index Time-based LC ILC LP ILP EN
3% 5% 3% 5% 3% 5% 3% 5% 3% 5%
IAE 239.72 881.19 1472.9 453.04 568.8 933.69 1421.7 388.72 493.1943 830.97 943.4
IAEP 0 840.54 1401.6 425.29 535.3 892.32 1365.0 385.52 477.5 786.79 899.5
NE 0 0.953 0.951 0.938 0.941 0.955 0.960 0.991 0.968 0.946 0.953
IAD 0 641.47 1233.2 213.32 329.1 693.97 1182.0 149.00 253.4 591.24 703.7
GPI 27045 5140,9 2622,9 15550,9 11672,9 6568,9 3772,9 18323,9 13942,9 7352,9 5902,9
Calls 11808 2159 1060 6885 5145 2853 1608 8128 6139 2786 2260
Sending 11808 2159 1060 6885 5145 2853 1608 8128 6139 2786 2260
Actions 3429 822 502 1780 1382 862 556 2067 1664 1780 1382

Table 4.

Control performance indexes for the nocturnal period.

The results of GPI were better for event-based controllers with = 5%, and it depends on the number of samples that produce each sampling technique. The EB-EN case presents a good compromise between numbers of samples and control performance for both limits. Figures 12 and 13 show results for the nocturnal period. The results show a worst, but acceptable, performance of the event-based controllers. The important advantage of the event-based controllers is the reduction of changes in the control signal, which it is very relevant for the actuator life and the fuel/electricity consumption. In this example, saving over 50% is obtained comparing with the time-based strategy (see Figures 12b and 13b).

Figure 9.

Control results for a two-hour diurnal period – example 1.

Figure 10.

Control results for a two-hour diurnal period– example 2.

Figure 11.

Control performance indexes for diurnal period.

The lowest number of commutations is produced by the EB-LC and EB-LP cases, but their errors are bigger in comparison with the other event-based controllers. Table 4 accumulates results of control performance for nocturnal period. Figure 14 shows the full list of control performance indexes for the nocturnal period. The IAE values confirm that the control quality is worst for event-based controllers and only the EB-ILP and EB-ILC obtain magnitudes approximated to the TB one.

Figure 12.

Control results for a twelve-hour nocturnal period – example 1.

Figure 13.

Control results for a twelve-hour nocturnal period – example 2.

Figure 14.

Control performance indexes for the nocturnal period.

The consequence of this fact is the high number of transmissions between the different blocks in the control system. The analysis of the GPI index shows that EB-LC, EB-LP, and EB-EN present similar results. However, the EB-EN controller keeps reduced the transmissions without a relevant increase of the IAE in comparison to the other event-based controllers.


5. Conclusion

This paper presents a study of event-based sampling techniques and their application to the greenhouse climate control problem. It was possible to obtain important information about data transmission and control performance for all techniques. As conclusion, it was deduced that the data rate can be set up to obtain a compromise between control performance and number of transmissions, where results for different values of limit where shown. The limit of the event-based sampling techniques has presented a great influence on the event-based control performance, where for a greenhouse climate control problem, a value of 3% has provided promising results. On the other hand, the event-based controllers reduce the number of commutations to about 80% in comparison to the traditional time-based controller. This result is very important for greenhouses since it allows reducing the electricity/fuel costs and extending the actuator life.



This work has been supported by the Spanish CICYT under DPI2007-66718-C04-04 and DPI2007-61068 grants.


  1. 1. Anderson M. Henriksson D. Cervin A. Arzen K. 2005 Simulation of wireless networked control systems. Proceedings of the 44th IEEE Conference on Decision and Control, and the European Control Conference, Sevilla, Spain. 476 481 .
  2. 2. Åström K. J. Wittenmark B. 1997 Computer controlled systems: Theory and design. Prentice Hall, 100133148998
  3. 3. Åström K. J. 2007 Analysis and Design of Nonlinear Control Systems. In Event based control; Astolfi,A., Marconi, L. Eds.; Springer: Berlin, Heidelberg.
  4. 4. Årzén K. J. 1999 A simple event-based PID controller. In Proceedings of 14th IFAC World Congress,Beijing, China.
  5. 5. Banatre M. Marrón P. J. Ollero A. Wolisz A. 2008 Cooperating Embedded Systems and Wireless Sensor Network, Wiley. 978-1-84821-000-4
  6. 6. Bot G. P. A. 1983 Greenhouse climate from physical processes to a dynamic model. PhD thesis, Agricultural University of Wageningen, The Netherlands.
  7. 7. Dormido S. Sánchez J. Kofman E. 2008 Sampling, event-based control and communication (in Spanish). Revista Iberoamericana de Automática e Informática Industrial, 5 5 26 .
  8. 8. Feng X. Yu-Chu T. . Yanjun L. Youxian S. 2007 Wireless sensor/actor network design for mobile control applications. Sensors, (7). 2157 2173 .
  9. 9. Farkas I. 2005 Modelling and control in agricultural processes. Computers and Electronics in Agriculture., 49 315 316 .
  10. 10. Gonda L. Cugnasca C. E. 2006 A proposal of greenhouse control using wireless sensor networks. In 4thWorld Congress Conference on Computers in Agriculture and Natural Resources. Orlando, Florida, USA.
  11. 11. Henningsson T. Johannesson E. Cervin A. 2008 Sporadic event-based control of first-orden linear stochastic systems. Automatica, 44. 2890 2895 .
  12. 12. Henriksson D. Cervin A. Årzén K. E. 2003 Truetime: Real-time control system simulation with matlab/simulink. In Proceedings of the Nordic MATLAB Conference. Copenhagen, Denmark.
  13. 13. Kamp P. G. H. Timmerman G. J. 1996 Computerized environmental control in greenhouses. A step by step approach. IPC Plant, The Netherlands.
  14. 14. King R. Sigrimis N. 2000 Computational intelligence in crop production. Computers and Electronics in Agriculture. Special Issue on Intelligent Systems in Crop Production, 31 (1).
  15. 15. Miskowicz M. 2005 Sampling of signals in energy domain. In 10th IEEE Conference on Emerging Technologies and Factory Automation. 263 266 .
  16. 16. Miskowicz M. 2006 Send-on-delta concept: An event-based data reporting strategy. Sensors, 1(6), 29-63.
  17. 17. Miskowicz M. 2007 Asymptotic effectiveness of the event-based sampling according to the integral criterion. Sensors. (7), 16-37.
  18. 18. Narasimhan L. V. Arvind A. Bever K. 2007 Greenhouse asset management using wireless sensor-actor networks. In IEEE International Conference on Mobile Ubiquitous Computing, Systems, Services and Technologies. French Polynesia, Tahiti.
  19. 19. Pawlowski A. Guzmán J. Rodríguez F. Berenguel M. Sánchez J. Dormido S. 2008 Event-based control and wireless sensor network for greenhouse diurnal temperature control: a simulated case study. In 13th International Conference on Emerging Technologies and Factory Automation. Hamburg, Germany.
  20. 20. Rodríguez F. Berenguel M. Arahal M. R. 2001 Feedforward controllers for greenhouse climate control based on physical models. Proceedings of the European Control Conference ECC01. Oporto, Portugal.
  21. 21. Rodríguez F. 2002 Modeling and hierarchical control of greenhouse crop production (in Spanish). PhD thesis, University of Almería, Spain, 2002.
  22. 22. Rodríguez F. Guzmán J. L. Berenguel M. Arahal M. R. 2008 Adaptive hierarchical control of greenhouse crop production. International Journal of Adaptive Control Signal Processing, 22.180 197 .
  23. 23. Sánchez J. Guarnes M. Dormido S. Visioli A. 2009 Comparative study of event-based control strategies: An experimental approach on a simple tank. In European Control Conference. Budapest, Hungary.
  24. 24. Sandee J. H. Heemels W. P. M. H. Bosch P. P. J. 2005 Event-driven control as an opportunity in the multidisciplinary development of embedded controllers. In Proceedings of the American Control Conference. Portland, Oregon, USA.
  25. 25. Sigrimis N. Antsaklis P. Groumpos P. 2001 Control advances in agriculture and the environment. IEEE Control System Magazine. Special Issue.
  26. 26. Straten G. 2007 What can systems and control theory do for agriculture? In IFAC 2nd International Conference AGRICONTROL 2007. Osijek, Croatia.
  27. 27. Suh Y. 2007 Send-on-delta sensor data transmission with a linear predictor. Sensors, (7). 537 547 .
  28. 28. Vasyuntynskyy V. Kabitzsch K. 2006 Implementation of pid controller with send-on-delta sampling. In International Conference Control.
  29. 29. Vasyuntynskyy V. Kabitzsch K. 2007 Simple PID control algorithm adapted to deadband sampling. In 12th IEEE Conference on Emerging Technologies and Factory Automation, 932 940 .
  30. 30. Vasyuntynskyy V. Miskowicz M. 2007 Towards comparison of deadband sampling types. In Proceedings of the IEEE International Symposium on Industrial Electronics, 2899 2904 .
  31. 31. Zhu Y. W. Zhong X. X. Shi J. F. 2006 The design of wireless sensor network system based on ZigBee technology for greenhouse. Journal of Physics, 48.1195 1199 .

Written By

Andrzej Pawlowski, Jose L. Guzman, Francisco Rodriguez, Manuel Berenguel, Jose Sanchez and Sebastian Dormido

Published: 01 March 2010