Next Article in Journal
Nutritional Analysis of Plant-Based Meat: Current Advances and Future Potential
Previous Article in Journal
Deformation of Existing Shield Tunnel Adjacent to Deep Excavations: Simulation and Monitoring Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic

by
Gonzalo-Alberto Alvarez-Garcia
1,2,*,†,
Claudia-Liliana Zúñiga-Cañón
1,†,
Antonio-Javier Garcia-Sanchez
2,†,
Joan Garcia-Haro
2,† and
Rafael Asorey-Cacheda
2,†
1
Research Group COMBA I+D, Universidad Santiago de Cali, Cali 760035, Colombia
2
Department of Information and Communication Technologies, Universidad Politécnica de Cartagena (UPCT), ETSIT, Campus Muralla del Mar 1, 30202 Cartagena, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Appl. Sci. 2024, 14(10), 4156; https://doi.org/10.3390/app14104156
Submission received: 16 April 2024 / Revised: 8 May 2024 / Accepted: 10 May 2024 / Published: 14 May 2024

Abstract

:
Managing red–green–blue (RGB) lighting conditions within structures may evoke emotions and positively influence behavior. Intelligent RGB lighting systems based on environmental data measurements can substantially enhance the perception of comfort. This study presents a challenge that requires a holistic and integrated approach to implement an automatic RGB artificial lighting control system that can be utilized in various structures and indoor environments. Initially, the challenge spans the identification of environmental variables directly impacting comfort up to the careful selection of suitable sensors. The result is the development of a sophisticated and autonomous system that can adjust RGB lighting in real time, creating environments that are both comfortable and energy-efficient. This automated system fosters the creation of appropriate atmospheres across different contexts. The identification and monitoring of environmental variables are achieved through a neuro-fuzzy control mechanism, where fuzzy rules and membership functions are defined based on late positive potential timings and the influence of artificial lighting on human emotions. The outcomes from this study are an interconnected system capable of performing both online and offline operations to enable the monitoring of environmental variables and the efficient management of artificial lighting based on these metrics. A pilot study, with reference to an EEG wave registry system, yielded significant results. These tests had a statistically relevant result with an average frequency of approximately 9.8 Hz, indicative of a state of comfort among people. Despite a 10% deviation margin, 87% of measurements during the test remained consistent. This research study contributes to human behavior by fostering a relaxing environment and enabling a reduction in energy consumption through the use of efficient lighting. Moreover, the environment intention enables the creation of stimuli in three emotional states: activation, relaxation, and neutral, allowing behavioral adaptation to an intention to occur automatically in fluctuating environmental conditions.

1. Introduction

Artificial lighting can have a strong influence on people’s emotions and behavior. Inadequate lighting exacerbates fatigue or may trigger aggressive responses in people. Contrary to common belief, adequate lighting does more than just illuminate a space; it enhances the sense of well-being among individuals, boosts concentration, and fosters productivity. In the research the design of lighting indicates that LED lighting with a correlated color temperature (CCT) and an illuminance level can significantly improve visual comfort [1]. It has also been observed to provide good visual comfort and task performance, suggesting that fine-tuning the CCT and illuminance of LED lighting can lead to improvements in work efficiency and satisfaction.
A smart RGB lighting control system adjusts lights to create the appropriate environment at any given moment. The system operates automatically, with three possible states as reference: activate, tranquilize, or neutral. If the environment manager does not specify an intention state, the system initializes with a neutral condition.
The relevance of natural light is not only for energy efficiency, but also for psychophysical comfort and emotional connection with the environment [2]. Other studies like the strategic placement and monitoring of sensors are crucial for maximizing energy savings and ensuring the optimal performance of lighting systems in office environments [3].
This system utilizes the measurement of environmental variables with a holistic and integrated approach combined with a neuro-fuzzy controller that smoothly adjusts lighting transitions. The research begins with identifying environmental variables affecting behavior and selecting suitable sensors using AIoT (Artificial Intelligence of Things) systems.
Proper control of artificial lighting within a structure contributes to the well-being and productivity of people within. Different regions around the world have regulated indoor lighting. In Europe, the UNE 12464-1 standard [4] establishes parameters for lighting flux to meet three objectives: visual comfort, visual performance, and safety.
The UNE-EN 12464-1 standard [4] is a European regulation that establishes the requirements and recommendations for the lighting of indoor spaces. This standard provides clear and objective guidelines on the minimum levels of illumination, light uniformity, color rendering, correlated color temperature (CCT), and other parameters necessary for electric lighting to meet visual task comfort and performance.
The standard takes into account the Unified Glare Rating (UGR), the luminous level (Lux), and the color rendering (Ra). As for the CCT, the standard does not specify an exact value, but generally recommends a CCT that is appropriate for the type of activity and the conditions of the indoor space.
As for the illuminance (lx), the standard specifies different minimum illuminance levels for different types of tasks and workspaces. For example, for common visual tasks such as reading and writing in offices, the standard specifies a minimum illuminance of 500 lx.
Despite this regulation, lighting has a component that directly affects people: color temperature [5]. This is determined from the radiation principle of a black body and can be categorized into two variations: cold light (blue light), which occurs within the 10,000 °K range; and warm light (red light), which occurs from 1000 °K [6,7].
In this research proposal, artificial lighting serves as the control element. Within this context, research shows that lighting has such a strong power that it synchronizes the biological clock, indicating when we should prepare for daily tasks and when to take a break and sleep [8]. Its action also adjusts our emotions, which is why sunny days are considered happy days and stormy days are assumed to be sad [9]. In the field of artificial lighting, we can make this analogy and envision a control system that allows us to identify environmental conditions and suggest assistance to the emotional state of people within a space.
The effects of the lack of artificial light on the human body required a complex study that, in 2001, led to the discovery of additional light receptors, i.e., cells sensitive to artificial light [10]. The body has these receptors that send signals to the brain, regulating the day/night rhythm. This is what we call “circadian rhythm”, and using artificial light appropriately, we can adapt and enhance this cycle. These receptors trigger a biological effect by producing two hormones: melatonin, responsible for sleep, and dopamine, responsible for activity. These hormones influence blood pressure, vitality, heart rate, and mood, among others [11,12,13].
Effective control of artificial lighting can impact individuals by considering not only the visual effect but also the biological aspects, the environmental conditions and the feeling triggered, enhancing the effectiveness of stimuli [14]. Well-lit indoor environments directly influence behavior, as neurology studies have proven that light directly affects mood and enhances emotions [15,16].
In the field of artificial lighting, we can make this analogy and envision a control system that allows us to identify environmental conditions and suggest assistance to the emotional state of individuals within a space [17]. Visual stimulation of the retina generates information flow through the optic nerve to the thalamus, where visual cells process the information and transmit it to the visual cortex. Further information processing occurs in the visual cortex, generating responses measured in response time through LPT [13].
Artificial lighting systems have a direct impact on our emotions and can influence how we feel. Through their color, intensity, or color temperature, light can affect mood [8]. The measurement of chromatic lightings is conducted in degrees Kelvin, although it does not directly correspond to temperature.
The color value is determined as the temperature at which an ideal black body must be heated to emit a specific color. Hence, references to degrees Kelvin are used as a variable associated with color. Colors tending toward red (2.000 °K) have an energizing effect, while those with a blue tone (10.000 °K) induce a calming effect, and amber or white light (natural light at 6.000 °K [18]) maintains the current mood. The Figure 1 illustrates the temperature–color relationship and the resulting thermal sensation conveyed [19].
The direct relationship between the human body and lighting is known as the circadian rhythm. This rhythm can influence important bodily functions such as hormone release, eating habits, digestion, and body temperature.
It changes with natural lighting conditions and affects the perception of attention or sleep depending on the stimulus and lighting color temperature. Previous research studies have proven that changes in the circadian cycle directly affect people’s behavior and, therefore, mental health [7].
Beyond lighting, environmental factors like temperature, humidity, UV radiation, and acoustic pressure influence our comfort levels within certain indoor structures. The inherent nature of a structure implies a certain level of impact; for instance, governmental facilities, hospitals, transportation hubs, or bustling structures often create stressful environments. This may result in subtle triggers affecting individual and/or group behavior, leading to chaotic situations.
Late positive potential (LPP) is a neural response associated with emotional attention. It has been observed that this potential is modulated as a response to emotional stimuli, and controlled environments can influence LPP as well [20].
Maintaining suitable conditions within indoor structures contributes to shaping emotions [21]. When within a structure, regulating conditions influences behavioral intentions. For instance, in high temperatures, people may choose between opening windows to cool down or keeping them shut to block out external noise [22].
This comprehensive approach aims to establish a system leveraging artificial light as a behavioral regulatory parameter. hlIt has a functional role in terms of adhering to luminous Lux (lx) requirements and also specifies lighting temperature requirements to create suitable stimuli for the environment’s or structure’s programmed intention [21].
Despite various regulations and standardizations concerning artificial lighting, limitations persist mainly in terms of functionality and luminous (lx). For instance, hlthe UNE 12464-1 [4] standard notes specific limitations across different structures.
In certain specific cases, such as healthcare facilities or art schools, the standard sets lighting that facilitates color identification, requiring color temperature radiation > 6000 °K. In other structures, glare phenomena may lead to risk situations, such as when entering or exiting a car tunnel, where rapidly changing lighting conditions can affect drivers’ visual capabilities [23].
In educational structures, excessive or defective lighting levels could create environments unsuitable for reading or writing. Cold lighting may also enhance the feeling of being outdoors, thereby allowing for longer exposure times indoors. Conversely, warm light fosters a calmer environment and promotes social positivity [24].
For these reasons, the research addresses the potential of artificial lighting within several structures and indoor environments as a comprehensive system that enhances the well-being of individuals within. The developed system has the capability to measure environmental conditions such as temperature, relative humidity, UV radiation, and acoustic pressure within an enclosed structure or environment [23].
This measurement aligns with the intended atmosphere of the environment, which may be activating, relaxing, or neutral. Based on the measured values and the intention, the system, equipped with neuro-fuzzy control, adaptively creates a response of artificial lighting in terms of both radiated power and color temperature.
The overarching workflow diagram in the Figure 2 delineates how the system unfolds the control process as a closed-loop system. Furthermore, the diagram exhibits the flow of research development, encompassing each step to solidify the design.
This enables the system to generate light stimuli conducive to functionality and positive behavior. By considering in the influence of other environmental variables, the system ensures energy efficiency and aids in preventing overstimulation.
The research has led to several contributions:
  • Development of an AIoT Lighting System: An innovative RGB lighting control system based on AIoT technology is introduced. Acting as an invisible master of ceremonies, this system dynamically adjusts lights to create favorable environments and enhance spatial perception.
  • Integration of weather sensors: The proposed system integrates with weather sensors to adapt lighting to changing environmental conditions. This approach reflects a profound understanding of the correlation between climate and lighting preferences, thus enabling personalized environments.
  • Neuro-fuzzy control for customization: A novel approach is introduced using neuro-fuzzy control to correlate environmental variables with artificial lighting conditions. This allows for precise and adaptive adjustments in response to changes in human emotions, fostering friendly and swiftly adaptable environments.
  • Application in social and enclosed structures and environments: The system is tailored for structures of diverse nature, serving as a visual stimulus to contribute to intended emotional states in the target audience. This practical application suggests the versatility and adaptability of the system in structures such as offices, homes, or public spaces.
  • Energy efficiency and sustainability: Highlights the system’s capacity to reduce energy consumption through efficient lighting implementation. This contribution not only prioritizes emotional well-being but also emphasizes environmental sustainability and resource optimization.
