Bathroom intelligent light adjusting method and device and storage medium

Through edge computing and genetic algorithm optimization, the intelligent lighting adjustment system in bathrooms solves the multi-objective balance problem of lighting adjustment in night shower scenes, achieving coordinated optimization of visual clarity, melatonin protection and energy efficiency, and improving user experience.

CN120390331AActive Publication Date: 2025-07-29SHENZHEN JINGYUXIN TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510722154.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-07-29
Estimated Expiration
2045-05-30

AI Technical Summary

Technical Problem

Existing bathroom lighting adjustment methods fail to find the best balance between multiple conflicting targets, especially in night shower scenarios that cannot meet the needs of user visual clarity, melatonin secretion and energy efficiency simultaneously.

Method used

The intelligent bathroom lighting adjustment system based on local edge computing is adopted. By obtaining bathroom status data in real time, combining user information, time, ambient temperature and humidity, genetic algorithms are used to optimize the light brightness, color temperature and color, and realize gradual destruction and gradual brightness lighting adjustment, combining ventilation and dehumidification modes.

Benefits of technology

It achieves reducing melatonin secretion interference during night showers, improving visual clarity, and optimizing energy utilization, significantly improving sleep quality and mental state the next day.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120390331A_ABST
    Figure CN120390331A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of smart home, and discloses a bathroom intelligent light adjusting method, which comprises the following steps: acquiring current bathroom state data in real time; the current bathroom state data comprises current time, current environment temperature, a current human body state of a user and a current water flow sound state; when it is determined that the user enters a shower area according to the current human body state and it is determined that shower is started according to the current water flow sound state, it is determined that the user enters a shower state; starting a target shower mode according to the user information of the user, the current time, the current environment temperature and the current environment humidity; when showering is completed, the lamplight in the showering area is extinguished gradually, and meanwhile the lamplight in the dressing area is turned on gradually; when it is detected that the user leaves the bathroom, a lighting device of the bathroom is turned off, and a ventilation and dehumidification mode is started. In this way, collaborative optimization of the brightness, the color temperature and the color of the bathroom light is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of smart home, and particularly to a method, device and computer-readable storage medium for intelligent bathroom lighting adjustment. Background Art

[0002] Currently, with the development of smart home technology, the demand for the intelligentization of bathroom lighting systems is increasing day by day. The traditional bathroom lighting control method is relatively single, and can only achieve simple on-off and brightness adjustment, which cannot meet the personalized needs of users in different scenarios. Although the existing intelligent lighting systems can perform certain adjustments according to the environment and user behavior, there are still deficiencies in multi-objective collaborative optimization.

[0003] Specifically, in different shower scenarios, how to adapt to the current scenario, for example, in the night shower scenario, while ensuring the visual clarity of the user, minimizing the inhibition of the body's melatonin secretion by the light to the greatest extent, and at the same time achieving efficient energy utilization, is an urgent problem to be solved currently. The existing lighting adjustment methods usually only consider one or a few factors, and it is difficult to find the best balance among multiple conflicting objectives. Summary of the Invention

[0004] In view of the above problems, the embodiments of the present invention provide a method, device and computer-readable storage medium for intelligent bathroom lighting adjustment, which are used to solve the problem in the prior art that it is impossible to adapt to the current scenario during the user's shower and is more suitable for the human body's needs.

[0005] According to one aspect of the embodiments of the present invention, there is provided a method for intelligent bathroom lighting adjustment, which is applied to an intelligent bathroom lighting adjustment system. The system is based on local edge computing. The system includes multiple types of lighting devices and multiple types of sensing devices arranged at multiple preset positions in the bathroom. The sensing devices include a pyroelectric array, a sound extraction device and a temperature sensing device. The method includes:

[0006] Obtain the current bathroom status data in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user and the current water flow sound status;

[0007] When it is determined that the user enters the shower area according to the current human body status and the shower is turned on according to the current water flow sound status, it is determined that the user enters the shower state;

[0008] Based on the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode; the target shower mode includes the lighting state of the lighting device in the shower area, the ventilation mode, and the room temperature adjustment information; the target shower mode is one of multiple shower modes; the multiple shower modes include the bedtime shower mode and the morning shower mode; the lighting state is determined according to the lighting adjustment decision algorithm;

[0009] When the shower is completed, gradually turn off the lights in the shower area, and at the same time gradually turn on the lights in the dressing area;

[0010] When it is detected that the user leaves the bathroom, turn off the lighting device in the bathroom and turn on the ventilation and dehumidification mode.

[0011] In an alternative manner, the lighting device in the shower area includes a first lighting device disposed above the shower device and a lighting strip disposed on the ground and / or side wall of the shower area;

[0012] The starting of the target shower mode according to the current time and the current ambient temperature includes:

[0013] Input the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to determine the first lighting state of the first lighting device above the shower device; and the second lighting state of the lighting strip, to obtain the lighting state of the shower area; the first lighting state includes the first lighting brightness, the first lighting color, and the first lighting color temperature; the second lighting state includes the second lighting brightness, the second lighting color, and the second lighting color temperature.

[0014] In an alternative manner, the inputting of the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to obtain the lighting state of the shower area includes:

[0015] Determine the time category according to the current time; the time category includes the morning period or the night period;

[0016] When the current time is at night, determine to set the first lighting brightness, the first lighting color, and the first lighting color temperature of the first lighting device according to the user's melatonin suppression curve, and determine the second lighting brightness, the second lighting color, and the second lighting color temperature of the lighting strip according to the compensation mechanism;

