**4. System Architecture**

The aim of the application developed is to allow users to ease the evaluation of the lighting requirements needed to perform their work without risk to their health. To help in this issue, a mobile application has been developed for Android platforms, called appLux, which is an intelligent agen<sup>t</sup> based in rules that allows the measurement and evaluation of the illuminance level of each space.

To perform this task, the application measures the illuminance to evaluate a wide range of spaces, making it possible to assess both indoor and outdoor spaces. Along with the measurements, the system provides additional information, giving users a new perspective to help them in the decision-making about increasing or decreasing the illuminance levels. The aim is to keep the spaces with an adequate illuminance level for the workers to ensure their eyes' comfort. This is achieved by the integration of a rule engine in the intelligent agen<sup>t</sup> developed.

To accomplish this objective, an intelligent agen<sup>t</sup> based in rules has been developed where the lighting reference level information, which is stored in the device's database, is compared with the real level, obtained through the illuminance measurement. To perform this comparison, an analysis based on a rule engine has been developed, whose objective is to inform the user about the possible actions to adapt the light to the requirements of the specific scenario. To ensure the level of reference, the stored values for the comparison have been obtained from the European Union regulations (EN 12464-1 [9] and EN 12464-2 [10]), where the minimum illuminance is set.

Thus, the proposed system has been divided into five parts, as can be seen in Figure 1: mobile application, database, light sensor, rule engine, and Web server.

**Figure 1.** System structure.
