**1. Introduction**

Lighting is an essential element in modern life with a high impact on three basic human needs: visual comfort to provide a sense of wellbeing, visual performance to allow the carrying out of visual tasks, even in difficult circumstances and for long periods, and security, reducing the risk of suffering an accident. Despite the many regulations which aim to ensure a correct lighting level, in many cases it can be poor or inadequate for users. This problem happens because the regulations don't take into account all the lighting parameters which influence visual comfort, it being necessary to take the measurements in situ [1]. Furthermore, it must be considered that aspects such as sensitivity or character could influence user lighting preferences [2] as well as cultural differences [3]. If we focus on the concept of lighting in workplaces, it is possible to see how proper lighting is essential, allowing users to see without difficulties the tasks being carried out, increasing productivity [4], and reducing accident risk and fatigue. In the same way, bad lighting can cause eye strain, which may involve problems in the eyes (dryness, itching, or burning), headaches, tiredness, irritability, moodiness, etc. Consequently, correct lighting should allow the distinguishing of shapes, colors, and objects in movement and the appreciation of the relief, and furthermore, allow everything to be done easily and without fatigue, i.e., to ensure visual comfort permanently [5].

The evolution of the technology in lighting aims to accomplish three objectives: better photometrical performance, which allows the improvement of the quality of the light regarding the user's needs, better energy efficiency, offering a higher illuminance with less energy consumption, and improving the performance of users while ensuring the visual comfort in task developing [6].

Moreover, lighting is one of the largest sources of energy consumption in buildings and accounts for 5–15% of the total electric energy consumption [7,8]. For this reason, when we adjust the lighting we have also the opportunity of improving its energy efficiency.

To achieve proper lighting in workplaces, two standards were analyzed: EN 12464-1 [9], which is relative to lighting of indoor workplaces, making special emphasis on the fulfillment of visual comfort and the performance of colors and standard requirements, and EN 12464-2 [10], relative to the lighting of outdoor work places. In both regulations, the lighting requirements are established regarding the activity.

On the other hand, the current mobile phones, or smartphones, are rapidly becoming the primary computing platform for many users [11]. Smartphones have turned out as the key between human interaction and digital devices [12,13].

Keeping in mind the fact of the importance of smartphones, joint with the problems found in lighting management, this research aims to analyze how the development of a mobile application-based intelligent agen<sup>t</sup> based in rules may help to enhance the lighting levels (illuminance) in workplaces, allowing users to manage and assess consumption and providing information about occupational risks prevention.

Mobile applications may create a huge amount of information. To take advantage of this information, a new concept is gaining attention worldwide: open data. This new concept is related to the disclosure and reuse of data for anyone to use to help invigorate society and the economy [14]. The application will be developed with the aim of generating an open data set with anonymous information about lighting measurements performed.

The paper has been divided as follows: Section 2 contains the analysis of prior research made on areas such the existing lighting regulations, lighting evaluation software, or the health problems derived from bad illumination. Section 3 shows the methodology followed to develop the system. Section 4 includes the architecture of the proposed system. Section 5 shows the main results obtained through the mobile application developed and the paper finishes with the discussion and conclusions obtained throughout the research.
