Linked lighting system configuration optimization method, system, device and storage medium
By collecting and analyzing the lamp trigger data of the linked lighting system, the configuration of the linked lighting system is automatically optimized, solving the problem of low manual configuration efficiency in the existing technology, improving the accuracy and efficiency of the configuration, and adapting to site changes.
Patent Information
- Application Number
- CN202311841925.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-28
Smart Images

Figure CN117896880B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, system, device and storage medium for optimizing the configuration of a linkage lighting system. Background Art
[0002] The intelligent lighting system uses advanced electromagnetic voltage regulation and electronic sensing technology to turn on, off or dim lamps based on induction. In order to save energy, a single or a single group of lamps that sense people or cars will not be very bright, and the lighting range is limited. If people or cars move quickly, the sensing may not be timely, resulting in a reduced lighting experience. Therefore, in this case, adjacent linkage control is generally used, that is, when a single lamp senses a moving object, the adjacent lamps are also turned on. In the current linkage lighting system, adjacent linkage lamps need to be manually configured and optimized. Manual configuration and optimization methods are prone to lighting blind spots or over-lighting, and when the venue lamps are changed, it is necessary to re-analyze the venue flow and lamp distribution. This linkage photo configuration method has poor energy-saving and lighting effects and low efficiency. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a method, system, device and storage medium for optimizing the configuration of a linked lighting system, aiming to improve the accuracy and efficiency of optimizing the configuration of the linked lighting system.
[0004] To achieve the above purpose, one aspect of an embodiment of the present application proposes a method for optimizing the configuration of a linkage lighting system, comprising the following steps:
[0005] Acquire an initial configuration of the linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals;
[0006] Collecting multiple lamp triggering data of the linkage lighting system within a preset time period, wherein the lamp triggering data includes the lamp terminal identification and the triggering time;
[0007] According to all the lamp trigger data, the number of follow-up events occurring in other lamp terminals among all the trigger events occurring in any lamp terminal is counted to obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event occurring in other lamp terminals within a preset follow-up trigger time after a trigger event occurs in any lamp terminal;
[0008] Determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table;
[0009] The initial configuration is optimized according to the accuracy and coverage of the initial configuration.
[0010] In some embodiments, the step of collecting trigger data of multiple lamps of the linkage lighting system within a preset time period includes the following steps:
[0011] Monitor trigger events of the lamp terminal through the sensing unit provided on each lamp terminal;
[0012] When a data packet reported by the sensing unit is monitored, the data packet is parsed to obtain a lamp terminal identifier, the lamp terminal identifier and a timestamp of the data packet are recorded, and lamp triggering data is obtained.
[0013] In some embodiments, counting the number of follow-up events of other lamp terminals in all trigger events of any lamp terminal according to all the lamp trigger data to obtain a trigger follow-up statistics table includes the following steps:
[0014] According to the lamp terminal identifier in the lamp trigger data, counting the total number of triggering events occurring at each lamp terminal;
[0015] Select any lamp terminal as the first lamp terminal, select a lamp terminal other than the first lamp terminal as the second lamp terminal, count the number of follow-up events of the second lamp terminal in all trigger events of the first lamp terminal, and obtain the number of follow-up triggers of the second lamp terminal under the first lamp terminal;
[0016] According to the total number of triggering of the first lamp terminal and the number of follow-up triggering of a plurality of different second lamp terminals, forming triggering statistics of the first lamp terminal;
[0017] A trigger follow-up statistics table is formed according to the trigger statistics of the plurality of first lamp terminals.
[0018] In some embodiments, determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistics table comprises the following steps:
[0019] Acquire a linkage data set in which the trigger terminal is a target lamp terminal in the initial configuration;
[0020] Determine the following configuration error and the terminal following probability of the target lamp terminal according to the triggering statistical data and linkage data set of the target lamp terminal, wherein the terminal following probability represents the following probability of the non-following terminal of the target lamp terminal;
[0021] The accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the following configuration error, and the coverage of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the terminal following probability.
[0022] In some embodiments, the determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistics table further includes the following steps:
[0023] According to the follower terminal in the linkage data set, determining the accurate follow triggering times of the target lamp terminal from the triggering statistical data corresponding to the target lamp terminal in the triggering follow statistical table;
[0024] The accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the accurate follow-up triggering number.
[0025] In some embodiments, the determining of the following configuration error and the terminal following probability of the target lamp terminal according to the triggering statistical data and linkage data set of the target lamp terminal comprises the following steps:
[0026] Initializing a following configuration error and a terminal following probability, and determining a following terminal of the target lamp terminal according to the linkage data set;
[0027] Based on each triggering event of the target lamp terminal, the following configuration error and the terminal following probability are updated according to the triggering statistical data and the following terminal until the last triggering event of the target lamp terminal, wherein the process of updating the following configuration error and the terminal following probability at each triggering event is as follows:
[0028] When the current trigger event of the target lamp terminal does not contain a follow event of the follow terminal, the follow configuration error is updated through the first update logic, and the terminal following probability is updated through the second update logic; the first update logic is specifically to obtain a first update value by subtracting the average number of follow trigger times from the maximum number of follow trigger times belonging to the follow terminal in the trigger statistics data and dividing the result by the total number of trigger times of the target lamp terminal, and updating the follow configuration error according to the first update value; the second update logic is specifically to obtain a second update value by subtracting the average number of follow trigger times from the maximum number of follow trigger times not belonging to the follow terminal in the trigger statistics data and dividing the result by the total number of trigger times of the target lamp terminal, and updating the terminal following probability according to the second update value;
[0029] Wherein, when there is no following terminal for the target lamp terminal, the following configuration error is not updated.
[0030] In some embodiments, optimizing the initial configuration according to the accuracy and coverage of the initial configuration comprises the following steps:
[0031] Determine whether the accuracy of the linkage data set configuration in which the trigger terminal is the target lamp terminal in the initial configuration is less than a first threshold value, and if it is less than the first threshold value, delete the follower terminal with the smallest number of follow triggers in the corresponding linkage data set;
[0032] Determine whether the coverage rate of the linkage data set configuration of the trigger terminal as the target lamp terminal in the initial configuration is less than a second threshold value. When it is less than the second threshold value, determine a new follow-up terminal according to the trigger statistics of the target lamp terminal, and add the new follow-up terminal to the linkage data set, wherein the new follow-up terminal is the lamp terminal with the largest number of follow-up triggers in the trigger statistics data that does not belong to the initial linkage data set.
[0033] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides a linkage lighting system configuration optimization system, comprising:
[0034] A first module is used to obtain an initial configuration of the linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals;
[0035] The second module is used to collect multiple lamp triggering data of the linkage lighting system within a preset time period, wherein the lamp triggering data includes the lamp terminal identification and the triggering time;
[0036] The third module is used to count the number of follow-up events that occur in other lamp terminals in all trigger events that occur in any lamp terminal according to all the lamp trigger data, and obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event that occurs in other lamp terminals within a preset follow-up trigger time after a trigger event occurs in any lamp terminal;
[0037] A fourth module is used to determine the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table;
[0038] The fifth module is used to optimize the initial configuration according to the accuracy and coverage of the initial configuration.
[0039] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes an electronic device, which includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the linkage lighting system configuration optimization method described in the above embodiment is realized.
[0040] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium used for computer-readable storage, and the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the linkage lighting system configuration optimization method described in the above embodiment.
[0041] The method, system, device and storage medium for optimizing the configuration of a linked lighting system proposed in the present application collect trigger data of multiple lamps within a preset time period in an actual scene of the linked lighting system, and count the number of follow-up events occurring at other lamp terminals in all trigger events occurring at any lamp terminal based on all lamp trigger data to obtain a trigger follow-up statistics table, where a follow-up event is a trigger event occurring at other lamp terminals within a preset follow-up trigger time after a trigger event occurs at any lamp terminal, and then analyze the accuracy and coverage of the initial configuration of the lighting system based on the initial configuration and the trigger follow-up statistics table, and optimize the initial configuration based on the accuracy and coverage of the initial configuration, thereby realizing automatic optimization of the lighting system configuration and improving the accuracy and efficiency of configuration optimization. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a flow chart of a linkage lighting system configuration optimization method provided in an embodiment of the present application;
[0043] Figure 2 yes Figure 1 Flow chart of step S102 in FIG.
[0044] Figure 3 yes Figure 1 Flow chart of step S103 in FIG.
[0045] Figure 4 yes Figure 1 Flow chart of step S104 in FIG.
[0046] Figure 5 yes Figure 4 Flow chart of step S402 in FIG.
[0047] Figure 6 yes Figure 1 Flow chart of step S104 in FIG.
[0048] Figure 7 yes Figure 1 Flow chart of step S105 in FIG.
[0049] Figure 8 is a schematic diagram of a linkage lighting system configuration optimization system provided in an embodiment of the present application;
[0050] Fig. 9 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0051] Fig.10 is a schematic diagram of a linkage lighting system provided in an embodiment of the present application;
[0052] Fig.11 This is a schematic diagram of trigger follow-up statistics provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] It should be noted that, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] In the related art, the configuration and optimization process of the linkage lighting system in a certain area is as follows: the construction personnel must obtain accurate regional drawings and mark the photo lights on the regional drawings. Considering that the construction personnel cannot configure a large number of photo lights one by one, the photo lights within a certain distance are divided into one lamp, and all the lights under one lamp are turned on and off at the same time. The construction personnel ask the property personnel about the general flow of people and vehicles, and then design a linkage plan between different lamps. The construction personnel set the control information of the adjacent lamps to be linked on the sensor of the lamp according to the plan, so that when the sensor senses a person or a car, while lighting the current lamp, the configured adjacent lamps are also lit in advance. When verifying the rationality of the configuration of the linkage lighting system, the verification personnel are also required to go to the site to observe the actual sensing triggering situation, and then adjust the linkage configuration plan. This method has low accuracy and efficiency.
[0057] Based on this, the embodiments of the present application provide a method, system, device and storage medium for optimizing the configuration of a linked lighting system, aiming to improve the accuracy and efficiency of optimizing the configuration of a linked lighting system.
[0058] The linked lighting system configuration optimization method, system, device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the linked lighting system configuration optimization method in the embodiments of the present application is described.
[0059] The method for optimizing the configuration of a linked lighting system provided in the embodiment of the present application relates to the field of computer technology. The method for optimizing the configuration of a linked lighting system provided in the embodiment of the present application can be applied to a terminal, can be applied to a server side, or can be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, or can be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application that implements the method for optimizing the configuration of a linked lighting system, etc., but is not limited to the above forms.
[0060] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0061] Figure 1 is an optional flow chart of the linkage lighting system configuration optimization method provided in the embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.
[0062] Step S101, obtaining an initial configuration of a linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals;
[0063] Step S102, collecting trigger data of multiple lamps of the linkage lighting system within a preset time period, wherein the lamp trigger data includes a lamp terminal identifier and a trigger time;
[0064] Step S103, according to all the lamp trigger data, count the number of follow-up events that occur in other lamp terminals in all the trigger events that occur in any lamp terminal, and obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event that occurs in other lamp terminals within a preset follow-up trigger time after the trigger event occurs in any lamp terminal;
[0065] Step S104, determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistics table;
[0066] Step S105, optimizing the initial configuration according to the accuracy and coverage of the initial configuration.
[0067] In step S101 of some embodiments, please refer to Fig.10 The linkage lighting system refers to a system composed of lamp terminals within a certain space. The lamp terminals include lighting units and sensing units. The sensing units are used to generate trigger signals when people or objects pass by, thereby controlling the lighting units to turn on. The linkage lighting system also includes a background server, which is connected to the sensing units of all lamps and is used to configure the lamps in a linkage manner, that is, to configure the follow-up linkage relationship between two lamp terminals, so that when a lamp is triggered to turn on by a person or an object, the following lamp is triggered at the same time. It can be understood that the sensing unit can be an infrared sensor, a voice-controlled sensor, etc., and the embodiments of the present application do not make specific restrictions.
[0068] In one embodiment, the initial configuration includes multiple linkage data sets E, which include a specified trigger terminal P and multiple follower terminals N, thereby forming a series of (P, N) pairs. Once the trigger terminal P is triggered, the follower terminal N follows the linkage, and N is called an adjacent terminal or a follower terminal of P.
[0069] It should be noted that the follow relationship in the linkage data set is unidirectional and does not support the reverse direction, that is, P does not necessarily follow the triggering of N to be linked. For example, most people will move directly from lamp terminal A to lamp terminal B, then B is the follow terminal of A, or the follow terminal of A is B, but if very few people move from B to A, then A is not the follow terminal of B.
[0070] In step S102 of some embodiments, based on the linkage lighting system, this embodiment needs to verify and optimize the follow-up relationship of the initial configuration of the linkage lighting system in combination with the sensing situation in the actual scene to improve the accuracy of the linkage configuration. The background server can collect multiple lamp trigger data within the preset time period in the actual scene to perform subsequent data mining and configuration optimization. The lamp trigger data is the trigger signal generated when the lamp terminal senses the passage of a person or object in the actual scene. The preset time period can be one week or one month, and the preset time period can be further set according to the general flow pattern of the scene personnel. For example, the preset time period can be the rush hour of every day in the past month, or it can be the rush hour of every day after get off work in the past month, so as to optimize the linkage configuration scheme used in the corresponding period (rush hour or rush hour after get off work) and improve the rationality of the linkage lighting system configuration.
[0071] See also Figure 2 In some embodiments, step S102 may include but is not limited to steps S201 to S202:
[0072] Step S201, monitoring the triggering event of the lamp terminal through the sensing unit provided on each lamp terminal;
[0073] Step S202: when a data packet reported by the sensing unit is monitored, the data packet is parsed to obtain a lamp terminal identifier, the lamp terminal identifier and the timestamp of the data packet are recorded, and lamp triggering data is obtained.
[0074] In this embodiment, the background server communicates with each lamp terminal, monitors the triggering event of the sensing unit, and when the data packet reported by the sensing unit is monitored, it indicates that a triggering event occurs at the lamp terminal, and the data packet is parsed to obtain the lamp terminal identifier, and then the lamp terminal identifier and the timestamp of the data packet are recorded to obtain the lamp triggering data. Each lamp triggering data includes the lamp terminal identifier and the triggering time, and the accuracy and coverage of the initial configuration are subsequently statistically analyzed based on the lamp terminal identifier to optimize the initial configuration, so that configuration optimization can be achieved without the distribution location information of the lamp terminal, thereby improving the efficiency of linkage configuration optimization.
[0075] In step S103 of some embodiments, according to all the lamp trigger data D, the number of follow-up events of other lamp terminals N in all the trigger events of any lamp terminal P is counted to obtain a trigger follow-up statistics table, where the follow-up event is a trigger event of other lamp terminals within a preset follow-up trigger time after a trigger event of any lamp terminal. The preset follow-up trigger time T can be determined by the distance between adjacent terminals in an actual scenario and the general moving speed of people or vehicles. For example, the preset follow-up trigger time can be 5 seconds. For all lamp terminals P, the number of trigger events of all trigger terminals within T time after all their trigger events is counted to form a table such as Fig.11 Trigger follow-up statistics table shown. Fig.11 In the trigger follow statistics table, 997 means that among the 3432 triggers of terminal 1 in all the lamp trigger data D, 997 times the trigger event of terminal 2 can be found within T time after the trigger of terminal 1, which is recorded as the number of follow-up triggers of terminal 2 following terminal 1.
[0076] See also Figure 3 In some embodiments, step S103 may include but is not limited to steps S301 to S304:
[0077] Step S301, counting the total number of triggering events occurring at each lamp terminal according to the lamp terminal identifier in the lamp triggering data;
[0078] Step S302, selecting any lamp terminal as the first lamp terminal, selecting a lamp terminal other than the first lamp terminal as the second lamp terminal, counting the number of follow-up events of the second lamp terminal in all triggering events of the first lamp terminal, and obtaining the number of follow-up triggering events of the second lamp terminal under the first lamp terminal;
[0079] Step S303, forming triggering statistics of the first lamp terminal according to the total number of triggering of the first lamp terminal and the number of follow-up triggering of a plurality of different second lamp terminals;
[0080] Step S304: forming a trigger follow-up statistics table according to the trigger statistics of the plurality of first lamp terminals.
[0081] In this embodiment, the linkage lighting system includes lamp terminal 1, lamp terminal 2, lamp terminal 3 and lamp terminal 4. According to the lamp terminal identifier in the lamp trigger data, the total number of trigger events of each lamp terminal can be counted, such as Fig.11As shown, the total number of triggers of lamp terminals 1 to 4 are 3432, 2776, 1009 and 887 respectively. Select lamp terminal 1 as the first lamp terminal, select lamp terminal 2, select lamp terminal 3, and select lamp terminal 4 as the second lamp terminal respectively, count the number of follow-up events of the second lamp terminal in all trigger events of the first lamp terminal, and obtain the number of follow-up triggers of lamp terminal 2, lamp terminal 3, and lamp terminal 4 under lamp terminal 1, which are 997, 23, and 269 respectively. Then, according to the total number of triggers of lamp terminal 1 and the number of follow-up triggers of lamp terminal 2, lamp terminal 3, and lamp terminal 4, the trigger statistics of lamp terminal 1 are formed, that is, the data of a row corresponding to terminal 1 in the trigger statistics table. Then select lamp terminal 2 as the first lamp terminal, select lamp terminal 1, lamp terminal 3, and lamp terminal 4 as the second lamp terminal, repeat the above process to obtain the trigger statistics of lamp terminal 2, and so on. According to the trigger statistics of multiple first lamp terminals, a trigger follow-up statistics table is formed.
[0082] In step S104 of some embodiments, the accuracy of the initial configuration is used to characterize the degree of fit between the following terminal configured as a certain terminal in the initial configuration and the actual following terminal of the terminal as reflected in the triggered following statistics table. The coverage of the initial configuration is used to characterize the degree of difference between the following terminal that is not configured as a certain terminal in the initial configuration and the following terminal that should actually be configured as the terminal as represented by the triggered following statistics table.
[0083] See also Figure 4 In some embodiments, step S104 may include but is not limited to steps S401 to S403:
[0084] Step S401, obtaining a linkage data set in which the trigger terminal is the target lamp terminal in the initial configuration;
[0085] Step S402, determining the following configuration error and the terminal following probability of the target lamp terminal according to the triggering statistical data and linkage data set of the target lamp terminal, wherein the terminal following probability represents the following probability of the non-following terminal of the target lamp terminal;
[0086] Step S403, determining the accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration according to the following configuration error, and determining the coverage of the linkage data set configuration of the target lamp terminal in the initial configuration according to the terminal following probability.
[0087] In this embodiment, combined with Fig.11, taking lamp terminal 4 as the target lamp terminal as an example, obtain the linkage data set with the trigger terminal being lamp terminal 4, the trigger terminal represented in the linkage data set being lamp terminal 4, and the follow terminal being lamp terminal 1. Determine the follow configuration error of lamp terminal 1 and the terminal follow probability of lamp terminal 2 and lamp terminal 3 according to the trigger statistics of lamp terminal 4 and the follow terminal configuration of the linkage data set. Subtract the follow configuration error from 1 and divide it by the sum of the total number of triggers of all lamp terminals to obtain the accuracy of the linkage data set configuration of lamp terminal 4 in the initial configuration, and divide the terminal follow probability by the sum of the total number of triggers of all lamp terminals to measure the coverage of the linkage data set configuration of lamp terminal 4 in the initial configuration.
[0088] See also Figure 5 In some embodiments, step S402 may include but is not limited to steps S501 to S503:
[0089] Step S501, initializing the following configuration error and the terminal following probability, and determining the following terminal of the target lamp terminal according to the linkage data set;
[0090] Step S502 : based on each triggering event of the target lamp terminal, updating the following configuration error and the terminal following probability according to the triggering statistical data and the following terminal until the last triggering event of the target lamp terminal.
[0091] The process of updating the following configuration error and the terminal following probability each time an event is triggered is as follows:
[0092] When the current triggering event of the target lamp terminal does not have a following event of the following terminal, the following configuration error is updated through the first updating logic, and the terminal following probability is updated through the second updating logic;
[0093] The first update logic is specifically to obtain a first update value by subtracting the average number of follow trigger times from the maximum number of follow trigger times of the follow terminal in the trigger statistics data by dividing the result by the total number of trigger times of the target lamp terminal, and updating the follow configuration error according to the first update value;
[0094] The second update logic is specifically to obtain a second update value by subtracting the maximum follow trigger count that does not belong to the follow terminal in the trigger statistics from the average follow trigger count and dividing the result by the total trigger count of the target lamp terminal, and updating the terminal follow probability according to the second update value;
[0095] Wherein, when there is no following terminal for the target lamp terminal, the following configuration error is not updated.
[0096] See also Figure 6 In some embodiments, step 104 may also include but is not limited to steps S601 to S602:
[0097] Step S601, according to the follower terminal in the linkage data set, determine the accurate follow triggering times of the target lamp terminal from the triggering statistical data of the corresponding target lamp terminal in the trigger follow statistical table;
[0098] Step S602: determining the accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration according to the number of accurate follow-up triggers.
[0099] In this embodiment, the accuracy of the linkage data set configuration of the target lamp terminal can also be directly calculated through the trigger follow-up statistics table. For example, the linkage data set configuration of lamp terminal 4 has its follow-up terminal as lamp terminal 1. The follow-up trigger count 502 of lamp terminal 1 under lamp terminal 4 is searched according to the trigger follow-up statistics table, which is the accurate follow-up trigger count. The accuracy of the linkage data set configuration of lamp terminal 4 in the initial configuration can also be calculated by dividing the accurate follow-up trigger count by the sum of the total trigger counts of all lamp terminals.
[0100] According to some embodiments of the present application, variables T, F, and TF are defined to count all triggered events, T, F, and TF are initialized to 0, and the specific statistics can be as follows: T represents the number of accurate follow-up triggers, F represents the follow-up configuration error, and TF represents the terminal follow-up probability.
[0101] For each trigger event of the target lamp terminal, which is the trigger terminal P and the trigger time is t, search whether there is a configured trigger event of the follower terminal P between t and t+T.
[0102] If so, T increases by 1.
[0103] If not, but P is configured with a follower terminal, F plus the maximum follower trigger times of all follower terminals of terminal P minus the average follower trigger times of terminal P divided by the total trigger times of terminal P; TF plus the maximum follower trigger times of all non-follower terminals of terminal P minus the average follower trigger times of terminal P divided by the total trigger times of terminal P. Fig.11 Take the trigger follow statistics table as an example, if P is terminal 4, terminal 1 in the linkage data set E is the follow terminal of terminal 4, and terminal 2 and terminal 3 are not the follow terminals of terminal 4, then F plus (502-(502+224+89) / 3) / 887=0.259677, TF plus (224-(502+224+89) / 3) / 887=-0.053739. It can be understood that F can be understood as the actual follow probability of the configured follow terminal 1, TF can be understood as the actual maximum follow probability among the non-follow terminals of terminal 4, and a negative value of TF indicates that the maximum follow trigger number among the non-follow terminals is too small, and the corresponding terminal 2 should not actually be the follow terminal of terminal 4.
[0104] If not, but P is configured with a follower terminal, TF plus the maximum follower trigger times of terminal P minus the average follower trigger times divided by the total trigger times of terminal P. Fig.11 Taking the trigger follow-up statistics table as an example, if P is terminal 3, the value added to TF is (401-(55+401+35) / 3) / 1099=0.215954.
[0105] Finally, T, F and TF are divided by the number of all lamp trigger data, that is, the total number of triggers of all lamp terminals in the trigger follow statistics table. Fig.11 Taking the trigger follow-up statistics table as an example, T, F and TF should be divided by 3432+2776+1099+887=8194 respectively to obtain the measurement indicators of the accuracy, error rate and coverage of the terminal P configuration. Among them, subtracting the error rate from 1 can also represent the accuracy of the terminal P configuration.
[0106] It can be understood that in the embodiments of the present application, the greater the accuracy, the more accurate it is; the smaller the error rate, the more accurate it is; and the smaller the coverage, the more reasonable the configuration.
[0107] See also Figure 7 In some embodiments, step S105 may include but is not limited to steps S701 to S702:
[0108] Step S701, determining whether the accuracy of the linkage data set configuration in which the trigger terminal is the target lamp terminal in the initial configuration is less than a first threshold, and if less than the first threshold, deleting the follower terminal with the smallest number of follow triggers in the corresponding linkage data set;
[0109] Step S702, determine whether the coverage rate of the linkage data set configuration of the trigger terminal for the target lamp terminal in the initial configuration is less than the second threshold value. When it is less than the second threshold value, determine a new follow-up terminal based on the trigger statistics of the target lamp terminal, and add the new follow-up terminal to the linkage data set, wherein the new follow-up terminal is the lamp terminal with the largest number of follow-up triggers in the trigger statistics data that does not belong to the initial linkage data set.
[0110] In step S701 of some embodiments, illustratively, the follower terminals of the linkage data set of the lamp terminal 2 are configured as lamp terminals 1 and 4, and the follower triggering times of the lamp terminals 1 and 4 in the follower triggering statistics table are 1189 and 511 respectively. It is determined whether the accuracy of the linkage data set configuration in which the triggering terminal is lamp terminal 2 in the initial configuration is less than a first threshold value. If it is less than the first threshold value, the follower terminal with the smallest follower triggering times in the corresponding linkage data set is deleted, that is, the lamp terminal 4 with the smallest follower triggering times in the linkage data set is deleted, and the linkage data set of the lamp terminal 2 is optimized to have the follower terminal as lamp terminal 1.
[0111] In step S702 of some embodiments, illustratively, in the linkage data set of the lamp terminal 4, its follower terminal is configured as the lamp terminal 1, that is, the non-follower terminals are the lamp terminals 2 and 3, and the follower trigger times of the lamp terminals 2 and 3 in the follower trigger statistics table are 244 and 89 respectively. It is determined whether the coverage rate of the linkage data set configuration in which the trigger terminal is the lamp terminal 4 in the initial configuration is less than the second threshold value. If it is less than the second threshold value, the non-follower terminal with the largest number of follower trigger times is determined as the new follower terminal, that is, the new follower terminal is the lamp terminal 2, and the linkage data set of the lamp terminal 4 is optimized so that the follower terminals are the lamp terminal 1 and the lamp terminal 2.
[0112] See also Figure 8 The embodiment of the present application also provides a linkage lighting system configuration optimization system, including:
[0113] The first module is used to obtain an initial configuration of the linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals;
[0114] The second module is used to collect multiple lamp triggering data of the linkage lighting system within a preset time period, wherein the lamp triggering data includes the lamp terminal identification and the triggering time;
[0115] The third module is used to count the number of follow-up events that occur in other lamp terminals among all trigger events that occur in any lamp terminal according to all lamp trigger data, and obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event that occurs in other lamp terminals within a preset follow-up trigger time after a trigger event occurs in any lamp terminal;
[0116] The fourth module is used to determine the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistics table;
[0117] The fifth module is used to optimize the initial configuration according to the accuracy and coverage of the initial configuration.
[0118] It can be understood that the contents of the above-mentioned embodiment of the linkage lighting system configuration optimization method are all applicable to the embodiment of this system, the functions specifically implemented by the embodiment of this system are the same as those in the above-mentioned embodiment of the linkage lighting system configuration optimization method, and the beneficial effects achieved are also the same as the beneficial effects achieved by the above-mentioned embodiment of the linkage lighting system configuration optimization method.
[0119] The embodiment of the present application also provides an electronic device, the electronic device comprising: a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory, and the program is executed by the processor to realize the above-mentioned linkage lighting system configuration optimization method. The electronic device can be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc.
[0120] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0121] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0122] The memory 902 may be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 may store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the linkage lighting system configuration optimization method of the embodiment of this application;
[0123] Input / output interface 903, used to implement information input and output;
[0124] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0125] A bus 905 that transmits information between the various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);
[0126] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .
[0127] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned linkage lighting system configuration optimization method.
[0128] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0129] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0130] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0131] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0132] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0133] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0134] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0135] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0136] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0138] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0139] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for optimizing the configuration of a linkage lighting system, characterized in that: The following steps are involved: Acquire an initial configuration of the linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals; Collecting multiple lamp triggering data of the linkage lighting system within a preset time period, wherein the lamp triggering data includes the lamp terminal identification and the triggering time; According to all the lamp trigger data, the number of follow-up events occurring in other lamp terminals among all the trigger events occurring in any lamp terminal is counted to obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event occurring in other lamp terminals within a preset follow-up trigger time after a trigger event occurs in any lamp terminal; Determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table; The initial configuration is optimized according to the accuracy and coverage of the initial configuration.
2. The method for optimizing the configuration of a linkage lighting system according to claim 1, characterized in that: The method of collecting trigger data of multiple lamps of the linkage lighting system within a preset time period includes the following steps: Monitor trigger events of the lamp terminal through the sensing unit provided on each lamp terminal; When a data packet reported by the sensing unit is monitored, the data packet is parsed to obtain a lamp terminal identifier, the lamp terminal identifier and a timestamp of the data packet are recorded, and lamp triggering data is obtained.
3. The method for optimizing the configuration of a linkage lighting system according to claim 1, characterized in that: The method of counting the number of follow-up events of other lamp terminals in all trigger events of any lamp terminal according to all the lamp trigger data to obtain a trigger follow-up statistics table includes the following steps: According to the lamp terminal identifier in the lamp trigger data, counting the total number of triggering events occurring at each lamp terminal; Select any lamp terminal as the first lamp terminal, select a lamp terminal other than the first lamp terminal as the second lamp terminal, count the number of follow-up events of the second lamp terminal in all trigger events of the first lamp terminal, and obtain the number of follow-up triggers of the second lamp terminal under the first lamp terminal; According to the total number of triggering of the first lamp terminal and the number of follow-up triggering of a plurality of different second lamp terminals, forming triggering statistics of the first lamp terminal; A trigger follow-up statistics table is formed according to the trigger statistics of the plurality of first lamp terminals.
4. The method for optimizing the configuration of a linkage lighting system according to claim 3, characterized in that: Determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table comprises the following steps: Acquire a linkage data set in which the trigger terminal is a target lamp terminal in the initial configuration; Determine the following configuration error and the terminal following probability of the target lamp terminal according to the triggering statistical data and linkage data set of the target lamp terminal, wherein the terminal following probability represents the following probability of the non-following terminal of the target lamp terminal; The accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the following configuration error, and the coverage of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the terminal following probability.
5. The method for optimizing the configuration of a linkage lighting system according to claim 4, characterized in that: The step of determining the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table further includes the following steps: According to the follower terminal in the linkage data set, determining the accurate follow triggering times of the target lamp terminal from the triggering statistical data corresponding to the target lamp terminal in the triggering follow statistical table; The accuracy of the linkage data set configuration of the target lamp terminal in the initial configuration is determined according to the accurate follow-up triggering number.
6. The method for optimizing the configuration of a linkage lighting system according to claim 4, characterized in that: The method of determining the following configuration error and the terminal following probability of the target lamp terminal according to the triggering statistical data and linkage data set of the target lamp terminal comprises the following steps: Initializing a following configuration error and a terminal following probability, and determining a following terminal of the target lamp terminal according to the linkage data set; Based on each triggering event of the target lamp terminal, the following configuration error and the terminal following probability are updated according to the triggering statistical data and the following terminal until the last triggering event of the target lamp terminal, wherein the process of updating the following configuration error and the terminal following probability at each triggering event is as follows: When the current trigger event of the target lamp terminal does not contain a follow event of the follow terminal, the follow configuration error is updated through the first update logic, and the terminal following probability is updated through the second update logic; the first update logic is specifically to obtain a first update value by subtracting the average number of follow trigger times from the maximum number of follow trigger times belonging to the follow terminal in the trigger statistics data and dividing the result by the total number of trigger times of the target lamp terminal, and updating the follow configuration error according to the first update value; the second update logic is specifically to obtain a second update value by subtracting the average number of follow trigger times from the maximum number of follow trigger times not belonging to the follow terminal in the trigger statistics data and dividing the result by the total number of trigger times of the target lamp terminal, and updating the terminal following probability according to the second update value; Wherein, when there is no following terminal for the target lamp terminal, the following configuration error is not updated.
7. The method for optimizing the configuration of a linkage lighting system according to claim 6, characterized in that: Optimizing the initial configuration according to the accuracy and coverage of the initial configuration comprises the following steps: Determine whether the accuracy of the linkage data set configuration in which the trigger terminal is the target lamp terminal in the initial configuration is less than a first threshold value, and if it is less than the first threshold value, delete the follower terminal with the smallest number of follow triggers in the corresponding linkage data set; Determine whether the coverage rate of the linkage data set configuration of the trigger terminal as the target lamp terminal in the initial configuration is less than a second threshold value. When it is less than the second threshold value, determine a new follow-up terminal according to the trigger statistics of the target lamp terminal, and add the new follow-up terminal to the linkage data set, wherein the new follow-up terminal is the lamp terminal with the largest number of follow-up triggers in the trigger statistics data that does not belong to the initial linkage data set.
8. A linkage lighting system configuration optimization system, characterized in that: include: A first module is used to obtain an initial configuration of the linkage lighting system, wherein the initial configuration includes a plurality of linkage data sets, and the linkage data sets include a trigger terminal and a plurality of follower terminals; The second module is used to collect multiple lamp triggering data of the linkage lighting system within a preset time period, wherein the lamp triggering data includes the lamp terminal identification and the triggering time; The third module is used to count the number of follow-up events that occur in other lamp terminals in all trigger events that occur in any lamp terminal according to all the lamp trigger data, and obtain a trigger follow-up statistics table, wherein the follow-up event is a trigger event that occurs in other lamp terminals within a preset follow-up trigger time after a trigger event occurs in any lamp terminal; A fourth module is used to determine the accuracy and coverage of the initial configuration according to the initial configuration and the trigger follow-up statistical table; The fifth module is used to optimize the initial configuration according to the accuracy and coverage of the initial configuration.
9. An electronic device, characterized in that: The electronic device includes a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of optimizing the configuration of the linked lighting system as described in any one of claims 1 to 7 are realized.
10. A storage medium, the storage medium being a computer-readable storage medium, used for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of optimizing the configuration of the linkage lighting system according to any one of claims 1 to 7.
Citation Information
Patent Citations
Light control system and method for automatically rendering a lighting atmosphere
CN101849435A
Control method and system of intelligent induction lamp, storage medium and controller
CN109729631A
Intelligent internet of things-based night lighting sensing system
CN110740546A
Method and apparatus for controlling a lighting system
CN111656865A
Linkage lighting method and system and small night lamp
CN113365397A