[0017] When the current time is in the morning, determine the first lighting state and the second lighting state in the vitality mode; in the vitality mode, the first lighting brightness is greater than the first brightness threshold, and the first lighting color is cold white; the lighting strip has a dynamic scanning effect and a blue or green light strip.

[0018] In an alternative manner, when the current time is at night, determining the first light brightness, the first light color, and the first light color temperature of the first lighting device according to the user's melatonin suppression curve, and determining the second light brightness, the second light color, and the second light color temperature of the lighting strip according to a compensation mechanism, includes:

[0019] Determine the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin suppression curve and user information;

[0020] According to the first light brightness range, the first light color range, and the first light color temperature range, simulate the biological evolution process through a genetic algorithm, and search for the optimal parameter combination in the solution space;

[0021] Convert the optimal parameter combination into an identifiable control instruction for the first lighting device to obtain the first light state.

[0022] In an alternative manner, the step of simulating the biological evolution process through a genetic algorithm according to the first light brightness range, the first light color range, and the first light color temperature range, and searching for the optimal parameter combination in the solution space, includes:

[0023] Set the population size, the maximum number of generations of evolution, and the optimization objective function, where the optimization objective function includes melatonin protection, visual clarity, and energy efficiency; where each individual includes light brightness, light color, and light color temperature;

[0024] Randomly generate brightness values, color temperature values, and color values for each individual;

[0025] Calculate the melatonin protection fitness, the visual clarity fitness, and the energy efficiency fitness according to the objective function of each individual's optimization objective;

[0026] Through Pareto optimality, calculate the boundary distance of each individual on each optimization objective function, and perform selection operations, adaptive crossover operations, and mutation operations to determine elite individuals from the Pareto optimality to replace the worst-performing individuals;

[0027] Perform the above iterative processing to obtain the optimal parameter combination searched in the solution space.

[0028] In an alternative manner, obtain the difference between the current time and the user's preset sleep time;

[0029] Calculate the user's movement amplitude and frequency through pyroelectric array data to determine the user's current activity intensity;

[0030] Substitute the time factor into the basic brightness curve formula to obtain the basic brightness range;

[0031] Determine the first lighting brightness range according to the current activity intensity, the base brightness, and the user brightness preference coefficient.

[0032] In an alternative manner, the determining the first lighting brightness range, the first lighting color range, and the first lighting color temperature range according to the user's melatonin suppression curve and user information includes:

[0033] Substitute the time factor into the base color temperature curve formula to obtain the base color temperature range;

[0034] Calculate the temperature compensation according to the ambient temperature to obtain the color temperature compensation value;

[0035] Obtain the first lighting color temperature range according to the color temperature compensation value and the base color temperature range.

[0036] In an alternative manner, the real-time acquisition of the current bathroom status data includes:

[0037] When the user enters the bathroom, determine the identity of the user entering the bathroom according to the face device;

[0038] Determine the target user preference according to the identity;

[0039] The starting the target shower mode according to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity includes:

[0040] Start the target shower mode according to the target user preference, the current time, the current ambient temperature, and the current ambient humidity.

[0041] According to another aspect of the embodiments of the present invention, there is provided a bathroom intelligent lighting adjustment device, including: a processor, a memory, a communication interface, and a communication bus, and the processor, the memory, and the communication interface complete mutual communication through the communication bus;

[0042] The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the operations of the bathroom intelligent lighting adjustment method.

[0043] According to still another aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, in which at least one executable instruction is stored, and when the executable instruction runs on a computer device, the computer device is caused to execute the operations of the bathroom intelligent lighting adjustment method.

[0044] In an embodiment of the present invention, the current bathroom status data is obtained in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status; when it is determined that the user enters the shower area according to the current human body status and the shower is turned on according to the current water flow sound status, it is determined that the user enters the shower state; according to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, the target shower mode is started; when the shower is completed, the lights in the shower area are gradually extinguished, and at the same time, the lights in the dressing area are gradually turned on; when it is detected that the user leaves the bathroom, the lighting device of the bathroom is turned off, and the ventilation and dehumidification mode is turned on, which can effectively combine the current time and environmental information to determine the lighting adjustment that is most suitable for the user's shower method.

[0045] Furthermore, in the process of lighting adjustment in an embodiment of the present invention, the current ambient humidity and the melatonin inhibition curve are combined. Since the ambient humidity during showering causes the brightness, color temperature, and color of the lights to be affected to a certain extent, when considering the setting of the light state, the influence of the current ambient humidity needs to be considered. Moreover, through the coordinated optimization of the brightness, color temperature, and color of the bathroom lights, the multi-objective requirements of melatonin protection, visual clarity, and energy efficiency can be simultaneously met.

[0046] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to be able to understand the technical means of the embodiment of the present invention more clearly, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features, and advantages of the embodiment of the present invention more obvious and understandable, the following specifically describes the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings are only used to illustrate the embodiments and are not considered as a limitation to the present invention. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0048] Figure 1 It shows a schematic flow chart of the bathroom intelligent lighting adjustment method provided by the embodiment of the present invention;

[0049] Figure 2 It shows a schematic structural diagram of the computer device provided by the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0050] Hereinafter, the exemplary embodiments of the present invention will be described in more detail with reference to the drawings. Although the exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein.

[0051] Figure 1The figure shows a flowchart of the bathroom intelligent lighting adjustment method provided by an embodiment of the present invention, which is executed by a computer device. The computer device can be an intelligent adjustment device set in the bathroom and is applied to the bathroom intelligent lighting adjustment system. The system is based on local edge computing. The system includes multiple types of lighting devices and multiple types of sensing devices set at multiple preset positions in the bathroom. The sensing devices include pyroelectric arrays, sound extraction devices, and temperature sensing devices, which are not specifically limited in the present invention. As Figure 1 shown, the method includes the following steps:

