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

By obtaining environmental data and user preference data, and automatically adjusting the color temperature and illumination of LED lamps, the problem of insufficient intelligence of lighting LED color temperature adjustment in the prior art has been solved, and a higher user experience and lighting comfort is achieved.

CN119729940AInactive Publication Date: 2025-03-28NANCHANG KERIP OPTOELECTRONICS TECH CO LTD +1

Patent Information

Application Number
CN202510238918.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-03-28
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing people rely mainly on manual control because the color temperature adjustment of lighting LEDs is not intelligent enough, which affects the user experience.

Method used

By obtaining the light intensity data and infrared radiation data of the current environment, adjust the closed state of the LED lamp; determine the target color temperature based on the ambient temperature, and process user preference data through a clustering algorithm, and automatically adjust the color temperature and illuminance of the LED lamp to meet the needs of different times and places.

Benefits of technology

It realizes intelligent control of LED lights, improves the comfort and user experience of the lighting environment, and is suitable for large-scale promotion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729940A_ABST
    Figure CN119729940A_ABST
Patent Text Reader

Abstract

The invention provides a human factor illumination light adjusting method and system, a storage medium and a computer. Acquiring illumination intensity data and infrared radiation data of the current environment, and adjusting the closing state of the LED lamp based on the acquired illumination intensity data and infrared radiation data; the color temperature of the lamplight is divided into warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values of the warm color temperature, the neutral color temperature and the cold color temperature are sequentially increased; obtaining the current color temperature of the LED lamp and the temperature data of the current environment, determining and adjusting the target color temperature of the LED lamp based on the temperature data, and carrying out color temperature classification; and adjusting and changing the current color temperature of the LED lamp according to the target color temperature, so that the adjusted color temperature of the LED lamp is matched with the target color temperature. The human factor illumination light adjusting method provided by the invention can automatically adjust the light color temperature according to the environment, and is high in intelligence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lighting control, and in particular to a method, system, storage medium and computer for adjusting human-caused lighting. Background Art

[0002] An LED lamp is an electroluminescent semiconductor material chip, which is cured onto a bracket with silver glue or white glue, and then connected to the chip and circuit board with silver wire or gold wire. It is sealed with epoxy resin on all sides to protect the internal core wire, and finally the outer shell is installed. A light sensor usually refers to a device that can sensitively sense light energy from ultraviolet light to infrared light and convert light energy into electrical signals. A light sensor is a sensing device, mainly composed of photosensitive elements. With the advancement of science and technology, lighting control technology continues to develop, and relatively economical and cheap LED dimming power supplies are gradually being promoted and applied. It uses remote control and can adjust color temperature and brightness, etc.

[0003] Human-centered lighting is an advanced lighting design concept that takes into account human visual perception, biological rhythms, and psychological reactions, and aims to create a healthier and more comfortable lighting environment. Human-centered lighting LED is one of the key technologies to realize this concept. Human-centered lighting LED can adjust the color temperature to simulate the color temperature changes of natural light, and can also adjust the brightness according to different time and activity requirements. Human-centered lighting LED takes into account the impact of light on human biological rhythms, especially the impact on melatonin secretion. Visual comfort is improved by optimizing light distribution and avoiding glare. At present, the color temperature adjustment of human-centered lighting LED is not intelligent enough, and its control mainly relies on manual implementation, which is highly dependent and affects user experience. Summary of the invention

[0004] Based on this, the purpose of the present invention is to provide a method, system, storage medium and computer for adjusting human-caused lighting to solve the technical problems existing in the prior art.

[0005] The present invention provides a method for adjusting human factor lighting, comprising: Acquire light intensity data and infrared radiation data of the current environment, and adjust the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data; The color temperature of the light is divided into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; Acquire the current color temperature of the LED lamp and the temperature data of the current environment, determine the target color temperature of the LED lamp based on the temperature data, and perform color temperature classification; Adjusting and transforming the current color temperature of the LED lamp according to the target color temperature so that the adjusted color temperature of the LED lamp matches the target color temperature; Obtain the color temperature data and illuminance data set by the user at different time periods and locations, and obtain the color temperature and illuminance preferred by the user; Processing the acquired color temperature data and illuminance data to combine the color temperature data and illuminance data of different time periods and different locations to obtain a number of combined data, and cleaning the combined data; The cleaned combined data is clustered, wherein the clustering operation comprises: Select the K-means algorithm as the prediction model, calculate the distortion degree of the prediction model under different K values, draw a curve chart of K value and distortion degree, and select the K value with a stable distortion degree as the optimal clustering number; The color temperature data and illuminance data with the highest user setting frequency under different combinations are selected as the initial cluster centers, and the remaining data points are assigned to the nearest cluster centers for classification to form K clusters; Update the cluster center of each cluster to the mean of all data points in the cluster, and repeat the data point allocation until the cluster center no longer changes or the number of repetitions reaches the preset number of iterations, then stop the iteration and complete the model training; The illumination and color temperature of the current environment and the activity time and location of the current user are obtained, and the corresponding cluster center is selected as the user's expected color temperature and illumination in the prediction model after the model training is completed.

