Data acquisition interval acquisition method and device, electronic equipment and storage medium

By obtaining and combining historical area lists and calculating data collection intervals, the lack of data collection interval acquisition in target event early warning scenarios is solved, more accurate collection of candidate user location information is achieved, and the accuracy and efficiency of early warnings are improved.

CN118568146APending Publication Date: 2024-08-30ZHEJIANG MEIRI HUDONG NETWORK TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410656429.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the target event early warning scenario, the existing technology lacks an effective data collection interval acquisition method, resulting in the inability to accurately obtain the location information of candidate users, affecting the accuracy and efficiency of early warning.

Method used

By obtaining the historical area list, combining the area list and the usage time list, the data collection interval is calculated, and then a more accurate data collection interval is obtained based on the historical usage time, which is used to collect the location information of candidate users within the target event warning range.

Benefits of technology

It achieves more accurate and precise data collection, improves the quality of obtaining candidate user lists, makes early warnings more rational, avoids being alerted after being close to each other, and improves the efficiency and accuracy of early warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568146A
    Figure CN118568146A
Patent Text Reader

Abstract

The invention provides a data acquisition interval obtaining method and device, electronic equipment and a storage medium, and relates to the field of data processing.The method comprises the steps that a historical area list is obtained, any two historical areas are combined and marked as combined areas based on the historical area list, and therefore a combined area list is obtained; according to the method and the device, the use time list corresponding to any combination area is acquired, so that the use time list set is acquired, the data acquisition interval is acquired based on the use time list set, the data acquisition interval is acquired based on the historical use time, and data is acquired more accurately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method, device, electronic equipment and storage medium for acquiring data collection intervals. Background Art

[0002] The data collection interval is the time interval for collecting data. The data collection interval varies for different usage scenarios. For example, in the performance monitoring scenario, the SDK needs to collect data frequently, and the data collection interval may range from a few seconds to a few minutes; in the sensor data collection scenario, the SDK used for environmental monitoring or device status tracking may set a shorter collection interval, such as collecting temperature, humidity, vibration and other data every few seconds or tens of seconds. However, there is no corresponding dimension for reference in the scenario of obtaining location information for target event warning. How to obtain the data collection interval in the scenario of target event warning for location information is crucial for warning. Summary of the invention

[0003] In view of the above technical problems, the technical solution adopted by the present invention is: a method for obtaining a data collection interval, the method is used to obtain a data collection interval, and collect location information of candidate users within a target event warning range based on the data collection interval, the method comprising the following steps:

[0004] A historical area list is obtained, where the historical area list includes a plurality of historical areas.

[0005] Based on the historical area list, any two historical areas are combined and marked as combined areas, thereby obtaining a combined area list.

[0006] Based on the combined area list, a usage time list corresponding to any combined area is obtained, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from one historical area of ​​the combined area to another historical area of ​​the combined area.

[0007] Get the data collection interval based on the usage time list set.

[0008] The present invention also provides a data collection interval acquisition device, the device comprising:

[0009] The historical area acquisition module is used to acquire a historical area list, wherein the historical area list includes a plurality of historical areas.

[0010] The combined area acquisition module is used to combine any two historical areas based on the historical area list, mark them as combined areas, and thus obtain the combined area list.

[0011] The usage time acquisition module is used to obtain the usage time list corresponding to any combined area based on the combined area list, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from a historical area of ​​the combined area to another historical area of ​​the combined area.

[0012] The data collection interval acquisition module is used to obtain the data collection interval based on the usage time list set.

[0013] According to another aspect of the present invention, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned method.

[0014] According to yet another aspect of the present invention, an electronic device is provided, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0015] The present invention has at least the following beneficial effects:

[0016] In summary, a historical area list is obtained, and based on the historical area list, any two historical areas are combined and marked as combined areas, thereby obtaining a combined area list, and based on the combined area list, a usage time list corresponding to any combined area is obtained, thereby obtaining a usage time list set, and based on the usage time list set, a data collection interval is obtained. The present invention obtains the data collection interval based on the historical usage time, collects data more accurately, and thereby obtains a candidate user list more precisely. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A flow chart of a method for obtaining a data collection interval provided in Embodiment 1 of the present invention;

