Line lamp color change control method and device, lamp and medium

The linear light color change control method addresses adaptive lighting challenges by using neural networks and real-time feedback to dynamically adjust color and brightness, ensuring stable and comfortable lighting experiences.

CN119155860AActive Publication Date: 2024-12-17GUANGDONG CHIJIU LIGHTING CO LTD

Patent Information

Application Number
CN202411566639.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2024-12-17
Estimated Expiration
2044-11-05

AI Technical Summary

Technical Problem

Existing linear lights lack effective mechanisms for adaptive lighting based on ambient light conditions and user behavior, fail to dynamically adjust color changes due to temperature, and do not fully utilize advanced technologies like neural networks for accurate color transformation, resulting in inadequate user experience and display effects.

Method used

A linear light color change control method using real-time acquisition of environmental and user behavior information, a neural network-based color mapping model, and temperature feedback to dynamically adjust color and brightness, incorporating color mixing and brightness compensation algorithms to ensure natural and comfortable lighting.

Benefits of technology

The method enables intelligent, adaptive lighting that accurately responds to environmental and user changes, ensuring stable operation and extended lifespan by preventing overheating, enhancing user comfort and display effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155860A_ABST
    Figure CN119155860A_ABST
Patent Text Reader

Abstract

The invention provides a line lamp color transformation control method and device, a lamp and a medium. The method comprises the following steps: acquiring ambient light intensity, color distribution, a user position and an action type in real time; a color mapping model trained by a neural network is utilized to convert the color parameters into color parameters; generating a color transformation instruction based on color mixing and a brightness compensation algorithm according to the color parameters; an instruction is sent to a driving circuit to control color conversion, and meanwhile, according to feedback of a temperature sensor in the line lamp, when the temperature exceeds a threshold value, the switching frequency and the brightness value are reduced, and a transition mode is changed; the normal temperature gradually recovers, and safety and effect are guaranteed. The color of the line lamp is accurately adjusted according to the environment and user behaviors, human eye perception is considered in a color mixing and brightness compensation algorithm, instructions are dynamically adjusted according to the temperature, the lamp is protected, sensors of the lamp are matched, control is achieved through a computer program, and the lighting experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of lamp color change control systems, and in particular to a linear lamp color change control method, device, lamp and medium. Background Art

[0002] With the continuous development of lighting technology and people's increasing demand for quality of life, linear lights have been widely used in indoor and outdoor decoration, commercial display, smart home and other fields. Traditional linear lights usually only have simple fixed color lighting functions, or can only perform limited color switching through manual operation, which can no longer meet the needs of modern diversified scenes.

[0003] In a smart home environment, people expect lighting systems to interact intelligently with the environment and user behavior. For example, under different ambient light conditions, such as when there is plenty of natural light during the day and in a dark environment at night, the color and brightness of linear lights should be automatically adjusted to provide a comfortable and appropriate lighting atmosphere. Some existing linear light control methods lack effective perception and utilization of ambient light intensity and color distribution, resulting in the inability to achieve adaptive lighting in complex environments.

[0004] At the same time, the user's activities in the space should also be an important factor affecting the color change of the linear light. When the user is resting in the living room or watching TV, he may need a soft and soothing light color; when the user is entertaining, such as holding a party, he hopes that the light can become more lively and colorful. Most of the linear lights on the market cannot accurately capture the user's position and action type to change the color accordingly, lacking sufficient intelligence and humanity.

[0005] In the field of commercial display, line lights are often used to highlight displayed goods or create a specific display atmosphere. Traditional line lights cannot automatically adjust the color according to the changes in the display content and the surrounding environment, which greatly reduces the display effect. For example, when displaying jewelry, the light needs to highlight the luster and color of the jewelry, while when displaying clothing, different light colors are needed to set off the style of the clothing.

[0006] In addition, the color performance and service life of existing linear lights may be affected by temperature changes during long-term use. However, there is currently a lack of effective mechanisms to dynamically adjust color changes based on temperature feedback, which may cause color deviation and damage to linear lights due to overheating, affecting their stability and reliability.

[0007] From a technical perspective, although there are some lighting control technologies currently available, there are still deficiencies in accurately combining environmental perception, user behavior analysis, and color transformation of linear lights. Traditional color mapping methods are not accurate and flexible enough, and do not fully utilize advanced technologies such as neural networks to learn and analyze large amounts of data. Moreover, in terms of color mixing and brightness compensation algorithms, the visual perception characteristics of the human eye and complex environmental factors have not been fully considered, resulting in color transformation that is not natural and comfortable enough, and cannot meet users' expectations for a high-quality lighting experience. Therefore, there is an urgent need for an innovative linear light color transformation control method, device, lamp, and medium to solve the above problems. Summary of the invention

[0008] The present invention provides a linear light color change control method, device, lamp and medium to solve the problems mentioned in the above-mentioned prior art.

[0009] In order to achieve the above object, the present invention adopts the following technical solution: a color change control method of a linear light, comprising the following steps:

[0010] S1. Acquire environmental information and user behavior information in real time, wherein the environmental information includes ambient light intensity and ambient color distribution, and the user behavior information includes user location and user action type;

[0011] S2. Based on a preset color mapping model, the environment information and user behavior information are converted into color parameters, wherein the color parameters include a target color set, a color switching frequency, and a color transition mode. The color mapping model is obtained based on neural network training, and the training data includes a large amount of color preference data under different environments and user behavior scenarios. The output calculation formula of the neural network is: O = σ(W T ×X+b), where o is the output color parameter vector, X is the input vector composed of environment information and user behavior information, W is the weight matrix, b is the bias vector, and σ is the activation function (such as ReLU, Sigmoid, etc.);