[0006] Preferably, the step of acquiring light intensity data and infrared radiation data of the current environment, and adjusting the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data comprises: Acquire the light intensity data of the current environment, and if the light intensity of the current environment is greater than the preset light intensity, control the LED light to be in an off state; If the light intensity of the current environment is not greater than the preset light intensity, the infrared radiation data of the current environment is detected, and when no infrared radiation data is detected, the LED light is controlled to remain in an off state; When infrared radiation data is detected, the infrared radiation data output signal is converted into a voltage signal, and a waveform analysis is performed on the voltage signal, and the LED lamp is controlled to be in an on state according to the waveform analysis result.

[0007] Preferably, after controlling the LED lamp to be in the on state, the human factor illumination light adjustment method further comprises: Determine the luminous intensity of the LED lamp based on the light intensity data of the current environment, and determine the target brightness of the red light, green light and blue light in the LED lamp based on the luminous intensity of the LED lamp; Define three PWM signals corresponding to the channels of red light, green light, and blue light respectively, and calculate the corresponding duty ratio in the PWM signal according to the target brightness of red light, green light, and blue light; Based on the nonlinear perception of brightness by the human eye, the target brightness of red light, green light and blue light is corrected to obtain the corresponding perceived brightness of red light, green light and blue light; The corresponding perceived duty ratios of red light, green light, and blue light are calculated according to the perceived brightness, and the average brightness of each light is adjusted according to the perceived duty ratio.

[0008] Preferably, the expressions of the perceived duty ratios corresponding to red light, green light and blue light are: ; ; ; In the formula, is the perceived duty cycle of red light, is the perceived duty cycle of green light, is the perceived duty cycle of blue light, is the perceived brightness of red light, is the perceived brightness of green light, is the perceived brightness of blue light; ; ; ; In the formula, is the target brightness of the defined red light, is the target brightness of green light, is the target brightness of blue light, is the gamma correction value.

[0009] Preferably, the step of adjusting and changing the current color temperature of the LED lamp according to the target color temperature includes: Respectively obtain the chromaticity coordinates of the target color temperature and the current color temperature of the LED lamp in the chromaticity diagram and perform difference calculation to obtain the coordinate color difference; Based on the color temperature mapping relationship, the RGB value corresponding to the current color temperature of the LED lamp and the RGB value corresponding to the target color temperature are obtained; The RGB value of the LED lamp is updated and calculated according to the RGB value corresponding to the current color temperature of the LED lamp and the coordinate color difference, so that the adjusted and transformed RGB value of the LED lamp is adapted to the RGB value corresponding to the target color temperature, thereby making the color temperature of the LED lamp adapted to the target color temperature.

[0010] Preferably, the expression of the color temperature mapping relationship is: Warm color temperature: , , ; Neutral color temperature: , , ; Cool color temperature: , , ; In the formula, , , are the intensity values ​​of red light, green light and blue light in LED lamps respectively. is the color temperature; The calculation formula of RGB value of LED light is: ; ; ; In the formula, , , They are the updated RGB intensity values ​​of the LED lights, , , They are the RGB intensity values ​​of the LED light before updating. , , is the adjustment coefficient; , is the color difference of the two coordinates of the LED light.

[0011] Preferably, after updating and calculating the RGB value of the LED lamp, the human factor lighting adjustment method further includes: Obtain the color temperature of the LED light after an update, compare the updated color temperature with the target color temperature, and determine whether the color temperature difference between the two meets the preset requirements; If the preset requirements are met, the adjustment of the human factor lighting is completed; If the preset requirements are not met, the coordinate color difference between the color temperature of the LED lamp after the update and the target color temperature is calculated, and the RGB value of the LED lamp is updated and calculated again until the preset requirements are met.

[0012] The present invention also provides a human factor lighting adjustment system, comprising: An adjustment module, used to obtain light intensity data and infrared radiation data of the current environment, and adjust the closed state of the LED lamp based on the obtained light intensity data and infrared radiation data; A classification module, used to classify the color temperature of the light into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; A determination module, used to obtain the current color temperature of the LED lamp and the temperature data of the current environment, determine the target color temperature of the LED lamp based on the temperature data and perform color temperature classification; The transformation module is used to adjust and transform the current color temperature of the LED lamp according to the target color temperature so that the adjusted color temperature of the LED lamp matches the target color temperature.

[0013] The present invention also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned human-caused lighting light adjustment method is implemented.

[0014] The present invention also provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned human-caused lighting adjustment method when executing the computer program.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: the human-caused lighting light adjustment method proposed in the present application obtains the light intensity data and infrared radiation data of the current environment, and adjusts the closed state of the LED lamp based on the obtained light intensity data and the infrared radiation data; firstly, the light intensity of the current environment is judged and whether there is someone controlling the light indoors, so as to achieve energy saving while realizing lighting; further, the target color temperature is determined and classified according to the indoor ambient temperature, and the color temperature of the current LED lamp is adjusted and transformed according to the target color temperature. When the ambient temperature is low, the color temperature of the LED lamp is adjusted to warm light with a lower color temperature value, and when the ambient temperature is high, the color temperature of the LED lamp is adjusted to cold light with a higher color temperature value. When the temperature is at a suitable balanced temperature, the color temperature of the LED lamp is adjusted to neutral white light with a moderate color temperature value. The light color is converted intelligently according to the ambient temperature, so as to enhance people's comfort under the human-caused lighting LED lamp, which is suitable for large-scale promotion.