[0019] Figure 2 A flow chart of a method for early warning of a target event provided in Embodiment 1 of the present invention;

[0020] Figure 3 A flow chart of the method of S200 provided in the first embodiment of the present invention;

[0021] Figure 4 A flow chart of another method for early warning of target events provided in Embodiment 1 of the present invention;

[0022] Figure 5 A flowchart of the method of S202 provided in the first embodiment of the present invention;

[0023] Figure 6 A schematic diagram of the structure of a device for obtaining data collection intervals provided in Embodiment 2 of the present invention;

[0024] Figure 7 A schematic diagram of the structure of a target event warning device provided in Embodiment 2 of the present invention;

[0025] Figure 8 A schematic diagram of the structure of a candidate region acquisition submodule provided in Embodiment 2 of the present invention;

[0026] Fig. 9 A schematic diagram of the structure of another target event warning device provided in Embodiment 2 of the present invention;

[0027] Fig.10 This is a schematic diagram of the structure of the graded area warning module provided in the second embodiment of the present invention. DETAILED DESCRIPTION

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

[0029] Embodiment 1

[0030] The embodiment of the present invention provides a method for obtaining a data collection interval, the method being used to obtain a data collection interval, and to collect location information of candidate users within a target event warning range based on the data collection interval, such as Figure 1 As shown, the method comprises the following steps:

[0031] S001, obtaining a historical area list, wherein the historical area list includes a plurality of historical areas.

[0032] S002, based on the historical area list, combining any two historical areas and marking them as combined areas, thereby obtaining a combined area list.

[0033] S003, based on the combined area list, obtain a usage time list corresponding to any combined area, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from a historical area of ​​the combined area to another historical area of ​​the combined area.

[0034] S004, obtaining a data collection interval based on the usage time list set.

[0035] Specifically, in one embodiment of the present invention, an average value of all usage times is obtained, and the average value of all usage times is used as a data collection interval.

[0036] Specifically, in another embodiment of the present invention, the median of all usage times is obtained, and the median of all usage times is used as the data collection interval.

[0037] Furthermore, after S004, the method further includes: obtaining the latest time of moving from one historical area to another historical area, adding the latest time to the usage time list set, thereby updating the data collection interval.

[0038] In summary, a historical area list is obtained, and based on the historical area list, any two historical areas are combined and marked as combined areas, thereby obtaining a combined area list, and based on the combined area list, a usage time list corresponding to any combined area is obtained, thereby obtaining a usage time list set, and based on the usage time list set, a data collection interval is obtained. The present invention obtains the data collection interval based on the historical usage time, thereby obtaining a candidate user list more accurately.

[0039] Further, such as Figure 2 As shown, a target event early warning method provided by the present application includes the following process:

[0040] S100, obtaining the target event occurrence location and the target event warning range.

[0041] Specifically, the target event can be determined according to actual needs, for example, the target event is an earthquake, a fire, etc.

[0042] Those skilled in the art know that any method of obtaining the location of an event in the prior art falls within the scope of protection of the present invention. For example, when the target event is an earthquake, the location of the earthquake and the possible affected range can be obtained through real-time earthquake monitoring instruments, and the possible affected range can be used as an earthquake warning range.

[0043] S200, based on the target event occurrence location and the target event warning range, obtain a candidate area list and a candidate user list corresponding to each candidate area, wherein the candidate area list includes several candidate areas within the target event warning range, and the candidate user list includes several candidate users within the candidate areas.

[0044] Specifically, the candidate region is represented by geohash.

[0045] Furthermore, the candidate area is represented by a geohash of 5 characters, that is, the candidate area is represented by geohash 5. The candidate area in the present invention is represented by geohash 5, which is a rectangular area of ​​10 square kilometers. The location range of many counties is also within 10 square kilometers.