This holds significance as it has been proved that  90% of the time when natural light is available individuals in Western societies tend to stay indoors, be it in academic, work, or recreational environments.
The system hypotheses are implemented via fuzzy rules and the system is validated through a pilot test. A concept test is conducted, demonstrating the system’s real capacity, with significant outcomes. Among these, an average frequency of  9.8 Hz during the test indicates a calm state, supporting the hypothesis that adaptive lighting positively influences emotions.
This paper provides a comprehensive description of the construction of the instrumentation system, enabling other researchers to replicate and expand upon this approach. Moreover, this study serves as a conduit for comprehending and implementing the proposed AIoT technology in scenarios where devices can extend beyond merely illuminating a space.
With a neuro-fuzzy system that adjusts automatically based on collected information, the system can be placed in different social contexts, irrespective of language or cultural barriers. This is achieved due to the system adaptability using AI to fine-tune controller parameters.
The research is anchored in the objective of enhancing the control capabilities of a system for turning artificial lighting on and off within a structure. While the system is based on maintaining levels based on CCT values, this implies a limitation in the approach susceptible to errors, it enables the use of other approaches in future research. This system aims to create structures with a “sense”, to generate stimuli in accordance with intention, thereby requiring each component of the system to be self-contained and operate independently. However, this architecture implies system compatibility with different elements of the AIoT concept as part of a broader technological ecosystem.
The remainder of this paper is structured as follows: First, relevant previous research informing the research approach is presented. Then, the foundational concepts underpinning the proposal are introduced. Second, the system’s design and features will be discussed. Third, the development parameters used, the implementation, and the tests conducted will be discussed. Fourth, the experiences and some results will be explained, and finally, the system’s capacity in the proposed context will be concluded.

2. Related Work

The system under development aligns with the technological perspective and aims to contribute to human emotions and behavior within different structures. This system poses a scenario of application in environments, whether private, personal, or social, considering technology as a means rather than an end. Beginning with the concept of AIoT, derived from Artificial Intelligence of Things (AIoT), which originated from home automation control systems.
AMI (ambient intelligence) refers to automated systems integrating technology into homes to enhance life quality, comfort, security, and energy efficiency. These systems enable centralized and/or remote control and management of various domestic aspects such as lighting, air conditioning, appliances, security, blinds, and irrigation.
Within AMI, lighting control refers to the ability to control lights within a structure in an automated or remote manner. It can offer comfort, energy efficiency, and security.
Ambient Assistant Live (AAL) is an application referring to artificial lighting, ambient sound, and temperature control system applications. It facilitates remote lighting control via a mobile application or voice commands. In the case of having DIMMER controllers, they enable lighting regulation beyond simply turning lights on and off.
AAL enables custom scene development, defining different lighting settings for various situations such as “Dinner Mode” or “Movie Mode”. AAL aims to create user behavior patterns depending on technology usage over different times and days.
AMI and AAL fall within the IoT technological paradigm, with increasing influence of artificial intelligence (AI). The driving concept behind the research is AIoT, which refers to the combination of IoT with AI, in addition to using psychological and social engineering concepts and their influence on complex situations like behavior, which is where the proposed development converges.
In the research by Xiayun [25], the correlated color temperature (CCT) and illuminance level of LED lighting affect visual comfort during sustained attention tasks. It was found that a CCT of 3300 K and an illuminance of 300 lx result in greater visual comfort, according to electroencephalogram (EEG) signals, sustained attention tests, and participants’ subjective evaluations.
In addition, it was observed that a CCT of 4000 K also provides good visual comfort and performance in tasks. These findings are significant for the design of LED lighting tools, as they suggest that adjusting the CCT and illuminance can improve efficiency and satisfaction in work and studying.
Adaptive lighting is an emerging concept in the IoT realm, applicable to both AMI and AAL. This technology does not require sensors; instead, users define parameters based on their intended usage before the use of the necessary technology for its operation. Other elements of adaptive lighting systems use photosensitive sensors to adjust lighting automatically according to environmental conditions, thereby enhancing comfort and energy efficiency.
Motion sensors are essential components of adaptive lighting, detecting human presence and activating lights accordingly. This not only improves comfort by eliminating the need for searching for light switches, but also can contribute to security by deterring intruders. Moreover, adaptive lighting can reduce energy consumption by ensuring lights are only on when required and at the necessary power.
Through a detailed study conducted in an open-plan office in Singapore, the impact of illuminance sensor blockage on desks on the efficacy of daylight harvesting was investigated. Employing a support vector machine (SVM), an algorithm was developed that could detect with 99% accuracy whether the sensors were blocked or not, enabling the identification of a 24% energy wastage due to obstructed sensors. This finding underscores the significance of sensor placement and monitoring to maximize energy savings and ensure the optimal performance of lighting systems in office settings [3].
Within the AAL and AMI context, adaptive lighting holds even broader applications. For instance, in healthcare environments, adaptive lighting can be used to enhance patient comfort and aid in recovery, while in active aging environments, it can improve safety and independence for elders.
Adaptive lighting can also have a significant impact on health and well-being. Using the proper rules, it allows the body’s internal cycles that determine sleep and wake patterns to be influenced by light. By adjusting the intensity and color temperature of light throughout the day, adaptive lighting can help synchronize these circadian rhythms, which can improve sleep quality and daytime performance.
The study evaluated human reactions to different TC window tints, finding that blue-tinted windows increased alertness but reduced acceptability, while bronze-tinted windows provided more natural and acceptable lighting conditions. Visual Tasks Performance: Subjects performed visual tasks under various TC conditions, with significant effects observed in color naming tasks. Energy Efficiency vs. Occupant Comfort: The research highlights the importance of balancing energy conservation goals with the visual and comfort needs of building occupants [26].
Driven by sensor technology, adaptive lighting has the potential to transform our living and working environments. As the technology advances, it is possible that we witness more innovative applications in the future. However, it is also important to consider potential implications regarding privacy and security. Our research is grounded in ethical and responsible implementation practices.
This study distinguishes itself from others in terms of the integration of AIoT for real-time decision making. Other studies may use different approaches, such as open-loop systems, sensor-based systems, or centralized control.
The correlation between environmental and emotional variables to determine lighting conditions is key to create an environment that contributes to activation or relaxation in a real setting.
Conducting a pilot test using an EEG sensor by changing the stimuli and measuring specific deviations. These results indicate the relation between the direct influence of the proposed system on perception and behavioral contribution.
Our research proposal uses fuzzy rules and membership functions in neuro-fuzzy control, which is a novel approach for adjusting artificial lighting conditions.
Furthermore, the proposed system results in a reduction in energy consumption through efficient lighting.
Lastly, the self-contained system can operate both online and offline, offering advantages in privacy management or in structures lacking connectivity.