[0012] S3. Generate a color change instruction according to the color parameter, wherein the color change instruction includes a color value sequence and a brightness value sequence for each light-emitting unit in the linear light, wherein the color value sequence and the brightness value sequence are generated based on a color mixing algorithm and a brightness compensation algorithm, wherein the color mixing algorithm takes into account the mixing effect of different colors of light and the visual perception characteristics of the human eye, and the brightness compensation algorithm is used to compensate for the brightness difference caused by the influence of ambient light. The formula for calculating the color value of the light-emitting unit at a certain moment in the color mixing algorithm is: Where n is the number of colors in the target color set, P i,t is the proportion of the first target color at the time, C iis the original color value of the target color (expressed in RGB or other color space), K i is the sensitivity coefficient of the human eye to the first color light (obtained through a large amount of visual experimental data); the formula for calculating the brightness compensation value ΔL of the light-emitting unit in the brightness compensation algorithm is: ΔL=(L target -L env )×α, where L target is the overall brightness of the target, L env is the ambient light intensity, α is the brightness compensation coefficient (determined according to the characteristics of the lamp and the environment);

[0013] S4, sending the color change instruction to the driving circuit of the linear light, so that the driving circuit controls the light-emitting unit of the linear light to achieve color change according to the color change instruction, and at the same time, dynamically adjusting the color change instruction according to the temperature feedback information of the linear light, the temperature feedback information is obtained by the temperature sensor set inside the linear light, so as to ensure that the linear light works within a safe temperature range and the color change effect is not affected by the temperature, the adjustment formula is: when T>T threshold (T is the temperature of the line lamp, T threshold is the preset temperature threshold), M new =M slow , where F new is the new color switching frequency, F origial is the original color switching frequency, L new is the new brightness value, L original is the original brightness value, M new For the new color transition mode (set M slow is a slow transition mode), T max This is the maximum temperature allowed for line lights.

[0014] Furthermore, in the step of obtaining environmental information and user behavior information in real time:

[0015] A plurality of ambient light sensors are used to obtain ambient light intensity and ambient color distribution, wherein the ambient light sensors are distributed at different positions in the space where the linear lights are installed;

[0016] The user's position and the type of user's action are obtained by a depth camera and a motion capture sensor set in the space. The depth camera and the motion capture sensor work together to analyze the user's behavior through image recognition and motion analysis algorithms.

[0017] Furthermore, in the step of converting the environmental information and user behavior information into color parameters based on a preset color mapping model:

[0018] The neural network structure of the color mapping model includes an input layer, a hidden layer and an output layer. The input layer receives the vector representation of environmental information and user behavior information. The hidden layer uses multiple layers of neurons. The connection weights between neurons in each layer are continuously adjusted through training. The output layer outputs color parameters.

[0019] When training the color mapping model, the cross entropy loss function is used (where m is the number of training samples, c is the output color parameter dimension, y jk is the k-th dimension true label of the j-th sample, is the predicted value) and adaptive learning rate adjustment algorithm (such as Adam, Adagrad, etc.) to improve the accuracy of color mapping of the model in different scenarios.

[0020] Furthermore, in the step of generating a color conversion instruction according to the color parameters:

[0021] The color mixing algorithm calculates the color value of each light-emitting unit according to the proportion of each color in the target color set at different times, combined with the color addition principle and the sensitivity of the human eye to different colors of light. The color addition principle takes into account the relationship between the wavelength and energy of light;

[0022] The brightness compensation algorithm calculates the brightness compensation value of each light-emitting unit according to the ambient light intensity and the overall brightness of the target. The brightness compensation value is inversely proportional to the ambient light intensity and directly proportional to the overall brightness of the target.

[0023] Furthermore, in the step of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light:

[0024] When the temperature of the line light rises above a preset threshold, the color switching frequency and the brightness value of the light-emitting unit are reduced, and the color transition mode is adjusted to a slower transition mode;

[0025] When the temperature of the linear lamp drops to a safe range, the color switching frequency and brightness value are gradually restored to the original set values. The restoration process adopts a gradual manner to avoid sudden color changes.

[0026] Furthermore, a linear light color change control device includes:

[0027] An information acquisition module, used to acquire environmental information and user behavior information in real time, wherein the environmental information includes ambient light intensity and ambient color distribution, and the user behavior information includes user location and user action type;

[0028] A color parameter generation module, which is used to convert the environment information and user behavior information into color parameters based on a preset color mapping model, wherein the color parameters include a target color set, a color switching frequency, and a color transition mode. The color mapping model is obtained based on neural network training, and the training data includes a large amount of color preference data under different environments and user behavior scenarios;

[0029] An instruction generation module, configured to generate a color change instruction according to the color parameter, wherein the color change instruction includes a color value sequence and a brightness value sequence for each light-emitting unit in the linear light, wherein the color value sequence and the brightness value sequence are generated based on a color mixing algorithm and a brightness compensation algorithm, wherein the color mixing algorithm takes into account the mixing effect of different color lights and the visual perception characteristics of the human eye, and the brightness compensation algorithm is used to compensate for the brightness difference caused by the influence of ambient light;