[0016] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of a method for adjusting human factor lighting in a first embodiment of the present invention; Figure 2 FIG. 4 is a structural block diagram of a computer in a fourth embodiment of the present invention.

[0018] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0019] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0021] Embodiment 1 See also Figure 1 , which shows a human-caused lighting adjustment method in the first embodiment of the present invention, which can intelligently control parameters such as the brightness and color temperature of indoor lighting to improve the experience of indoor personnel; the lighting control system at least includes: Light detection control switch: including photosensitive components and photoelectric sensors. The photosensitive components monitor light intensity and the photoelectric sensors measure light parameters. Infrared detection and tracking of people: using infrared detectors to monitor people's activities in real time; Sound detection confirms the sound source: the sound sensor is combined with the positioning sensor to collect, locate and classify the sound to determine the position of the person; Signal processing and transmission: The microcontroller receives light and sound signals, processes the signals, and sends instructions to the lighting control module; Lighting control module: The lighting controller controls the turning on and off of the human-caused lighting LED light; Temperature detection module: monitors the indoor environment through the temperature sensor and sends the temperature signal to the microcontroller; Lamp color temperature control: The color temperature controller controls the conversion of the color temperature of human-friendly lighting LED lamps, which include cold light, warm light and white light.

[0022] Specifically, in this embodiment, the human factor lighting adjustment method specifically includes steps S10 to S40: S10, acquiring light intensity data and infrared radiation data of the current environment, and adjusting the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data; The step of acquiring the light intensity data and infrared radiation data of the current environment, and adjusting the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data comprises: Acquire the light intensity data of the current environment, and if the light intensity of the current environment is greater than the preset light intensity, control the LED light to be in an off state; If the light intensity of the current environment is not greater than the preset light intensity, the infrared radiation data of the current environment is detected, and when no infrared radiation data is detected, the LED light is controlled to remain in an off state; When infrared radiation data is detected, the infrared radiation data output signal is converted into a voltage signal, and a waveform analysis is performed on the voltage signal, and the LED lamp is controlled to be in an on state according to the waveform analysis result.

[0023] Specifically, the photosensitive component adopts optical and electrical technology to achieve contactless, long-distance, fast and accurate measurement of light intensity. The photoelectric sensor uses photoelectric devices as sensors to detect light intensity, illuminance and radiation. The photosensitive component measures light intensity, and the photoelectric sensor uses photoelectric devices as sensors to detect light intensity, illuminance and radiation. The photosensitive component and the photoelectric sensor determine whether the room is daytime or nighttime by detecting light. If it is daytime, a signal is sent to the signal processing and sending module, so that the light control module does not run after receiving the signal. If it is nighttime, the detected light signal is sent to the signal processing and sending module, so that the light control module runs after receiving the signal. The photoelectric sensor can measure various parameters of light, including light intensity, wavelength, direction, position, etc., and can convert the measured light signal into an electrical signal.

[0024] The infrared detector converts the incident infrared radiation signal of a person into an electrical signal output to determine whether there is a person; the infrared detector converts the incident infrared radiation signal of a person into an electrical signal output. If the infrared radiation of a person is detected, it means that someone is passing by. At this time, a signal is sent to the lighting control module, and the lighting control module controls the human lighting LED to light up to illuminate the pedestrians. Multiple infrared detectors perform detection at different positions. Any effect caused by infrared radiation irradiating an object can be used to measure the strength of the infrared radiation as long as the effect can be measured and is sensitive enough. Modern infrared detectors mainly use infrared thermal effects and photoelectric effects. In infrared detectors, thermoelectric elements detect the presence or movement of the human body and convert the output signal of the thermoelectric element into a voltage signal. Then, the voltage signal is subjected to waveform analysis. Therefore, the detection signal is output only when the waveform generated by the human body is detected through waveform analysis.

[0025] Optionally, the lighting control system also includes a sound sensor for receiving sound waves, displaying a vibration image of the sound, analyzing the received sound waves, determining whether the sound is a person walking or an object, and using positioning sensor detection to determine the position of the person. The positioning sensor is a proximity sensor. At the same time, the sound sensor receives sound waves, displays a vibration image of the sound, analyzes the received sound waves, determines whether the sound is a person walking or an object, and uses positioning sensor detection to determine the position of the person. If the position is the same as the detection result of the infrared detector, accurate person tracking can be performed, so that the human-caused lighting LED lights at the place where the person passes by at that time light up, and the human-caused lighting LED lights at the place where the person passes by reduce their brightness, which can achieve energy saving while realizing lighting. A proximity switch refers to a switch that can send an "action" signal when an object approaches it to a set distance, and it does not need to be in direct contact with the object.

[0026] Optionally, a microcontroller is a single-chip microcomputer that integrates the main parts of a microcomputer on one chip. The microcontroller includes a processor, memory and a serial port for receiving signals, processing signals and sending signals; the memory of the microcontroller includes external memory, internal memory, and the processor is a dedicated CPU for applications based on digital signal processing. After converting the signal into digital data using a variety of different available algorithms, its components can be more easily isolated, analyzed and rearranged than in analog form. It provides ultra-fast instruction sequences. The serial interface is abbreviated as serial port, also known as serial communication interface or serial communication interface, which is an expansion interface using serial communication.