[0046] S300, obtaining the candidate distance between the target event occurrence location and each candidate area, and sorting all candidate areas from small to large according to the candidate distance, thereby obtaining a sorted area list.

[0047] Specifically, obtaining the candidate distance between the target event location and each candidate area specifically includes: obtaining the distance between the target event location and the center of each candidate area as the candidate distance. Specifically, if the sorted area list A = {A1, A2, ..., A i , …, A m}, A i is the i-th sorting region, i ranges from 1 to m, m is the number of candidate regions, where the candidate distance corresponding to the i-th sorting region is less than the candidate distance corresponding to the i+1-th sorting region. i ={A i,1 , A i,2 , …, A i,j , …, A i,ni}, A i,j Yes A i The corresponding candidate user list, i ranges from 1 to ni, ni is A i The number of corresponding candidate users.

[0048] S400: Based on the sorted area list and the candidate user list corresponding to each candidate area, an early warning is issued to the candidate user.

[0049] Specifically, based on the maximum number of warnings per unit time, candidate users are warned in the order of the sorting areas.

[0050] In an exemplary description of the present invention, if the maximum number of warnings per unit time is 500,000 people, the sorted area list A = {A1, A2, A3}, A1 is 200,000 people, A2 is 400,000 people, and A3 is 500,000 people, when issuing warnings, in the first unit time, warnings are issued to the 200,000 people in area A1 and the 300,000 people in area A2; in the second unit time, warnings are issued to the remaining 100,000 people in area A2 and the 400,000 people in area A3; and in the third unit time, warnings are issued to the remaining 100,000 people in area A3.

[0051] In summary, the target event occurrence location and the target event warning range are obtained, and based on the target event occurrence location and the target event warning range, a candidate area list and a candidate user list corresponding to each candidate area are obtained, the target event occurrence location and the candidate distance of each candidate area are obtained, and all candidate areas are sorted from small to large according to the candidate distance, so as to obtain a sorted area list, and based on the sorted area list and the candidate user list corresponding to each candidate area, the candidate users are warned. The present invention warns the candidate users based on the geographical location, making the warning more reasonable and avoiding the situation where the distance is close but the warning is given.

[0052] Specifically, Figure 3 As shown, S200 also includes obtaining a candidate user list corresponding to each candidate area through the following steps:

[0053] S210: Collect location information of candidate users based on a data collection interval.

[0054] Specifically, the SDK is installed on the personal terminal of the candidate user to collect the location information of the candidate user.

[0055] S220, based on the location information of the candidate users, the candidate users are divided into candidate areas, so as to obtain a candidate user list corresponding to each candidate area. It can be understood that the location information of the candidate users is collected once every data collection interval, and the candidate area in which the candidate users are located is determined based on the location information of the candidate users, so as to generate a candidate user list corresponding to the candidate area.

[0056] It can be understood that the candidate user list is stored in the form of a list. If a candidate user moves from one candidate area to another candidate area, the candidate user is added to the end of the candidate user list corresponding to the other candidate area, thereby updating the candidate user list of the other candidate area. Therefore, when issuing an early warning, if a candidate user list is in different unit time periods, the early warning is issued according to the order of the candidate users in the candidate user list, thereby achieving the preferred early warning of the candidate users who are stably in the candidate area.

[0057] Further, such as Figure 4 As shown, after obtaining the target event location and the candidate distance of each candidate area in S200, the following steps are also included:

[0058] S201, based on the candidate distances, classify the candidate areas into levels, and obtain a level area list, wherein the level area list includes several levels, and any level includes several candidate areas under the level; wherein the difference between any two candidate distances under any level is less than a preset distance threshold.

[0059] Specifically, the hierarchical area list C = {C1, C2, ..., C r , …, C s}, C r ={C r,1 , C r,2 , …, C r,g , …, C r,zr}, C r,g is the gth candidate region at the rth level, g ranges from 1 to zr, zr is the number of candidate regions at the rth level, r ranges from 1 to s, s is the number of divided levels.