[0030] The instruction sending and adjustment module is used to send the color change instruction to the driving circuit of the linear light, so that the driving circuit controls the light-emitting unit of the linear light to achieve color change according to the color change instruction. At the same time, the color change instruction is dynamically adjusted according to the temperature feedback information of the linear light. The temperature feedback information is obtained by a temperature sensor arranged inside the linear light to ensure that the linear light operates within a safe temperature range and the color change effect is not affected by temperature.

[0031] Furthermore, the information acquisition module includes:

[0032] An ambient light sensor group, consisting of a plurality of ambient light sensors distributed at different positions in the space where the linear lights are installed, for obtaining ambient light intensity and ambient color distribution;

[0033] The behavior monitoring unit, including a depth camera and a motion capture sensor, works together to obtain the user's location and the type of user movement using image recognition and motion analysis algorithms.

[0034] Furthermore, the neural network structure of the color mapping model in the color parameter generation module includes an input layer, a hidden layer and an output layer, the input layer receives a vector representation of environmental information and user behavior information, the hidden layer uses multiple layers of neurons, and the connection weights between neurons in each layer are continuously adjusted through training, and the output layer outputs color parameters. When training the color mapping model, a cross entropy loss function and an adaptive learning rate adjustment algorithm are used;

[0035] The instruction generation module comprises:

[0036] A color value calculation unit, used to calculate the color value of each light-emitting unit according to a color mixing algorithm, wherein the color mixing algorithm is calculated based on the proportion of each color in the target color set at different times, combined with the color addition principle and the sensitivity of the human eye to different colors of light;

[0037] A brightness value calculation unit, used to calculate the brightness value of each light-emitting unit according to a brightness compensation algorithm, wherein the brightness compensation algorithm is calculated according to the ambient light intensity and the overall brightness of the target;

[0038] When the instruction sending and adjusting module performs the operation of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light:

[0039] When the temperature of the line light rises above a preset threshold, the color switching frequency and the brightness value of the light-emitting unit are reduced, and the color transition mode is adjusted to a slower transition mode;

[0040] When the temperature of the linear lamp drops to a safe range, the color switching frequency and the brightness value are gradually restored to the original set values, and the restoration process adopts a gradual manner.

[0041] Further, a lamp includes: a linear lamp body, wherein the linear lamp body includes a plurality of light-emitting units;

[0042] The linear light color change control device is connected to the driving circuit of the linear light body, and is used to control the color change of the linear light body;

[0043] A temperature sensor is arranged inside the linear light body and is used to obtain temperature feedback information of the linear light;

[0044] A plurality of ambient light sensors are distributed at different positions in the space where the lamp is installed, and are used to provide ambient light intensity and ambient color distribution information to the linear light color change control device;

[0045] The depth camera and the motion capture sensor are arranged in the space where the lamp is installed, and are used to provide the linear lamp color change control device with user position and user motion type information.

[0046] Furthermore, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the linear light color change control method.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] This patent achieves automatic adjustment of the color of the linear light by acquiring real-time environmental information (including light intensity and color distribution) and user behavior information (position and action type). This intelligent control allows the linear light to automatically present appropriate colors in different environments, such as day and night, and different indoor lighting scenes. At the same time, the color of the light is changed according to the user's behavior, such as providing soft light when the user is resting, and switching to lively colors when entertaining, which greatly enhances the humanization and comfort of the user experience.

[0049] The color mapping model based on neural network training is trained with a large amount of data from different scenes to make the determination of color parameters (target color set, color switching frequency, color transition mode) more accurate. The color mixing algorithm and brightness compensation algorithm that take into account the visual perception characteristics of the human eye are combined to calculate the color value sequence and brightness value sequence of the light-emitting unit. This ensures that the color changes of the linear lights are natural and comfortable, and can achieve ideal display effects in scenes such as highlighting product features in commercial displays or creating a warm atmosphere at home.

[0050] Temperature feedback information is obtained through the temperature sensor installed inside the linear light. When the temperature is too high, the color change instructions are dynamically adjusted, such as reducing the color switching frequency, brightness value, and adjusting the color transition mode. When the temperature returns to normal, it will gradually recover. This mechanism effectively avoids color deviation and damage caused by overheating of the linear light, ensures the stability and service life of the lamp, and reduces maintenance costs and replacement frequency.

[0051] This patent can be applied to a variety of scenarios, including smart home, commercial display, indoor and outdoor decoration, etc. Whether it is the demand of home users for personalized lighting or the requirements of commercial places for display effects, it can be well met, with high practical value and market prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic block diagram of a color change control method for a linear light proposed by the present invention;

[0053] Figure 2 This is a schematic block diagram of a color change control device for a linear light proposed by the present invention. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0056] In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined. In addition, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, and it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0057] Reference Figure 1-2 :A color change control method for a linear light comprises the following steps:

[0058] S1. Acquire environmental information and user behavior information in real time, wherein the environmental information includes ambient light intensity and ambient color distribution, and the user behavior information includes user location and user action type;

[0059] S2. Based on a preset color mapping model, the environment information and user behavior information are converted into color parameters, wherein the color parameters include a target color set, a color switching frequency, and a color transition mode. The color mapping model is obtained based on neural network training, and the training data includes a large amount of color preference data under different environments and user behavior scenarios. The output calculation formula of the neural network is: O = σ(W T ×X+b), where o is the output color parameter vector, X is the input vector composed of environment information and user behavior information, W is the weight matrix, b is the bias vector, and σ is the activation function (such as ReLU, Sigmoid, etc.);

