Equipment positioning method and system based on time sequence sensing data
By analyzing the time-series sensing data of lighting terminals, a relative position topology map of the equipment is generated, which solves the problem of low efficiency of manual labeling of lighting equipment in underground garages and achieves low-cost and accurate equipment positioning.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- E SURFING IOT CO LTD
- Filing Date
- 2026-01-29
- Publication Date
- 2026-05-01
AI Technical Summary
In existing technologies, manual labeling of lighting equipment in underground parking garages is inefficient and prone to errors, making it difficult to achieve efficient equipment positioning.
By analyzing the timing sensing data of lighting terminals, including trigger timestamps and number of triggers, the linkage relationship of devices can be determined, a relative position topology map can be generated, and low-cost positioning can be achieved.
Without requiring additional hardware, it achieves low-cost device positioning, accurately determines the relative position of devices, and improves positioning efficiency and accuracy.
Smart Images

Figure CN121968283A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of Internet of Things (IoT) technology, and in particular relates to a device positioning method and system based on time-series sensing data. Background Technology
[0002] In related technologies, to achieve carbon neutrality and carbon peaking, various industries are currently carrying out energy-saving renovations for lighting. Taking underground parking garage lighting as an example, in order to obtain the relative position of lighting equipment in a designated space, installation and maintenance personnel need to manually mark it using remote controls and other equipment. However, the marking efficiency is low and may introduce errors caused by manual operation. Therefore, how to better achieve equipment positioning has become an urgent problem to be solved. Summary of the Invention
[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide a device positioning method and system based on time-series sensing data. This method achieves low-cost positioning and can determine the relative positional relationship of devices by analyzing the sequence, frequency, and interval of device triggering.
[0004] In a first aspect, the present invention provides a device positioning method and system based on time-series sensing data, comprising: S1, acquiring sensing data, the sensing data including a unique identifier of a lighting terminal and a trigger timestamp of the lighting terminal; S2, acquiring the number of triggers of the lighting terminal within a first preset time period, and determining a target lighting terminal based on the number of triggers; S3, determining the linked lighting devices of the target lighting terminal, and obtaining an average trigger interval between the triggers of the target lighting terminal and the linked lighting devices based on the number of linkage triggers between the target lighting terminal and the linked lighting devices, and the trigger interval time between the target lighting terminal and the linked lighting devices; S4, determining a list of linked devices based on the number of linkage triggers and the average trigger interval, and generating a relative position topology map of the lighting devices based on the list of linked devices.
[0005] Furthermore, the trigger timestamp of the lighting terminal is preprocessed to obtain the preprocessed trigger timestamp.
[0006] Further, determining the target lighting terminal based on the number of triggers includes: removing first lighting terminals whose number of triggers is less than a first threshold and whose number of triggers is greater than a second threshold within a second preset time period; and using the removed lighting terminals as the target lighting terminals, wherein the repeated trigger data of the target lighting terminal within a preset period is retained once.
[0007] Further, determining the linked lighting device of the target lighting terminal includes: based on the trigger timestamp of the target lighting terminal, determining whether other target lighting terminals are triggered within a preset time before and after the target lighting terminal is triggered; if so, then the other target lighting terminals are taken as the linked lighting device of the target lighting terminal; wherein, based on the number of linked triggers between the target lighting terminal and the linked lighting device, and the trigger interval time between the target lighting terminal and the linked lighting device, the average trigger interval from the triggering of the target lighting terminal to the triggering of the linked lighting device is obtained, including: determining the target trigger interval duration of the trigger interval time of the number of linked triggers; and taking the ratio of the target trigger interval duration to the number of linked triggers as the average trigger interval.
[0008] Further, determining the list of linked devices based on the number of linkage triggers and the average trigger interval includes: sorting the number of linkage triggers between the target lighting terminal and the linked lighting device from largest to smallest to obtain a first sorted list; determining the list of linked devices based on the first sorted list and a preset number of linked lighting devices; wherein, when it is determined that the number of linkage triggers between the target lighting terminal and the linked lighting device is the same, the average trigger interval between the triggers of the target lighting terminal and the triggers of the linked lighting device is sorted from smallest to largest.
[0009] Further, generating a relative position topology map of the lighting devices based on the linked device list includes: taking any device in the linked device list as the starting point of the topology map, placing the starting point of the topology map at the origin of the two-dimensional coordinate system and marking it; based on the order of other devices in the linked device list, placing the other devices at a preset position of the target lighting terminal according to preset orientation rules and preset distances, to obtain a relative position topology map of the target lighting terminal; and using the relative position topology maps of multiple target lighting terminals as the relative position topology map of the lighting devices.
[0010] A second aspect of the present invention provides a device positioning system based on time-series sensing data, comprising: an acquisition module for acquiring sensing data, the sensing data including a unique identifier of a lighting terminal and a trigger timestamp of the lighting terminal; a determination module for acquiring the number of triggers of the lighting terminal within a first preset time period, and determining a target lighting terminal based on the number of triggers; a obtaining module for determining the linked lighting devices of the target lighting terminal, and obtaining an average trigger interval between the triggers of the target lighting terminal and the linked lighting devices based on the number of linkage triggers between the target lighting terminal and the linked lighting devices, and the trigger interval time between the target lighting terminal and the linked lighting devices; and a generation module for determining a list of linked devices based on the number of linkage triggers and the average trigger interval, and generating a relative position topology map of the lighting devices based on the list of linked devices.
[0011] A third aspect of the present invention provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described in any one aspect of the present invention.
[0012] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in any one of the first aspects of the present invention.
[0013] The beneficial effects of this invention are as follows: The device positioning method and system based on time-series sensing data of this invention acquires sensing data, including a unique identifier of the lighting terminal and a trigger timestamp of the lighting terminal; acquires the number of triggers of the lighting terminal within a first preset time period, and determines the target lighting terminal based on the number of triggers; determines the linked lighting devices of the target lighting terminal, and obtains the average trigger interval between the triggers of the target lighting terminal and the linked lighting devices based on the number of triggers of the linkage between the target lighting terminal and the linked lighting devices, as well as the trigger interval time between the target lighting terminal and the linked lighting devices; determines a list of linked devices based on the number of linkage triggers and the average trigger interval, and generates a relative position topology map of the lighting devices based on the list of linked devices. This method requires no additional hardware, achieves low-cost positioning, and can determine the relative positional relationship of devices by analyzing the order, frequency, and trigger interval of device triggers. Attached Figure Description
[0014] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. It is obvious that the drawings described below are merely some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings.
[0015] Figure 1 This is a flowchart of a device positioning method based on time-series sensing data according to an embodiment of the present invention; Figure 2 This is a flowchart of a device positioning method based on time-series sensing data according to a specific embodiment of the present invention; Figure 3 This is a schematic diagram of a device positioning system based on time-series sensing data according to an embodiment of the present invention; Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0016] To enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. It should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0017] Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts disclosed in this invention.
[0018] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The terms "installed," "connected," and "linked" should be interpreted broadly; for example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0019] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of methods and systems consistent with some aspects of the invention as detailed in the appended claims.
[0020] This invention proposes a device positioning method, system, and related equipment based on time-series sensing data. Specifically, the device positioning method, system, and related equipment based on time-series sensing data of this invention are described below with reference to the accompanying drawings.
[0021] Figure 1 This is a flowchart of a device positioning method based on time-series sensing data according to an embodiment of the present invention. It should be noted that the device positioning method based on time-series sensing data of the present invention can be applied to the device positioning system based on time-series sensing data of the present invention. This device positioning system based on time-series sensing data can be configured on an electronic device or in a server. This application does not limit the scope of the application.
[0022] like Figure 1 As shown, the device positioning method based on time-series sensing data includes: S110, acquire sensing data, which includes the unique identifier of the lighting terminal and the trigger timestamp of the lighting terminal.
[0023] In an embodiment of the present invention, sensing data of a sensing terminal can be acquired. The sensing terminal may be a sensor, including a human infrared sensor, microwave radar, etc., used to detect whether a person, vehicle or other moving object passes by and trigger a lighting terminal.
[0024] The lighting terminal includes luminaires, which are used to provide a light source.
[0025] Each sensing terminal can be associated with multiple lighting terminals. When a moving object is detected, the sensing terminal will perform two actions simultaneously: 1) trigger the lighting terminals to turn on; 2) report sensing data containing the unique identifier of the lighting terminal and the trigger timestamp of the lighting terminal.
[0026] In an embodiment of the present invention, when the trigger timestamp of the lighting terminal is obtained from the sensing data, the trigger timestamp of the lighting terminal can be preprocessed to obtain a preprocessed trigger timestamp. For example, the trigger timestamp can be converted into a preset date format, where the preset date format is: year-month-day-hour-minute-second.
[0027] S120: Obtain the number of times the lighting terminal is triggered within the first preset time period, and determine the target lighting terminal based on the number of triggers.
[0028] In embodiments of the present invention, upon obtaining sensing data, the number of times the lighting terminal is triggered within a first preset time period can be acquired. For example, the number of times the lighting terminal is triggered within the preset time period (e.g., one day) can be counted to determine the average daily trigger count of the lighting terminal. The target lighting terminal is then determined based on the trigger count. Specific implementation details can be found in subsequent embodiments.
[0029] S130, determine the linked lighting device of the target lighting terminal, and obtain the average trigger interval between the target lighting terminal trigger and the linked lighting device trigger based on the number of times the target lighting terminal and the linked lighting device are linked, and the trigger interval time between the target lighting terminal and the linked lighting device.
[0030] In an embodiment of the present invention, when a target lighting terminal is identified, it can be determined whether other target lighting terminals have been triggered within a preset time period before and after the target lighting terminal is triggered, based on the trigger timestamp of the target lighting terminal. If so, the other target lighting terminals are designated as linked lighting devices of the target lighting terminal. Then, based on the number of triggers between the target lighting terminal and the linked lighting devices, and the trigger interval between the target lighting terminal and the linked lighting devices, the average trigger interval between the triggers of the target lighting terminal and the linked lighting devices is obtained. Specific implementation details can be found in subsequent embodiments.
[0031] S140, determine the list of linked devices based on the number of linked triggers and the average trigger interval, and generate a topology map of the relative positions of the lighting devices based on the list of linked devices.
[0032] In an embodiment of the present invention, given the number of triggering events and the average trigger interval, the linked lighting devices can be sorted based on these data. Based on the sorting results and a preset number of linked lighting devices, a list of linked devices is determined, and a relative position topology map of the lighting devices is generated based on this list. Specific implementation details can be found in subsequent embodiments.
[0033] According to an embodiment of the present invention, a device positioning method based on time-series sensing data acquires sensing data, including a unique identifier of the lighting terminal and a trigger timestamp of the lighting terminal; acquires the number of triggers of the lighting terminal within a first preset time period, and determines a target lighting terminal based on the number of triggers; determines the linked lighting devices of the target lighting terminal, and obtains the average trigger interval between the triggers of the target lighting terminal and the linked lighting devices based on the number of triggers of the linkage between the target lighting terminal and the linked lighting devices, and the trigger interval time between the target lighting terminal and the linked lighting devices; determines a list of linked devices based on the number of linkage triggers and the average trigger interval, and generates a relative position topology map of the lighting devices based on the list of linked devices. This method requires no additional hardware, achieves low-cost positioning, and can determine the relative positional relationship of devices by analyzing the order, frequency, and trigger interval of device triggers.
[0034] To enable those skilled in the art to more readily understand the present invention, Figure 2 This is a device positioning method based on time-series sensing data according to a specific embodiment of the present invention, such as... Figure 2 As shown, the device positioning method based on time-series sensing data includes: S210, acquire sensing data, which includes the unique identifier of the lighting terminal and the trigger timestamp of the lighting terminal.
[0035] In the embodiments of the present invention, the implementation of step S210 can refer to the implementation of step S110 described above, and the present invention will not repeat it here.
[0036] S220, obtain the number of times the lighting terminal is triggered within the first preset time period, and determine the target lighting terminal based on the number of triggers.
[0037] In an embodiment of the present invention, upon obtaining sensing data, the number of times the lighting terminal is triggered within a first preset time period can be acquired. For example, the number of times the lighting terminal is triggered within the preset time period (e.g., one day) can be counted to determine the average daily number of triggers for the lighting terminal. Then, lighting terminals with trigger counts less than a first threshold or trigger counts greater than a second threshold within a second preset time period are removed; the removed lighting terminals are then designated as target lighting terminals.
[0038] For example, if the average daily trigger count of a lighting terminal is too low (below 10 times) or too high (above 300 times), the triggering pattern of that lighting terminal is considered abnormal and may interfere with the adjacency relationship analysis, so it is removed. The removed terminal is designated as the first lighting terminal, and the lighting terminals remaining after removing the first lighting terminal are designated as the target lighting terminals.
[0039] In this system, repeated trigger data from the target lighting terminal within a preset period is retained only once. This means that because the sensing terminal may repeatedly report data within a short period due to environmental interference or continuous triggering, a preset period (i.e., a cooldown period, such as at least a certain time interval between two triggers, like 10 seconds) needs to be defined. Repeated trigger data from the same target lighting terminal within the preset period is considered as one instance, and only the first trigger record is retained. This makes the data more representative of an independent "movement event" rather than sensor jitter, allowing the analysis to better reflect real-world scenarios.
[0040] S230, Determine the linked lighting equipment of the target lighting terminal.
[0041] In an embodiment of the present invention, based on the trigger timestamp of the target lighting terminal, it is determined whether other target lighting terminals are triggered within a preset time before and after the target lighting terminal is triggered; if so, the other target lighting terminals are used as linked lighting devices of the target lighting terminal.
[0042] The trigger timestamp of the target lighting terminal is a pre-processed trigger timestamp.
[0043] In other words, given the target lighting terminal, the trigger timestamp of the target lighting terminal can be used to determine the triggering status of other target lighting terminals within a preset time period before and after the triggering of the target lighting terminal. For example, if the triggering time of target lighting terminal A is 13:25:30 on May 10, 2020, it can be determined whether other target lighting terminals are triggered within one minute after the time 13:25:30 on May 10, 2020. For example, if target lighting terminal B is triggered, then target lighting terminal B is a linked lighting device of target lighting terminal A.
[0044] S240, based on the number of times the target lighting terminal and the linked lighting equipment are triggered together, and the trigger interval between the target lighting terminal and the linked lighting equipment, the average trigger interval between the target lighting terminal and the linked lighting equipment is obtained.
[0045] The number of times the target lighting terminal and the linked lighting equipment are triggered can be understood as the number of times the target lighting terminal and the linked lighting equipment are triggered simultaneously or successively within the time window.
[0046] The trigger interval between the target lighting terminal and the linked lighting equipment can be understood as the time interval between the triggering of the target lighting terminal and the triggering of the linked lighting equipment.
[0047] In an embodiment of the present invention, given the number of triggers and the trigger interval, a target trigger interval duration can be determined; the ratio of the target trigger interval duration to the number of triggers is used as the average trigger interval. For example, if the number of triggers is 3, the first trigger interval is 1 minute, the second trigger interval is 2 minutes, and the third trigger interval is 3 minutes, then the average trigger interval = (1+2+3) / 3 = 2 minutes.
[0048] For example, the data format for the coordinated lighting equipment within t seconds before and after each target lighting terminal is: in, Indicates: Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment ...linked lighting equipment ; Indicates: Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment ...linked lighting equipment ; Indicates: Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment ...linked lighting equipment ,in, Among them, c i This indicates the number of times the linked lighting equipment is triggered within t seconds before and after the target lighting terminal is triggered. i This indicates the average trigger interval.
[0049] S250 determines the list of linked devices based on the number of linkage triggers and the average trigger interval.
[0050] In an embodiment of the present invention, the number of times the target lighting terminal and the linked lighting device are triggered are sorted from largest to smallest to obtain a first sorting list; based on the first sorting list and the preset number of linked lighting devices, a list of linked devices is determined.
[0051] Among them, when it is determined that the number of triggers of the target lighting terminal and the linked lighting equipment is the same, the average trigger intervals of the target lighting terminal triggers and the linked lighting equipment triggers are sorted in ascending order.
[0052] In other words, given the average trigger interval between the target lighting terminal and the linked lighting equipment, the average trigger intervals can be sorted from smallest to largest. The shorter the average trigger interval, the closer the target lighting terminal and the linked lighting equipment are likely to be in space. However, relying solely on the average trigger interval may be affected by accidental events, such as two devices that are far apart being triggered simultaneously because someone passes by at the same time, resulting in a very small average trigger interval. Therefore, it is necessary to combine the trigger frequency to determine the target lighting terminal and the linked lighting device. That is, sort the number of triggers of the target lighting terminal and the linked lighting device in descending order. If the number of triggers of the target lighting terminal and the linked lighting device is the same, sort the average trigger interval of the target lighting terminal trigger and the linked lighting device trigger in ascending order to obtain the first sorted list. For example, the first sorted list includes: target lighting terminal A and linked lighting device S1, target lighting terminal A and linked lighting device S2, target lighting terminal A and linked lighting device S3, target lighting terminal A and linked lighting device S4, and target lighting terminal A and linked lighting device S5. When the preset number of linked lighting devices is 4, target lighting terminal A and linked lighting device S1, target lighting terminal A and linked lighting device S2, target lighting terminal A and linked lighting device S3, and target lighting terminal A and linked lighting device S4 are used as the data of the linked device list.
[0053] For example, when the preset number of linked lighting devices is 4, the data format of the linked lighting devices for each target lighting terminal is as follows: Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment Linked lighting equipment and linkage lighting equipment Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment Linked lighting equipment and linkage lighting equipment Target lighting terminal The linked lighting equipment includes linked lighting equipment Linked lighting equipment Linked lighting equipment and linkage lighting equipment .
[0054] Therefore, the devices are prioritized for sorting by the number of triggers, and then by the average trigger interval if the number of triggers is the same. A higher number of triggers indicates that the two devices are frequently triggered by the same sequence of moving objects, demonstrating a stable and non-random spatiotemporal correlation, which is strong statistical evidence of proximity. A shorter average trigger interval, assuming a guaranteed number of triggers, means that the two devices are likely closer in space, and the time required for a moving object to travel from one to the other is less. This rule effectively avoids the misleading effect of random simultaneous triggers, ensuring that devices higher in the trigger list are more likely to be physically adjacent to the target device.
[0055] S260 generates a topology map of the relative positions of lighting devices based on the list of linked devices.
[0056] In the implementation of this invention, any device in the linked device list is taken as the starting point of the topology map, and the starting point of the topology map is placed at the origin of the two-dimensional coordinate system and marked; based on the order of other devices in the linked device list, according to the preset orientation rules and preset distances, other devices are placed at preset positions of the target lighting terminal to obtain the relative position topology map of the target lighting terminal; the relative position topology map of multiple target lighting terminals is used as the relative position topology map of the lighting equipment.
[0057] For example, taking the triggering data of lighting fixtures in an underground parking garage as an example, the number of triggers and the average time interval of the linked lighting fixtures (i.e., linked lighting devices) within t seconds before and after each lighting fixture (i.e., the target lighting terminal) are counted one by one. The IDs of all the nearest neighbors of each lighting fixture are obtained. A list is preset to store the IDs of the lighting fixtures of the drawn points to avoid duplicate drawing. One lighting fixture is randomly selected as the starting point, and the nearest lighting fixtures that have not been drawn are connected. The IDs of the lighting fixtures of the drawn points are stored in the aforementioned list. The above process is iterated to draw the final topology map of the relative positions of the lighting fixtures.
[0058] In the implementation of this invention, the relative position topology map of lighting equipment provides an indoor navigation function, effectively improving the efficiency of locating specific lighting fixtures in large spaces and helping maintenance personnel intuitively understand the logical relationships between devices. If a device malfunctions or its sensors malfunction, it may affect the triggering modes of its upstream and downstream linked devices, which can be used to issue warnings or assist in locating the fault point.
[0059] According to embodiments of the present invention, the device positioning method based on time-series sensing data can infer the spatial relative positions between devices without the need for GPS, UWB, Bluetooth beacon, or other positioning hardware, or for manual on-site surveying and registration. It relies solely on existing sensing trigger logs uploaded for lighting control, significantly reducing the cost and engineering complexity of acquiring device physical location information. This method is particularly suitable for existing IoT lighting systems with a large number of devices deployed in complex environments (such as underground parking garages, long tunnels, and large parks). Abnormal data is filtered out by removing devices with excessively low trigger counts (potentially due to malfunction or remoteness) or excessively high trigger counts (potentially due to continuous interference), preventing this "noise" data from contaminating the correlation analysis. By comprehensively considering both the number of linkages and the average interval time, a higher number of linkages indicates a stable relationship, while a shorter interval suggests a closer spatial proximity. Finally, a reliable list of linked devices is generated using sorting rules. This transforms a vague time series into a clear and quantifiable device correlation relationship; the generated relative position topology map provides maintenance personnel with an intuitive logical map of the devices.
[0060] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0061] According to one aspect of the present invention, a device positioning system based on time-series sensing data is also proposed. Figure 3 This is a schematic diagram of a device positioning system based on time-series sensing data according to an embodiment of the present invention; as shown. Figure 3 As shown, it includes: The acquisition module 310 is used to acquire sensing data, the sensing data including the unique identifier of the lighting terminal and the trigger timestamp of the lighting terminal; The determining module 320 is used to obtain the number of times the lighting terminal is triggered within a first preset time period, and to determine the target lighting terminal based on the number of triggers; The module 330 is used to determine the linked lighting device of the target lighting terminal, and to obtain the average trigger interval between the triggering of the target lighting terminal and the triggering of the linked lighting device based on the number of times the target lighting terminal and the linked lighting device are linked and the triggering interval time between the target lighting terminal and the linked lighting device. The generation module 340 is used to determine a list of linked devices based on the number of linked triggers and the average trigger interval, and to generate a relative position topology map of the lighting devices based on the list of linked devices.
[0062] According to an embodiment of the present invention, a device positioning system based on time-series sensing data acquires sensing data, including a unique identifier of the lighting terminal and a trigger timestamp of the lighting terminal; acquires the number of triggers of the lighting terminal within a first preset time period, and determines a target lighting terminal based on the number of triggers; determines the linked lighting devices of the target lighting terminal, and obtains the average trigger interval between the triggers of the target lighting terminal and the linked lighting devices based on the number of triggers of the linkage between the target lighting terminal and the linked lighting devices, and the trigger interval time between the target lighting terminal and the linked lighting devices; determines a list of linked devices based on the number of linkage triggers and the average trigger interval, and generates a relative position topology map of the lighting devices based on the list of linked devices. This achieves low-cost positioning without additional hardware, and by analyzing the order, frequency, and trigger interval of device triggers, the relative positional relationships of the devices can be determined.
[0063] Optionally, the trigger timestamp of the lighting terminal is preprocessed to obtain the preprocessed trigger timestamp.
[0064] Optionally, the determining module 320 is specifically used to remove first lighting terminals whose trigger count is less than a first threshold and whose trigger count is greater than a second threshold within a second preset time period; and to use the removed lighting terminals as the target lighting terminals, wherein the repeated trigger data of the target lighting terminals within a preset period is retained once.
[0065] Optionally, module 330 is specifically used to determine, based on the trigger timestamp of the target lighting terminal, whether other target lighting terminals are triggered within a preset time before and after the target lighting terminal is triggered; if so, the other target lighting terminals are used as the linked lighting devices of the target lighting terminal; determine the target trigger interval duration of the trigger interval time of the number of linked triggers; and use the ratio of the target trigger interval duration to the number of linked triggers as the average trigger interval.
[0066] Optionally, the generation module 340 is specifically used to sort the number of linkage triggers between the target lighting terminal and the linked lighting device from largest to smallest to obtain a first sorting list; and to determine the linkage device list based on the first sorting list and a preset number of linked lighting devices; wherein, when it is determined that the number of linkage triggers between the target lighting terminal and the linked lighting device is the same, the average trigger interval between the triggers of the target lighting terminal and the triggers of the linked lighting device is sorted from smallest to largest.
[0067] Optionally, the generation module 340 is specifically used to take any device in the linked device list as the starting point of the topology map, place the starting point of the topology map at the origin of the two-dimensional coordinate system and mark it; based on the order of other devices in the linked device list, according to preset orientation rules and preset distances, place the other devices at preset positions of the target lighting terminal to obtain the relative position topology map of the target lighting terminal; and use the relative position topology maps of multiple target lighting terminals as the relative position topology map of the lighting equipment.
[0068] According to one aspect of the present invention, an electronic device is provided.
[0069] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, an electronic device may include one or more ( Figure 4 Only one is shown in the image. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. In one exemplary embodiment, the electronic device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 4 The structure shown is for illustrative purposes only and does not limit the structure of the terminal device described above. For example, the terminal device may also include components that are more... Figure 4 The more or fewer components shown, or having the same Figure 4 Equivalent functions or ratios shown Figure 4 The functions shown have more different configurations.
[0070] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device positioning method based on time-series sensing data in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0071] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the switching device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0072] This invention proposes a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute a device positioning method based on time-series sensing data.
[0073] The applicant of this invention has provided a detailed description of the embodiments of the invention in conjunction with the accompanying drawings. However, those skilled in the art should understand that the above embodiments are merely preferred embodiments of the invention. The detailed description is only intended to help readers better understand the spirit of the invention and is not intended to limit the scope of protection of the invention. On the contrary, any improvements or modifications made based on the inventive spirit of the invention should fall within the scope of protection of the invention.
[0074] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0075] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
[0076] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the protection scope of the present invention.
Claims
1. A device positioning method based on time-series sensing data, characterized in that, include: S1, acquire sensing data, the sensing data including the unique identifier of the lighting terminal and the trigger timestamp of the lighting terminal; S2, obtain the number of times the lighting terminal is triggered within a first preset time period, and determine the target lighting terminal based on the number of triggers; S3, determine the linked lighting device of the target lighting terminal, and obtain the average trigger interval between the triggering of the target lighting terminal and the triggering of the linked lighting device based on the number of times the target lighting terminal and the linked lighting device are linked and the triggering interval time between the target lighting terminal and the linked lighting device. S4. Based on the number of linkage triggers and the average trigger interval, determine the list of linkage devices, and generate a relative position topology map of the lighting devices based on the list of linkage devices.
2. The device positioning method based on time-series sensing data according to claim 1, characterized in that, The trigger timestamp of the lighting terminal is preprocessed to obtain the preprocessed trigger timestamp.
3. The device positioning method based on time-series sensing data according to claim 1, characterized in that, Determining the target lighting terminal based on the number of triggers includes: Eliminate first lighting terminals whose trigger count is less than the first threshold and whose trigger count is greater than the second threshold within the second preset time period; The removed lighting terminals are used as the target lighting terminals, wherein the repeated trigger data of the target lighting terminals is retained once within a preset period.
4. The device positioning method based on time-series sensing data according to claim 1, characterized in that, Determining the linked lighting equipment of the target lighting terminal includes: Based on the trigger timestamp of the target lighting terminal, determine whether other target lighting terminals were triggered within a preset time before and after the target lighting terminal was triggered; If so, then the other target lighting terminals will be used as the linked lighting devices of the target lighting terminals; The average trigger interval from the triggering of the target lighting terminal to the triggering of the linked lighting device is obtained based on the number of times the target lighting terminal and the linked lighting device are linked, and the trigger interval between the target lighting terminal and the linked lighting device, including: Determine the target trigger interval duration for the trigger interval time of the number of times the linkage is triggered; The ratio of the target trigger interval duration to the number of linked triggers is used as the average trigger interval.
5. The device positioning method based on time-series sensing data according to claim 1, characterized in that, Based on the number of triggers and the average trigger interval, a list of linked devices is determined, including: The number of times the target lighting terminal and the linked lighting device are linked are sorted from largest to smallest to obtain a first sorted list; The list of linked devices is determined based on the first sorting list and the preset number of linked lighting devices; In cases where the number of triggers of the target lighting terminal and the linked lighting device are the same, the average trigger intervals of the target lighting terminal and the linked lighting device are sorted in ascending order.
6. The device positioning method based on time-series sensing data according to claim 1, characterized in that, Based on the list of linked devices, a relative position topology map of the lighting devices is generated, including: Take any device from the list of linked devices as the starting point of the topology diagram, and place and mark the starting point of the topology diagram at the origin of the two-dimensional coordinate system; Based on the order of other devices in the linked device list, and according to preset orientation rules and preset distances, the other devices are placed at preset positions of the target lighting terminal to obtain a relative position topology map of the target lighting terminal. The relative position topology of the multiple target lighting terminals is used as the relative position topology of the lighting equipment.
7. A device positioning system based on time-series sensing data, characterized in that, include: The acquisition module is used to acquire sensing data, which includes a unique identifier of the lighting terminal and a trigger timestamp of the lighting terminal. The determination module is used to obtain the number of times the lighting terminal is triggered within a first preset time period, and to determine the target lighting terminal based on the number of triggers; The module is used to determine the linked lighting device of the target lighting terminal, and to obtain the average trigger interval between the triggering of the target lighting terminal and the triggering of the linked lighting device based on the number of times the target lighting terminal and the linked lighting device are triggered together, and the triggering interval time between the target lighting terminal and the linked lighting device. The generation module is used to determine a list of linked devices based on the number of linked triggers and the average trigger interval, and to generate a relative position topology map of the lighting devices based on the list of linked devices.
8. The device positioning system based on time-series sensing data according to claim 7, characterized in that, The trigger timestamp of the lighting terminal is preprocessed to obtain the preprocessed trigger timestamp.
9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.