[0060] S202: Based on the hierarchical area list and the candidate user list corresponding to each candidate area, an early warning is issued to the candidate user.

[0061] Furthermore, Figure 5 As shown, in S202, based on the hierarchical area list and the candidate user list corresponding to each candidate area, early warning of the candidate user specifically includes:

[0062] S2021, obtain the maximum number of warnings per unit time.

[0063] S2022: If the sum of the number of candidate users corresponding to the candidate areas at any level is greater than the maximum warning number, obtain the ratio of the number of candidate users corresponding to the candidate areas at that level.

[0064] S2023: Based on the maximum number of warnings within a unit time, warnings are issued to candidate users in the candidate area according to the ratio of the number of candidate users corresponding to the candidate areas.

[0065] In summary, based on the candidate distance, the candidate areas are graded, a list of graded areas is obtained, and the maximum number of warnings per unit time is obtained. If the sum of the number of candidate users corresponding to the candidate areas at any level is greater than the maximum number of warnings, the ratio of the number of candidate users corresponding to the candidate areas at that level is obtained. Based on the maximum number of warnings per unit time, the candidate users in the candidate areas are warned according to the ratio of the number of candidate users corresponding to the candidate areas. The present invention warns through the ratio of the number of candidate users corresponding to the candidate areas at the same level, thereby realizing simultaneous warnings for multiple areas. Compared with warnings directly based on distance, this method realizes multi-point touch.

[0066] Embodiment 2

[0067] Embodiment 2 of the present invention provides a data collection interval acquisition device, such as Figure 6 As shown, the device comprises:

[0068] The historical area acquisition module is used to acquire a historical area list, wherein the historical area list includes a plurality of historical areas.

[0069] The combined area acquisition module is used to combine any two historical areas based on the historical area list, mark them as combined areas, and thus obtain the combined area list.

[0070] The usage time acquisition module is used to obtain the usage time list corresponding to any combined area based on the combined area list, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from a historical area of ​​the combined area to another historical area of ​​the combined area.

[0071] The data collection interval acquisition module acquires the data collection interval based on the usage time list set.

[0072] In one embodiment of the present invention, the device further comprises:

[0073] The average value acquisition module is used to acquire the average value of all usage time and use the average value of all usage time as the data collection interval.

[0074] In another embodiment of the present invention, the device further comprises:

[0075] The median value acquisition module is used to obtain the median of all usage times and use the median of all usage times as the data collection interval.

[0076] Specifically, the device further includes an updating module for acquiring the latest time of moving from one historical area to another historical area, adding the latest time to the usage time list set, thereby updating the data collection interval.

[0077] like Figure 7 As shown, a target event early warning device provided by the present application includes:

[0078] The target event acquisition module is used to obtain the target event occurrence location and target event warning range;

[0079] A candidate area acquisition module is used to acquire a candidate area list and a candidate user list corresponding to each candidate area based on the target event occurrence location and the target event warning range, wherein the candidate area list includes a number of candidate areas within the target event warning range, and the candidate user list includes a number of candidate users within the candidate areas;

[0080] A sorting region acquisition module is used to obtain the target event location and the candidate distance of each candidate region, and sort all candidate regions from small to large according to the candidate distance, so as to obtain a sorting region list;

[0081] The early warning module is used to warn the candidate users based on the sorted area list and the candidate user list corresponding to each candidate area.

[0082] In a specific embodiment of the present invention, Figure 8 As shown, the candidate region acquisition module includes:

[0083] The location information acquisition submodule is used to acquire the data collection interval and collect the location information of the candidate user based on the data collection interval.

[0084] The candidate area acquisition submodule is used to obtain location information based on candidate users, divide candidate users into candidate areas, and thus obtain a candidate user list corresponding to each candidate area.

[0085] Specifically, Fig. 9 As shown, the device also includes:

[0086] The level area acquisition module is used to classify the candidate areas based on the candidate distances and obtain a level area list, wherein the level area list includes several levels, and any level includes several candidate areas under the level; wherein the difference between any two candidate distances under any level is less than a preset distance threshold.