3. Methodology

The research started from the hypothesis of the impact of artificial lighting on structures of varying natures to influence behavior. Based on these premises, a neuro-fuzzy controller and membership functions were proposed. This involved correlating environmental conditions with artificial lighting output using inference rules. Lastly, the design underwent validation through a pilot test.

3.1. Artificial Chromatic Lighting

According to studies on color incidence, emotions and behavior change. Blue light can increase attention and alertness, while warm light can induce relaxation, according to the study [9]. Exposure to specific chromatic lightings, particularly a blue light in the morning spectrum, can influence sleep-wake patterns [27]. Another study defines that warm, yellow light may evoke feelings of warmth and comfort, whereas cold light can create a more stimulating environment [28]. In addition, red light was found to potentially increase appetite, while blue light may suppress it [29]. In the system, the RGB configuration enables the adjustment of color palettes with 256 values for each RGB color [30]. A limited set of colors, known as Cyan–Magenta–Yellow–blacK (CMYK), is used, associated with the emotions intended to be evoked; see Table 1.
The UNE 12464-1 [4] European technical standard recommends between 300 and 500 lumens on indoor surfaces, with a color temperature between 5000 k and 6000 k for tasks requiring reading or focusing on artificial light sources [31].
Warm or neutral temperatures ranging between 2700 °K and 4000 °K are preferable for contemplative activities, with intensity varying between 100 and 400 lumens. A very strong lighting can induce fear and alter human behavior [32]. The system design enables power control [33] and reproduction of colors from the RGB palette at 8 bits (Figure 3).
Lighting power is proportional to volume and distance from the source; an important index to consider is the color rendering index (CRI), which ranges from 0% to 100% considering values < 60% as subpar lighting [34]. This makes the design to include a power transistor output for easy adaptation to higher power controllers if required due to environmental conditions.
During system development, various scenarios and control schemes were considered, including open-loop controls and advanced AI-based systems. An analysis of system capabilities, response time, and implementation efficiency concluded that neuro-fuzzy controllers are one of the most effective alternatives.

3.2. Measure Environmental Variables

Environmental variables are selected for analyzing the conditions within the structure. The first variable is related to the perception of heat in the environment, which is why temperature and relative humidity are measured as significant factors to establish hypotheses on the behavioral state [35].
A second variable involves the perception of light radiation on the body, for which two factors are considered: the UVA and UVB radiation index. This factor is crucial because it triggers the production of hormones such as dopamine and melatonin, which can induce states of “euphoria” or “calmness” in the body [36].
The third variable is acoustic power, understood as the amount of sound perceived in the environment. This factor, associated with its frequency, can be understood as noise. Depending on the levels, it can cause physical discomfort and, at higher levels, trigger aggressive behavior and low productivity [37].
These variables establish a direct relationship with mood, and their study and analysis can create suitable conditions to influence people’s behavior in a closed environment.

3.3. Membership Function Parameters

Initially, membership functions are established for each of the identified environmental variables. For the controller, three reference moods and three output states are defined: activated, relaxed, and neutral. These states constitute the membership functions and describe how the different measurements are assigned to each fuzzy category.
Using linguistic descriptors, fuzzy rules that relate environmental variables to behavioral states and associated colors are created. For instance, a rule might state “The desired state is ‘Relaxed’ IF UV radiation is low, temperature is HIGH, and relative humidity is HIGH THEN the behavioral state must be relaxed, and the lighting must be blue with HIGH power” (shows Figure 4). The reference acts as the control input, alongside readings from sensors measuring relative humidity, temperature, UV index, and acoustic pressure. The values considered are averaged, as per Table 2.
The program performs conceivable combinations of all variables, aligning with the references provided in the Table 2, to achieve an impact aligned with the intended stimulus, recognizing that input and output conditions are discrete. Conditions use the fuzzy inference engine to assess fuzzy rules and determine the corresponding lighting color and required power. The inference engine will calculate the membership degrees of the environmental variables to the membership functions and will apply fuzzy rules to obtain results.
The output of the inference engine generates an 8-bit PWM signal to control RGB lights, adjusting the intensity levels of each color (red, green, and blue) according to the colors associated with the given behavioral state.
Data can be gathered to develop a lighting system that enhances the desired behavior, not only by relying on lighting references, but also by incorporating a suggested mood in the environment [38].

3.4. Late Positive Potential (LPT)

LPT can be used to study how visual stimuli affect human behavior [33]. In particular, these techniques can be used to investigate selective attention and emotional processing of visual information.
LPT is an electrical response of the brain that occurs several hundred milliseconds after the presentation of a visual stimulus, and has been linked to attention and memory processes. There are several mathematical models that have been proposed to describe the LPT.
One of the most widely used models is the attention cascade model of Polich and Kok (1995) [39]. This model describes LPP as a series of selection and amplification processes that are activated based on the subject’s level of attention to the visual stimulus. In this model, LPP occurs as a result of the interaction of two main components: N1–P2, which reflects early and automatic neuronal activity, and P3, which reflects late, attentional neuronal activity.
L P P ( t ) = A · e t t N 1 τ N 1 p + B · e t t P 3 τ P 3 q
where
  • t: time in milliseconds A: amplitude of the early response (N1–P2);
  • t N 1 : latency of the early response (N1–P2);
  • τ N 1 : width of the early response (N1–P2);
  • B: amplitude of the late response (P3);
  • t P 3 : latency of the late response (P3);
  • τ P 3 : width of the late response (P3).
Another model is the neuronal resonance model of Basar and Schürmann (2001) [40]. According to this model, the LPP reflects the neuronal resonance in the cerebral cortex. In this model, it is postulated that neuronal resonance occurs when the frequency of brain electrical activity matches the frequency of the visual stimulus, resulting in greater neuronal synchronization and a greater amplitude of the LPP.
L P P ( t ) = A · e t t N 1 τ N 1 2 + B · e t t P 3 τ P 3 2 · ( 1 H ( t t P 3 d 2 ) ) · H ( t t P 3 d 2 ) + C · H ( t t P 3 d 2 ) · H ( ( t t P 3 + d 2 ) )
where
  • t: time in milliseconds A: amplitude of the early response (N1–P2);
  • t N 1 : latency of the early response (N1–P2);
  • τ N 1 : width of the early response (N1–P2);
  • B: amplitude of the late response (P3);
  • t P 3 : latency of the late response (P3);
  • τ P 3 : width of the late response (P3);
  • H: Heaviside step function;
  • d: width of the rectangle used to model the shape of the late response (P3);
  • C: height of the rectangle used to model the shape of the late response (P3).