[0027] The lighting controller includes a core signal control board and a power output board. The core signal control board is used to download and store data programs and run data programs. The power output board is used to receive signals sent by the motherboard and output power to achieve the purpose of controlling the lights. The intelligent lighting controller, also known as a programmable lighting controller, means that the lighting program of the controller can be modified according to the needs of the user, such as modifying the speed, time, pattern, synchronization and asynchrony of the flashing lights, etc., and has good scalability. According to the needs of the user, multiple control boards can be combined for synchronous and asynchronous operation to meet higher requirements.

[0028] After the temperature sensor detects the temperature, it converts the temperature data into an output signal, thereby sending a signal; the temperature sensor is a non-contact temperature sensor, and its sensitive element does not contact the object being measured. It is also called a non-contact temperature measuring instrument. This instrument can be used to measure the surface temperature of moving objects, small targets, and objects with small heat capacity or rapid temperature changes. It can also be used to measure the temperature distribution of the temperature field. The upper limit of measurement is not limited by the temperature resistance of the temperature sensing element. The most commonly used non-contact temperature measuring instrument is based on the basic law of blackbody radiation and is called a radiation temperature measuring instrument. The radiation temperature measurement method includes brightness method, radiation method and colorimetry method. Various radiation temperature measurement methods can only measure the corresponding photometric temperature, radiation temperature or colorimetric temperature. Only the temperature measured for the blackbody is the real temperature. After the temperature sensor detects the indoor temperature, it converts the temperature data into an output signal, thereby sending a signal. If the detected temperature is low, the color temperature controller and the light controller adjust the light of the human-caused lighting LED lamp to warm light. If the detected temperature is low, the color temperature controller and the light controller adjust the light of the human-caused lighting LED lamp to cold light. When the temperature is at a suitable balanced temperature, the color temperature controller and the light controller adjust the light of the human-caused lighting LED lamp to white light. Through the conversion of light color, people can feel physical and psychological warmth through warm light at low temperatures, and feel some physical and psychological coldness through cold light at high temperatures, thereby enhancing people's comfort under the human-caused lighting LED lamp.

[0029] Optionally, in this embodiment, after controlling the LED lamp to be in the on state, the human factor illumination light adjustment method further includes: Determine the luminous intensity of the LED lamp based on the light intensity data of the current environment, and determine the target brightness of the red light, green light and blue light in the LED lamp based on the luminous intensity of the LED lamp; Define three PWM signals corresponding to the channels of red light, green light, and blue light respectively, and calculate the corresponding duty ratio in the PWM signal according to the target brightness of red light, green light, and blue light; Based on the nonlinear perception of brightness by the human eye, the target brightness of red light, green light and blue light is corrected to obtain the corresponding perceived brightness of red light, green light and blue light; The corresponding perceived duty ratios of red light, green light, and blue light are calculated according to the perceived brightness, and the average brightness of each light is adjusted according to the perceived duty ratio.

[0030] Optionally, the expressions for the perceived duty ratios of red light, green light, and blue light are: ; ; ; In the formula, is the perceived duty cycle of red light, is the perceived duty cycle of green light, is the perceived duty cycle of blue light, is the perceived brightness of red light, is the perceived brightness of green light, is the perceived brightness of blue light; ; ; ; In the formula, is the target brightness of the defined red light, is the target brightness of green light, is the target brightness of blue light, is the gamma correction value.

[0031] Through the above adjustment process, the target brightness of each chip can be determined according to the indoor light. Assuming there are three Signal: , , , corresponding to the red, green and blue channels respectively, the duty cycle of each signal can be expressed as , , , defines the target brightness of each color channel, ranging from 0 (completely off) to 1 (maximum brightness); since the human eye's perception of brightness is nonlinear, the target brightness needs to be gamma corrected to obtain the perceived average brightness.

[0032] S20, classifying the color temperature of the light into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; Optionally, in this embodiment, the color temperature is divided into ranges, warm color temperature: 2700K to 3000K; neutral color temperature: 3000K to 6500K; cold color temperature: 6500K to 10000K, K represents Kelvin, which is the unit of color temperature. Warm color temperature usually requires increasing the intensity of the red channel and reducing the intensity of the green channel, while cold color temperature is the opposite, and the blue channel is usually increased in cold color temperature and reduced in warm color temperature.

[0033] People use the absolute temperature of a perfect radiator that is equal to or close to the color temperature of the light source to describe the color appearance of the light source (the color seen by the human eye when directly observing the light source), also known as the color temperature of the light source. The color temperature is expressed in absolute temperature K. Different color temperatures will cause people to have different emotional reactions. We generally divide the color temperature of light sources into three categories: Warm light: The color temperature of warm light is below 3000K. Warm light is similar to the color of incandescent light, with more red light components, giving people a warm, healthy and comfortable feeling. It is suitable for homes, residences, dormitories, hospitals, hotels and other places, or places with relatively low temperatures; Cold light: also called daylight Color, its color temperature is above 6500K, the light source is close to natural light, it has a bright feeling, makes people concentrate, and is suitable for offices, conference rooms, classrooms, drawing rooms, design rooms, library reading rooms, exhibition windows and other places; White light: also called intermediate color, its color temperature is between 3000K-6500K, warm white light is soft, making people feel happy, comfortable and peaceful, and is suitable for shops, hospitals, offices, hotels, restaurants, waiting rooms and other places. The color temperature controller adjusts the brightness by changing the on and off ratio of the LED within a certain period of time, and adjusts the color temperature by changing the ratio of different lights.