[0060] S3. Generate a color change instruction according to the color parameter, wherein the color change instruction includes a color value sequence and a brightness value sequence for each light-emitting unit in the linear light, wherein the color value sequence and the brightness value sequence are generated based on a color mixing algorithm and a brightness compensation algorithm, wherein the color mixing algorithm takes into account the mixing effect of different colors of light and the visual perception characteristics of the human eye, and the brightness compensation algorithm is used to compensate for the brightness difference caused by the influence of ambient light. The formula for calculating the color value of the light-emitting unit at a certain moment in the color mixing algorithm is: Where n is the number of colors in the target color set, P i,t is the proportion of the first target color at the time, C i is the original color value of the target color (expressed in RGB or other color space), K i is the sensitivity coefficient of the human eye to the first color light (obtained through a large amount of visual experimental data); the formula for calculating the brightness compensation value ΔL of the light-emitting unit in the brightness compensation algorithm is: ΔL=(L target -L env )×α, where L target is the overall brightness of the target, L env is the ambient light intensity, α is the brightness compensation coefficient (determined according to the characteristics of the lamp and the environment);

[0061] S4, sending the color change instruction to the driving circuit of the linear light, so that the driving circuit controls the light-emitting unit of the linear light to achieve color change according to the color change instruction, and at the same time, dynamically adjusting the color change instruction according to the temperature feedback information of the linear light, the temperature feedback information is obtained by the temperature sensor set inside the linear light, so as to ensure that the linear light works within a safe temperature range and the color change effect is not affected by the temperature, the adjustment formula is: when T>T threshold (T is the temperature of the line lamp, T threshold is the preset temperature threshold), M new =M slo w, where F new is the new color switching frequency, F original is the original color switching frequency, L new is the new brightness value, L original is the original brightness value, M new For the new color transition mode (set M slow is a slow transition mode), T max This is the maximum temperature allowed for line lights.

[0062] In the present invention, in the step of obtaining environmental information and user behavior information in real time:

[0063] A plurality of ambient light sensors are used to obtain ambient light intensity and ambient color distribution, wherein the ambient light sensors are distributed at different positions in the space where the linear lights are installed;

[0064] The user's position and the type of user's action are obtained by a depth camera and a motion capture sensor set in the space. The depth camera and the motion capture sensor work together to analyze the user's behavior through image recognition and motion analysis algorithms.

[0065] In the present invention, in the step of converting the environmental information and user behavior information into color parameters based on a preset color mapping model:

[0066] The neural network structure of the color mapping model includes an input layer, a hidden layer and an output layer. The input layer receives the vector representation of environmental information and user behavior information. The hidden layer uses multiple layers of neurons. The connection weights between neurons in each layer are continuously adjusted through training. The output layer outputs color parameters.

[0067] When training the color mapping model, the cross entropy loss function is used (where m is the number of training samples, c is the output color parameter dimension, y jk is the k-th dimension true label of the j-th sample, is the predicted value) and adaptive learning rate adjustment algorithm (such as Adam, Adagrad, etc.) to improve the accuracy of color mapping of the model in different scenarios.

[0068] In the present invention, in the step of generating a color conversion instruction according to the color parameters:

[0069] The color mixing algorithm is a highly accurate calculation method that fits the visual perception of the human eye. It determines the color mixing ratio based on the proportion of each color in the target color set at different times. Specifically, for each light-emitting unit, the color addition principle is fully considered when calculating its color value. This principle deeply involves the relationship between the wavelength and energy of light, because light of different wavelengths has different energies, and they are not simply linearly added when mixed. For example, when red light and green light are mixed, due to their wavelength and energy differences, the color and brightness after mixing are not a simple superposition of the effects of the two alone. At the same time, the algorithm also combines the key factor of the sensitivity of the human eye to different colors of light. The human eye may be more sensitive to certain colors (such as green), and when calculating color values, appropriate weights will be given to these sensitive colors accordingly, thereby ensuring that the calculated color values ​​appear natural and accurate to the human eye, so that the light emitted by the line lights can present a more realistic and comfortable color effect.

[0070] The brightness compensation algorithm is designed to accurately calculate the brightness compensation value of each light-emitting unit based on the ambient light intensity and the target overall brightness. In actual environments, the ambient light intensity is constantly changing, which will have a significant impact on the visual brightness of the line lights. When the ambient light intensity is high, in order for the lighting effect of the line lights to reach the target overall brightness, its brightness compensation value needs to be lowered; conversely, when the ambient light intensity is low, the brightness compensation value needs to be increased. This relationship in which the brightness compensation value is inversely proportional to the ambient light intensity and directly proportional to the target overall brightness can ensure that the line lights can maintain a stable and expected brightness level under various complex ambient light conditions, avoiding the problem of poor lighting effects due to changes in ambient light.

[0071] In the present invention, in the step of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light:

[0072] When the temperature of the linear light rises above the preset threshold during operation, a series of measures need to be taken to ensure its normal operation and color change effect. At this time, reducing the color switching frequency is to reduce the workload of the light-emitting unit, because frequent color switching causes the light-emitting unit to undergo multiple current and energy changes in a short period of time, thereby generating more heat. At the same time, reducing the brightness value of the light-emitting unit can also help reduce heat generation. In addition, adjusting the color transition mode to a slower transition mode can make the light-emitting unit more stable during the state change process and reduce the additional heat generated by drastic changes. Such adjustments can effectively avoid color deviation and component damage caused by overheating of the linear light, and ensure its stability and reliability in high temperature environments.

