A method, system, device and storage medium for trajectory accompanying analysis
Through intelligent hot and cold storage and efficient trajectory point collision algorithm, combined with the GeoMesa toolkit, the problem of low speed and accuracy of trajectory accompanying analysis is solved, achieving efficient trajectory data management and reducing storage costs.
Patent Information
- Application Number
- CN202110872432.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-07-30
AI Technical Summary
The speed of trajectory accompanying analysis in the existing technology cannot be further improved, and different collision methods have a greater impact on the accuracy and calculation amount of subsequent analysis, resulting in low analysis efficiency.
Through intelligent hot and cold storage management of massive trajectory data, the efficient trajectory point collision algorithm and GeoMesa spatiotemporal toolkit are used to simplify coding and query work, and through the combination of four collision methods, the calculation amount is reduced and the analysis speed and accuracy are improved.
It improves the speed and accuracy of trajectory accompanying analysis, reduces the calculation amount and storage cost, and simplifies the trajectory data management and encoding process.
Smart Images

Figure CN113704342B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis, and more specifically, to a method, system, device and storage medium for trajectory analysis. Background Art
[0002] With the rapid development of satellites, wireless networks, and positioning facilities, the trajectory data of mobile objects has increased dramatically. Trajectory analysis of trajectory data can analyze the spatiotemporal characteristics of road congestion, hot spots of personnel activities, and abnormal vehicles, etc. It is applicable to a wide range of business scenarios and plays a huge role in industries such as security and transportation.
[0003] Accompanying analysis is a common analysis task for trajectory data. In security scenarios, there are solutions that use the GeoHash algorithm to encode spatiotemporal data, store spatiotemporal data and label data in the distributed database HBase (HBase is a distributed, column-oriented open source database), and use Bitmap technology to establish the spatiotemporal library index table and the label library index table to perform multi-dimensional / accompanying analysis on trajectory data; in mobile big data scenarios, GeoHash is also used to encode trajectory data, and the trajectory points of the target are spliced according to the time dimension to form a target trajectory record; and a method is proposed to calculate the similarity weight based on the overlap of the GeoHash encoded string to achieve the accompanying analysis of the trajectory. In the existing solution, the calculation method for finding suspected accompanying targets from all data based on the target trajectory points is relatively complex and time-consuming, resulting in the inability to further improve the speed of accompanying analysis. In addition, the number and quality of target points obtained from the database vary greatly for different collision methods, which has a great impact on the accuracy and calculation amount of subsequent accompanying analysis. Summary of the invention
[0004] In view of this, the purpose of the embodiments of the present invention is to propose a method, system, computer device and computer-readable storage medium for trajectory concomitant analysis. The present invention improves the speed and accuracy of concomitant analysis and reduces the computational complexity of concomitant analysis by intelligently managing hot and cold storage of massive trajectory data and using an efficient trajectory point collision algorithm. It also manages trajectory data intelligently and reduces storage costs through an optional time-layered storage strategy. It simplifies the workload of trajectory data encoding and querying through the GeoMesa spatiotemporal toolkit. It also reduces the computational complexity of concomitant analysis and improves the speed and accuracy of concomitant analysis through a combination of four collision methods.
[0005] Based on the above purpose, an embodiment of the present invention provides a method for trajectory accompaniment analysis, comprising the following steps: obtaining original trajectory data of a collection object, encoding the original trajectory data in spatial and temporal dimensions, and storing the encoded trajectory data in a database; in response to receiving a query instruction, parsing the query instruction into a row key range of a storage field of the database, and returning trajectory data that meets the query instruction according to the row key range; performing a collision on the trajectory data, and obtaining adjacent point data from the database according to the collision result; and performing an accompaniment analysis on the adjacent point data to obtain an accompanying number and an accompanying similarity of a target number.
[0006] In some implementations, encoding the original trajectory data in spatial and temporal dimensions includes: processing the temporal data and the spatial data using a binary method according to a preset accuracy, and interleaving the processed temporal data and spatial data together for encoding.
[0007] In some embodiments, obtaining neighboring point data from the database according to the collision result includes: using a first number of neighborhood and trajectory point data in the spatial dimension, and using a second number of time slices before and after and the trajectory point time slices in the time dimension.
[0008] In some implementations, the accompanying analysis of the adjacent point data includes: removing duplicate numbers generated by collision with each target number, aggregating the collided numbers, and arranging the aggregated results in descending order.
[0009] In another aspect of an embodiment of the present invention, a system for trajectory accompaniment analysis is provided, comprising: an encoding module, configured to obtain original trajectory data of a collection object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in a database; a query module, configured to, in response to receiving a query instruction, parse the query instruction into a row key range of a storage field of the database, and return trajectory data that meets the query instruction according to the row key range; a collision module, configured to perform a collision on the trajectory data, and obtain adjacent point data from the database according to the collision result; and an analysis module, configured to perform an accompaniment analysis on the adjacent point data to obtain an accompanying number and an accompanying similarity of a target number.
[0010] In some embodiments, the encoding module is configured to: process the time data and the space data using a binary method according to a preset accuracy, and interleave the processed time data and space data together for encoding.
[0011] In some embodiments, the collision module is configured to: use a first number of neighbors and trajectory point data in the spatial dimension, and use a second number of time slices before and after and the trajectory point time slices in the time dimension.
[0012] In some implementations, the analysis module is configured to: deduplicate numbers resulting from collision with each target number, aggregate the collided numbers, and arrange the aggregated results in descending order.
[0013] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores computer instructions executable on the processor, and the instructions implement the steps of the above method when executed by the processor.
[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.
[0015] The present invention has the following beneficial technical effects: by intelligently managing hot and cold storage of massive trajectory data and using an efficient trajectory point collision algorithm, the speed and accuracy of the accompanying analysis are improved, and the computational complexity of the accompanying analysis is reduced; by using an optional time-layered storage strategy, the trajectory data is intelligently managed to reduce storage costs; by using the GeoMesa spatiotemporal toolkit, the workload of trajectory data encoding and query is simplified; and by combining four collision methods, the computational complexity of the accompanying analysis is reduced, and the speed and accuracy of the accompanying analysis are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A schematic diagram of an embodiment of a method for trajectory accompanying analysis provided by the present invention;
[0018] Figure 2 A schematic diagram of an embodiment of a system for trajectory accompanying analysis provided by the present invention;
[0019] Figure 3 A schematic diagram of the hardware structure of an embodiment of a computer device for trajectory accompanying analysis provided by the present invention;
[0020] Figure 4A schematic diagram of an embodiment of a computer storage medium for trajectory accompanying analysis provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.
[0023] According to a first aspect of the embodiments of the present invention, an embodiment of a method for trajectory accompanying analysis is proposed. Figure 1 Shown is a schematic diagram of an embodiment of the trajectory accompanying analysis method provided by the present invention.
[0024] like Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0025] S1. Acquire the original trajectory data of the collected object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in a database;
[0026] S2, in response to receiving a query instruction, parsing the query instruction into a row key range of the database storage field, and returning trajectory data that meets the query instruction according to the row key range;
[0027] S3, performing a collision on the trajectory data, and acquiring adjacent point data from the database according to the collision result; and
[0028] S4. Perform accompanying analysis on the adjacent point data to obtain the accompanying number and accompanying similarity of the target number.
[0029] Get the original trajectory data of the collected object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in the database. Get the original data of the collected object, process it with the spatial / temporal encoding algorithm of the GeoMesa toolkit, and store it in HBase. Optionally, you can specify a time-tiered storage strategy to achieve intelligent management of hot and cold storage of trajectory data.
[0030] In some embodiments, the encoding of the spatial and temporal dimensions of the original trajectory data includes: according to a preset accuracy, using binary division to process the time data and the spatial data respectively, and interweaving the processed time data and spatial data together for encoding. The trajectory point data of the acquisition object is obtained, and the spatial and temporal dimensions in the trajectory data are Z3 encoded through the GeoMesa toolkit, and combined as part of the field of the row key of the data storage, and finally, the trajectory data is stored in HBase. Z3 encoding refers to slicing and interweaving the time and space data of the trajectory point according to a similar GeoHash algorithm. Among them, the spatial data processing method is consistent with the binary division of GeoHash. The time data starts from 0:00 on January 1, 1970, and the number of weeks from this time point is taken as the Epoch Week. Within each week, according to the set level, it is sliced according to days / hours / minutes (here it is selected to be sliced by minutes), and binary division is performed, and finally interspersed with the processing result of the spatial data as the Z3 encoding result to obtain the Z value. Optionally, when writing trajectory data into HBase, a time-tiered storage strategy can be specified. When the trajectory data exceeds a certain time, the level of the corresponding data directory is set to COLD, thus realizing intelligent management of hot and cold storage of trajectory data.
[0031] In response to receiving a query instruction, the query instruction is parsed into a row key range of the database storage field, and trajectory data that meets the query instruction is returned according to the row key range. The query statement is parsed by GeoMesa, and the query statement is converted into a scan+file statement to quickly obtain the corresponding trajectory record from HBase.
[0032] The GeoMesa toolkit parses the query conditions specified by the user into the row key range of the HBase storage field, performs batch scan operations, and returns the trajectory data that meets the conditions for the user to use for subsequent analysis. For example, if the user sets the query condition to a specified time period within a specified area, GeoMesa parses it into a scan+filter statement containing the start and end scan ranges, and obtains the corresponding data from HBase.
[0033] The trajectory data is collided, and the adjacent point data is obtained from the database according to the collision result. By performing four types of collisions on the trajectory data, the adjacent point data is quickly and efficiently obtained from HBase according to the collision results. In trajectory analysis, collision generally refers to quickly finding the required data or trajectory points in the database.
[0034] The target trajectory is sorted into four batches of collision areas according to full trajectory point sampling, motion trajectory supplementary point sampling, head and tail point sampling, and head, middle and tail point sampling, and a batch of associated numbers are obtained by collision in the space-time library; the four collision modes are as follows:
[0035] a. Full trajectory collision: remove the dwelling points (for example, if they are together in the office all day but not together after get off work, the weight of the collision point is too high but actually invalid) or reduce the weight of the dwelling point. Generally, two points are selected, outliers are removed, duplicates are removed, and the top N collision results are selected. Considering efficiency and accuracy, the top 2000 are generally selected.
[0036] b. Supplementary sampling collision: There are few trajectory points of the target number and the trajectory points of the number to be collided, and it is not easy to collide; therefore, supplementary sampling is performed on the trajectory points to enrich the collision points and make the result more accurate; finally, the topN are taken.
[0037] c. Head-to-tail collision: It is mainly used to deal with the situation where the target track point and the accompanying track point are very different. For example, if there are few track points of the target number, the collision result must be unsatisfactory; or if there are few track points to be collided, the collision effect is not good. Finally, take M groups of results (M is set to 800 as the upper limit). However, if there are many collision results, such as more than N, the calculation result of this method is abandoned.
[0038] d. Head-tail middle collision: Similar to head-tail collision, but the middle point is also collided during the collision, and only when all three points collide, it is retained; finally, M groups of results are taken (M is set to 800 as the upper limit). However, if there are many collision results, such as exceeding M, the calculation result of this method is abandoned. (The middle point refers to the track point in the target number track point with the smallest sum of the variances with the head and tail points).
[0039] In some embodiments, obtaining the neighboring point data from the database according to the collision result includes: using a first number of neighborhoods and the trajectory point data itself in the spatial dimension, and using a second number of time slices before and after and the trajectory point itself in the time dimension. The collision of trajectory point data generally uses 8 neighborhoods (adjacent GeoHash encoding areas) + the trajectory point itself in the spatial range; the time dimension uses two time slices before and after. Considering that the data of the previous and next 2 minutes may be less, four time slices before and after + the time slice of the trajectory point itself are used here. That is, as long as the data is within this query range, it can be returned as a collision result. According to the collision rule, the above 4 types of collisions are converted into corresponding query statements for query.
[0040] Perform concomitant analysis on the adjacent point data to obtain the concomitant number and concomitant similarity of the target number. Perform aggregation calculation on the trajectory point data, sort the aggregation results in descending order to obtain the TopN, obtain a batch of concomitant trajectories, and obtain the concomitant number and concomitant similarity of the specified number through the concomitant analysis algorithm. Concomitant analysis is a data mining method for spatiotemporal data. It calculates the concomitant target and concomitant similarity by giving the target information.
[0041] In some embodiments, the accompanying analysis of the adjacent point data includes: removing duplicates from the numbers that collide with each target number, aggregating the numbers that collide, and arranging the aggregation results in descending order. According to the set query conditions, the trajectory data of the target number is obtained, and outliers are removed; 4 types of collision operations are performed on the target trajectory, and a batch of related numbers are obtained from the collision in HBase according to the collision points; generally topN is taken (if the accuracy requirement is high, N is taken a larger point, generally 2000 numbers are taken), and the numbers that collide with each target number point are removed at the same time; according to the mobile phone number, the collision results are aggregated, the aggregation results are arranged in descending order, and TopN is taken for accompanying analysis; outliers are removed from the trajectory of the associated number, and then the accompanying degree is calculated according to the trajectory points, and the accompanying trajectory is output in descending order of the accompanying similarity.
[0042] The embodiment of the present invention uses the GeoMesa toolkit to implement complex data encoding and query statement parsing, which is simple and convenient, without the need to write complex code, thereby reducing the amount of code development and the complexity of development; rewrites the GeoMesa data writing logic, expands support for the HBase time-tiered storage strategy, implements intelligent hot and cold storage management of trajectory data, reduces storage space occupancy, and reduces storage costs; and through a combination of four collision methods, enables rapid acquisition of corresponding trajectory data from HBase, reduces the amount of computational effort in accompanying analysis, and improves the speed and accuracy of accompanying analysis.
[0043] It should be pointed out in particular that the various steps in the various embodiments of the above-mentioned trajectory accompaniment analysis method can be cross-linked, replaced, added, and deleted. Therefore, these reasonable permutations, combinations and transformations of the trajectory accompaniment analysis method should also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
[0044] Based on the above purpose, the second aspect of the embodiment of the present invention provides a system for trajectory accompanying analysis. Figure 2 As shown, the system 200 includes the following modules: an encoding module, configured to obtain the original trajectory data of the collection object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in a database; a query module, configured to parse the query instruction into a row key range of the database storage field in response to receiving a query instruction, and return the trajectory data that meets the query instruction according to the row key range; a collision module, configured to collide the trajectory data and obtain adjacent point data from the database according to the collision result; and an analysis module, configured to perform accompanying analysis on the adjacent point data to obtain the accompanying number and accompanying similarity of the target number.
[0045] In some embodiments, the encoding module is configured to: process the time data and the space data using a binary method according to a preset accuracy, and interleave the processed time data and space data together for encoding.
[0046] In some embodiments, the collision module is configured to: use a first number of neighbors and trajectory point data in the spatial dimension, and use a second number of time slices before and after and the trajectory point time slices in the time dimension.
[0047] In some implementations, the analysis module is configured to: deduplicate numbers resulting from collision with each target number, aggregate the collided numbers, and arrange the aggregated results in descending order.
[0048] The embodiment of the present invention performs intelligent hot and cold storage management on massive trajectory data, and uses an efficient trajectory point collision algorithm to improve the speed and accuracy of accompanying analysis and reduce the calculation amount of accompanying analysis. It also uses an optional time-layered storage strategy to intelligently manage trajectory data and reduce storage costs. It simplifies the workload of trajectory data encoding and querying through the GeoMesa spatiotemporal toolkit. It also reduces the calculation amount of accompanying analysis and improves the speed and accuracy of accompanying analysis through a combination of four collision methods.
[0049] Based on the above purpose, a third aspect of an embodiment of the present invention proposes a computer device, including: at least one processor; and a memory, the memory storing computer instructions that can be run on the processor, the instructions being executed by the processor to implement the following steps: S1, obtaining original trajectory data of a collection object, encoding the original trajectory data in spatial and temporal dimensions, and storing the encoded trajectory data in a database; S2, in response to receiving a query instruction, parsing the query instruction into a row key range of a storage field of the database, and returning trajectory data that meets the query instruction according to the row key range; S3, performing a collision on the trajectory data, and obtaining adjacent point data from the database according to the collision result; and S4, performing an accompanying analysis on the adjacent point data to obtain an accompanying number and an accompanying similarity of a target number.
[0050] In some implementations, encoding the original trajectory data in spatial and temporal dimensions includes: processing the temporal data and the spatial data using a binary method according to a preset accuracy, and interleaving the processed temporal data and spatial data together for encoding.
[0051] In some embodiments, obtaining neighboring point data from the database according to the collision result includes: using a first number of neighborhood and trajectory point data in the spatial dimension, and using a second number of time slices before and after and the trajectory point time slices in the time dimension.
[0052] In some implementations, the accompanying analysis of the adjacent point data includes: removing duplicate numbers generated by collision with each target number, aggregating the collided numbers, and arranging the aggregated results in descending order.
[0053] The embodiment of the present invention performs intelligent hot and cold storage management on massive trajectory data, and uses an efficient trajectory point collision algorithm to improve the speed and accuracy of accompanying analysis and reduce the calculation amount of accompanying analysis. It also uses an optional time-layered storage strategy to intelligently manage trajectory data and reduce storage costs. It simplifies the workload of trajectory data encoding and querying through the GeoMesa spatiotemporal toolkit. It also reduces the calculation amount of accompanying analysis and improves the speed and accuracy of accompanying analysis through a combination of four collision methods.
[0054] like Figure 3 , which is a schematic diagram of the hardware structure of an embodiment of the computer device for the above-mentioned trajectory accompanying analysis provided by the present invention.
[0055] As Figure 3 Taking the device shown as an example, the device includes a processor 301 and a memory 302.
[0056] The processor 301 and the memory 302 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0057] The memory 302 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method of trajectory accompanying analysis in the embodiment of the present application. The processor 301 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 302, that is, the method of trajectory accompanying analysis in the above method embodiment is implemented.
[0058] The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the method of trajectory accompanying analysis, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 302 may optionally include a memory remotely arranged relative to the processor 301, and these remote memories may be connected to the local module 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.
[0059] Computer instructions 303 corresponding to one or more trajectory accompanying analysis methods are stored in the memory 302 , and when executed by the processor 301 , the trajectory accompanying analysis method in any of the above method embodiments is executed.
[0060] The embodiment of the present invention performs intelligent hot and cold storage management on massive trajectory data, and uses an efficient trajectory point collision algorithm to improve the speed and accuracy of accompanying analysis and reduce the calculation amount of accompanying analysis. It also uses an optional time-layered storage strategy to intelligently manage trajectory data and reduce storage costs. It simplifies the workload of trajectory data encoding and querying through the GeoMesa spatiotemporal toolkit. It also reduces the calculation amount of accompanying analysis and improves the speed and accuracy of accompanying analysis through a combination of four collision methods.
[0061] Any embodiment of a computer device that executes the above-mentioned trajectory accompanying analysis method can achieve the same or similar effect as any corresponding embodiment of the above-mentioned method.
[0062] The present invention also provides a computer-readable storage medium, which stores a computer program for performing the above trajectory accompanying analysis method when executed by a processor.
[0063] like Figure 4 FIG. 1 is a schematic diagram of an embodiment of a computer storage medium for the above-mentioned trajectory accompanying analysis provided by the present invention. Figure 4 Taking the computer storage medium shown as an example, the computer readable storage medium 401 stores a computer program 402 that performs the above method when executed by a processor.
[0064] The embodiment of the present invention performs intelligent hot and cold storage management on massive trajectory data, and uses an efficient trajectory point collision algorithm to improve the speed and accuracy of accompanying analysis and reduce the calculation amount of accompanying analysis. It also uses an optional time-layered storage strategy to intelligently manage trajectory data and reduce storage costs. It simplifies the workload of trajectory data encoding and querying through the GeoMesa spatiotemporal toolkit. It also reduces the calculation amount of accompanying analysis and improves the speed and accuracy of accompanying analysis through a combination of four collision methods.
[0065] Finally, it should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program of the method of trajectory accompanying analysis can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the corresponding aforementioned method embodiments.
[0066] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0067] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.
[0068] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0069] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0070] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for trajectory accompanying analysis, characterized in that: The steps include: Acquire original trajectory data of the acquisition object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in a database; In response to receiving a query instruction, parsing the query instruction into a row key range of the database storage field, and returning trajectory data that meets the query instruction according to the row key range; Performing a collision on the trajectory data, and acquiring adjacent point data from the database according to the collision result; as well as Performing accompanying analysis on the adjacent point data to obtain accompanying numbers and accompanying similarities of the target number; The colliding the trajectory data comprises: The trajectory data is sorted into four batches of collision areas according to full trajectory point sampling, motion trajectory supplementary point sampling, head and tail point sampling, and head, middle and tail point sampling, and the collision results are obtained by colliding the collision areas in a spatiotemporal library, and the spatiotemporal library is constructed based on the database; The obtaining the collision result based on the collision of the collision areas in the database comprises: In response to the target number colliding in the time-space library based on the collision area corresponding to the full trajectory point sampling or the collision area corresponding to the motion trajectory supplementary point sampling, the colliding numbers are deduplicated, and the deduplicated colliding numbers are arranged in descending order, and the first preset number of the colliding numbers are used as the collision results; In response to the target number colliding in the time-space library based on the collision area corresponding to the head and tail point sampling or the collision area corresponding to the head, middle and tail point sampling, and the number of colliding numbers does not exceed the preset upper limit value, all the colliding numbers are taken as collision results.
2. The method according to claim 1, characterized in that The encoding of the original trajectory data in spatial and temporal dimensions includes: According to the preset accuracy, the time data and space data are processed by binary division respectively, and the processed time data and space data are interspersed together for encoding.
3. The method according to claim 1, characterized in that The acquiring of adjacent point data from the database according to the collision result comprises: In the spatial dimension, a first number of neighborhoods and the trajectory point data itself are used, and in the time dimension, a second number of time slices before and after and the trajectory point time slice itself are used.
4. The method according to claim 1, characterized in that The accompanying analysis of the adjacent point data comprises: The numbers that collide with each target number are deduplicated, and the collided numbers are aggregated, and the aggregated results are sorted in descending order.
5. A system for trajectory accompanying analysis, characterized in that: include: An encoding module configured to obtain original trajectory data of the acquisition object, encode the original trajectory data in spatial and temporal dimensions, and store the encoded trajectory data in a database; A query module configured to, in response to receiving a query instruction, parse the query instruction into a row key range of the database storage field, and return trajectory data that meets the query instruction according to the row key range; A collision module, configured to perform a collision on the trajectory data and obtain adjacent point data from the database according to the collision result; as well as An analysis module configured to perform accompanying analysis on the adjacent point data to obtain an accompanying number and accompanying similarity of the target number; The collision module is further configured to: The trajectory data is sorted into four batches of collision areas according to full trajectory point sampling, motion trajectory supplementary point sampling, head and tail point sampling, and head, middle and tail point sampling, and the collision results are obtained by colliding the collision areas in a spatiotemporal library, and the spatiotemporal library is constructed based on the database; The collision module is further configured to: In response to the target number colliding in the time-space library based on the collision area corresponding to the full trajectory point sampling or the collision area corresponding to the motion trajectory supplementary point sampling, the colliding numbers are deduplicated, and the deduplicated colliding numbers are arranged in descending order, and the first preset number of the colliding numbers are used as the collision results; In response to the target number colliding in the time-space library based on the collision area corresponding to the head and tail point sampling or the collision area corresponding to the head, middle and tail point sampling, and the number of colliding numbers does not exceed the preset upper limit value, all the colliding numbers are taken as collision results.
6. The system according to claim 5, characterized in that The encoding module is configured to: According to the preset accuracy, the time data and space data are processed by binary division respectively, and the processed time data and space data are interspersed together for encoding.
7. The system according to claim 5, characterized in that The collision module is configured to: In the spatial dimension, a first number of neighborhoods and the trajectory point data itself are used, and in the time dimension, a second number of time slices before and after and the trajectory point time slice itself are used.
8. The system according to claim 5, characterized in that The analysis module is configured to: The numbers that collide with each target number are deduplicated, and the collided numbers are aggregated, and the aggregated results are sorted in descending order.
9. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Data accompanying analysis method and device
CN107229940A
Spatio-temporal trajectory generating method and device
CN107590250A
Algorithm based on space-time trajectory rapid collision
CN109800279A
Multi-track collision analysis method based on behavior track library
CN109977108A
Data analysis method and device and readable storage medium
CN110019402A