[0034] S30, obtaining the current color temperature of the LED lamp and the temperature data of the current environment, determining the target color temperature of the LED lamp based on the temperature data and performing color temperature classification; In specific implementation, the color temperature to which the light needs to be adjusted is first determined based on the current ambient temperature. Optionally, in this embodiment, in the current ambient temperature formula, the target color temperature emitted by the light is required to be 4000K, and the color temperature of 4000K is a neutral color temperature.

[0035] In some optional embodiments, the human factor lighting light adjustment method further includes adjusting the light according to the historical lighting data selected by the user, specifically including: Obtain the color temperature data and illuminance data set by the user at different time periods and locations, and obtain the color temperature and illuminance preferred by the user; Processing the acquired color temperature data and illuminance data to combine the color temperature data and illuminance data of different time periods and different locations to obtain a number of combined data, and cleaning the combined data; The cleaned combined data is clustered, wherein the clustering operation comprises: Select the K-means algorithm as the prediction model, calculate the distortion degree of the prediction model under different K values, draw a curve chart of K value and distortion degree, and select the K value with a stable distortion degree as the optimal clustering number; The color temperature data and illuminance data with the highest user setting frequency under different combinations are selected as the initial cluster centers, and the remaining data points are assigned to the nearest cluster centers for classification to form K clusters; Update the cluster center of each cluster to the mean of all data points in the cluster, and repeat the data point allocation until the cluster center no longer changes or the number of repetitions reaches the preset number of iterations, then stop the iteration and complete the model training; The illumination and color temperature of the current environment and the activity time and location of the current user are obtained, and the corresponding cluster center is selected as the user's expected color temperature and illumination in the prediction model after the model training is completed.

[0036] In this embodiment, the Euclidean distance algorithm is used to classify the data points. The Euclidean distance calculation formula is:

[0037] In the formula, For two data The distance between is the dimension of the Euclidean distance algorithm.

[0038] In specific implementation, time can be divided into waking time, working time, rest time, etc. according to different dimensions, and can also be divided into whether it is a weekday, day or night, etc.; different locations can include kitchens, bedrooms, bathrooms, living rooms, balconies, offices, study rooms, etc. Furthermore, location classification can be one-hot encoded, and one-hot encoding will create a new binary column (0 or 1) for each location, where each location is represented as 1 in this column and 0 in other columns. Color temperature data directly uses color temperature values ​​in Kelvin; illuminance data directly uses illuminance values ​​in lux. Furthermore, based on the principle of "high color temperature means high illuminance, low color temperature means low illuminance", a feature can be created to represent this combination relationship: if T>T threshold And I>I threshold , then the feature is 1, otherwise it is 0. In this embodiment, different scenes T threshold and I threshold The values ​​are different. In a certain scenario, the data with feature 1 has a higher weight than the data with feature 0 during model iteration. Where T is the color temperature (in K), and I is the illuminance (in lx).

[0039] The combination of different time periods and different locations can include: working day + office, night + bedroom, non-working day + living room, day + balcony, etc. Data cleaning mainly involves deleting irrelevant data, duplicate data, smoothing noise data in the original data set, filtering out data irrelevant to the mining topic, and processing missing values, outliers, etc. Furthermore, the system also clearly limits the data capacity of the user's time, location, light color temperature and illumination. When the number of samples reaches the set maximum value, each time a new training sample is added, the earliest recorded sample data will be automatically deleted, and the user's latest lighting preferences at a certain time and place will be continuously learned.

[0040] S40, adjusting and transforming the current color temperature of the LED lamp according to the target color temperature, so that the adjusted color temperature of the LED lamp matches the target color temperature.

[0041] Optionally, the step of adjusting and changing the current color temperature of the LED lamp according to the target color temperature includes: Respectively obtain the chromaticity coordinates of the target color temperature and the current color temperature of the LED lamp in the chromaticity diagram and perform difference calculation to obtain the coordinate color difference; Based on the color temperature mapping relationship, the RGB value corresponding to the current color temperature of the LED lamp and the RGB value corresponding to the target color temperature are obtained; The RGB value of the LED lamp is updated and calculated according to the RGB value corresponding to the current color temperature of the LED lamp and the coordinate color difference, so that the RGB value of the LED lamp after adjustment and transformation is adapted to the RGB value corresponding to the target color temperature, thereby making the color temperature of the LED lamp adapted to the target color temperature.