[0087] The graded area warning module is used to warn candidate users based on the graded area list and the candidate user list corresponding to each candidate area.

[0088] In a specific embodiment of the present invention, Fig.10 As shown, the level area warning module includes:

[0089] The maximum warning quantity acquisition submodule is used to obtain the maximum number of warnings per unit time.

[0090] The quantity ratio acquisition submodule is used to acquire the quantity ratio of candidate users corresponding to the candidate areas at any level if the sum of the quantity of candidate users corresponding to the candidate areas at that level is greater than the maximum warning quantity.

[0091] The quantity ratio warning submodule is used to issue warnings to candidate users in a candidate area based on the maximum warning quantity in a unit time and the quantity ratio of candidate users corresponding to the candidate area.

[0092] Embodiment 3

[0093] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps:

[0094] Obtain a historical area list, wherein the historical area list includes a plurality of historical areas;

[0095] Based on the historical area list, any two historical areas are combined and marked as combined areas, thereby obtaining a combined area list;

[0096] Based on the combined area list, obtaining a usage time list corresponding to any combined area, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from one historical area of ​​the combined area to another historical area of ​​the combined area;

[0097] Get the data collection interval based on the usage time list set.

[0098] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.

[0099] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A method for obtaining a data collection interval, the method being used to obtain a data collection interval and to collect location information of candidate users within a target event warning range based on the data collection interval, characterized in that: The method comprises the following steps: Obtain a historical area list, wherein the historical area list includes a plurality of historical areas; Based on the historical area list, any two historical areas are combined and marked as combined areas, thereby obtaining a combined area list; Based on the combined area list, obtaining a usage time list corresponding to any combined area, thereby obtaining a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from one historical area of ​​the combined area to another historical area of ​​the combined area; Get the data collection interval based on the usage time list set.

2. The data collection interval acquisition method according to claim 1, characterized in that: Based on the usage time list set, obtaining the data collection interval specifically includes the following steps: Get the average of all usage times and use the average of all usage times as the data collection interval.

3. The method for obtaining data collection interval according to claim 1, characterized in that: Based on the usage time list set, obtaining the data collection interval specifically includes the following steps: Get the median of all usage times and use the median of all usage times as the data collection interval.

4. The method for obtaining data collection interval according to claim 1, characterized in that: After obtaining the data collection interval based on the usage time list set, it also includes: Get the latest time of moving from one historical area to another historical area, add the latest time to the used time list set, and update the data collection interval.

5. A data collection interval acquisition device, characterized in that: The device comprises: A historical area acquisition module, used to acquire a historical area list, wherein the historical area list includes a plurality of historical areas; A combined area acquisition module is used to combine any two historical areas based on the historical area list, mark them as combined areas, and thus obtain the combined area list; A usage time acquisition module is used to acquire a usage time list corresponding to any combined area based on the combined area list, thereby acquiring a usage time list set, wherein the usage time list includes a plurality of usage times, and the usage time is the time used from one historical area of ​​the combined area to another historical area of ​​the combined area; The data collection interval acquisition module is used to obtain the data collection interval based on the usage time list set.

6. The data acquisition interval acquisition device according to claim 5, characterized in that: The data collection interval acquisition module includes: The average value acquisition module is used to acquire the average value of all usage time and use the average value of all usage time as the data collection interval.

7. The data acquisition interval acquisition device according to claim 5, characterized in that: The data collection interval acquisition module includes: The median value acquisition module is used to obtain the median of all usage times and use the median of all usage times as the data collection interval.

8. The data acquisition interval acquisition device according to claim 5, characterized in that: Also includes: The update module is used to obtain the latest time of moving from one historical area to another historical area, add the latest time to the use time list set, and thus update the data collection interval.

9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the data collection interval acquisition method as described in any one of claims 1-4.

10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.

Citation Information

Cited By

  • Target acquisition time interval acquisition method, electronic equipment and storage medium

    CN119360214A