In general, mathematical models of the LPP seek to explain the neurophysiological processes underlying this brain response. Each model proposes a different explanation of the LPP, but they all agree that this response reflects processes of attention, memory, and neuronal resonance in the cerebral cortex [41].
In the LPP models, it is also observed that external phenomena such as the amount of light perceived by a person affect the response and its contribution to the total response. Whether this light is emitted by a natural or artificial source. In both models according to Figure 5a,b, the calming or activating action of the LPT can be seen. This stimulus that modifies the conditions of the EEG signals is present at a time close to 400 ms.

3.5. System Design

A behavior regulation system with an AIoT system acting as a controller is depicted in the Figure 6. Given the expected environmental conditions (activation, relaxation, or neutral), the system suggests a visual stimulus by adjusting the artificial lighting of the environment in terms of intensity, color, and temperature.
To design the system, see Figure 6, starting from the concept of closed-loop control, establishing the different input conditions. This is performed in the following steps and defined according to the LPT model (see Figure 5a,b), and a stimulus time of 400 ms as the maximum system response time for the stimulus to have a significant impact. Then, a neuro-fuzzy control is designed using membership functions and table inference rules Table 2.
The feedback system allows for permanent monitoring of variables and maintenance of adequate lighting conditions to sustain behavioral intention.

3.6. Updating Membership Function Parameters Using AI

In fuzzy control systems, membership functions are critical for modeling uncertainty and variability in the system inputs and outputs. Membership functions define the assignment of input values to fuzzy sets, such as “low”, “medium”, or “high”. The system adjusts the limits of the membership function using AI tools, directly impacting the performance of the fuzzy controller and allowing adjustments to different structures and contexts of use. Online-collected data enable the system to determine capacity and regulate boundaries between fuzzy sets.

4. Results

4.1. System Design and Operating Parameters

Temperature, relative humidity, acoustic pressure, and UV radiation are the determining factors of the system as they directly impact people’s emotional reactions and behavioral tendencies [42].
The NODEMCU development board operates at a voltage of 3.3 volts and has only one ADC channel. Considering these parameters, sensors with digital communication capability are preferred to optimize ADC conversion, the final design can be seen in the Figure 7. Another crucial consideration is determining the sensors’ response speed according to the LPP times, which have a reaction time of 100 ms to control a condition or disturbance of the measured environmental variables. Therefore, it was decided that the temperature sensor used should have digital connectivity. Thus, a sensor based on the I2C protocol was selected [43].
The AM2315C sensor is used to measure temperature and relative humidity. It includes a small microprocessor responsible for converting the signals from the internal thermistor and capacitive humidity sensor into calibrated digital form [44]. Among others, the sensor is suitable for outdoor use, with an I2C address of 0 × 38, and the following specifications: Power supply: 2.5 to 5.5 V, consumption: up to 10 mA, humidity accuracy: 2% from 0% to 100%, temperature range: −40 °C to 80 °C with an accuracy of ±0.1 °C, and sampling frequency: 0.5 Hz.
The MAX9814 acoustic pressure sensor is capable of measuring frequencies in the audible spectrum between 20 and 20 kHz. It has a peak voltage of 2 Vpp with a bias of 1.25 V and is compatible with an ADC up to 3.3 V. Due to the sensor’s analog response, the Nyquist–Shannon sampling theorem is implemented in the code; in this case, the ADC component of the NodeMCU has sufficient speed to read the values [45].
UV radiation was measured using the S12SD ultraviolet light sensor, which can measure wavelengths between 240 and 370 nm. It can fully measure UVB wavelengths and most UVA wavelengths directly and proportionally without the need for converting or adapting a light sensor or photocell [46]. Powered between 2.7 and 5.5 V, the test socket response is calculated as I n d U V = A D C v o l t a g e / 0.1 v to determine the UV index measurement. This sensor is capable of detecting power levels of around 9 mW/cm2.
Two criteria must be met for connecting analog and digital sensors to the system. Analog sensors require an ADC input, and since the NodeMCU has only one channel, the analog inputs must be multiplexed. This involves switching the signal with a 2-to-1 multiplexer (74HC4053D) acting as a relay and obtaining the output samples to the NodeMCU’s ADC [47].
UV measurements are obtained through input 0, with a very low rate of variation requiring a sample every 5 s for this variable. Input 1 is dedicated to acoustic power measurements, requiring a higher sampling speed to analyze signals in the audible spectrum, considering a maximum signal frequency of 25 kHz. Measurements are taken at a sampling frequency of 50 kHz [48].
Temperature and relative humidity measurements are transmitted in a single frame from the sensor to the microprocessor via I2C, using the sensor’s 7-bit address (0 × 38). In this frame, temperature data are represented by 12 bits and relative humidity data by 8 bits.
Power transistors are used to generate the PWM signal for each output, providing 8 bits of control (0–255). This output allows modulation of the intensity of each color output in the RGB [49].
The tape used has a total power of 10 W. With a minimum activation power of 20% and a range of (50–255), the intensity control signal allows for modulation of the lighting intensity for all color outputs [50]. The output power device can be adjusted to accommodate any type of AC or DC load source without affecting its behavior, for higher or lower power systems depending on the area to be illuminated [51].

4.2. Information Management

The system accesses two peripherals, the I2C bus and the ADC, to collect data. The system retrieves the information and temporarily stores it locally in a structure enabling remote data transmission [52]. El dispositivo puede almacenar hasta 12 días de registro gracias a los 4 MB adicionales de memoria añadidos a la placa NodeMCU y a su salida de datos que incorpora un registro de 32 bits [53].
Thanks to an additional 4 MB of memory added to the NodeMCU board and its data output incorporating a 32-bit register, the device can store up to 12 days of logs. Data-processing activities are limited to connection and transfer operations due to the internal storage capacity of the Esp8266 microprocessor [20]. Data communication occurs via the WiFi network, requiring access to a network point [54].
Initially, the system verifies connectivity with the access point [55]; if unsuccessful, it operates in offline mode, using the last configuration obtained from the server [56]. In the absence of a record, the system defaults to the medium environment configuration (Neutral). While offline, the system builds a data record and sends the data stored in the buffer once the connection is restored [57].
Connected to the network, data are transmitted to an InfluxDB database designed for time-series data storage. The recorded data build a database that, in addition to having the values, includes the temporal label of the record. This allows for the analysis of the information and the traceability of the proposal. Data visualization and access are also accessible through the GRAFANA viewer, offering visualization on different time scales and access to data as a flat file for external analysis from any application [58].
Within the viewer, a dial is used to select the expected state of the environment. These datasets are stored in the cloud via the network, and a circular buffer on the device is used to temporarily store data in case there is a network connection problem [59].
This type of logging implies that the data are stored for a certain period of time; in case the system cannot reconnect to the network, it will retain the data for 12 record days [60]. These datasets are stored in a non-volatile memory, ensuring that even power failures can maintain the stored data [60].

4.3. Software

Designing software to control an RGB lighting system based on AIoT technology that works both online and offline requires special considerations. The Algorithm 1 describes the necessary functions and steps to achieve this purpose.
Algorithm 1 RGB lighting AIoT control
1:
procedureCONTROL AIoT                ▹ System Operation
2:
     c r e d e n t i a l W i F i u s e r   &   k e y
3:
    while  C O N N E C T E D W i F i 0  do               ▹ Try to connect
4:
         S t a t e N e u t r a l
5:
         c o n t r o l A I o T R E A D ( T e m p , R H , U V , A P )
6:
         R G B D E S F U Z Z Y ( c o n t r o l A I o T )
7:
         d e l a y ( 1000 )
8:
         W i F i B E G I N
9:
    end while
10:
     i n f l u x D B C l i e n t I P   &   P O R T   &   D B
11:
    while  C O N N E C T E D i n l f u x D B 0  do           ▹ Try to connect
12:
         S t a t e S e l e c t O F F L I N E ( )
13:
         c o n t r o l A I o T R E A D ( T e m p , R H , U V , A P )
14:
         R G B D E S F U Z Z Y ( c o n t r o l A I o T )
15:
         I p D i s p l a y ( T e m p , R H , U V , A P , S t a t e , R G B )
16:
         d e l a y ( 1000 )
17:
         i n f l u x D B B E G I N
18:
    end while
19:
    On_Line  C O N N E C T E D                  ▹ Dashboard
20:
     S t a t e S e l e c t O N L I N E ( )
21:
     c o n t r o l A I o T R E A D ( T e m p , R H , U V , A P )