[0042] Optionally, in the RGB color model, color is represented by a combination of red (R), green (G), and blue (B) colors, and the intensity of each color is usually in the range of 0 to 255, where 0 indicates that the light of the color is completely off, and 255 indicates the brightest. In this embodiment, the target color temperature is 4000K. According to the "CIE 1931 Chromaticity Diagram" or the "CIE 1976" color space, the corresponding chromaticity coordinates can be found according to the target color temperature as ( , ), measure the color temperature of the light emitted by the current LED through a colorimeter or other spectrum measuring instrument, and obtain the current chromaticity coordinates ( , ), and perform difference operation to obtain: ; ; In the formula, , is the color difference of the two coordinates of the LED light; The expression of the color temperature mapping relationship is: Warm color temperature: , , ; Neutral color temperature: , , ; Cool color temperature: , , ; In the formula, , , are the intensity values ​​of red light, green light and blue light in LED lights respectively. is the color temperature; Illustratively, in this embodiment, the target color temperature is 4000K, and the expression of neutral color temperature is used to calculate the RGB value corresponding to the target color temperature. Similarly, the corresponding mapping relationship can be used to calculate the RGB value according to the color temperature value and classification of the current LED lamp.

[0043] After obtaining the RGB value and coordinate color difference corresponding to the current color temperature of the LED light, calculate and update the RGB value of the LED light according to the following formula; ; ; ; In the formula, , , They are the updated RGB intensity values ​​of the LED lights, , , They are the RGB intensity values ​​of the LED light before updating. , , is the adjustment coefficient; , is the color difference of the two coordinates of the LED light.

[0044] Furthermore, after updating and calculating the RGB value of the LED lamp, the human factor lighting adjustment method further includes: Obtain the color temperature of the LED light after an update, compare the updated color temperature with the target color temperature, and determine whether the color temperature difference between the two meets the preset requirements; If the preset requirements are met, the adjustment of the human factor lighting is completed; If the preset requirements are not met, the coordinate color difference between the color temperature of the LED lamp after the update and the target color temperature is calculated, and the RGB value of the LED lamp is updated and calculated again until the preset requirements are met.

[0045] Through the above-mentioned iterative updates, the color temperature adjusted by the LED and other devices is gradually adapted to the target color temperature, thereby improving the comfort level.

[0046] In summary, the human-centered lighting adjustment method proposed in the present application obtains the light intensity data and infrared radiation data of the current environment, and adjusts the closed state of the LED lamp based on the obtained light intensity data and the infrared radiation data; first, the light intensity of the current environment is judged and whether there is someone controlling the light indoors, so as to achieve energy saving while realizing lighting; further, the target color temperature is determined and classified according to the indoor ambient temperature, and the color temperature of the current LED lamp is adjusted and transformed according to the target color temperature. When the ambient temperature is low, the color temperature of the LED lamp is adjusted to warm light with a lower color temperature value. When the ambient temperature is high, the color temperature of the LED lamp is adjusted to cold light with a higher color temperature value. When the temperature is at a suitable balanced temperature, the color temperature of the LED lamp is adjusted to neutral white light with a moderate color temperature value. The light color is converted intelligently according to the ambient temperature to enhance people's comfort under the human-centered lighting LED lamp, which is suitable for large-scale promotion.

[0047] Embodiment 2 This embodiment provides a human factor lighting adjustment system, including: An adjustment module, used to obtain light intensity data and infrared radiation data of the current environment, and adjust the closed state of the LED lamp based on the obtained light intensity data and infrared radiation data; A classification module, used to classify the color temperature of the light into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; A determination module, used to obtain the current color temperature of the LED lamp and the temperature data of the current environment, determine the target color temperature of the LED lamp based on the temperature data and perform color temperature classification; The transformation module is used to adjust and transform the current color temperature of the LED lamp according to the target color temperature so that the adjusted color temperature of the LED lamp matches the target color temperature.

[0048] The step of acquiring the light intensity data and infrared radiation data of the current environment, and adjusting the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data comprises: Acquire the light intensity data of the current environment, and if the light intensity of the current environment is greater than the preset light intensity, control the LED light to be in an off state; If the light intensity of the current environment is not greater than the preset light intensity, the infrared radiation data of the current environment is detected, and when no infrared radiation data is detected, the LED light is controlled to remain in an off state; When infrared radiation data is detected, the infrared radiation data output signal is converted into a voltage signal, and a waveform analysis is performed on the voltage signal, and the LED lamp is controlled to be in an on state according to the waveform analysis result.

[0049] After controlling the LED light to be in the on state, the method further includes: Determine the luminous intensity of the LED lamp based on the light intensity data of the current environment, and determine the target brightness of the red light, green light and blue light in the LED lamp based on the luminous intensity of the LED lamp; Define three PWM signals corresponding to the channels of red light, green light, and blue light respectively, and calculate the corresponding duty ratio in the PWM signal according to the target brightness of red light, green light, and blue light; Based on the nonlinear perception of brightness by the human eye, the target brightness of red light, green light and blue light is corrected to obtain the corresponding perceived brightness of red light, green light and blue light; The corresponding perceived duty ratios of red light, green light, and blue light are calculated according to the perceived brightness, and the average brightness of each light is adjusted according to the perceived duty ratio.

[0050] The expressions for the perceived duty ratios of red light, green light, and blue light are: ; ; ; In the formula, is the perceived duty cycle of red light, is the perceived duty cycle of green light, is the perceived duty cycle of blue light, is the perceived brightness of red light, is the perceived brightness of green light, is the perceived brightness of blue light; ; ; ; In the formula, is the target brightness of the defined red light, is the target brightness of green light, is the target brightness of blue light, is the gamma correction value.