[0073] When the temperature of the linear light drops to a safe range, in order to restore the normal lighting effect, the color switching frequency and brightness value need to be gradually restored to the original setting value. It is crucial to use a gradual method for this recovery process. If it is restored suddenly, it may cause a sudden change in color, causing visual discomfort to the user, and may even cause adverse effects such as instantaneous current shock to the light-emitting unit. Through the gradual method, the changes in color and brightness can be smooth and natural, making the user almost unaware of the adjustment process, ensuring the continuity and comfort of the lighting experience.

[0074] In the present invention, a linear light color change control device comprises:

[0075] The function of the information acquisition module is to obtain environmental information and user behavior information in real time, and provide key data support for the entire color change control process. The environmental information here includes ambient light intensity and ambient color distribution, both of which are crucial for understanding the lighting environment in which the linear light is located. The ambient light intensity determines the brightness of the surrounding environment, while the ambient color distribution reflects the proportion of various color components in the ambient light. User behavior information includes user position and user action type. By tracking the user's position, the relative position relationship between the user and the linear light can be determined, and then the lighting effect can be adjusted according to different positions. For example, when the user is close to the linear light, the color and brightness can be adjusted appropriately to provide a better lighting experience. The user action type can reflect the user's current activity state. For example, when the user is in different actions such as stillness, walking, jumping, etc., the color mode of the linear light can be changed accordingly to create a lighting environment that is more in line with the user's activity atmosphere.

[0076] The color parameter generation module undertakes the important task of converting the acquired environmental information and user behavior information into color parameters based on the preset color mapping model. The color parameters include the target color set, color switching frequency, color transition mode, etc. The color mapping model here is obtained through neural network training, and the training data covers a large amount of color preference data in different environments and user behavior scenarios. This model based on big data training can accurately capture the user's expectations for color in different situations, thereby generating color parameters that are more in line with actual needs. For example, in a warm family gathering scene, based on the warm light in the environment and people's cheerful movements, the model can generate color parameters containing warm colors, appropriate color switching frequency and smooth transition mode, so that the lighting of the line lights can better set off the atmosphere.

[0077] The instruction generation module, whose core function is to generate color change instructions based on color parameters. These color change instructions contain color value sequences and brightness value sequences for each light-emitting unit in the linear light. The generation of color value sequences and brightness value sequences is based on color mixing algorithms and brightness compensation algorithms. The color mixing algorithm fully considers the mixing effect of different color lights and the visual perception characteristics of the human eye, and can accurately calculate the color value of each light-emitting unit at different times, so that the light emitted by the linear light is rich and natural in color. The brightness compensation algorithm is used to compensate for the brightness differences caused by ambient light, ensuring that the linear light can maintain appropriate brightness under various ambient light conditions to meet the user's visual needs.

[0078] The instruction sending and adjustment module is responsible for sending the color change instructions to the driving circuit of the linear light, so that the driving circuit controls the light-emitting unit of the linear light according to these instructions to achieve color change. At the same time, the module can also dynamically adjust the color change instructions according to the temperature feedback information of the linear light. The temperature feedback information is obtained through the temperature sensor set inside the main body of the linear light. This dynamic adjustment mechanism can ensure that the linear light works within a safe temperature range and ensure that the color change effect is not affected by temperature changes. For example, in a high temperature environment, the working intensity of the linear light can be reduced by adjusting the instructions to avoid overheating damage; after the temperature returns to normal, the instructions can be adjusted in time to restore the linear light to the optimal lighting state.

[0079] In the present invention, the information acquisition module includes:

[0080] The ambient light sensor group is composed of multiple ambient light sensors, which are distributed in different positions in the space where the linear lights are installed. Each sensor can independently detect the light intensity and color information of the surrounding environment. Through the collaborative work of multiple sensors, the ambient light intensity and ambient color distribution in the entire space can be fully and accurately obtained. This distributed design can overcome the detection blind spot problem that a single sensor may have, and can accurately sense the light from which direction it comes. For example, in an irregularly shaped indoor space, ambient light sensors in various corners and at different heights can jointly collect light information to provide a comprehensive data basis for subsequent color adjustments.

[0081] The behavior monitoring unit mainly includes a depth camera and a motion capture sensor. The depth camera can obtain three-dimensional image information in the space, and can not only identify the user's position in the space, but also provide depth information about the distance and shape of objects. The motion capture sensor focuses on analyzing the user's action type. By capturing and analyzing subtle changes in the user's body movements, it can determine whether the user is still, walking, running, or performing other specific actions. By working together and using advanced image recognition and motion analysis algorithms, these two devices can accurately obtain the user's position and user action type. For example, in a smart conference room, when a user stands up and walks to the podium, the behavior monitoring unit can detect this change in action in time and pass the relevant information to other modules so that the line lights can adjust the lighting according to the user's behavior and provide better visual guidance for the user.

[0082] In the present invention, the neural network structure of the color mapping model in the color parameter generation module includes an input layer, a hidden layer and an output layer. The input layer receives vector representations of environmental information and user behavior information, which are a mathematical abstraction of complex environmental and behavioral data. For example, ambient light intensity and color distribution information can be converted into vectors through a specific encoding method, and user position and action type information can also be represented in vector form. The hidden layer uses multiple layers of neurons, and the connection weights between each layer of neurons are continuously adjusted through a large amount of training. This multi-layer structure and adjustable weights enable the neural network to learn the complex nonlinear relationship between the environment and user behavior and color parameters. For example, under different ambient light color combinations and user action modes, the neural network can accurately generate color parameters such as the corresponding target color set, color switching frequency and color transition mode by adjusting the weights. The output layer is responsible for outputting the color parameters processed by the neural network, and these parameters will be directly used in the subsequent instruction generation process. When training the color mapping model, a cross entropy loss function and an adaptive learning rate adjustment algorithm are used. The cross entropy loss function can measure the degree of difference between the predicted color parameters and the actual expected color parameters. By minimizing this loss function, the prediction results of the model can be made more accurate. The adaptive learning rate adjustment algorithm can automatically adjust the learning rate according to the situation during training, so that the model can converge quickly in the early stage of training, and can adjust the weights more finely when approaching the optimal solution, thereby improving the accuracy of the model's color mapping in different scenes and ensuring that the generated color parameters can meet diverse lighting needs.