22:
     R G B D E S F U Z Z Y ( c o n t r o l A I o T )
23:
     G R A F A N A _ D i s p ( T e m p , R H , U V , A P , S t a t e , R G B )
24:
    UPDATE_DESFUZZY
25:
end procedure
Some of the specific objectives of the algorithm are as follows:
  • Controlling RGB lighting: The D E S F U Z Z Y function is responsible for controlling RGB lighting, allowing the user to turn on, turn off, and adjust the color, intensity, and other parameters related to lighting.
  • Communicating with the online AIoT system: The i n f l u x D B B e g i n function establishes communication with the online AIoT system, which may involve sending commands and receiving responses or updates on the status of the lights.
  • Storing and loading the configuration in offline mode: The W i F i B e g i n functions are used to store the configuration locally when there is no internet connection and to load it later. This ensures that lighting settings are preserved and can be applied in the absence of an online connection. This connects to the INTRANET.
  • Initializing and running the main loop of the system: The C O N T R O L A I o T algorithm describes the steps to initialize the system, including loading the previous configuration in offline mode. Then, the main loop is executed, where the user’s input is read and the corresponding actions are performed. Finally, a proper termination of the system is ensured, storing the updated configuration in offline mode.
The general purpose of this algorithm is to provide a comprehensive design for software that allows for controlling an RGB lighting system using AIoT technology, providing the ability to operate online and offline. In addition, it allows the user to control and adjust the lighting interactively and with standard operation for the system’s basic connections by simply powering the controller.

4.4. System Validation Pilot Test

To ensure the functionality of the system, a pilot test was conducted using a portable three-electrode EEG system, with data coherence validated through ECG. A total of 50 volunteers, aged between 18 and 48 (12 women and 18 men), participated in the perception test of the proposed system.
Figure 8 shows the illuminance levels at a distance of 2.5 m from the RGB light source and a variation between 500–700 lx with a source power of 100 W in an LED lamp. According to the UNE 12464-1 standard [4], lighting for reading activities should have a minimum of 500 lx.
In a closed environment for 5 min, participants were seated to read a children’s story, aiming to neutralize potential text-induced effects during the test. While the volunteers read the text, the system recorded environmental data and adjusted lighting.
Throughout the pilot test, the environmental intention reference was altered. Six changes were made every 50 s during the test. The changes were random, allowing for the identification of signal changes without bias of intention.
To mitigate bias or noise due to external interference, volunteers were asked to switch off their mobile phones during the test. The recording lasted for 5 min, with a sampling rate of 100 Hz. EEG recordings showed a notable correlation with RGB lighting changes, performing changes in the environmental reference. Statistical results of the experiment are depicted in Figure 9. Figure 9 shows data variation in the consistent EEG register. Despite the lighting color changes, the EEG recordings show consistent values. The system’s automatic adjustments help maintain stable environmental conditions. The figure illustrates how the fitting data vary with each color shift in the lighting. This suggests a robust mechanism for controlling environmental factors in the EEG study.
This experiment aligns with the objective of maintaining a reference parameter, and the diagram shows that, despite variations in the central frequency among volunteers, said variation is slight compared with the stimuli that try to enhance people’s well-being.
To validate the data, the reference signal was randomly modified every 50 s with six alterations. Figure 10 illustrates the variation index of the test along the diagonal. In the diagonal graphs, the tracking of intention with control action is visible, and below the diagonal lies the average representation of samples around the reference frequency.
Above the diagonal, you can see the reference tracking indices for each of the tests and each of the subjects. Below the diagonal is the diagram of the reference records (continuous line) and the recorded values (points). In this diagram, the experimental data were arranged in groups of five subjects to make the diagram visible against the changes of the emotional reference in the control system.
The set of images displays the outcomes from the 30 test subjects. There is a maximum variation of 85.00% change in the reference signals and a minimum variation of 0.52% between reference signals during the pilot test. In both instances, the system shows its capability to track the subjects’ emotional intentions, maintaining a signal that aligns consistently with the changes.

4.5. Lighting Correlation with Environmental Conditions

The system can generate personalized environments using RGB lighting. It allows for customized lighting settings for various activities such as reading, working, relaxing, or entertaining. This helps setting the mood and creating suitable atmospheres for each occasion. Upon going online, the system can update sensitivity levels and parameters of membership functions, transforming its development into a system that adapts to the specificities of each space.
By perceiving external stimuli and adjusting lighting conditions alongside real-time data analysis on the terminal device, as depicted in Figure 1, the system optimizes the use of RGB lighting to reduce power consumption. This occurs because the system adjusts its response to the late positive potential (LTP) times within the initial 100 ms, aligning the values according to the reference.
The controller combines different conditions and adjusts the RGB signal. Figure 11 shows the control action directly on the RGB signal values; even though it is a discontinuous signal, the adjustments are seamless, enabling adequate lighting during changes in environmental conditions, irrespective of natural light effects.
In Figure 11, variations in the RGB signal (intensity) are observed. This value represents an 8-bit PWM signal. Despite its maximum value being 256, signal adjustments occur around 125, meaning it utilizes approximately 48% of the PWM activation signal. If we consider that the system, due to activation losses and power transfer, can achieve an energy efficiency of 87%, it implies that the total power consumed is around 57% of the total power of the RGB system.
This observation suggests that there is potential for optimizing the power utilization of the system, which could lead to significant energy savings in long-term operation.
This transformation imbues the implemented structures with a sense of “meaning”, contributing positively to emotions and stimulating behavioral intentions.

4.6. Integrated System

The development of the terminal is part of an ecosystem that allows for the integration with other systems within the AIoT environment. This integration enables synchronization with security systems, emotional parameter detection, visualization tools, and auditory stimulus generators to offer a more comprehensive and optimized experience. Using the NodeMCU8266 as the microcontroller system in the RGB lighting control system unlocks several features and capabilities inherent to the NodeMCU8266, facilitating an effective system implementation. The NodeMCU8266 boasts built-in Wi-Fi support, enabling wireless communication with other devices and networks. This is instrumental for connectivity within the RGB lighting control system, facilitating communication with mobile applications, cloud servers, or other smart devices within the environment. The implementation of fuzzy logic within the ESP8266 NodeMCU enables intelligent and seamless adaptation of RGB lighting control, considering multiple factors and capturing subjective user preferences.
In the offline system (see Figure 12a), monitoring can be conducted using a local intraweb address, where the environmental intention can be selected. These datasets are processed within the terminal to make adjustments using fuzzy logic control within the LPP parameters.
In contrast, the online system (see Figure 12b) leverages the connection with the server to set more precise rules and make optimal decisions using artificial intelligence about configuring inference rule parameters. Data are uploaded using InfluxDB as a database to store sensor data, and using Grafana for data visualization within the RGB lighting control system using an AIoT approach. The system is linked to the InfluxDB database, generating a timeline label in minutes with a Unix time precision of 760,000 points, maintaining the integrity of sensor-collected data.
Data are transmitted every 30 s during online connections, with the system logging the transmission and reception of data. Subsequently, the data are processed and, based on the intended stimulus requirements, the microcontroller receives the data and then adjusts lighting automatically. Thanks to data coherence and repeatability, the system remains operational even during network disconnection tests, maintaining the last reference sent from the server. The system responds to data collected from various sources concerning the potential of lighting to act as a stimulus to trigger emotions or inducing behavioral conditions within an environment.

4.7. Limitations of the Study

The tests are conducted with the presumption that psychological studies and response analysis are considered from a technological perspective, along with the possibility of interpreting these standards and their suitability for real-world application.
Pilot testing is a method to validate a system under realistic conditions using a small sample of individuals. These tests are used to prevent system errors and confirm the hypotheses upon which the prototype is designed and constructed. Under no circumstance are they used to validate human behavior theories or models.
The system shows potential for implementation in different structures. For this particular case, indoor environments are considered, but there may be applications in outdoor systems as well, such as road infrastructure to prevent traffic accidents caused by driver fatigue or harmful effects due to poor lighting conditions within tunnels. Additionally, it may induce sleep through synchronization with structural elements in suspension bridges, prompting considerations for future studies.
Technology is geared toward contributing to AIoT-powered behavior, yet the system itself operates as an independent, self-contained entity, serving either as a terminal or as part of the AIoT ecosystem. Hence, a NODEMCU board is employed. The methodology can be adapted to boards with larger capacities or alterations in connection technology.

