A method for desensitizing spatiotemporal trajectory data
Through hexagonal gridding and heuristic neighbor local search methods, the problem of loss of real data information and low efficiency in high-dimensional trajectory data desensitization is solved, fast and effective trajectory data desensitization is achieved, and data mining is ensured. value while improving processing efficiency.
Patent Information
- Application Number
- CN202010831981.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-08-18
AI Technical Summary
The existing rectangular gridding method suffers from the loss of real data information and low desensitization efficiency when processing high-dimensional trajectory data. Especially in complex spatiotemporal trajectory data, it is difficult to ensure data mining value and privacy protection while improving data efficiency. processing efficiency.
The hexagonal grid method is used to desensitize trajectory data, and combined with the heuristic neighbor local search method, the position-sensitive data is quickly desensitized to ensure that the desensitized data set still has high data mining value.
Through hexagonal gridding and heuristic neighbor local search methods, rapid desensitization is achieved, the time complexity of data processing is reduced, the value of data mining and processing efficiency are improved, and it is suitable for application scenarios of massive real-time trajectory data.
Smart Images

Figure CN112035873B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and more specifically relates to a method for desensitizing spatiotemporal trajectory data. Background Art
[0002] With the development of mobile communication technology and positioning technology, a large number of mobile positioning devices have emerged in recent years, such as smart phones, Beidou positioning systems, car navigation systems, etc. The emergence of these mobile devices has enabled service providers and research institutions to collect a large amount of user location data. Through these rich location data, many optimization decisions can be made and are closely related to our lives, such as traffic planning and management optimization decisions, and optimized business recommendations based on the paths of mobile objects. However, in the actual operation process, a series of security issues often arise, such as data leakage.
[0003] At present, scholars at home and abroad have made a lot of research on privacy protection, and proposed suppression algorithms that can balance the strength of privacy protection and ensure data practicality. Pan et al. used the direction and speed of the location points to form a large set of location points with similar behavior patterns to achieve the effect of spatial fuzzification. Zhao Jing et al. used the relationship between privacy relevance and data utility to propose that when trajectory data is anonymized, the global suppression operation of location data can be improved to only suppress part of the location data, which effectively improves the practicality of the data. However, in practical applications, these methods have shown shortcomings for increasingly complex high-dimensional trajectory data. Due to the high-dimensional characteristics of the data set, the blindness of the suppression method causes a large loss of real information in the data, and therefore cannot guarantee the data mining value of the desensitized data set.
[0004] Service providers and research institutions currently widely use the GeoHash rectangular gridding method to desensitize trajectory data. The principle of GeoHash is to encode longitude and latitude according to the region, and convert them into codes with different digits according to different grid precisions, and the codes in the same region are the same. However, rectangular algorithms such as GeoHash will result in large differences in the unit area of geographic units in regions of different dimensions, and in commonly used geographic range queries, the query method based on rectangles has the problem of unequal distances from the eight neighborhoods to the central grid. Summary of the invention
[0005] Based on the above comprehensive reasons, the present invention proposes a method for desensitizing spatiotemporal trajectory data, which uses a hexagonal gridding method to desensitize the trajectory data. The distances from the surrounding neighbors of the hexagon to the central grid are equal, and the shape is close to a circle. While ensuring the data mining value of the desensitized data set, it is ensured that the distance between the hexagonal grid and the surrounding grids is one and only one. However, the hexagonal gridding of a large amount of real-time trajectory data brings about the problem of time-consuming. In order to optimize the desensitization efficiency of spatiotemporal trajectory data, the present invention proposes a heuristic variable neighbor local search method in the desensitization stage. This method can not only quickly desensitize position-sensitive data, but also ensure the data mining value of the massive trajectory data after desensitization.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] A method for desensitizing spatiotemporal trajectory data, comprising the following steps:
[0008] Step S1, hexagonal gridding of the region;
[0009] Step S2, obtaining the spatiotemporal trajectory data in the area and preprocessing the spatiotemporal trajectory data;
[0010] Step S3, gridding and desensitizing the spatiotemporal trajectory data, that is, matching the spatiotemporal trajectory data to the gridded area, and obtaining the spatiotemporal trajectory information inside each grid when the trajectory passes through the grid;
[0011] Step S4: based on the spatiotemporal trajectory information of step S3, the grids with consecutive identical trajectory points in the time series are compressed and desensitized.
[0012] The technical solution is further optimized. In step S1, regular hexagons in the horizontal direction are used for gridding to obtain the longitude and latitude of the center point of each hexagon and the corresponding hexagonal gridding code. Assuming the side length of the hexagon is side, the radius r of the hexagonal inscribed circle is:
[0013] r = side * sqrt (3) / 2
[0014] The radius R1 of the circumscribed circle containing one layer of neighboring hexagons is:
[0015] R1=side*sqrt(7)
[0016] The radius R2 of the circumscribed circle containing the second-layer neighborhood hexagon is:
[0017] R2 = side*sqrt(19).
[0018] This technical solution is further optimized, and the specific steps of the grid desensitization in step S3 are as follows:
[0019] Step S31, let p i represents the trajectory points, which form a spatiotemporal trajectory. The trajectory points are sorted by time, and each trajectory has a unique ID to identify it. Let TR represent the trajectory set, n represents the number of trajectory points, where TR = {p i}(i=1, 2,...,n), let represents the trajectory point p i A layer of neighborhood hexagonal code set, where make represents the trajectory point p i The second-level neighborhood hexagonal code set, where
[0020] Step S32, trajectory point p i To hexagonal grid hex j The distance from the center point is
[0021] Step S33, if Then we get the trajectory point p i The data masking result is a hexagonal hex j The corresponding code;
[0022] Step S34, if Then we get the trajectory point p i A layer of neighborhood hexagon hex j , add its corresponding code and center point location data to a layer of neighborhood hexagonal code set
[0023] Step S35, if Then we get the trajectory point p i A second-level neighborhood hexagon hex j , add its corresponding code and center point location data to the second-layer neighborhood hexagonal code set
[0024] Step S36, if Then skip the hexagon hex j , select the next hexagon hex j+1 Jump to step S33 until the trajectory point p is found. i Hexagonal hex of the data masking result j The corresponding code;
[0025] Step S37, the next moment trajectory point p i+1 During desensitization, start from p i Hexagonal hex of the data masking result j , a layer of neighborhood hexagonal coding set Second-level neighborhood hexagonal coding set Perform variable neighbor local search until the trajectory point p is found i+1 The hexagonal code corresponding to the data desensitization result;
[0026] Step S38: If the variable neighbor local search method does not find the trajectory point p i+1 If the hexagonal code of the data is desensitized, the process jumps to step S32 to search until all trajectory points are searched.
[0027] The technical solution is further optimized, and the step S4 is specifically that the desensitization results of the trajectory point data in multiple time dimensions are consistent, that is, the same hexagonal grid coding, then the trajectory points and their characteristics corresponding to the intermediate values in the time dimension are retained.
[0028] Different from the existing technology, the above technical solution adopts a hexagonal gridding method for trajectory data to desensitize the spatiotemporal trajectory data, and proposes a heuristic variable neighbor local search method to solve the time-consuming problem of trajectory data gridding. This method can not only quickly desensitize location-sensitive data, but also ensure the data mining value of the massive trajectory data after desensitization. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 Flowchart of the method for desensitizing spatiotemporal trajectory data;
[0030] Figure 2 Schematic diagram of horizontal regular hexagonal gridding. DETAILED DESCRIPTION
[0031] In order to explain the technical content, structural features, achieved objectives and effects of the technical solution in detail, the following is a detailed description in conjunction with specific embodiments and accompanying drawings.
[0032] In order to solve the problems of privacy protection of spatiotemporal trajectory data, desensitization of massive spatiotemporal trajectory data and data desensitization efficiency, the present invention adopts a hexagonal gridding method for trajectory data map matching, that is, hexagonal gridding coding is used to protect the privacy of trajectory data. Based on hexagonal gridding, massive trajectory desensitized data is desensitized, and an accelerated processing method based on local variable neighbor search is proposed to address the time-consuming problem of gridding massive real-time trajectory data.
[0033] See also Figure 1 , which is a flow chart of a method for desensitizing spatiotemporal trajectory data, and includes the following steps:
[0034] Step S1, hexagonal gridding of the region;
[0035] Step S2, obtaining the spatiotemporal trajectory data in the area and preprocessing the spatiotemporal trajectory data;
[0036] Step S3, gridding and desensitizing the spatiotemporal trajectory data, that is, matching the spatiotemporal trajectory data to the gridded area, and obtaining the spatiotemporal trajectory information inside each grid when the trajectory passes through the grid;
[0037] Step S4: based on the spatiotemporal trajectory information of step S3, the grids with consecutive identical trajectory points in the time series are compressed and desensitized.
[0038] A preferred embodiment of the present invention is a method for desensitizing spatiotemporal trajectory data, comprising the following steps:
[0039] S1, hexagonal grid processing of urban areas;
[0040] S2, desensitization of spatiotemporal trajectory data based on heuristic variable neighbor local search method;
[0041] S3. Desensitization of massive spatiotemporal trajectory data based on trajectory position aggregation suppression.
[0042] According to the steps of this embodiment, S1 is a hexagonal gridding process for a city area. Assuming that the moving range of the trajectory data is within a certain city area, after determining the range of the city area, the city area is divided into regular hexagonal grids, a grid index is established, and a grid map code is constructed.
[0043] This embodiment uses regular hexagons in the horizontal direction for gridding, see Figure 2 As shown, let the side length be side, then the radius r of the inscribed circle of the hexagon is:
[0044] r=side*sqrt(3) / 2 (1)
[0045] The radius R1 of the circumscribed circle containing one layer of neighboring hexagons is:
[0046] R1=side*sqrt(7) (2)
[0047] The radius R2 of the circumscribed circle containing the second-layer neighborhood hexagon is:
[0048] R2=side*sqrt(19) (3)
[0049] According to the desensitization requirements of the trajectory data in the application scenario, determine the appropriate value of the hexagon side length side. The value of side determines the granularity of data desensitization and also affects the degree of information loss after data desensitization. The larger the value of side, the larger the granularity of data desensitization and the greater the risk of information loss. After weighing the effect of data desensitization and the risk of information loss, it is more appropriate to take the value of side in units of hundreds of meters to kilometers. Record the longitude and latitude of the center point of each hexagon and the corresponding hexagonal grid code.
[0050] S2. Desensitization of spatiotemporal trajectory data based on heuristic variable neighbor local search method. The spatiotemporal trajectory data is gridded and desensitized, that is, the continuous trajectory is matched to the urban area with grid index. At the same time, when the trajectory passes through the grid, a spatiotemporal trajectory sample is formed inside each passed grid. The information of each sample includes: the timestamp of the trajectory generation, the grid index, and trajectory related information such as speed.
[0051] Due to the real-time generation of massive trajectory data, how to quickly desensitize the data becomes particularly important in the production environment. The present invention adopts a heuristic variable neighbor local search method to accelerate data desensitization. The main idea of this method is:
[0052] 1) Let p i represents the trajectory point. A trajectory is a set of trajectory points. The trajectory points are sorted by time, and each trajectory has a unique ID to identify it. Let TR represent the trajectory set of the device, n represents the number of trajectory points, where TR = {p i}(i=1,2,...,n). make represents the trajectory point p i A layer of neighborhood hexagonal encoding set, where make represents the trajectory point p i The second-level neighborhood hexagonal code set, where Assume that we first globally search for the trajectory point p i The corresponding grid coding, in the global search trajectory point p i At the same time, p is determined according to the following formula i The grid code to which it belongs, and the code set of the adjacent grids:
[0053] Note i To hexagonal grid hex j The distance from the center point is but:
[0054]
[0055] That is, if p i With hex j If the distance between the center points is not greater than r, then the trajectory point p is obtained. i The data masking result is a hexagonal hex j The corresponding encoding.
[0056] if
[0057]
[0058] That is, if p i With hex jThe distance between the center point is greater than the radius r of the inscribed circle of the regular hexagon and not greater than the radius R1 of the circumscribed circle of the neighboring hexagons of the regular hexagon, then the trajectory point p is obtained. i A layer of neighborhood hexagon hex j , add its corresponding code and center point location data to the first layer of neighborhood hexagonal code set
[0059] if
[0060]
[0061] That is, if p i With hex j The distance between the center point and the regular hexagon is greater than the circumscribed circle radius R1 of the first-layer neighboring hexagon, and not greater than the circumscribed circle radius R2 of the second-layer neighboring hexagon, then the trajectory point p is obtained. i A second-level neighborhood hexagon hex j , add its corresponding code and center point location data to the second-layer neighborhood hexagonal code set
[0062] if
[0063]
[0064] That is, if p i With hex j If the distance between the center point and the regular hexagon is greater than the radius R2 of the circumscribed circle of the second-layer neighboring hexagon, then the hexagon hex is skipped. j , select the next hexagon hex j+1 Continue with (4), (5), (6), and (7) until the trajectory point p is found. i The hexagonal hex of the data masking result j The corresponding encoding.
[0065] 2) The trajectory point p at the next moment i+1 During desensitization, start from p i The hexagonal hex of the data masking result j , a layer of neighborhood hexagonal coding set Second-level neighborhood hexagonal coding set Perform variable neighbor local search until the trajectory point p is found. i+1 The hexagonal codes corresponding to the data masking results.
[0066] 3) If the variable neighbor local search method does not find the trajectory point p i+1 If the hexagonal code of the data is desensitized, the search process in 1) is repeated until all trajectory points are searched.
[0067] S3, desensitization of massive spatiotemporal trajectory data based on trajectory position aggregation suppression, based on S2, the hexagonal codes of consecutive identical trajectory points in the time series are compressed and desensitized.
[0068] When the desensitization results of trajectory data in multiple time dimensions are consistent, that is, the same hexagonal grid coding, the trajectory points and their features corresponding to the middle value in the time dimension are retained, and other clustered trajectory points are suppressed and not retained, so as to achieve further data desensitization effect.
[0069] Effects of the invention:
[0070] 1) Compared with the full local search method, the time complexity of the heuristic variable neighbor local search method is o(n 2 ) is reduced to nearly o(n);
[0071] 2) The length of the hexagon side can be adjusted according to the actual application scenario. While ensuring that the data mining value is retained after data desensitization, it can also compress trajectory data and improve data storage, transmission, and computing efficiency.
[0072] Taking Hefei City (total area of 11,445.1 square kilometers) as an example, under the same hardware environment, when processing about 1,000 taxis and taking more than 8,000 trajectory point data of each taxi over a period of time, the side length of the regular hexagon is set to 200 meters. On average, the time taken for the desensitized global search of the trajectory of each taxi is 15 minutes, and the time taken for the heuristic variable-neighbor local search is 12 seconds, which is 75 times more efficient.
[0073] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "include..." or "comprise..." do not exclude the existence of other elements in the process, method, article or terminal device including the elements. In addition, in this article, "greater than", "less than", "exceed" and the like are understood to exclude the number itself; "above", "below", "within" and the like are understood to include the number itself.
[0074] Although the above embodiments have been described, once those skilled in the art know the basic creative concepts, they can make additional changes and modifications to these embodiments. Therefore, the above description is only an embodiment of the present invention and does not limit the patent protection scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of the present invention, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for desensitizing spatiotemporal trajectory data, characterized in that: The following steps are involved: Step S1, hexagonal gridding of the region; Step S2, obtaining the spatiotemporal trajectory data in the area and preprocessing the spatiotemporal trajectory data; In step S1, regular hexagons in the horizontal direction are used for gridding to obtain the longitude and latitude of the center point of each hexagon and the corresponding hexagonal gridding code. Assuming the side length of the hexagon is side, the radius r of the hexagonal inscribed circle is: r = side * sqrt (3) / 2 The radius R1 of the circumscribed circle containing one layer of neighboring hexagons is: R1=side*sqrt(7) The radius R2 of the circumscribed circle containing the second-layer neighborhood hexagon is: R2=side*sqrt(19) Step S3, gridding and desensitizing the spatiotemporal trajectory data, that is, matching the spatiotemporal trajectory data to the gridded area, and obtaining the spatiotemporal trajectory information inside each grid when the trajectory passes through the grid; The specific steps of the gridded desensitization in step S3 are as follows: Step S31, let p i represents the trajectory points, which form a spatiotemporal trajectory. The trajectory points are sorted by time, and each trajectory has a unique ID to identify it. Let TR represent the trajectory set, n represents the number of trajectory points, where TR = {p i }(i=1, 2,...,n), let represents the trajectory point p i A layer of neighborhood hexagonal encoding set, where make represents the trajectory point p i The second-level neighborhood hexagonal code set, where Step S32, trajectory point p i To hexagonal grid hex j The distance from the center point is Step S33, if p i ∈hex j , then we get the trajectory point p i The data masking result is a hexagonal grid hex j The corresponding code; Step S34, if Then we get the trajectory point p i A layer of neighborhood hexagonal grid hex j , add its corresponding code and center point location data to the first layer of neighborhood hexagonal code set Step S35, if Then we get the trajectory point p i A two-layer neighborhood hexagonal grid hex j , add its corresponding code and center point location data to the second-layer neighborhood hexagonal code set Step S36, if pass, then skip the hexagonal grid hex j , select the next hexagonal grid hex j+1 Jump to step S33 until the trajectory point p is found. i Hexagonal grid hex of data masking results j The corresponding code; Step S37, the next moment trajectory point p i+1 During desensitization, start from p i Hexagonal grid hex of data masking results j , a layer of neighborhood hexagonal coding set Second-level neighborhood hexagonal coding set Perform variable neighbor local search until the trajectory point p is found i+1 The hexagonal code corresponding to the data desensitization result; Step S38: If the variable neighbor local search method does not find the trajectory point p i+1 If the hexagonal code of the data is desensitized, then jump to step S32 to search until all trajectory points are searched; Step S4: based on the spatiotemporal trajectory information of step S3, the grids with consecutive identical trajectory points in the time series are compressed and desensitized.
2. The method for desensitizing spatiotemporal trajectory data according to claim 1, characterized in that: The step S4 is specifically that if the desensitization results of the trajectory point data in multiple time dimensions are consistent, that is, the same hexagonal grid coding, then the trajectory points and their features corresponding to the intermediate values in the time dimension are retained.
Citation Information
Patent Citations
Apparatus for sensing utilizing tiles, sensor having a set of plates, object identification for multi-touch surfaces, and method
CN103154867A
Method for collecting spatial population distribution in real time on basis of mobile phone big data and realizing large passenger flow early warning
CN105488120A
Desensitization method for mixed data, desensitization device and desensitization device
CN109460676A
Urban area division method based on trajectory data
CN110334861A
Trajectory data analysis and visualization method and system based on online car-hailing travel
CN110716935A
