Lighting control method and controller
By obtaining time and user behavior information, matching the brightness reference brightness set, generating adjustments and controlling lighting of the lamps, the existing lighting control is solved, and the existing lighting is complicated and the brightness does not conform to natural light, achieving the effect of intelligent automation and energy consumption reduction.
Patent Information
- Application Number
- CN202210739545.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-06-28
AI Technical Summary
The existing lighting control methods are cumbersome and the user's operations are complicated, making it difficult to achieve intelligent and automated lighting adjustment, and the brightness does not conform to the natural light changes in the indoor environment.
By obtaining time information and user behavior information, matching the brightness reference brightness set, generating adjustment degrees and controlling the lighting of the lamp, using neural network training model and preset lookup table for brightness adjustment, priority is given to adapting natural light changes to reduce energy consumption.
It realizes intelligent and automated lighting control, with the brightness range within the appropriate range, which improves the health of light usage, minimizes energy consumption, and adapts to the natural light changes in the environment.
Smart Images

Figure CN115038224B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting control, and in particular to a lighting control method and a controller. Background Art
[0002] At present, the control of lighting is relatively simple. The traditional lighting control method is a simple mechanical switch. The modern lighting control method is to adjust the switch, brightness and color of the light through touch, remote control, timer, human body induction, mobile phone or voice control, etc. However, the essence is still the user's manual operation, but the human-computer interaction method is diversified, the control conditions and functions are more set, and the user's lighting control operation will also be more cumbersome. Summary of the invention
[0003] In order to reduce the complexity of indoor lighting control, the present application provides a lighting control method and a controller.
[0004] The above-mentioned invention objective of the present application is achieved through the following technical solutions:
[0005] A lighting control method, comprising:
[0006] Acquire time information from the time process, and obtain the brightness range of the current time period by matching the brightness reference brightness set according to the time information, wherein the brightness reference brightness set includes the brightness range of each sub-time period within the preset time period;
[0007] Obtain indoor user behavior information, and generate adjustment degree according to the user behavior information and the brightness range of the current time period;
[0008] Generate light brightness according to the adjustment degree and the brightness range of the current time period;
[0009] The lighting of the lamp is controlled according to the light brightness.
[0010] By adopting the above technical solution, the controller obtains time information from the online time process, and then matches the appropriate brightness range of the current time period in the light reference brightness set according to the time period in which the time information is located, and then generates an adjustment degree according to the indoor user behavior information, and selects a brightness within the brightness range of the current time period for lighting. It can realize intelligent and automatic control of lamp lighting to obtain the corresponding indoor light brightness according to user behavior, and control the brightness range within a more appropriate range, thereby improving the health of light use.
[0011] In a preferred example, the present application can be further configured as follows: the light reference brightness set is obtained by matching the light reference brightness set in a preset query table according to the natural light brightness set in the room within a preset time period.
[0012] By adopting the above technical solution, the natural light brightness set of the room in a preset time period is first collected, and then the table is queried based on the indoor natural light brightness set during the period to match the appropriate range set, so that the understood light brightness is more in line with the indoor environment.
[0013] In a preferred example, the present application can be further configured as follows: the light reference brightness set is obtained by matching the light reference brightness set in a preset query table according to the natural light brightness set in the room within a preset time period, specifically including:
[0014] Generate a brightness change curve according to the natural light brightness set, and a natural light brightness range for each sub-time period in the natural light brightness set;
[0015] According to the brightness variation curve and the natural light brightness range of each sub-time period, a brightness reference degree set satisfying preset conditions is obtained by querying in a preset query table.
[0016] By adopting the above technical solution, the natural light brightness set is quantified using the brightness change curve and the natural light brightness range, which is convenient for subsequent query matching.
[0017] In a preferred example, the present application may be further configured as follows: the preset query table stores a key-value mapping relationship between the change curve samples and the brightness reference level set samples;
[0018] According to the brightness change curve and the natural light brightness range of each sub-time period, a brightness reference set that meets the preset conditions is obtained by querying in the preset query table, including:
[0019] According to the degree of fit between the brightness change curve and the samples of each brightness change curve in the preset query table, as well as the proximity of the natural light brightness range of each sub-time period and the brightness range overlap area of each brightness reference set sample in the preset query table in each same sub-time period, a brightness reference set that meets the preset conditions is obtained.
[0020] By adopting the above technical solution, the similarity of the change conditions is controlled by the fitting degree between the curves, and then the proximity of the brightness is controlled by the overlapping area of the brightness range, thereby realizing the query of the related brightness reference degree set.
[0021] In a preferred example, the present application can be further configured as follows: according to the degree of fit between the brightness change curve and each brightness change curve sample in the preset query table, and the proximity between the indoor natural light brightness set in the preset time period and each brightness reference set sample in the preset query table in the brightness range overlap area of each same sub-time period, a brightness reference set that meets the preset conditions is obtained, including:
[0022] Filter out the brightness reference set sample with the highest fitting degree;
[0023] When there are at least two brightness reference set samples with the highest degree of fit, obtain the overlapping areas of the brightness ranges between each brightness reference set sample with the highest degree of fit and the natural light brightness set in each same sub-time period, and take the brightness reference set sample with the largest sum of the overlapping areas of the brightness ranges in each sub-time period as the brightness reference set.
[0024] By adopting the above technical solution, the degree of fit is preferentially used for comparison, which can adapt to the changes in natural light in the user's environment to the greatest extent. Then, the brightness reference set sample with the largest sum of overlapping areas of the brightness range is used as the brightness reference set, which can minimize energy consumption.
[0025] In a preferred example, the present application can be further configured to generate an adjustment degree according to user behavior information and the brightness range of the current time period, including:
[0026] The user behavior information and the brightness range of the current time period are input into the model for inference to obtain the adjustment degree.
[0027] In a preferred example, the present application can be further configured as follows: the model is trained in the following manner:
[0028] Through multiple sets of sample data, the neural network is trained to obtain a model;
[0029] The sample data is collected in the following way:
[0030] Get user adjustment instructions;
[0031] Control lighting according to user adjustment instructions;
[0032] Collecting indoor light illuminance when the lighting of the lamp is controlled according to the user adjustment instruction as standard light illuminance, indoor user behavior information when the lighting of the lamp is controlled according to the user adjustment instruction as standard behavior information, and time information when the lighting of the lamp is controlled according to the user adjustment instruction as standard time information;
[0033] The standard behavior information, the standard light brightness, and the brightness range of the sub-time period where the standard time information is located are taken as a set of sample data.
[0034] By adopting the above technical solution, multiple groups of sample data can be obtained, and then the neural network can be trained to obtain an accurate model.
[0035] The second object of the invention is achieved by the following technical solutions:
[0036] A controller, comprising:
[0037] at least one processor; and,
[0038] a memory communicatively coupled to the at least one processor;
[0039] The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the lighting control methods described above.
[0040] In summary, the present application includes at least one of the following beneficial technical effects:
[0041] 1. The controller obtains time information from the online time process, and then matches the appropriate brightness range of the current time period in the light reference brightness set according to the time period of the time information, and then generates the adjustment degree according to the indoor user behavior information, and selects a brightness within the brightness range of the current time period for lighting. It can realize intelligent and automatic control of lamp lighting according to user behavior to obtain the corresponding indoor light brightness, and control the brightness range within a more appropriate range to improve the health of light use;
[0042] 2. First, collect the indoor natural light brightness set in the preset time period, and then query in the table according to the indoor natural light brightness set during the period to match the appropriate range set, so that the understood light brightness is more in line with the indoor environment;
[0043] 3. The similarity of the changes is controlled by the degree of fit between the curves, and then the proximity of the brightness is controlled by the overlapping area of the brightness range, so as to realize the query of the relevant brightness reference set. In addition, the degree of fit is used for comparison first, which can adapt to the changes in the natural light in the user's environment to the greatest extent. Then, the brightness reference set sample with the largest sum of the overlapping areas of the brightness range is used as the brightness reference set, which can minimize energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 is a flowchart of a lighting control method in an embodiment of the present application;
[0045] Figure 2 It is a flowchart of the query step in an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of the process of collecting sample data in one embodiment of the present application. DETAILED DESCRIPTION
[0047] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0048] It should be noted that the terms "first", "second", etc. in the present invention are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure.
[0049] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0050] Figure 1 is a flowchart of a lighting control method in an embodiment of the present application. Figure 1 As shown, the lighting control method includes:
[0051] S11, obtaining time information from the time process, and matching the brightness range of the current time period in the light reference brightness set according to the time information;
[0052] Wherein, obtaining time information from the time process may be by using the DataTime class to obtain the current time, such as: date (2022-03-04), time (12:12:12), date + time (2022-03-04 12:11:10), etc. In this embodiment, the time information of date + time is used; the light reference brightness set includes the brightness range of each sub-time period within the preset time period;
[0053] Specifically, the preset time period can be a natural day, that is, 24 hours, in which each hour can be used as a sub-time period. Then, a light reference brightness set includes the brightness range of each hour in a natural day; the corresponding brightness range can be matched through the sub-time period where the time information is located.
[0054] The light reference brightness set is obtained by matching the light reference brightness set in a preset query table based on the natural light brightness set in the room within a preset time period. Continuing with the previous example, the natural light brightness within a natural day is collected indoors in advance, which can be collected by installing an illuminance sensor indoors, and then the range of natural light brightness for each hour in the natural day is statistically obtained as the brightness range of each sub-time period, thereby obtaining the natural light brightness set.
[0055] Reference Figure 2 , perform the query through the following steps:
[0056] S111, generating a brightness change curve according to the natural light brightness set, and a natural light brightness range of each sub-time period in the natural light brightness set;
[0057] S113: According to the brightness variation curve and the natural light brightness range of each sub-time period, a preset query table is searched to obtain a set of brightness reference levels that meet preset conditions.
[0058] Among them, S113 includes: obtaining a brightness reference set that meets the preset conditions based on the fit between the brightness change curve and the samples of each brightness change curve in the preset query table, as well as the proximity of the natural light brightness range of each sub-time period and the brightness range overlap area of each same sub-time period with each brightness reference set sample in the preset query table.
[0059] The controller pre-stores a preset query table, which is a pre-set table for querying a light reference brightness set. That is, the light reference brightness set is recorded in advance in a table as a value in a key-value pair. Later, only the key in the key-value pair needs to be used to search for the corresponding light reference brightness set. The light reference brightness set is collected in advance through experiments. For example, the light brightness ranges preferred by multiple experimenters in rooms with different natural light brightness in each sub-time period are collected, so that multiple sets of light reference brightness sets can be obtained.
[0060] In one embodiment, the preset query table pre-records the corresponding relationship between the change curve sample and the light reference brightness set. In this case, the change curve sample is the key in the key-value pair, and the light reference brightness set is the value in the key-value pair. Therefore, the change curve sample can be used as the key to find the corresponding light reference brightness set;
[0061] Specifically, after statistics are taken on the natural light brightness set, the corresponding brightness change curve within a natural day is obtained, and the natural light brightness set includes the natural light brightness range of each sub-time period in the natural day. Each change curve sample in the preset query table is fitted with the brightness change curve to obtain the fitting degree of each change curve sample, and then the brightness reference set sample with the highest fitting degree is screened out. When there is only one brightness reference set sample with the highest fitting degree, the brightness reference set sample is used as the brightness reference set.
[0062] When there are at least two samples of the brightness reference set with the highest fitting degree, they are selected in the following way:
[0063] First, the brightness range overlap area between each brightness reference set sample with the highest fitting degree and the natural light brightness set in each same sub-time period is obtained, and then the maximum brightness reference set sample of the sum of the brightness range overlap areas of each sub-time period is taken as the brightness reference set.
[0064] Specifically, each brightness reference set sample with the highest fitting degree is matched with the natural light brightness set, and the overlapping areas of the brightness ranges of the two in each same sub-time period (for example, 10 o'clock to 11 o'clock) are matched, and then the sum of the overlapping areas of the brightness ranges of the two in all the same sub-time periods is counted, and the brightness reference set sample with the largest sum of the overlapping areas of the brightness ranges is used as the brightness reference set. The fitting degree is preferentially used for comparison, which can adapt to the changes in the natural light environment of the user to the greatest extent, and then the brightness reference set sample with the largest sum of the overlapping areas of the brightness ranges is used as the brightness reference set, which can minimize energy consumption.
[0065] S13, obtaining indoor user behavior information, and generating an adjustment degree according to the user behavior information and the brightness range of the current time period;
[0066] Specifically, the indoor user behavior information is obtained by inferring the behavior model. A camera is installed indoors to obtain indoor video stream data. The indoor user behavior information can be inferred by obtaining the video stream data of preset seconds and then inputting the behavior model for inference. The behavior model is trained in the following way:
[0067] Each video stream data sample in the video stream data sample training set is labeled to mark the behavior information of each video stream data sample, where the behavior information is associated with all or part of the information in the video stream data sample; and a neural network is trained using the labeled video stream data sample training set to obtain a behavior model.
[0068] Among them, the video stream data samples are all obtained through experiments. The preset seconds of indoor video stream data collected when the user or experimenter is indoors are used as video stream data samples. The corresponding user tags mark the behavioral information of the video stream data samples, which are manually labeled. Then, the behavioral model can be trained through a large amount of sample data.
[0069] Generate adjustment degree based on user behavior information and brightness range of current time period, including:
[0070] The user behavior information and the brightness range of the current time period are input into the model for inference to obtain the adjustment degree.
[0071] The model is trained in the following way:
[0072] Through multiple sets of sample data, the neural network is trained to obtain a model; refer to Figure 3 , where each set of sample data is collected in the following way:
[0073] S131, obtaining a user adjustment instruction;
[0074] S133, controlling lighting according to user adjustment instructions;
[0075] S135, collecting indoor light illuminance when the lighting of the lamp is controlled according to the user adjustment instruction as standard light illuminance, indoor user behavior information when the lighting of the lamp is controlled according to the user adjustment instruction as standard behavior information, and time information when the lighting of the lamp is controlled according to the user adjustment instruction as standard time information;
[0076] That is, during the user's use, the user's light adjustment instructions are continuously obtained, the adjustment instructions are used to adjust the light brightness, and then the lighting is controlled according to the user's adjustment instructions, and each time the user inputs an adjustment instruction, the adjusted indoor light brightness is obtained as the standard light brightness, the indoor user behavior information is used as the standard behavior information, and the time information is used as the standard time information; the adjusted indoor light brightness is obtained through an illuminance sensor, the standard behavior information can be obtained by obtaining the indoor video stream data of a preset second after the adjustment for inference, and the standard time information can be obtained by obtaining the adjusted time information.
[0077] However, the brightness range of the sub-time period in which the standard time information is located is known, and the adjustment degree can be calculated by the brightness range and the standard light brightness, for example, the adjustment degree α=(φ-β) / (θ-β), wherein φ is the standard light brightness, β is the minimum value in the brightness range, and θ is the maximum value in the brightness range; furthermore, an adjustment degree can be obtained through a set of sample data, and a set of training samples can be obtained by combining the user behavior information in the set of sample data and the corresponding sub-time period brightness range. The training samples include the user behavior information and the sub-time period brightness range, and the corresponding adjustment degree is used to mark the set of training samples; through the above-mentioned model reasoning method, user habits can be accumulated and learned, and gradually adapted to users.
[0078] S15, generating light brightness according to the adjustment degree and the brightness range of the current time period;
[0079] After the adjustment degree is inferred, it can be combined with the brightness range of the sub-time period where the current time information is located, and the light brightness φ' can be calculated using the above formula α=(φ-β) / (θ-β).
[0080] S17. Control lighting of lamps according to light brightness.
[0081] Specifically, the lighting of the lamp is controlled by matching the light brightness with the corresponding power value. The matching mapping relationship between the light brightness and the power value is also pre-stored in the controller regarding the relevant parameters of the lamp when it leaves the factory, so that the corresponding power value can be directly matched by the light brightness.
[0082] The present application also provides a controller, comprising at least one processor and a memory communicatively connected to at least one processor; wherein the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor so that at least one processor can execute any of the above-mentioned lighting control methods.
[0083] Each step of the above-mentioned lighting control method can be implemented in whole or in part by software, hardware or a combination thereof.
[0084] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0085] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0086] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0087] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0089] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A lighting control method, characterized in that: include: Acquire time information from the time process, and obtain the brightness range of the current time period by matching the brightness reference brightness set according to the time information, wherein the brightness reference brightness set includes the brightness range of each sub-time period within the preset time period; Obtain indoor user behavior information, and generate adjustment degree according to the user behavior information and the brightness range of the current time period; Generate light brightness according to the adjustment degree and the brightness range of the current time period; Controlling the lighting of the lamp according to the light brightness; The light reference brightness set is obtained by matching the light reference brightness set in a preset query table according to the natural light brightness set in the room within a preset time period; The light reference brightness set is obtained by matching the light reference brightness set in a preset query table according to the natural light brightness set in the room within a preset time period, and specifically includes: Generate a brightness change curve according to the natural light brightness set, and a natural light brightness range for each sub-time period in the natural light brightness set; According to the brightness change curve and the natural light brightness range of each sub-time period, a brightness reference set that meets the preset conditions is obtained by searching in a preset query table; The preset query table stores a key-value mapping relationship between the change curve samples and the brightness reference set samples; According to the brightness change curve and the natural light brightness range of each sub-time period, a brightness reference set that meets the preset conditions is obtained by querying in the preset query table, including: According to the degree of fit between the brightness change curve and the samples of each brightness change curve in the preset query table, as well as the proximity of the natural light brightness range of each sub-time period and the brightness range overlap area of each brightness reference set sample in the preset query table in each same sub-time period, a brightness reference set that meets the preset conditions is obtained.
2. The lighting control method according to claim 1, characterized in that: According to the fitting degree of the brightness change curve and each brightness change curve sample in the preset query table, and the proximity of the indoor natural light brightness set in the preset time period and each brightness reference set sample in the preset query table in the brightness range overlap area of each same sub-time period, a brightness reference set that meets the preset conditions is obtained, including: Filter out the brightness reference set sample with the highest fitting degree; When there are at least two brightness reference set samples with the highest fit, obtain the overlapping areas of the brightness ranges between each brightness reference set sample with the highest fit and the natural light brightness set in each same sub-time period, and take the brightness reference set sample with the maximum sum of the overlapping areas of the brightness ranges in each sub-time period as the brightness reference set.
3. The lighting control method according to claim 1, characterized in that: Generate adjustment degree based on user behavior information and brightness range of current time period, including: The user behavior information and the brightness range of the current time period are input into the model for inference to obtain the adjustment degree.
4. The lighting control method according to claim 3, characterized in that: The model is trained in the following way: Through multiple sets of sample data, the neural network is trained to obtain a model; The sample data is collected in the following way: Obtain user adjustment instructions; Control lighting according to user adjustment instructions; Collecting indoor light illuminance when the lighting of the lamp is controlled according to the user adjustment instruction as standard light illuminance, indoor user behavior information when the lighting of the lamp is controlled according to the user adjustment instruction as standard behavior information, and time information when the lighting of the lamp is controlled according to the user adjustment instruction as standard time information; The standard behavior information, the standard light brightness, and the brightness range of the sub-time period where the standard time information is located are taken as a set of sample data.
5. A controller, characterized in that include: at least one processor; as well as, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the lighting control method according to any one of claims 1 to 4.