5. Conclusions

This paper outlines the implementation of a novel lighting regulation system that considers both the color and the intensity of light. Using neuro-fuzzy control, this approach enables people within indoor environments to experience appropriate lighting, both functionally and emotionally.
The development of this technique has led to the creation of an integrated device equipped with interoperable technology that can capture, store, transmit, and remotely display data. While the control system allows for remote data viewing and stimulus performance, the system operates autonomously and can store up to 12 days of data with sufficient energy support, preserving the most recent parameters received by the terminal.
The system’s storage capacity and database design facilitate the collection of data regarding the impact of lighting conditions and their influence on behavior, serving as a valuable resource for several fields of science.
The technology related to AIoT systems demonstrates how technological systems can approach and accompany people without necessarily competing with them. AIoT is a paradigm that suggests a future where people and machines will coexist through a constructive relationship between science, technology, and society.
An RGB lighting control system based on AIoT technology offers a diverse range of colors and shades, enabling the creation of personalized and creative environments. The ability to adjust references according to intention, mood, preferences, or specific needs creates a visually appealing and distinct environment.
Moreover, RGB lighting integrated with AIoT technology can enhance the atmosphere and aesthetics of structures. Different colors and lighting effects can be used to highlight architectural features, create a relaxing or stimulating atmosphere, or even establish a particular theme or mood.
Efficient electronic design and component selection have facilitated the development of the system within parameters of reliability, cost-effectiveness, and energy efficiency, critical considerations for an AIoT-based RGB lighting control system. The design must allow for seamless integration, optimize space, ensure reliability and low power consumption, be easy to use and maintain, and be cost-effective. These features contribute to a functional system that meets the project requirements.
Using AIoT technology involves collecting data in real time and processing them locally on the device. The datasets are sent encrypted with the Grafana server, ensuring the privacy of individuals masked with a 128-bit security token. The data reflect what is collected within an environment, independent of the individuals within; hence, the records could not be used for interests different from contributing to behavior in a behavioral reference.
Although an AIoT-based RGB lighting control system has an operational consumption of less than 100 mW, this value is lower than what it can offer in terms of customization and energy efficiency. The parameters should be adjusted and maintained between 60% and 100% of the color rendering index, and the output power should be adjusted to less than 90% of the nominal capacity of lighting systems, avoiding overstimulation and aiding in the lifespan of the power devices used. These tests yielded statistically relevant results with an average frequency of around 9.8 Hz, indicating a state of comfort among people.
Despite a 10% deviation margin, 87% of measurements during the test remained consistent. The implementation of artificial intelligence algorithms in the RGB lighting control system based on AIoT technology presents a still nascent paradigm, but it proposes a system that considers users and their particularities. Therefore, the system proposes a process of adjusting membership functions considering the response and environment characteristics.

Author Contributions

Conceptualization, G.-A.A.-G. and R.A.-C.; methodology, G.-A.A.-G., A.-J.G.-S. and R.A.-C.; software, R.A.-C.; validation, C.-L.Z.-C. and A.-J.G.-S.; formal analysis, G.-A.A.-G., A.-J.G.-S. and R.A.-C.; investigation, C.-L.Z.-C.; resources, J.G.-H.; writing—original draft preparation, G.-A.A.-G., J.G.-H. and R.A.-C.; writing—review and editing, C.-L.Z.-C., A.-J.G.-S. and J.G.-H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the grants PID2020-116329GB-C22 and TED2021-129336B-I00, funded by MICIU/AEI/10.13039/501100011033 and by the European Union NextGenerationEU/PRTR. This work was also funded by Fundación Séneca (22236/PDC/23). This work was also a result of the ThinkInAzul and AgroAlNext programmes, funded by Ministerio de Ciencia, Innovación y Universidades (MICIU) with funding from European Union NextGenerationEU/PRTR-C17.I1 and by Fundación Séneca with funding from Comunidad Autónoma Región de Murcia (CARM). This research was supported by the Asociación Universitaria Iberoamericana de Postgrado (AIUP). This research was supported by the project “Crowdsourcing Optimized Wireless Sensor Network Deployment (CRoWD)”, grant No. 613-621119-852, funded by Dirección General de Investigaciones of Universidad Santiago de Cali. This research has been funded by Dirección General de Investigaciones of Universidad Santiago de Cali under call No. 01-2024.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not aplicable.

Data Availability Statement