[0052] Step 110: Obtain the current bathroom status data in real time.

[0053] Among them, the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status.

[0054] Among them, after obtaining the current bathroom status data in real time, it is determined according to the current human body status of the user. When the user enters the bathroom, the identity of the user entering the bathroom is determined according to the face device. The target user preference is determined according to the identity. The target user preference can be the preference filled in by the user when registering on the system. When the face of the user is recognized, the corresponding user preference is retrieved from the database. The user preference can include lighting, music, etc.

[0055] Step 120: When it is determined that the user enters the shower area according to the current human body status and the shower is turned on according to the current water flow sound status, it is determined that the user enters the shower state.

[0056] Among them, in an embodiment of the present invention, when the following conditions are met simultaneously, it is determined that the user enters the shower state:

[0057] 1. The human body status sensor confirms that the user is in the shower area (lasting ≥ 5 seconds).

[0058] 2. The water flow sound classification model outputs "shower on".

[0059] 3. The humidity sensor detects that the humidity rising rate > 5% / minute.

[0060] Among them, the embodiment of the present invention also performs feedback delay and misjudgment processing. When the time from detecting the water flow sound to the final determination needs to be ≤ 2 seconds, by setting like this, it can be avoided that the user experience is delayed. Among them, if the water flow sound lasts < 3 seconds and the humidity does not rise, it is detected as a false positive. When it is detected as a false positive, it is misjudged as the shower being turned on. The hardware verification of the water flow sensor is performed to determine whether it is a false negative, that is, the shower being turned on is missed.

[0061] Step 130: Start the target shower mode according to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity.

[0062] Among them, according to the target user preference, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode. In the embodiment of the present invention, the target shower mode includes the lighting state of the lighting device in the shower area, the ventilation mode, and the room temperature adjustment information; the target shower mode is one of multiple shower modes; the multiple shower modes include the bedtime shower mode and the morning shower mode; the lighting state is determined according to the lighting adjustment decision algorithm.

[0063] Among them, the lighting device in the shower area includes a first lighting device arranged above the shower device and a lighting strip arranged on the ground and / or side wall of the shower area. In the embodiment of the present invention, input the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to determine the first lighting state of the first lighting device above the shower device; and the second lighting state of the lighting strip to obtain the lighting state of the shower area; the first lighting state includes the first lighting brightness, the first lighting color, and the first lighting color temperature; the second lighting state includes the second lighting brightness, the second lighting color, and the second lighting color temperature.

[0064] Among them, the process of determining the first lighting brightness range is:

[0065] Obtain the difference between the current time and the user's preset sleep time;

[0066] Calculate the user's movement amplitude and frequency through pyroelectric array data to determine the user's current activity intensity;

[0067] Substitute the time factor into the basic brightness curve formula to obtain the basic brightness range; among them, the basic brightness curve formula is:

[0068] Basic brightness = 200 - 150×(time factor 0.7 )

[0069] Determine the first lighting brightness range according to the current activity intensity, the basic brightness, and the user brightness preference coefficient. Among them, current activity intensity × 50, and the user brightness preference coefficient range is 0.8 - 1.2. Among them, the first lighting brightness range is between 50 - 250 lux.

[0070] Among them, the process of determining the first lighting color temperature range is:

[0071] Substitute the time factor into the basic color temperature curve formula to obtain the basic color temperature range; among them, the basic color temperature curve formula is: Basic color temperature = 3000 - 800×(time factor 0.5)

[0072] Calculate the temperature compensation based on the ambient temperature to obtain the color temperature compensation value. Among them, when the ambient temperature is lower than 25°C, for every 1°C decrease, the color temperature increases by 10K, and calculate the temperature compensation value: max(0, 25 - current temperature) × 10. According to the color temperature compensation value and the basic color temperature range, obtain the first lighting color temperature range. Among them, the first color temperature range is in the range of 2000 - 3000K.

[0073] In the embodiment of the present invention, the determination process of the spectral parameters in the first lighting color range is as follows:

[0074] Calculate the blue light suppression coefficient according to the age of the user, and calculate the blue light ratio limit according to the time factor; determine the spectral parameters in the first lighting color according to the blue light suppression coefficient and the blue light ratio limit. Specifically, adjust the blue light sensitivity according to the user's age: adjust the blue light sensitivity according to the user's age: blue light suppression coefficient = 0.8 + 0.2 × (user age / 70). Calculate the blue light ratio limit according to the time factor: maximum blue light ratio = 0.15 × blue light suppression coefficient × (1 - time factor 0.6) , generate spectral parameters, among which, the red ratio is: 0.5 + 0.3 × time factor, the green ratio: 0.35 - 0.1 × time factor. Blue ratio: take the smaller value between the calculated maximum blue light ratio and 0.15. Amber ratio: 0.15 + 0.1 × time factor. Among them, the spectral adjustment adopts blue light suppression technology and realizes it by controlling the mixing ratio of LED lamp beads. According to the calculated spectral ratio, control the output power of RGBW four-color LED lamp beads; realize precise spectral mixing through PWM dimming technology to obtain LED mixing control.

[0075] Among them, input the user information of the user, the current time, the current ambient temperature and the current ambient humidity into the lighting adjustment decision algorithm to obtain the lighting state of the shower area, including:

[0076] Determine the time category according to the current time; the time category includes the morning period or the night period; among them, the morning period can be set within 2 hours after sunrise to promote awakening. The night period can be set from 21:30 to 24:00, so it is necessary to consider avoiding the suppression of melatonin by the shower and the lighting during the shower.

[0077] When the current time is at night, determine the first lighting brightness, the first lighting color and the first lighting color temperature of the first lighting device according to the melatonin suppression curve of the user, and determine the second lighting brightness, the second lighting color and the second lighting color temperature of the lighting strip according to the compensation mechanism. That is, the first lighting device is the main lighting and is directly determined by the melatonin curve. The lighting strip on the ground and / or side wall of the shower area supplements the ground contour light for anti-slip reminder.

[0078] In an embodiment of the present invention, according to the melatonin inhibition curve of the user, user information, and the current environmental humidity, a first lighting brightness range, a first lighting color range, and a first lighting color temperature range are determined; wherein, the melatonin inhibition curve is:

[0079]

[0080] Where: I melatonin represents the melatonin inhibition rate, which can be 0 - 1. B is the illumination brightness (lux); B0: reference brightness (100 lux); λmax is the spectral peak wavelength, and k represents the individual sensitivity coefficient. The system calculates the impact of the current lighting scheme on melatonin secretion in real time through this model and dynamically adjusts the parameters to ensure that the inhibition rate is controlled within a safe range (<30%).

[0081] Among them, in an embodiment of the present invention, according to the first lighting brightness range, the first lighting color range, and the first lighting color temperature range, a genetic algorithm is used to simulate the biological evolution process, and the optimal parameter combination is searched in the solution space; the optimal parameter combination is converted into an identifiable control instruction for the first lighting device to obtain the first lighting state.

[0082] Specifically, iterative processing is performed through a genetic algorithm to obtain the final first lighting state, including the following steps:

[0083] Set the population size, the maximum number of generations of evolution, and the optimization objective function, where the optimization objective function includes melatonin protection, visual clarity, and energy efficiency; wherein, each individual includes lighting brightness, lighting color, and lighting color temperature;

[0084] Randomly generate brightness values, color temperature values, and color values for each individual;

[0085] According to the objective function of each individual's optimization objective, calculate the melatonin protection fitness, visual clarity fitness, and energy efficiency fitness;

[0086] Through Pareto optimality, calculate the boundary distance of each individual on each optimization objective function, and perform selection operations, adaptive crossover operations, and mutation operations to determine elite individuals from the Pareto optimality to replace the worst-performing individuals;

[0087] Perform the above iterative processing to obtain the optimal parameter combination searched in the solution space.

[0088] Through the above algorithm, the system realizes fine control of brightness, color temperature, and spectrum, which not only meets the visual needs of users at night but also minimizes the interference with melatonin secretion to scientifically protect the sleep quality of users. Compared with traditional lighting solutions, this intelligent adjustment mechanism can reduce the melatonin inhibition rate by 40%-60%, significantly improving sleep quality and mental state the next day.

[0089] Step 140: When the shower is completed, gradually turn off the lights in the shower area in a fading manner, and at the same time, gradually turn on the lights in the dressing area in a brightening manner.

[0090] Among them, when it is detected by the water flow sensor that the shower water flow has stopped for ≥30 seconds, or when the humidity sensor detects that the rising trend of humidity has stopped and starts to decline, it is determined that the shower is completed. After the shower is completed,

[0091] The brightness fade in the shower area is as follows: The initial brightness is the current brightness of the lights in the shower area, 50 lux in night mode, and 300 lux in morning mode. When the target brightness is 0 lux, it is completely turned off.

[0092] Among them, the lights in the dressing area are gradually turned on in a brightening manner in the opposite way.

[0093] Step 150: When it is detected that the user leaves the bathroom, turn off the lighting device in the bathroom and turn on the ventilation and dehumidification mode.

[0094] In the embodiment of the present invention, the current bathroom status data is obtained in real time; the current bathroom status data includes the current time, the current environmental temperature, the current human body status of the user, and the current water flow sound status; when it is determined according to the current human body status that the user enters the shower area and it is determined according to the current water flow sound status that the shower is turned on, it is determined that the user enters the shower state; according to the user information of the user, the current time, the current environmental temperature, and the current environmental humidity, the target shower mode is started; when the shower is completed, gradually turn off the lights in the shower area in a fading manner, and at the same time, gradually turn on the lights in the dressing area in a brightening manner; when it is detected that the user leaves the bathroom, turn off the lighting device in the bathroom and turn on the ventilation and dehumidification mode, which can effectively combine the current time and environmental information to determine the lighting adjustment that is most suitable for the user's shower method.

[0095] Furthermore, in the process of lighting adjustment in the embodiment of the present invention, the current environmental humidity and the melatonin inhibition curve are combined. Since the environmental humidity during showering causes the brightness, color temperature, and color of the lights to be affected to a certain extent, when considering the setting of the light state, the influence of the current environmental humidity needs to be considered. Moreover, through the coordinated optimization of the brightness, color temperature, and color of the bathroom lights, the multi-objective requirements of melatonin protection, visual clarity, and energy efficiency can be simultaneously met.

[0096] In another embodiment of the present invention, it is assumed that the user enters the bathroom at 22:00 at night to prepare for a shower. After the system is started:

[0097] The ambient temperature is collected in real time as 26°C and the humidity is 65%, and information such as the user's preset sleep time of 23:00 and age of 35 years is obtained.

[0098] Start the multi-objective optimization program based on the genetic algorithm:

[0099] Initialize the population and generate 100 individuals containing random lighting parameters.

