## 1. Introduction

For monitoring, detection, and recognition of operating and technical conditions in SH, it is possible to use information from the measured data using operational sensors. Regression analysis can be used for the measured data processing and mathematical description of dependence between the measured quantities. Results from regression analysis can be used in SH concept [1], SH care concept [2] (for quantify the activity for a complex set of SH activities and predict cognitive health of participants [3]), smart metering concepts [4–6], for example in a new method for estimating the demand response potential of residential air conditioning (A/C), using hourly electricity consumption data ("smart meter" data) from customer accounts in Northern California [7], and smart grid concepts [8, 9]. To visualize [10–13] and monitoring [14] of operational and technical functions in SH [15, 16], it is necessary to use a robust visualization tool with reliable storage of measured data with respect to the needs of the SH inhabitants [17]. In our case, the measured data are read from the individual KNX technology and BACnet technology sensors by means of the Desigo Insight visualization tool. The individual KNX and BACnet technology components are used for the blinds, lighting, cooling, heating, and ventilation control in SH (**Figures 1** and **2**).

For analysis of the measured data to determine the model of lighting control in SH (**Figures 1** and **2**) built-in within the Moravian-Silesian Wood Cluster (MSDK), we used the regression analysis methods. The measured values of nonelectrical quantities (e.g., illuminance, CO_{2}, temperature, humidity, etc.) in different rooms (e.g., rooms 202, 203, 204) of the building offer more information about the behavior of the operational and technical system in SH. **Figure 3** shows the measured values of illuminance *E*_{202} (lx), *E*_{203} (lx), and *E*_{204} (lx) in rooms 202, 203, and 204, respectively, and outdoor illuminance *E*_{out} (lx).

## 2. Lighting control in SH using KNX technology

The actual lighting system for every room in SH is examined by using the DALI technology for dimming control and the KNX system for control by a closed-loop technology. The testing was performed on small lighting systems, the closed loop approach, which is adequate for illumination control to a constant illuminance *E* level, was used for the control.

### 2.1. Description of the KNX/DALI gateway system

The control options of the KNX/DALI gateway system (**Figure 4**) are not so extensive.

The sensor is connected directly to the KNX bus, whereby programming is facilitated. It should be noted that a bus-bar sensor must be selected in settings where information from the sensor needs to be transmitted to a large distance and hence, the hazard of data loss due to voltage decrease or interferences exists. The DALI ballasts are controlled by the KNX actuator (KNX/DALI Gateway N 141) and by one bus-bar sensor. The sensor at the ceiling sends information to the actuator, which evaluates light flux requirements in the master line.

## 3. Proposed experiment

The aim of the experiment was to explore the dependence of the measured waveforms of illuminance *E* (lx) in the rooms 202, 203, and 204 on the outdoor illuminance *E* (lx) under the following conditions:

The light in each room is turned off, the blinds are pulled up. The effect of the location of rooms 202, 203, and 204 (SH rotation) is compared from the perspective of the cardinal points at the outdoor illuminance

*E*_{out}**> 10,000 lx**. The measurement took place on**September 07, 2014**.Light in rooms 202 and 204 is turned on, the blinds are pulled up. The light in room 203 is turned off. The automatic lighting control is set on the constant value of illuminance

*E*= 500 lx in room 202. The automatic lighting control is set on the constant value of illuminance*E*= 230 lx in room 204. The effect of the location of rooms 202, 203, and 204 (SH rotation) is compared from the perspective of the cardinal points at the outdoor illuminance*E*_{out}**> 10,000 lx**. The measurement took place on**May 31, 2015**.

On the basis of the above-described conditions, a method for determining the optimal regression model to find the suitable mathematical description of states of operating and technical functions in SH was designed, in this case for lighting monitoring and control:

Step 1: calculating the correlation coefficients to determine the strength of dependence between the measured values of illuminance *E* (lx) in each room and outdoors.

Step 2: using linear regression to determine the regression line.

Step 3: selecting the best regression model describing the mathematical relationships between the measured quantities based on the calculated coefficient of determination *R*^{2} (*R*-squared) value.

### 3.1. Correlation analysis: description

The measured data processing and obtaining the information about the strength of statistical dependence between the measured values of illuminance *E* (lx) in SH (202, 203, and 204 rooms) can be carried out by means of the method of correlation analysis. The force of (linear) dependence between two measured nonelectrical quantities has been evaluated by means of the value of Pearson’s correlation coefficient

The correlation coefficient **R**_{x,y} can take values from the closed interval <−1, +1>. The more the absolute value of the correlation coefficient approaches 1, the stronger the dependence of the random quantities.

### 3.2. Regression analysis: description

In terms of a mathematical description, this is a research of the relationship between two quantities, in which one of them, the so-called independent variable *X* (outdoor illuminance *E* (lx)), is to influence the other, the so-called dependent variable *Y* (measured illuminance *E* (lx) in each of the rooms 202, 203, and 204). Windows in rooms 203 and 204 are directed to the south and windows in room 202 are directed to the west (**Figure 1**). The results of selected individual measurements were processed into a plot of the fitted model with SW tool Statgraphics, which was used for a statistical analysis (**Figures 5**–**8**). The expected dependence between the studied variables, the so-called regression, was verified using this comprehensive statistical tool. The so-called linear regression was used which assumes a linear relationship between two quantities. Regression line equation can be written as:

The estimate of the regression line is written in one of the following ways:

where *e*_{i} denotes a residue, error.

Using the SW tool Statgraphics, linear regression model (ANOVA) conditions were verified. Each figure (**Figure 5**–**8**) shows prediction models (green lines) and single 95% confidence intervals in each plot of fitted models. It is possible to define the interval estimation in regression for the expected value (green lines—confidence limits). The confidence interval for each measurement is identified as the prediction interval. Each of the charts show the equation of the regression line and coefficient of determination *R*^{2} indicating the quality of regression model.

where *SS*_{R} is the model sum of squares and *SS*_{E} is the error sum of squares.

## 4. Measured values

Based on the above-described conditions, the following values were measured and calculated.

**Conditions a:** The lighting is off: manual mode (blinds up); measured values: illuminance *E* (lx) in rooms 202, 203, and 204 and outdoor illuminance *E* (lx). Measurement day: **September 07, 2014**. The outdoor illuminance *E*_{out}** > 10,000** (lx) (weather is clear).

In terms of evaluating the correlation analysis, it is to confirm the assumption that the measured waveforms of illuminance *E* (lx) in rooms 203 and 204 have the greatest degree of similarity because the rooms are oriented to the south (**Table 1**). Comparing the correlation coefficients (**Table 1**) calculated from the measured illuminance *E* (lx) values in 202 to the remaining rooms 203 and 204, the rotation of the room 202 to the other side of cardinal points (west) is apparent (**Figure 1**). **Figure 5** shows the plot of the fitted model for room 202, representing the linear regression model with *R*^{2} = 0.527, it means that the model as fitted explains 52.7% of the variability of the illuminance in room 202.

E_{out} (lx) | E_{202} (lx) | E_{203} (lx) | E_{204} (lx) | |
---|---|---|---|---|

E_{out} (lx) | 0.726 | 0.616 | 0.611 | |

E_{202} (lx) | 0.726 | 0.843 | 0.776 | |

E_{203} (lx) | 0.616 | 0.843 | 0.979 | |

E_{204} (lx) | 0611 | 0.776 | 0.979 |

**Figure 6** shows the plot of the fitted model for room 202, representing the logarithmic-Y square root-*X* regression model with *R*^{2} = 0.804.

Based on the calculated value of the coefficient of determination *R*^{2} (**Table 2**), the logarithmic-Y square root-X model (Eq. (7)) (**Figure 6**) was design as the optimal model for individual rooms.

Regression Models | R-Squared |
---|---|

Room 202 Logarithmic-Y square root-X | 80.4% |

Room 203 Logarithmic-Y square root-X | 68.0% |

Room 204 Logarithmic-Y square root-X | 67.1% |

**Conditions b:** The lighting in rooms 202 and 204 is controlled on a constant illuminance (for room 202 *E*_{const} = 500 lx and room for 204 *E*_{const} = 230 lx): automatic mode (blinds up); the lighting was turned off in room 203 (**Figure 2**). Measured variables: illuminance *E* (lx) in rooms 202, 203, and 204 and outdoor illuminance *E*_{out} (lx) (**Table 3**). Measurement day: **May 31, 2015**. The outdoor illuminance *E*_{out}** > 10,000** (lx) (weather is clear).

E_{out} (lx) | E_{202} (lx) | E_{203} (lx) | E_{204} (lx) | |
---|---|---|---|---|

E_{out} (lx) | 0.837 | 0.862 | 0.763 | |

E_{202} (lx) | 0.837 | 0.845 | 0.792 | |

E_{203} (lx) | 0.862 | 0.845 | 0.802 | |

E_{204} (lx) | 0.763 | 0.792 | 0.802 |

Based on the calculated value of the coefficient of determination *R*^{2} (**Table 4**), the logarithmic-Y square root-X model was design as the optimal model for rooms 203 and 204. However, the reciprocal-Y model was calculated as the optimal model for room 202 (**Table 4**).

Regression model | R-squared |
---|---|

Room 202 Reciprocal-Y | 78.3% |

Room 203 Logarithmic-Y square root-X | 91.4% |

Room 204 Logarithmic-Y square root-X | 80.3% |

The plot of the fitted model for room 202 with linear regression model is shown in **Figure 7**.

The plot of the fitted model for room 202 with the reciprocal-Y regression model is shown in **Figure 8**.

## 5. Conclusion

This chapter described use of the regression analysis method to determine the regression model (linear regression model, reciprocal-Y regression model and logarithmic-Y square root-X regression model) of lighting control in SH with a potential use for the function of diagnosing the optimal settings for the corresponding comfort of interior lighting control in SH rooms 202, 203, and 204 via the KNX technology. Based on the measured values, it was demonstrated that it is possible to determine a corresponding regression model of mathematical description of operational and technical function behaviors in SH under the specific conditions for the lighting control in this case. Since the *P*-value in the ANOVA table is less than 0.01, there is a statistically significant relationship between illuminance of the room and illuminance of outdoors at the 99% confidence level in each of cases. Since the *P*-value in the *t*-tests for both of parameters intercepts and slope is less than 0.01, there is not a reason to extract these parameters from models. Based on the experiments, the described regression models can be used to further classify and describe the behavior of operational and technical conditions in SH. A database for each of the measured quantities with a precise description of baseline conditions of the SH behavior will be presented with the next chapter. More modern methods for classification and identification [18–23] will be used for compare and optimization of the operational and technical functions control in SH.