Data available in a publicly accessible repository: https://zenodo.org/records/10936369 (accessed on 9 May 2024).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Tregenza, P.; Loe, D. The Design of Lighting; Routledge: London, UK, 2014. [Google Scholar] [CrossRef]
  2. Andersen, M. Unweaving the human response in daylighting design. Build. Environ. 2015, 91, 101–117. [Google Scholar] [CrossRef]
  3. Kent, M.; Huynh, N.; Selkowitz, S. Using support vector machine to detect desk illuminance sensor blockage for closed-loop daylight harvesting. Energy Build. 2022, 274, 112443. [Google Scholar] [CrossRef]
  4. UNE-EN 12464-1:2022; Technical Report. European Norm (EN). Spanish Association for Standardization (UNE): Madrid, Spain, 2022.
  5. Boix-Vilella, S.; Saiz-Clar, E.; León-Zarceño, E.; Serrano, M.A. Influence of Air Temperature on School Teachers’ Mood and the Perception of Students’ Behavior. Sustainability 2021, 13, 9707. [Google Scholar] [CrossRef]
  6. Mota-Rojas, D.; Gonçalves Titto, C.; Orihuela, A.; Martínez-Burnes, J.; Gómez-Prado, J.; Torres-Bernal, F.; Flores-Padilla, K.; Carvajal-de la Fuente, V.; Wang, D. Physiological and Behavioral Mechanisms of Thermoregulation in Mammals. Animals 2021, 11, 1733. [Google Scholar] [CrossRef] [PubMed]
  7. Fan, Y.; Wang, Y.; Gu, P.; Han, J.; Tian, Y. How Temperature Influences Sleep. Int. J. Mol. Sci. 2023, 23, 12191. [Google Scholar] [CrossRef]
  8. Cho, Y.; Ryu, S.H.; Lee, B.R.; Kim, K.H.; Lee, E.; Choi, J. Effects of artificial light at night on human health: A literature review of observational and experimental studies applied to exposure assessment. Chronobiol. Int. 2015, 32, 1294–1310. [Google Scholar] [CrossRef] [PubMed]
  9. Ru, T.; de Kort, Y.A.; Smolders, K.C.; Chen, Q.; Zhou, G. Non-image forming effects of illuminance and correlated color temperature of office light on alertness, mood, and performance across cognitive domains. Build. Environ. 2019, 149, 253–263. [Google Scholar] [CrossRef]
  10. Cao, G.; Ma, Y.; Meng, X.; Gao, Y.; Meng, M. Emotion Recognition Based On CNN. In Proceedings of the 2019 Chinese Control Conference (CCC), Guangzhou, China, 27–30 July 2019; IEEE: New York, NY, USA, 2019; Volume 72019, pp. 8627–8630. [Google Scholar]
  11. Hettich, D.T.; Bolinger, E.; Matuz, T.; Birbaumer, N.; Rosenstiel, W.; Spüler, M. EEG Responses to Auditory Stimuli for Automatic Affect Recognition. Front. Neurosci. 2016, 10, 187526. [Google Scholar] [CrossRef]
  12. McCreadie, K.A.; Coyle, D.H.; Prasad, G. Sensorimotor learning with stereo auditory feedback for a brain-computer interface. Med. Biol. Eng. Comput. 2013, 51, 285–293. [Google Scholar] [CrossRef]
  13. Petro, L.S.; Paton, A.T.; Muckli, L. Contextual modulation of primary visual cortex by auditory signals. Philos. Trans. R. Soc. Lond B Biol. Sci. 2017, 372, 20160104. [Google Scholar] [CrossRef]
  14. González-Hernández, F.; Zatarain-Cabada, R.; Barrón-Estrada, M.L.; Rodríguez-Rangel, H. Recognition of learning-centered emotions using a convolutional neural network. J. Intell. Fuzzy Syst. 2018, 34, 3325–3336. [Google Scholar] [CrossRef]
  15. Chou, X.L.; Fang, Q.; Yan, L.; Zhong, W.; Peng, B.; Li, H.; Wei, J.; Tao, H.W.; Zhang, L.I. Contextual and cross-modality modulation of auditory cortical processing through pulvinar mediated suppression. Elife 2020, 9, e54157. [Google Scholar] [CrossRef] [PubMed]
  16. Etzi, R.; Ferrise, F.; Bordegoni, M.; Zampini, M.; Gallace, A. The Effect of Visual and Auditory Information on the Perception of Pleasantness and Roughness of Virtual Surfaces. Multisens. Res. 2018, 31, 501–522. [Google Scholar] [CrossRef] [PubMed]
  17. Ali, U.; Li, H.; Yao, R.; Wang, Q.; Hussain, W.; Badar, S.; Amjad, M.; Ahmed, B. EEG Emotion Signal of Artificial Neural Network by using Capsule Network. Int. J. Adv. Comput. Sci. Appl. 2020, 11, 434–443. [Google Scholar] [CrossRef]
  18. Darko, E.; Heydarizadeh, P.; Schoefs, B.; Sabzalian, M.R. Photosynthesis under artificial light: The shift in primary and secondary metabolism. Philos. Trans. R. Soc. Lond. B Biol. Sci. 2014, 369, 20130243. [Google Scholar] [CrossRef] [PubMed]
  19. Tähkämö, L.; Partonen, T.; Pesonen, A.K. Systematic review of light exposure impact on human circadian rhythm. Chronobiol. Int. 2018, 36, 151–170. [Google Scholar] [CrossRef] [PubMed]
  20. Franco, B.M.; Hernández-Callejo, L.; Navas-Gracia, L.M. Virtual weather stations for meteorological data estimations. Neural Comput. Appl. 2020, 32, 12801–12812. [Google Scholar] [CrossRef]
  21. Chen, X.M.; Sharma, A.; Liu, H. The Impact of Climate Change on Environmental Sustainability and Human Mortality. Environments 2023, 10, 165. [Google Scholar] [CrossRef]
  22. Charalampopoulos, I.; Matzarakis, A. Thoughts about the Thermal Environment and the Development of Human Civilisation. Atmosphere 2022, 13, 1925. [Google Scholar] [CrossRef]
  23. Kujundzic, K.; Vuckovic, S.S.; Radivojević, A. Toward Regenerative Sustainability: A Passive Design Comfort Assessment Method of Indoor Environment. Sustainability 2023, 15, 840. [Google Scholar] [CrossRef]
  24. Chen, Y.; Liu, F.; Lin, X.; Liu, J.; Chen, Z.; Shi, K.; Li, J.; Dong, J. Combined Effects of the Thermal-Acoustic Environment on Subjective Evaluations in Urban Park Based on Sensory-Walking. Forests 2023, 14, 1161. [Google Scholar] [CrossRef]
  25. Fu, X.; Feng, D.; Jiang, X.; Wu, T. The Effect of Correlated Color Temperature and Illumination Level of LED Lighting on Visual Comfort during Sustained Attention Activities. Sustainability 2023, 15, 3826. [Google Scholar] [CrossRef]
  26. Liang, R.; Kent, M.; Wilson, R.; Wu, Y. The effect of thermochromic windows on visual performance and sustained attention. Energy Build. 2021, 236, 110778. [Google Scholar] [CrossRef]
  27. Acosta, I.; Ángel Campano, M.; Leslie, R.; Radetsky, L. Daylighting design for healthy environments: Analysis of educational spaces for optimal circadian stimulus. Sol. Energy 2019, 193, 584–596. [Google Scholar] [CrossRef]
  28. Bozorg, S.; Räsänen, R.S.; Tetri, E. Advancement in Road Lighting. Light Eng. 2018, 26, 99–109. [Google Scholar] [CrossRef]
  29. Lee, C.S.; Wang, M.H.; Kuan, W.K.; Huang, S.H.; Tsai, Y.L.; Ciou, Z.H.; Yang, C.K.; Kubota, N. BCI-based hit-loop agent for human and AI robot co-learning with AIoT application. J. Ambient. Intell. Humaniz. Comput. 2021, 14, 3583–3607. [Google Scholar] [CrossRef]
  30. Higashi, H.; Bui, M.V.; Aziz, A.S.B.; Nakauchi, S. Computational lighting for extracting optical features from RGB images. Measurement 2020, 151, 107183. [Google Scholar] [CrossRef]
  31. Alonso-Valerdi, L.M. Python Executable Script for Estimating Two Effective Parameters to Individualize Brain-Computer Interfaces: Individual Alpha Frequency and Neurophysiological Predictor. Front. Neuroinform. 2016, 10, 22. [Google Scholar] [CrossRef] [PubMed]
  32. Pattamadilok, C.; Sato, M. How are visemes and graphemes integrated with speech sounds during spoken word recognition? ERP evidence for supra-additive responses during audiovisual compared to auditory speech processing. Brain Lang. 2022, 225, 105058. [Google Scholar] [CrossRef]
  33. Pizzagalli, D.; Koenig, T.; Regard, M.; Lehmann, D. Affective attitudes to face images associated with intracerebral EEG source location before face viewing. Cogn. Brain Res. 1999, 7, 371–377. [Google Scholar] [CrossRef]
  34. Spreckelmeyer, K.N.; Kutas, M.; Urbach, T.P.; Altenmüller, E.; Münte, T.F. Combined perception of emotion in pictures and musical sounds. Brain Res. 2006, 1070, 160–170. [Google Scholar] [CrossRef] [PubMed]
  35. Mejía-Veintimilla, D.; Ochoa-Cueva, P.; Samaniego-Rojas, N.; Félix, R.; Arteaga, J.; Crespo, P.; Oñate-Valdivieso, F.; Fries, A. River Discharge Simulation in the High Andes of Southern Ecuador Using High-Resolution Radar Observations and Meteorological Station Data. Remote Sens. 2019, 11, 2804. [Google Scholar] [CrossRef]
  36. González Bosquet, L. The harmful effects of solar radiation and how to combat them. Offarm 2003, 22, 68–76. [Google Scholar]
  37. Moore, R.C.; Lee, T.; Theunissen, F.E. Noise-invariant neurons in the avian auditory cortex: Hearing the song in noise. PLoS Comput. Biol. 2013, 9, e1002942. [Google Scholar] [CrossRef]
  38. Soemantri, D.; Herrera, C.; Riquelme, A. Measuring the educational environment in health professions studies: A systematic review. Med. Teach. 2010, 32, 947–952. [Google Scholar] [CrossRef]
  39. Polich, J.; Kok, A. Cognitive and biological determinants of P300: An integrative review. Biol. Psychol. 1995, 41, 103–146. [Google Scholar] [CrossRef]
  40. Başar, E.; Başar-Eroglu, C.; Karakaş, S.; Schürmann, M. Gamma, alpha, delta, and theta oscillations govern cognitive processes. Int. J. Psychophysiol. 2001, 39, 241–248. [Google Scholar] [CrossRef]
  41. Nakakoga, S.; Shimizu, K.; Muramatsu, J.; Kitagawa, T.; Nakauchi, S.; Minami, T. Pupillary response reflects attentional modulation to sound after emotional arousal. Sci. Rep. 2021, 11, 17264. [Google Scholar] [CrossRef]
  42. In Proceedings of the 2020 IEEE 20th International Conference on Advanced Learning Technologies (ICALT), Tartu, Estonia, 6–9 July 2020; IEEE: New York, NY, USA, 2020; p. 72020.
  43. Gupta, R.; Jain, K.; Jajodia, I. Determinants of smart speaker adoption intention: Extending the theory of planned behaviour. Int. J. Technol. Mark. 2021, 15, 181. [Google Scholar] [CrossRef]
  44. Hernandez-Jayo, U.; Garcia-Zubia, J. Remote measurement and instrumentation laboratory for training in real analog electronic experiments. Measurement 2016, 82, 123–134. [Google Scholar] [CrossRef]
  45. Hafeez, F.; Ullah Sheikh, U.; Mas’ud, A.A.; Al-Shammari, S.; Hamid, M.; Azhar, A. Application of the Theory of Planned Behavior in Autonomous Vehicle-Pedestrian Interaction. Appl. Sci. 2022, 12, 2574. [Google Scholar] [CrossRef]
  46. Takeshima, Y.; Gyoba, J. Changing Pitch of Sounds Alters Perceived Visual Motion Trajectory. Multisens. Res. 2013, 26, 317–332. [Google Scholar] [CrossRef] [PubMed]
  47. In Proceedings of the 2019 1st International Conference on Innovations in Information and Communication Technology (ICIICT), Chennai, India, 25–26 April 2019; IEEE: New York, NY, USA, 2019; p. 42019.
  48. In Proceedings of the 2016 IEEE First International Conference on Data Stream Mining & Processing (DSMP), Lviv, Ukraine, 23–27 August 2016; IEEE: New York, NY, USA, 2016; p. 82016.
  49. In Proceedings of the 2019 Chinese Control Conference (CCC), Guangzhou, China, 27–30 July 2019; IEEE: New York, NY, USA, 2019; p. 72019.
  50. Anjomshoa, F.; Aloqaily, M.; Kantarci, B.; Erol-Kantarci, M.; Schuckers, S. Social Behaviometrics for Personalized Devices in the Internet of Things Era. IEEE Access 2017, 5, 12199–12213. [Google Scholar] [CrossRef]
  51. Yu, W.; Sun, W.; Ding, N. Asymmetrical cross-modal influence on neural encoding of auditory and visual features in natural scenes. NeuroImage 2022, 255, 119182. [Google Scholar] [CrossRef] [PubMed]
  52. Tawfik, M.; Sancristobal, E.; Martin, S.; Gil, R.; Diaz, G.; Colmenar, A.; Peire, J.; Castro, M.; Nilsson, K.; Zackrisson, J.; et al. Virtual Instrument Systems in Reality (VISIR) for Remote Wiring and Measurement of Electronic Circuits on Breadboard. IEEE Trans. Learn. Technol. 2013, 6, 60–72. [Google Scholar] [CrossRef]
  53. Tahsien, S.M.; Karimipour, H.; Spachos, P. Machine learning based solutions for security of Internet of Things (IoT): A survey. J. Netw. Comput. Appl. 2020, 161, 102630. [Google Scholar] [CrossRef]
  54. Lopez Martinez, G.A. Estación Meteorológica para la Conformación de Redes. Proceso Instal. 2016, 21, 115. [Google Scholar]
  55. Mohindru, G.; Mondal, K.; Banka, H. Different hybrid machine intelligence techniques for handling IoT–based imbalanced data. CAAI Trans. Intell. Technol. 2021, 6, 405–416. [Google Scholar] [CrossRef]
  56. Wang, W.; Zhao, M.; Gao, Z.; Xu, G.; Xian, H.; Li, Y.; Zhang, X. Constructing Features for Detecting Android Malicious Applications: Issues, Taxonomy and Directions. IEEE Access 2019, 7, 67602–67631. [Google Scholar] [CrossRef]
  57. Pető, M.; Király, A. How to build a mini meteorological station for your school?—A project with a citizen science perspective. Adv. Sci. Res. 2019, 16, 185–189. [Google Scholar] [CrossRef]
  58. Kim, Y.; Sa, J.; Chung, Y.; Park, D.; Lee, S. Resource-Efficient Pet Dog Sound Events Classification Using LSTM-FCN Based on Time-Series Data. Sensors 2018, 18, 4019. [Google Scholar] [CrossRef] [PubMed]
  59. Domínguez-Borràs, J.; Rieger, S.W.; Corradi-Dell’Acqua, C.; Neveu, R.; Vuilleumier, P. Fear Spreading Across Senses: Visual Emotional Events Alter Cortical Responses to Touch, Audition, and Vision. Cereb. Cortex 2017, 27, 68–82. [Google Scholar] [CrossRef]
  60. Tang, W.H.; Ho, W.H.; Chen, Y.J. Data assimilation and multisource decision-making in systems biology based on unobtrusive Internet-of-Things devices. BioMed. Eng. OnLine 2018, 17, 147. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Black body radiation color temperature in Kelvin degrees (K).