[0100] Calculate the time factor. At this time, it is 1 hour until the sleep time, and the time factor is approximately 0.83.

[0101] Calculate the fitness values of the three objective functions for each individual.

[0102] Perform non-dominated sorting and crowding distance calculation to determine the Pareto optimal front.

[0103] Select parent individuals through the tournament selection method, perform adaptive crossover and intelligent mutation operations, and perform elite retention.

[0104] Repeat the above steps of fitness evaluation, selection, crossover, mutation, and elite retention until the maximum number of generations of evolution is reached or the convergence condition is satisfied.

[0105] Finally, the optimal lighting control parameters are obtained, such as a brightness of 120 lux, a color temperature of 2800 K, a spectral ratio of red 0.4, green 0.3, blue 0.15, and amber 0.15.

[0106] The lighting control module adjusts the bathroom lights to the corresponding state according to the above parameters, while ensuring clear vision for the user, reducing the impact on melatonin secretion, and achieving reasonable utilization of energy.

[0107] Figure 2 The structural schematic diagram of the computer device provided by the embodiment of the present invention is shown. The specific implementation of the computer device is not limited in the specific embodiment of the present invention.

[0108] As Figure 2 shown, the computer device may include: a processor 402, a communication interface 404, a memory 406, and a communication bus 408.

[0109] Among them: The processor 402, the communication interface 404, and the memory 406 communicate with each other through the communication bus 408. The communication interface 404 is used to communicate with network elements of other devices such as clients or other servers. The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiments of the method for intelligent bathroom lighting adjustment.

[0110] Specifically, the program 410 may include program code, and the program code includes computer-executable instructions.

[0111] The processor 402 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. One or more processors included in the computer device may be of the same type of processor, such as one or more CPUs; or may be of different types of processors, such as one or more CPUs and one or more ASICs.

[0112] The memory 406 is used to store the program 410. The memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory.

[0113] The program 410 can specifically be called by the processor 402 to enable the computer device to perform the following operations:

[0114] Obtain the current bathroom status data in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status;

[0115] When it is determined that the user enters the shower area according to the current human body status, and it is determined that the shower is turned on according to the current water flow sound status, it is determined that the user enters the shower state;

[0116] According to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode; the target shower mode includes the lighting state of the lighting device in the shower area, the ventilation mode, and the room temperature adjustment information; the target shower mode is one of multiple shower modes; the multiple shower modes include the bedtime shower mode and the morning shower mode; the lighting state is determined according to the lighting adjustment decision algorithm;

[0117] When the shower is completed, gradually turn off the lights in the shower area, and at the same time gradually turn on the lights in the dressing area;

[0118] When it is detected that the user leaves the bathroom, turn off the lighting device in the bathroom and turn on the ventilation and dehumidification mode.

[0119] In an alternative manner, the lighting device in the shower area includes a first lighting device disposed above the shower device and a lighting strip disposed on the floor and / or sidewall of the shower area;

[0120] Starting the target shower mode according to the current time and the current ambient temperature includes:

[0121] Inputting the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into a lighting adjustment decision algorithm to determine the first lighting state of the first lighting device above the shower device; and the second lighting state of the lighting strip, so as to obtain the lighting state of the shower area; the first lighting state includes the first lighting brightness, the first lighting color, and the first lighting color temperature; the second lighting state includes the second lighting brightness, the second lighting color, and the second lighting color temperature.

[0122] In an alternative manner, inputting the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to obtain the lighting state of the shower area includes:

[0123] Determining a time category according to the current time; the time category includes a morning period or a night period;

[0124] When the current time is at night, determining to set the first lighting brightness, the first lighting color, and the first lighting color temperature of the first lighting device according to the user's melatonin suppression curve, and determining the second lighting brightness, the second lighting color, and the second lighting color temperature of the lighting strip according to a compensation mechanism;

[0125] When the current time is in the morning, determining the first lighting state and the second lighting state in a vitality mode; in the vitality mode, the first lighting brightness is greater than a first brightness threshold, and the first lighting color is cool white; the lighting strip has a dynamic scanning effect and a blue or green light strip.

[0126] In an alternative manner, when the current time is at night, determining to set the first lighting brightness, the first lighting color, and the first lighting color temperature of the first lighting device according to the user's melatonin suppression curve, and determining the second lighting brightness, the second lighting color, and the second lighting color temperature of the lighting strip according to a compensation mechanism includes:

[0127] Determining a first lighting brightness range, a first lighting color range, and a first lighting color temperature range according to the user's melatonin suppression curve and the user information;

[0128] According to the first light brightness range, the first light color range, and the first light color temperature range, simulate the biological evolution process through a genetic algorithm, and search for the optimal parameter combination in the solution space;

[0129] Convert the optimal parameter combination into an identifiable control instruction for the first lighting device to obtain the first light state.

[0130] In an alternative manner, the step of simulating the biological evolution process through a genetic algorithm and searching for the optimal parameter combination in the solution space according to the first light brightness range, the first light color range, and the first light color temperature range includes:

[0131] Set the population size, the maximum number of generations, and the optimization objective function, where the optimization objective function includes melatonin protection, visual clarity, and energy efficiency; each individual includes light brightness, light color, and light color temperature;

[0132] Randomly generate brightness values, color temperature values, and color values for each individual;

[0133] Calculate the melatonin protection fitness, visual clarity fitness, and energy efficiency fitness according to the objective function of each individual's optimization objective;

[0134] Through Pareto optimality, calculate the boundary distance of each individual on each optimization objective function, and perform selection operations, adaptive crossover operations, and mutation operations to determine elite individuals from the Pareto optimality to replace the worst-performing individuals;