[0083] The instruction generation module comprises:

[0084] The color value calculation unit, whose main function is to calculate the color value of each light-emitting unit according to the color mixing algorithm. The color mixing algorithm is calculated based on the proportion of each color in the target color set at different times, combined with the color addition principle and the sensitivity of the human eye to different colors of light. In the calculation process, for each color in the target color set, its proportion at the current moment must be considered. For example, if the target color set contains red, green and blue, at a certain moment, the proportion of red is 30%, green is 50%, and blue is 20%. The color value calculation unit will determine the color value of the light-emitting unit based on this proportion, the color addition principle and the sensitivity of the human eye to these three colors. This calculation method fully considers the interaction between different colors and the visual characteristics of the human eye, so that the calculated color value can present a natural and comfortable visual effect to the human eye, meeting the user's requirements for high-quality lighting colors.

[0085] The brightness value calculation unit is a key part that calculates the brightness value of each light-emitting unit according to the brightness compensation algorithm. The brightness compensation algorithm determines the brightness compensation value of each light-emitting unit based on the ambient light intensity and the target overall brightness. In actual applications, the brightness value calculation unit obtains the ambient light intensity information in real time and calculates it in combination with the preset target overall brightness value. For example, when the ambient light intensity is high, the brightness compensation value will be reduced accordingly to ensure that the line light will not appear too dazzling in a strong light environment; when the ambient light intensity is low, the brightness compensation value will increase so that the line light can provide sufficient lighting brightness. This calculation method that dynamically adjusts the brightness value according to environmental changes ensures that the line light can provide a stable and appropriate brightness level under various ambient light conditions, thereby improving the user's lighting experience.

[0086] When the instruction sending and adjusting module performs the operation of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light:

[0087] When the temperature of the linear light rises above the preset threshold, the color change instruction needs to be adjusted to protect the linear light and maintain a stable lighting effect. Reducing the color switching frequency can reduce the heat generated by the frequent color switching of the light-emitting unit, because each color switch is accompanied by changes in current and energy, and reducing the frequency can effectively alleviate the heating problem. At the same time, reducing the brightness value of the light-emitting unit can also reduce its energy consumption, thereby reducing heat generation. In addition, adjusting the color transition mode to a slower transition mode makes the light-emitting unit more stable during the color change process, avoiding additional heat generated by drastic color changes. For example, in a high temperature environment, adjusting the original fast color switching mode to a slow gradual transition mode can significantly reduce the heating rate of the linear light and extend its service life.

[0088] When the temperature of the linear light drops to a safe range, gradually restoring the color switching frequency and brightness value to the original setting value is a process that requires fine control. This recovery process uses a gradual change method to avoid visual discomfort caused by sudden color changes. During the recovery process, the color switching frequency and brightness value are not restored instantly, but are gradually adjusted according to a certain gradual change rule. For example, by setting a gradual change time parameter, the color switching frequency and brightness value can be gradually increased during this time, so that the lighting effect of the linear light can be smoothly restored to normal, ensuring that users can enjoy a comfortable lighting experience throughout the process, while also ensuring the stability and reliability of the linear light during temperature changes.

[0089] In the present invention, a lamp comprises:

[0090] The main body of the linear light, which is the core part of the lamp, is composed of multiple light-emitting units. These light-emitting units are the key components for generating light, and their coordinated work determines the lighting effect of the linear light. Each light-emitting unit has independent light-emitting characteristics and can emit light of different colors and brightness according to the control instructions received. For example, in some commercial display scenes, the light-emitting units of the main body of the linear light can be precisely controlled to form a variety of colorful lighting effects to highlight the characteristics of the displayed goods.

[0091] The linear light color change control device is connected to the driving circuit of the linear light body to control the color change of the linear light body. The linear light color change control device generates and sends color change instructions to instruct the driving circuit to accurately control the light-emitting unit. This connection method realizes the information transmission from the control device to the light-emitting unit, so that the linear light can realize intelligent color change according to different environments and user needs. For example, in a smart home environment, when the user watches a movie, the control device can send instructions to the driving circuit to adjust the linear light body to a soft, low-brightness color to create a comfortable viewing atmosphere.

[0092] The temperature sensor is arranged inside the main body of the linear light and is specifically used to obtain temperature feedback information of the linear light. The temperature sensor can monitor the temperature changes of the linear light in real time during operation, which is essential to ensure the safe operation of the linear light. When the temperature is too high, it may have an adverse effect on the performance and life of the light-emitting unit, and even cause safety problems. Through the monitoring of the temperature sensor, temperature abnormalities can be detected in time, and the information can be fed back to the control device so that corresponding adjustment measures can be taken. For example, when the linear light is used for a long time in a high temperature environment, the temperature sensor can detect the temperature rising trend in time, triggering the control device to adjust the color change instruction to avoid damage to the linear light due to overheating.