Figure 1. Black body radiation color temperature in Kelvin degrees (K).
Applsci 14 04156 g001
Figure 2. Workflow of the system and methodology in the research.
Figure 2. Workflow of the system and methodology in the research.
Applsci 14 04156 g002
Figure 3. Design output controller.
Figure 3. Design output controller.
Applsci 14 04156 g003
Figure 4. Fuzzy set design for emotion controller.
Figure 4. Fuzzy set design for emotion controller.
Applsci 14 04156 g004
Figure 5. Response of models representing emotions in the face of stimuli. (a) Late positive potential (LPP) proposed by Polich and Kok (1995). (b) Late positive potential (LPP) proposed by Basar and Schürmann (1994).
Figure 5. Response of models representing emotions in the face of stimuli. (a) Late positive potential (LPP) proposed by Polich and Kok (1995). (b) Late positive potential (LPP) proposed by Basar and Schürmann (1994).
Applsci 14 04156 g005
Figure 6. Lighting control based on AIoT technology.
Figure 6. Lighting control based on AIoT technology.
Applsci 14 04156 g006
Figure 7. Hardware design measurement system.
Figure 7. Hardware design measurement system.
Applsci 14 04156 g007
Figure 8. Environment where the pilot test was carried out and reference values used in the tests.
Figure 8. Environment where the pilot test was carried out and reference values used in the tests.
Applsci 14 04156 g008
Figure 9. Response of the consistency of EEG variations from the pilot test conducted on the 30 test subjects.
Figure 9. Response of the consistency of EEG variations from the pilot test conducted on the 30 test subjects.
Applsci 14 04156 g009
Figure 10. Response to reference changes and controller monitoring. * minimal value. ** medium value. *** high value.
Figure 10. Response to reference changes and controller monitoring. * minimal value. ** medium value. *** high value.
Applsci 14 04156 g010
Figure 11. Measurement of variables and controller response in the first 100 ms.
Figure 11. Measurement of variables and controller response in the first 100 ms.
Applsci 14 04156 g011
Figure 12. Offline and online system control panel. (a) Offline system conditional measurement graphical plots values control and conditions. Initial state Neutro. Access through http://127.0.0.1:1883 (b) Dashboard online control and plots ambient condition.
Figure 12. Offline and online system control panel. (a) Offline system conditional measurement graphical plots values control and conditions. Initial state Neutro. Access through http://127.0.0.1:1883 (b) Dashboard online control and plots ambient condition.
Applsci 14 04156 g012
Table 1. Action of color on behavior.
Table 1. Action of color on behavior.
RGBColourEmotion Evoked
25500RedActivate
2550255MagentaActivate
02550GreenNeutro
2552550YellowNeutro
00255BlueRelaxation
0255255CyanRelaxation
Table 2. Range conditions by state control.
Table 2. Range conditions by state control.
StateTempHumidityUV IndexAcoustic PressureRGB OUTPOW OUT
Activatet > 40HR > 601–230–40 dB0x001FFF20%
Activate20 > t < 4040 > HR < 603–740–60 dB0xFFFF0040%
Activatet < 20HR < 40UV > 860–80 dB0xFF1F0080%
Neutralt > 40HR > 601–230–40 dB0x00FFFF40%
Neutral20 > t < 4040 > HR < 603–740–60 dB0xFFFFFF50%
Neutralt < 20HR < 40UV > 860–80 dB0xFFFF0060%
Relaxt > 40HR > 601–230–40 dB0x0000FF80%
Relax20 > t < 4040 > HR < 603–740–60 dB0x00FFFF40%
Relaxt < 20HR < 40UV > 860–80 dB0xF1FF0020%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alvarez-Garcia, G.-A.; Zúñiga-Cañón, C.-L.; Garcia-Sanchez, A.-J.; Garcia-Haro, J.; Asorey-Cacheda, R. Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic. Appl. Sci. 2024, 14, 4156. https://doi.org/10.3390/app14104156

AMA Style

Alvarez-Garcia G-A, Zúñiga-Cañón C-L, Garcia-Sanchez A-J, Garcia-Haro J, Asorey-Cacheda R. Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic. Applied Sciences. 2024; 14(10):4156. https://doi.org/10.3390/app14104156

Chicago/Turabian Style

Alvarez-Garcia, Gonzalo-Alberto, Claudia-Liliana Zúñiga-Cañón, Antonio-Javier Garcia-Sanchez, Joan Garcia-Haro, and Rafael Asorey-Cacheda. 2024. "Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic" Applied Sciences 14, no. 10: 4156. https://doi.org/10.3390/app14104156

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