[0135] Perform the above iterative processing to obtain the optimal parameter combination searched in the solution space.

[0136] In an alternative manner, obtain the difference between the current time and the user's preset sleep time;

[0137] Calculate the amplitude and frequency of the user's actions through pyroelectric array data to determine the user's current activity intensity;

[0138] Substitute the time factor into the basic brightness curve formula to obtain the basic brightness range;

[0139] Determine the first light brightness range according to the current activity intensity, the basic brightness, and the user brightness preference coefficient.

[0140] In an alternative manner, the step of determining the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin inhibition curve and user information includes:

[0141] Substitute the time factor into the basic color temperature curve formula to obtain the basic color temperature range;

[0142] Calculate temperature compensation based on the ambient temperature to obtain a color temperature compensation value;

[0143] Obtain a first lighting color temperature range according to the color temperature compensation value and the basic color temperature range.

[0144] In an optional manner, the real-time acquisition of the current bathroom status data includes:

[0145] When a user enters the bathroom, determine the identity of the user entering the bathroom according to the face device;

[0146] Determine the target user preferences according to the identity;

[0147] The starting of the target shower mode according to the user's user information, the current time, the current ambient temperature, and the current ambient humidity includes:

[0148] Start the target shower mode according to the target user preferences, the current time, the current ambient temperature, and the current ambient humidity.

[0149] In the embodiment of the present invention, the current bathroom status data is acquired in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status; when it is determined that the user enters the shower area according to the current human body status and the shower is turned on according to the current water flow sound status, it is determined that the user enters the shower state; the target shower mode is started according to the user's user information, the current time, the current ambient temperature, and the current ambient humidity; when the shower is completed, the lights in the shower area are gradually turned off, and at the same time, the lights in the dressing area are gradually turned on; when it is detected that the user leaves the bathroom, the lighting device in the bathroom is turned off, and the ventilation and dehumidification mode is turned on, which can effectively combine the current time and environmental information to determine the lighting adjustment that is most suitable for the user's shower method.

[0150] Furthermore, in the process of lighting adjustment in the embodiment of the present invention, the current ambient humidity and the melatonin inhibition curve are combined. Since the ambient humidity during showering causes the brightness, color temperature, and color of the lights to be affected to a certain extent, the influence of the current ambient humidity needs to be considered when setting the lighting state. Moreover, through the coordinated optimization of the brightness, color temperature, and color of the bathroom lights, the multi-objective requirements of melatonin protection, visual clarity, and energy efficiency can be simultaneously met.

[0151] The embodiment of the present invention provides a computer-readable storage medium, and the storage medium stores at least one executable instruction. When the executable instruction runs on a computer device, the computer device is caused to execute the bathroom intelligent lighting adjustment method in any of the above method embodiments.

[0152] The executable instructions can be specifically used to cause a computer device to perform the following operations:

[0153] Obtain the current bathroom status data in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status;

[0154] When it is determined that the user enters the shower area according to the current human body status and the shower is determined to be turned on according to the current water flow sound status, it is determined that the user enters the shower state;

[0155] According to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode; the target shower mode includes the lighting state of the lighting device in the shower area, the ventilation mode, and the room temperature adjustment information; the target shower mode is one of multiple shower modes; the multiple shower modes include the bedtime shower mode and the morning shower mode; the lighting state is determined according to the lighting adjustment decision algorithm;

[0156] When the shower is completed, gradually turn off the lights in the shower area and gradually turn on the lights in the dressing area at the same time;

[0157] When it is detected that the user leaves the bathroom, turn off the lighting device in the bathroom and turn on the ventilation and dehumidification mode.

[0158] In an alternative manner, the lighting device in the shower area includes a first lighting device disposed above the shower device and a lighting strip disposed on the ground and / or side wall of the shower area;

[0159] The starting of the target shower mode according to the current time and the current ambient temperature includes:

[0160] Input the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to determine the first lighting state of the first lighting device above the shower device; and the second lighting state of the lighting strip, so as to obtain the lighting state of the shower area; the first lighting state includes the first lighting brightness, the first lighting color, and the first lighting color temperature; the second lighting state includes the second lighting brightness, the second lighting color, and the second lighting color temperature.

[0161] In an alternative manner, the inputting of the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to obtain the lighting state of the shower area includes:

[0162] Determine the time category according to the current time; the time category includes the morning period or the night period;

[0163] When the current time is night, determine the first light brightness, the first light color, and the first light color temperature of the first lighting device according to the user's melatonin suppression curve, and determine the second light brightness, the second light color, and the second light color temperature of the lighting strip according to the compensation mechanism;

[0164] When the current time is morning, determine the first light state and the second light state in the vitality mode; in the vitality mode, the first light brightness is greater than the first brightness threshold, and the first light color is cool white; the lighting strip has a dynamic scanning effect and a blue or green light strip.

[0165] In an optional manner, when the current time is night, determining the first light brightness, the first light color, and the first light color temperature of the first lighting device according to the user's melatonin suppression curve, and determining the second light brightness, the second light color, and the second light color temperature of the lighting strip according to the compensation mechanism includes:

[0166] Determine the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin suppression curve and user information;

[0167] According to the first light brightness range, the first light color range, and the first light color temperature range, simulate the biological evolution process through a genetic algorithm, and search for the optimal parameter combination in the solution space;

[0168] Convert the optimal parameter combination into an identifiable control instruction for the first lighting device to obtain the first light state.

