# Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic
###### Abstract
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. hllt 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, hllte UNE 12464-1 [4] standard notes specific limitations across different structures. Figure 1: Black body radiation color temperature in Kelvin degrees (K). 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.