[0093] Multiple ambient light sensors are distributed at different positions in the space where the lamp is installed, and are used to provide ambient light intensity and ambient color distribution information to the linear light color change control device. These ambient light sensors can fully perceive the light conditions in the surrounding environment, and can accurately detect whether the light is natural light or other artificial light sources. After the information they collect is transmitted to the color change control device, the linear light can better adapt to changes in ambient light. For example, when the sun is bright during the day, the ambient light sensor can detect a strong light environment, and the control device adjusts the brightness and color of the linear light based on this information, so that it can still play a good lighting and decorative role under a strong light background.

[0094] A depth camera and a motion capture sensor are arranged in the space where the lamp is installed, and are used to provide the linear light color change control device with information about the user's position and the type of user's action. The depth camera can obtain three-dimensional information in the space and accurately determine the user's position coordinates, while the motion capture sensor focuses on analyzing the details of the user's actions. Through the collaborative work of the two, the control device can adjust the lighting effect of the linear light in real time according to the user's behavior. For example, when a user dances in the living room, the motion capture sensor can recognize the user's dance movements, and the control device adjusts the color and flashing frequency of the linear light accordingly to create a more dynamic atmosphere for the user.

[0095] In the present invention, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the color change control method of the linear light are implemented. This computer-readable storage medium can be a variety of storage devices such as a hard disk and a flash memory. The computer program contains code logic for implementing a series of color change control methods of the linear light, such as color parameter generation, instruction generation, and temperature feedback adjustment. When the processor executes these programs, it can simulate the entire color change control process. For example, in an intelligent lighting system, the processor can read the program in the storage medium, calculate the color parameters according to the environment and user information, generate color change instructions, and dynamically adjust according to the temperature of the linear light, thereby realizing intelligent control of the linear light and providing users with a more comfortable and personalized lighting experience.

[0096] The above are only preferred specific implementation modes of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical solutions and inventive concepts of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A color change control method for a linear light, characterized in that: The following steps are involved: S1. Acquire environmental information and user behavior information in real time, wherein the environmental information includes ambient light intensity and ambient color distribution, and the user behavior information includes user location and user action type; S2. Based on a preset color mapping model, the environment information and user behavior information are converted into color parameters, wherein the color parameters include a target color set, a color switching frequency, and a color transition mode. The color mapping model is obtained based on neural network training, and the training data includes color preference data under different environments and user behavior scenarios. The output calculation formula of the neural network is: O = σ(W T ×X+b), where O is the output color parameter vector, X is the input vector composed of environment information and user behavior information, W is the weight matrix, b is the bias vector, and σ is the activation function; S3. Generate a color change instruction according to the color parameter, wherein the color change instruction includes a color value sequence and a brightness value sequence for each light-emitting unit in the linear light, wherein the color value sequence and the brightness value sequence are generated based on a color mixing algorithm and a brightness compensation algorithm, wherein the color mixing algorithm takes into account the mixing effect of different colors of light and the visual perception characteristics of the human eye, and the brightness compensation algorithm is used to compensate for the brightness difference caused by the influence of ambient light. The formula for calculating the color value of the light-emitting unit at a certain moment in the color mixing algorithm is: Where n is the number of colors in the target color set, P i,t is the proportion of the first target color at the time, C i is the original color value of the target color, K i is the sensitivity coefficient of the human eye to the first color light; the formula for calculating the brightness compensation value ΔL of the light emitting unit in the brightness compensation algorithm is: ΔL=(L target -L enυ )×α, where L target is the overall brightness of the target, L enυ is the ambient light intensity, α is the brightness compensation proportional coefficient; S4, sending the color change instruction to the driving circuit of the linear light, the driving circuit controlling the light-emitting unit of the linear light to achieve color change according to the color change instruction, and dynamically adjusting the color change instruction according to the temperature feedback information of the linear light, the temperature feedback information is obtained by the temperature sensor set inside the linear light, and the adjustment formula is: when T>T threshold hour, M new =M slow , where T is the temperature of the line lamp, T threshold is the preset temperature threshold, F new is the new color switching frequency, F original is the original color switching frequency, L new is the new brightness value, L original is the original brightness value, M new For the new color transition mode, M slow For slow transition mode, T max This is the maximum temperature allowed for line lights.

2. The color change control method of the linear light according to claim 1, characterized in that: In the step of obtaining environment information and user behavior information in real time: A plurality of ambient light sensors are used to obtain ambient light intensity and ambient color distribution, wherein the ambient light sensors are distributed at different positions in the space where the linear lights are installed; The user's position and the type of user's action are obtained by a depth camera and a motion capture sensor set in the space. The depth camera and the motion capture sensor work together to analyze the user's behavior through image recognition and motion analysis algorithms.

3. The color change control method of the linear light according to claim 1, characterized in that: In the step of converting the environmental information and user behavior information into color parameters based on a preset color mapping model: The neural network structure of the color mapping model includes an input layer, a hidden layer and an output layer, wherein the input layer receives a vector representation of environmental information and user behavior information, the hidden layer uses multiple layers of neurons, the connection weights between neurons in each layer are adjusted through training, and the output layer outputs color parameters; When training the color mapping model, the cross entropy loss function is used and adaptive learning rate adjustment algorithm, where m is the number of training samples, c is the output color parameter dimension, and y jk is the k-th dimension true label of the j-th sample, It is the predicted value, which is used to improve the accuracy of the model's color mapping in different scenarios.