[0169] In an optional manner, according to the first light brightness range, the first light color range, and the first light color temperature range, simulating the biological evolution process through a genetic algorithm, and searching for the optimal parameter combination in the solution space includes:

[0170] Set the population size, the maximum number of generations of evolution, and the optimization objective function, where the optimization objective function includes melatonin protection, visual clarity, and energy efficiency; among them, each individual includes light brightness, light color, and light color temperature;

[0171] Randomly generate brightness values, color temperature values, and color values for each individual;

[0172] According to the objective function of each individual's optimization objective, calculate the melatonin protection fitness, the visual clarity fitness, and the energy efficiency fitness;

[0173] Through Pareto optimality, calculate the boundary distance of each individual on each optimization objective function, and perform selection operations, adaptive crossover operations, and mutation operations to determine elite individuals from the Pareto optimality to replace the worst-performing individuals;

[0174] Perform the above iterative process to search for the optimal parameter combination in the solution space.

[0175] In an optional manner, obtain the difference between the current time and the user's preset sleep time;

[0176] Calculate the amplitude and frequency of the user's actions through pyroelectric array data to determine the user's current activity intensity;

[0177] Substitute the time factor into the basic brightness curve formula to obtain the basic brightness range;

[0178] Determine the first light brightness range according to the current activity intensity, the basic brightness, and the user brightness preference coefficient.

[0179] In an optional manner, the determining the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin inhibition curve and user information includes:

[0180] Substitute the time factor into the basic color temperature curve formula to obtain the basic color temperature range;

[0181] Calculate the temperature compensation according to the ambient temperature to obtain the color temperature compensation value;

[0182] Obtain the first light color temperature range according to the color temperature compensation value and the basic color temperature range.

[0183] In an optional manner, the real-time obtaining of the current bathroom status data includes:

[0184] When the user enters the bathroom, determine the identity of the user entering the bathroom according to the face device;

[0185] Determine the target user preferences according to the identity;

[0186] The starting of the target shower mode according to the user's user information, the current time, the current ambient temperature, and the current ambient humidity includes:

[0187] Start the target shower mode according to the target user preferences, the current time, the current ambient temperature, and the current ambient humidity.

[0188] In an embodiment of the present invention, the current bathroom status data is obtained in real time; the current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status; when it is determined that the user enters the shower area according to the current human body status and the shower is determined to be turned on according to the current water flow sound status, it is determined that the user enters the shower state; according to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, the target shower mode is started; when the shower is completed, the lights in the shower area are gradually turned off, and at the same time, the lights in the dressing area are gradually turned on; when it is detected that the user leaves the bathroom, the lighting device of the bathroom is turned off, and the ventilation and dehumidification mode is turned on, which can effectively combine the current time and environmental information to determine the lighting adjustment that is most suitable for the user's shower method.

[0189] Furthermore, in the process of lighting adjustment in an embodiment of the present invention, the current ambient humidity and the melatonin inhibition curve are combined. Since the ambient humidity during showering causes the brightness, color temperature, and color of the lights to be affected to a certain extent, the influence of the current ambient humidity needs to be considered when setting the lighting state. Moreover, through the coordinated optimization of the brightness, color temperature, and color of the bathroom lights, the multi-objective requirements of melatonin protection, visual clarity, and energy efficiency can be simultaneously met.

[0190] An embodiment of the present invention provides a bathroom intelligent lighting adjustment device for executing the above-mentioned bathroom intelligent lighting adjustment method.

[0191] An embodiment of the present invention provides a computer program, which can be called by a processor to enable a computer device to execute the bathroom intelligent lighting adjustment method in any of the above method embodiments.

[0192] An embodiment of the present invention provides a computer program product. The computer program product includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions. When the program instructions run on a computer, the computer executes the bathroom intelligent lighting adjustment method in any of the above method embodiments.

[0193] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings based herein. The structure required to construct such a system will be apparent from the above description. In addition, the embodiments of the present invention are not directed to any specific programming language. It should be understood that the content of the present invention described herein can be implemented using various programming languages, and the description of the specific language above is for disclosing the best implementation mode of the present invention.

[0194] In the description provided herein, numerous specific details are set forth. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known systems, structures and techniques have not been shown in detail so as not to obscure the understanding of this description.

[0195] Similarly, it should be understood that in order to streamline the present invention and assist in understanding one or more of the various inventive aspects, in the foregoing description of the exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together in a single embodiment, figure, or description thereof. However, the disclosed systems should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0196] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and disposed in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and can be divided into multiple sub-modules or sub-units or sub-components. Except that at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all the features disclosed in this specification (including the accompanying claims, abstract and drawings) and all the processes or units of any system or device so disclosed. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstract and drawings) can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0197] It should be noted that the above embodiments illustrate rather than limit the present invention, and those skilled in the art can design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In the unit claims listing several devices, several of these devices may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A method for intelligent bathroom lighting adjustment, characterized in that, Applied to the bathroom intelligent lighting adjustment system, the system is based on local edge computing. The system includes multiple types of lighting devices and multiple types of sensing devices arranged at multiple preset positions in the bathroom. The sensing devices include a pyroelectric array, a sound extraction device, and a temperature sensing device; The method includes: Obtain the current bathroom status data in real time; The current bathroom status data includes the current time, the current ambient temperature, the current human body status of the user, and the current water flow sound status; When it is determined that the user enters the shower area according to the current human body status and the shower is determined to be turned on according to the current water flow sound status, it is determined that the user enters the shower state; According to the user information of the user, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode; The target shower mode includes the lighting state of the lighting device in the shower area, the ventilation mode, and the room temperature adjustment information; The target shower mode is one of multiple shower modes; The multiple shower modes include the bedtime shower mode and the morning shower mode; The lighting state is determined according to the lighting adjustment decision algorithm; When the shower is completed, gradually turn off the lights in the shower area, and at the same time gradually turn on the lights in the dressing area; When it is detected that the user leaves the bathroom, turn off the lighting devices in the bathroom and turn on the ventilation and dehumidification mode.