[0051] The step of adjusting and changing the current color temperature of the LED lamp according to the target color temperature includes: Respectively obtain the chromaticity coordinates of the target color temperature and the current color temperature of the LED lamp in the chromaticity diagram and perform difference calculation to obtain the coordinate color difference; Based on the color temperature mapping relationship, the RGB value corresponding to the current color temperature of the LED lamp and the RGB value corresponding to the target color temperature are obtained; The RGB value of the LED lamp is updated and calculated according to the RGB value corresponding to the current color temperature of the LED lamp and the coordinate color difference, so that the adjusted and transformed RGB value of the LED lamp is adapted to the RGB value corresponding to the target color temperature, thereby making the color temperature of the LED lamp adapted to the target color temperature.

[0052] The expression of the color temperature mapping relationship is: Warm color temperature: , , ; Neutral color temperature: , , ; Cool color temperature: , , ; In the formula, , , are the intensity values ​​of red light, green light and blue light in LED lights respectively. is the color temperature; The calculation formula of RGB value of LED light is: ; ; ; In the formula, , , They are the updated RGB intensity values ​​of the LED lights, , , They are the RGB intensity values ​​of the LED light before updating. , , is the adjustment coefficient; , is the color difference of the two coordinates of the LED light.

[0053] After updating the calculation of the RGB value of the LED light, it also includes: Obtain the color temperature of the LED light after an update, compare the updated color temperature with the target color temperature, and determine whether the color temperature difference between the two meets the preset requirements; If the preset requirements are met, the adjustment of the human factor lighting is completed; If the preset requirements are not met, the coordinate color difference between the color temperature of the LED lamp after the update and the target color temperature is calculated, and the RGB value of the LED lamp is updated and calculated again until the preset requirements are met.

[0054] Embodiment 3 A third embodiment of the present invention provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned human-caused lighting light adjustment method is implemented.

[0055] Embodiment 4 The present invention also provides a computer, see Figure 2 , shown is a computer in the fourth embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20. When the processor 20 executes the computer program 30, the above-mentioned human-caused lighting adjustment method is implemented.

[0056] The memory 10 includes at least one type of storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer, such as a hard disk of the computer. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of the computer and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer, but also to temporarily store data that has been output or is to be output.

[0057] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.

[0058] It should be pointed out that Figure 2 The structure shown does not constitute a limitation on the computer. In other embodiments, the computer may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0059] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0060] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0061] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logical function on data, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0062] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0063] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for adjusting human-caused lighting, characterized in that: include; Acquire light intensity data and infrared radiation data of the current environment, and adjust the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data; The color temperature of the light is divided into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; Acquire the current color temperature of the LED lamp and the temperature data of the current environment, determine the target color temperature of the LED lamp based on the temperature data, and perform color temperature classification; Adjusting and transforming the current color temperature of the LED lamp according to the target color temperature so that the adjusted color temperature of the LED lamp matches the target color temperature; After obtaining the current color temperature of the LED lamp and the temperature data of the current environment, the human factor lighting adjustment method further includes: Obtain the color temperature data and illuminance data set by the user at different time periods and locations, and obtain the color temperature and illuminance preferred by the user; Processing the acquired color temperature data and illuminance data to combine the color temperature data and illuminance data of different time periods and different locations to obtain a number of combined data, and cleaning the combined data; The cleaned combined data is clustered, wherein the clustering operation comprises: Select the K-means algorithm as the prediction model, calculate the distortion degree of the prediction model under different K values, draw a curve chart of K value and distortion degree, and select the K value with a stable distortion degree as the optimal clustering number; The color temperature data and illuminance data with the highest user setting frequency under different combinations are selected as the initial cluster centers, and the remaining data points are assigned to the nearest cluster centers for classification to form K clusters; Update the cluster center of each cluster to the mean of all data points in the cluster, and repeat the data point allocation until the cluster center no longer changes or the number of repetitions reaches the preset number of iterations, then stop the iteration and complete the model training; The illumination and color temperature of the current environment and the activity time and location of the current user are obtained, and the corresponding cluster center is selected as the user's expected color temperature and illumination in the prediction model after the model training is completed.

2. The method for adjusting human-caused lighting according to claim 1, characterized in that: The step of acquiring the light intensity data and infrared radiation data of the current environment, and adjusting the closed state of the LED lamp based on the acquired light intensity data and infrared radiation data comprises: Acquire the light intensity data of the current environment, and if the light intensity of the current environment is greater than the preset light intensity, control the LED light to be in an off state; If the light intensity of the current environment is not greater than the preset light intensity, the infrared radiation data of the current environment is detected, and when no infrared radiation data is detected, the LED light is controlled to remain in an off state; When infrared radiation data is detected, the infrared radiation data output signal is converted into a voltage signal, and a waveform analysis is performed on the voltage signal, and the LED lamp is controlled to be in an on state according to the waveform analysis result.

3. The method for adjusting human-caused lighting according to claim 2, characterized in that: After controlling the LED lamp to be in the on state, the human factor illumination light adjustment method further includes: Determine the luminous intensity of the LED lamp based on the light intensity data of the current environment, and determine the target brightness of the red light, green light and blue light in the LED lamp based on the luminous intensity of the LED lamp; Define three PWM signals corresponding to the channels of red light, green light, and blue light respectively, and calculate the corresponding duty ratio in the PWM signal according to the target brightness of red light, green light, and blue light; Based on the nonlinear perception of brightness by the human eye, the target brightness of red light, green light and blue light is corrected to obtain the corresponding perceived brightness of red light, green light and blue light; The corresponding perceived duty ratios of red light, green light, and blue light are calculated according to the perceived brightness, and the average brightness of each light is adjusted according to the perceived duty ratio.