4. The color change control method of the linear light according to claim 1, characterized in that: In the step of generating a color conversion instruction according to the color parameters: The color mixing algorithm calculates the color value of each light-emitting unit according to the proportion of each color in the target color set at different times, combined with the color addition principle and the sensitivity of the human eye to different colors of light. The color addition principle takes into account the relationship between the wavelength and energy of light; The brightness compensation algorithm calculates the brightness compensation value of each light-emitting unit according to the ambient light intensity and the overall brightness of the target. The brightness compensation value is inversely proportional to the ambient light intensity and directly proportional to the overall brightness of the target.

5. The color change control method of the linear light according to claim 1, characterized in that: In the step of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light: When the temperature of the line light rises above a preset threshold, the color switching frequency and the brightness value of the light-emitting unit are reduced, and the color transition mode is adjusted to a slower transition mode; When the temperature of the linear lamp drops to a safe range, the color switching frequency and brightness value are gradually restored to the original set values. The restoration process adopts a gradual manner to avoid sudden color changes.

6. A linear light color change control device, used to implement the linear light color change control method according to any one of claims 1 to 5, characterized in that: include: An information acquisition module, used to acquire environmental information and user behavior information in real time, wherein the environmental information includes ambient light intensity and ambient color distribution, and the user behavior information includes user location and user action type; A color parameter generation module, which is used to convert the environment information and user behavior information into color parameters based on a preset color mapping model, wherein the color parameters include a target color set, a color switching frequency, and a color transition mode. The color mapping model is obtained based on neural network training, and the training data includes a large amount of color preference data under different environments and user behavior scenarios; An instruction generation module, configured to generate a color change instruction according to the color parameter, wherein the color change instruction includes a color value sequence and a brightness value sequence for each light-emitting unit in the linear light, wherein the color value sequence and the brightness value sequence are generated based on a color mixing algorithm and a brightness compensation algorithm, wherein the color mixing algorithm takes into account the mixing effect of different color lights and the visual perception characteristics of the human eye, and the brightness compensation algorithm is used to compensate for the brightness difference caused by the influence of ambient light; The instruction sending and adjustment module is used to send the color change instruction to the driving circuit of the linear light, so that the driving circuit controls the light-emitting unit of the linear light to achieve color change according to the color change instruction. At the same time, the color change instruction is dynamically adjusted according to the temperature feedback information of the linear light. The temperature feedback information is obtained by a temperature sensor arranged inside the linear light to ensure that the linear light operates within a safe temperature range and the color change effect is not affected by temperature.

7. The color change control device of the linear light according to claim 6, characterized in that: The information acquisition module includes: An ambient light sensor group, consisting of a plurality of ambient light sensors distributed at different positions in the space where the linear lights are installed, for obtaining ambient light intensity and ambient color distribution; The behavior monitoring unit, including a depth camera and a motion capture sensor, works together to obtain the user's location and the type of user movement using image recognition and motion analysis algorithms.

8. The color change control device of the linear light according to claim 6, characterized in that: The neural network structure of the color mapping model in the color parameter generation module includes an input layer, a hidden layer and an output layer, wherein the input layer receives a vector representation of environmental information and user behavior information, the hidden layer uses multiple layers of neurons, and the connection weights between neurons in each layer are continuously adjusted through training, and the output layer outputs color parameters. When training the color mapping model, a cross entropy loss function and an adaptive learning rate adjustment algorithm are used; The instruction generation module comprises: A color value calculation unit, used to calculate the color value of each light-emitting unit according to a color mixing algorithm, wherein the color mixing algorithm is calculated based on the proportion of each color in the target color set at different times, combined with the color addition principle and the sensitivity of the human eye to different colors of light; A brightness value calculation unit, used to calculate the brightness value of each light-emitting unit according to a brightness compensation algorithm, wherein the brightness compensation algorithm is calculated according to the ambient light intensity and the overall brightness of the target; When the instruction sending and adjusting module performs the operation of dynamically adjusting the color change instruction according to the temperature feedback information of the linear light: When the temperature of the line light rises above a preset threshold, the color switching frequency and the brightness value of the light-emitting unit are reduced, and the color transition mode is adjusted to a slower transition mode; When the temperature of the linear lamp drops to a safe range, the color switching frequency and the brightness value are gradually restored to the original set values, and the restoration process adopts a gradual manner.

9. A lamp, characterized in that: include: A linear light body, the linear light body comprising a plurality of light-emitting units; The linear light color change control device according to any one of claims 6 to 8, wherein the linear light color change control device is connected to a driving circuit of the linear light body, and is used to control the color change of the linear light body; A temperature sensor is arranged inside the linear light body and is used to obtain temperature feedback information of the linear light; A plurality of ambient light sensors are distributed at different positions in the space where the lamp is installed, and are used to provide ambient light intensity and ambient color distribution information to the linear light color change control device; The depth camera and the motion capture sensor are arranged in the space where the lamp is installed, and are used to provide the linear lamp color change control device with user position and user motion type information.

10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the linear light color change control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • An Adaptive Projection Color Compensation Method

    CN102289360A

  • Color calibration method based on machine learning and device thereof, equipment and medium

    CN113516132A

  • Detection method and detection device for automobile atmosphere lamp

    CN115468741A

  • Light control method and device, light control equipment and storage medium

    CN116033621A

  • Method and system capable of adaptively adjusting light parameters, electronic equipment and medium

    CN117794026A

Cited By

  • Training method based on illumination optimization model

    CN119862767A

  • Keycap luminescence effect dynamic control method and system

    CN122028266A

  • A keycap light-emitting effect dynamic control method and system

    CN122028266B