2. The method according to claim 1, wherein The lighting device in the shower area includes a first lighting device arranged above the shower device and a lighting strip arranged on the ground and / or side wall of the shower area; The starting the target shower mode according to the current time and the current ambient temperature includes: Input the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to determine the first lighting state of the first lighting device above the shower device; and the second lighting state of the lighting strip, to obtain the lighting state of the shower area; The first lighting state includes the first lighting brightness, the first lighting color, and the first lighting color temperature; The second lighting state includes the second lighting brightness, the second lighting color, and the second lighting color temperature.

3. The method according to claim 2, wherein The inputting the user information of the user, the current time, the current ambient temperature, and the current ambient humidity into the lighting adjustment decision algorithm to obtain the lighting state of the shower area includes: Determine the time category according to the current time; The time category includes the morning period or the night period; When the current time is at night, determine to set the first lighting brightness, the first lighting color, and the first lighting color temperature of the first lighting device according to the user's melatonin suppression curve, and determine the second lighting brightness, the second lighting color, and the second lighting color temperature of the lighting strip according to the compensation mechanism; When the current time is in the morning, determine the first lighting state and the second lighting state in the vitality mode; In the vitality mode, the first lighting brightness is greater than the first brightness threshold, and the first lighting color is cold white; The lighting strip is a dynamic scanning and blue or green light strip.

4. The method according to claim 3, characterized in that, When the current time is night, determining to set the first light brightness, the first light color, and the first light color temperature of the first lighting device according to the user's melatonin suppression curve, and determining the second light brightness, the second light color, and the second light color temperature of the lighting strip according to the compensation mechanism, includes: Determining the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin suppression curve, user information, and current ambient humidity; According to the first light brightness range, the first light color range, and the first light color temperature range, simulating the biological evolution process through a genetic algorithm to search for the optimal parameter combination in the solution space; Converting the optimal parameter combination into an identifiable control instruction for the first lighting device to obtain the first light state.

5. The method according to claim 4, wherein The step of simulating the biological evolution process through a genetic algorithm to search for the optimal parameter combination according to the first light brightness range, the first light color range, and the first light color temperature range in the solution space includes: Setting the population size, the maximum number of evolution generations, and the optimization objective function, where the optimization objective function includes melatonin protection, visual clarity, and energy efficiency; each individual includes light brightness, light color, and light color temperature; Randomly generating brightness values, color temperature values, and color values for each individual; Calculating the melatonin protection fitness, visual clarity fitness, and energy efficiency fitness according to the objective function of each individual's optimization objective; Calculating the boundary distance of each individual on each optimization objective function through Pareto optimality, and performing selection operations, adaptive crossover operations, and mutation operations to determine elite individuals from Pareto optimality to replace the worst-performing individuals; Performing the above iterative processing to obtain the optimal parameter combination searched in the solution space.

6. The method according to claim 4, wherein The step of determining the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin suppression curve and user information includes: Obtaining the difference between the current time and the user's preset sleep time; Calculating the user's movement amplitude and frequency through pyroelectric array data to determine the user's current activity intensity; Substituting the time factor into the basic brightness curve formula to obtain the basic brightness range; Determining the first light brightness range according to the current activity intensity, the basic brightness, and the user's brightness preference coefficient.

7. The method according to claim 4, characterized in that, The step of determining the first light brightness range, the first light color range, and the first light color temperature range according to the user's melatonin suppression curve and user information includes: Substituting the time factor into the basic color temperature curve formula to obtain the basic color temperature range; Calculating the temperature compensation according to the ambient temperature to obtain the color temperature compensation value; Obtaining the first light color temperature range according to the color temperature compensation value and the basic color temperature range.

8. The method according to any one of claims 1 to 3, characterized in that, The step of obtaining the current bathroom status data in real time includes: When the user enters the bathroom, determining the identity of the user entering the bathroom according to the face device; Determining the target user preferences according to the identity; The step of starting the target shower mode according to the user's user information, the current time, the current ambient temperature, and the current ambient humidity includes: Based on the target user preferences, the current time, the current ambient temperature, and the current ambient humidity, start the target shower mode.

9. An intelligent bathroom lighting adjustment device, characterized in that, Including: A processor, a memory, a communication interface, and a communication bus, where the processor, the memory, and the communication interface complete communication with each other through the communication bus; The memory is used to store at least one executable instruction, and the executable instruction causes the processor to execute the operations of the bathroom intelligent lighting adjustment method described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, At least one executable instruction is stored in the storage medium, and when the executable instruction runs on a computer device, it causes the computer device to execute the operations of the bathroom intelligent lighting adjustment method described in any one of claims 1-8.

Citation Information

Patent Citations

  • Bathroom equipment control method and device, intelligent bathroom equipment and storage medium

    CN114281134A

  • Smart home equipment joint control method, storage medium and electronic device

    CN116088334A

  • Human factor illumination light adjusting method and system, storage medium and computer

    CN119729940A

  • Traffic light fault detection and monitoring system

    KR102659666B1

  • Method and apparatus for desk lamp lighting parameter adjustment, electronic device, and storage medium

    WO2022227900A1