4. The method for adjusting human-caused lighting according to claim 3, characterized in that: The expressions for the perceived duty ratios of red light, green light, and blue light are: ; ; ; In the formula, is the perceived duty cycle of red light, is the perceived duty cycle of green light, is the perceived duty cycle of blue light, is the perceived brightness of red light, is the perceived brightness of green light, is the perceived brightness of blue light; ; ; ; In the formula, is the target brightness of the defined red light, is the target brightness of green light, is the target brightness of blue light, is the gamma correction value.

5. The method for adjusting human factor lighting according to claim 1, characterized in that: The step of adjusting and changing the current color temperature of the LED lamp according to the target color temperature includes: Respectively obtain the chromaticity coordinates of the target color temperature and the current color temperature of the LED lamp in the chromaticity diagram and perform difference calculation to obtain the coordinate color difference; Based on the color temperature mapping relationship, the RGB value corresponding to the current color temperature of the LED lamp and the RGB value corresponding to the target color temperature are obtained; The RGB value of the LED lamp is updated and calculated according to the RGB value corresponding to the current color temperature of the LED lamp and the coordinate color difference, so that the adjusted and transformed RGB value of the LED lamp is adapted to the RGB value corresponding to the target color temperature, thereby making the color temperature of the LED lamp adapted to the target color temperature.

6. The method for adjusting human-caused lighting according to claim 5, characterized in that: The expression of the color temperature mapping relationship is: Warm color temperature: , , ; Neutral color temperature: , , ; Cool color temperature: , , ; In the formula, , , are the intensity values ​​of red light, green light and blue light in LED lights respectively. is the color temperature; The calculation formula of RGB value of LED light is: ; ; ; In the formula, , , They are the updated RGB intensity values ​​of the LED lights, , , They are the RGB intensity values ​​of the LED light before updating. , , is the adjustment coefficient; , is the color difference of the two coordinates of the LED light.

7. The method for adjusting human-caused lighting according to claim 5, characterized in that: After updating and calculating the RGB value of the LED lamp, the human factor lighting adjustment method further includes: Obtain the color temperature of the LED light after an update, compare the updated color temperature with the target color temperature, and determine whether the color temperature difference between the two meets the preset requirements; If the preset requirements are met, the adjustment of the human factor lighting is completed; If the preset requirements are not met, the coordinate color difference between the color temperature of the LED lamp after the update and the target color temperature is calculated, and the RGB value of the LED lamp is updated and calculated again until the preset requirements are met.

8. A human factor lighting adjustment system, characterized in that: include: An adjustment module, used to obtain light intensity data and infrared radiation data of the current environment, and adjust the closed state of the LED lamp based on the obtained light intensity data and infrared radiation data; A classification module, used to classify the color temperature of the light into three categories: warm color temperature, neutral color temperature and cold color temperature, wherein the color temperature values ​​of the warm color temperature, the neutral color temperature and the cold color temperature increase in sequence; A determination module, used to obtain the current color temperature of the LED lamp and the temperature data of the current environment, determine the target color temperature of the LED lamp based on the temperature data and perform color temperature classification; The prediction module is used to obtain the color temperature data and illuminance data corresponding to the user's activities in different time periods and locations, and obtain the user's preferred color temperature and illuminance; Processing the acquired color temperature data and illuminance data to combine the color temperature data and illuminance data of different time periods and different locations to obtain a number of combined data, and cleaning the combined data; The cleaned combined data is clustered, wherein the clustering operation comprises: Select the K-means algorithm as the prediction model, calculate the distortion degree of the prediction model under different K values, draw a curve chart of K value and distortion degree, and select the K value with a stable distortion degree as the optimal clustering number; The color temperature data and illuminance data with the highest user setting frequency under different combinations are selected as the initial cluster centers, and the remaining data points are assigned to the nearest cluster centers for classification to form K clusters; Update the cluster center of each cluster to the mean of all data points in the cluster, and repeat the data point allocation until the cluster center no longer changes or the number of repetitions reaches the preset number of iterations, then stop the iteration and complete the model training; Obtain the illumination and color temperature of the current environment and the activity time and location of the current user, and select the corresponding cluster center as the user's expected color temperature and illumination in the prediction model after model training; The transformation module is used to adjust and transform the current color temperature of the LED lamp according to the target color temperature so that the adjusted color temperature of the LED lamp matches the target color temperature.

9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for adjusting human-caused lighting as claimed in any one of claims 1 to 7 is implemented.

10. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for adjusting human-induced lighting according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • System and method for adjusting light intensity and color temperature in reading process of the elder

    CN103596341A

  • Corridor lamp illumination control system and method

    CN103731949A

  • Corridor induction lamp control system and control method thereof

    CN108337782A

  • Event-driven home smart illumination method and system

    CN109769333A

  • Intelligent light control system

    CN116347724A

Cited By

  • Bathroom intelligent light adjusting method and device and storage medium

    CN120390331A