A privacy-preserving method for trajectory clustering based on semantics
Through the semantic-based trajectory clustering method, combined with Delaunay triangulation and road network segmentation with anonymity and category degrees, the problem of trajectory clustering in the existing technology that does not consider privacy protection is solved, and efficient privacy protection of trajectory data is achieved. Clustering accuracy is improved.
Patent Information
- Application Number
- CN202011468509.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing trajectory clustering methods fail to effectively consider privacy protection while improving clustering accuracy, resulting in the risk of privacy data leakage during the data mining process.
Using a semantic-based trajectory clustering method, the improved Clusters function is used to calculate trajectory segments and Eps ranges, determine core points and stop areas, and combine Delaunay triangulation with anonymity and category degrees to perform road network segmentation and interest point classification. Generate fake location data for privacy protection.
During the trajectory data clustering process, the distance distribution of trajectory points is adjusted to satisfy the Gaussian distribution. Privacy protection is achieved through road network segmentation and bucket classification. Trajectory data containing pseudo-locations are released, which improves the anonymity and category degree of privacy protection and reduces the cost of privacy protection. Data breach risk.
Smart Images

Figure CN112668040B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data mining and privacy protection, and in particular to a privacy protection method for trajectory clustering based on semantics. Background Art
[0002] With the widespread use of GPS devices, the amount of vehicle trajectory data has increased rapidly. Discovering points of interest of moving targets from complex spatiotemporal trajectories has become an important issue. Traditional trajectory clustering methods mainly include distance measurement-based methods, density-based methods, and hierarchy-based methods. These methods need to be further improved in terms of clustering accuracy. The clustering method based on semantic analysis proposed in recent years has effectively improved the clustering accuracy, but privacy protection is still not considered in the clustering process. Therefore, how to protect privacy data from leakage while performing data mining has become an urgent problem to be solved. Summary of the invention
[0003] The purpose of the present invention is to provide a privacy protection method for trajectory clustering based on semantics to overcome the shortcomings of the prior art.
[0004] In order to achieve the above object, the present invention adopts the following technical scheme:
[0005] A privacy protection method for trajectory clustering based on semantics, specifically comprising the following steps:
[0006] Step 1), trajectory segmentation: Use the improved Clusters function to segment the trajectory to generate clusters on a single trajectory;
[0007] Step 2), according to the clusters after the trajectory segmentation in step 1), calculate the distance range Eps of the trajectory data clustering;
[0008] Step 3), using Eps in step 2) to determine the Eps neighborhood of the trajectory point, then determine the core point of the cluster, and use the core point and its Eps neighborhood to perform stop area clustering;
[0009] Step 4), according to the result of step 3), adjust Eps to meet the termination condition;
[0010] Step 5), secondary clustering of the stop area by core attribute selection;
[0011] Step 6), privacy protection is performed on the points of interest obtained in step 5), and finally, the trajectory data after privacy protection is output.
[0012] Further, step 1) specifically includes the following steps:
[0013] 1.1. Search for clusters in a single marked trajectory based on direction and speed changes. Calculate the number of consecutive points p in a single marked trajectory.i-1 and p i Direction change (DC(P i-1 , P i )) and speed change (SC(P i-1 , P i )), where DC(P i-1 , P i )=|DC(P i-1 )-DC(P i )|,SC(P i-1 , P i )=|V(P i-1 )-V(P i )|,V(p i ) indicates that at t i Time point p i speed;
[0014] 1.2. Use the improved Clusters function to generate clusters on a single trajectory. The specific steps are:
[0015] 1.2.1. If the direction between two points changes (DC(P i-1 , P i )) is greater than the minimum direction change threshold (minDirChange) and the speed change between the two points (SC(P i-1 , P i )) is less than the maximum speed change threshold (maxSpeedChange), add this point to the candidate cluster, otherwise add this point to the moving area;
[0016] 1.2.2. For the trajectory points in the candidate cluster, if the time difference between the first point and the last point is greater than or equal to minTime, then this candidate cluster is added to the cluster, otherwise this candidate cluster is added to the moving area.
[0017] Furthermore, the original trajectory represents a sequence of spatiotemporal sampling points with equal time intervals:
[0018] P={p0=(x0, y0, t0), p1=(x1, y1, t1),…,p n =(x n ,y n , t n )}
[0019] Set p i =(x i ,y i , t i ) is a sampling point in the trajectory, where x i represents the sampling point p i Longitude, y irepresents the sampling point p i Latitude, t i represents the sampling point p i is the sampling time, and n is the number of sampling points in the trajectory.
[0020] Furthermore, the marked trajectory consists of the original trajectory with marked attributes, such as the speed and direction of each sampling point:
[0021] p i =(x i ,y i , t i ,attr1,attr2,..,attr m )
[0022] Among them, attr i represents the sampling point p i An attribute of m, m represents the sampling point p i The number of attributes.
[0023] Further, the direction changes: trajectory P at point p i Direction change DC(p i ) by the line segment To Segment The change angle is expressed as, where p i-1 Indicates p i The previous sampling point, p i+1 Indicates p i The next sampling point.
[0024] Further, in step 2), the initial Eps is calculated;
[0025] EPS is calculated as follows:
[0026]
[0027]
[0028] Among them, μ represents the mean, σ represents the standard deviation, and erf -1 (x) represents the error function, g and u represent natural numbers, and the parameter q represents the ratio of the total number of points in the cluster to the total number of points in the trajectory, q∈[0,1].
[0029] Furthermore, Eps represents the trajectory point p i The maximum distance to a point in its neighborhood.
[0030] Further, stop region clustering is performed, which specifically includes the following steps:
[0031] 3.1 Using the Eps obtained in step 2, for each point p in the trajectory P i , determine the point p i The Eps neighborhood;
[0032] 3.2 Determine the core point of the cluster. Whenever a core point p is obtained i When , it is expanded to a stop region. Find all core points in the current stop region, and then add their Eps neighbors to the current stop region until it is no longer expandable, that is, no new points are added;
[0033] Furthermore, given a trajectory user = {p0, p1, ..., p n}, p i The Eps neighborhood of (i∈[0,n]) is defined as in p k Represents a sampling point in a given trajectory.
[0034] Furthermore, in p i The Eps neighborhood {p j , p j+1 , ..., p m}, if |t z -t j |≥min Time and DC(p i )≥minDC, then point p i is the core point. Where minTime is the minimum duration specified by the user, minDC is the minimum direction change specified by the user, and t j represents the sampling point p j The sampling time, t z represents the sampling point p z The sampling time.
[0035] Furthermore, given a labeled trajectory, its stopping region C is defined as (R C , ΔT), where R C is a closed polygon that represents the location and shape of the candidate interest point, and ΔT is R C The time threshold between the first and last track points in .
[0036] Further, adjusted EPS:
[0037] 4.1 Calculate the ratio of the total number of points in the current Eps neighborhood to the total number of points in the trajectory. In this embodiment, this value is set to r;
[0038] 4.2 The Eps value is adjusted by parameter a. In this embodiment, a is calculated as follows:
[0039]
[0040] 4.3 Calculate the product of Eps and a, and use the result as the new Eps value;
[0041] 4.4 If the termination condition |a-1|≤α∩|p-1|≤β is met, jump to step 5, otherwise return to step 3.
[0042] Furthermore, the stop area is clustered again by core attribute selection:
[0043] 5.1 According to the time period threshold δ of the stop area T Divide the data into two categories: greater than δ T The stop area is divided into S, less than or equal to δ T The stopping area is divided into E;
[0044] 5.2 Randomly select a stopping area sample R and find its nearest sample R in S and E S and R E , calculate the average weight of a certain attribute A of the trajectory point, repeat this step v times to get the average weight of attribute A. The average weight calculation formula of attribute A is as follows:
[0045] ω(A)=ω(A)-diff(A,R,R s ) / v+diff(A,R,R E ) / v
[0046] The function diff(A, R1, R2) calculates the difference between samples R1 and R2 for attribute A, and sets the initial value of ω(A) to 0;
[0047] 5.3 Select the attribute with the highest average weight value as the core attribute, and add the unreasonable stop area to the moving area according to the core attribute and Grubbs criterion;
[0048] 5.4 The trajectory points in the stop area are sorted by time. If the end time of one stop area is later than the start time of the next stop area, the two stop areas will be merged. Repeat this step until there is no intersection between any two stop areas, and the algorithm ends;
[0049] 5.5 Combine the map to group points of interest with the same service attributes into one category.
[0050] Furthermore, privacy protection is performed on points of interest:
[0051] 6.1 Taking points of interest as nodes and combining with privacy protection level H, the Bowyer-Watson algorithm of Delaunay triangulation is used to segment the road network to form multiple VMs;
[0052] 6.2 Based on the anonymity K and the category L, the points of interest in each VM are classified into buckets. The number of buckets is: b = [sum / K], where sum is the number of points of interest, and K means that there are K important locations and at least L location categories in each bucket;
[0053] 6.3 Select the interest point in the bucket corresponding to each interest point that is closest to its duration as the pseudo position of this interest point;
[0054] 6.4 Release trajectory data after privacy protection.
[0055] Furthermore, the triple <K, L, H> is used to express the privacy protection requirement. Among them, the anonymity level K means that the probability of an attacker locating a point of interest without considering background knowledge does not exceed 1 / K, the category level L means that the points of interest in the anonymity set have at least L location categories, so the probability that an attacker can derive a point of interest based on location attributes does not exceed 1 / L, and the privacy protection level coefficient H is used to segment the road network.
[0056] Furthermore, the road network is divided into independent sub-areas with points of interest as nodes, and the divided sub-road networks are called VMs.
[0057] Compared with the prior art, the present invention has the following beneficial technical effects:
[0058] The present invention combines vehicle trajectory data mining with privacy protection of points of interest in the trajectory, and establishes a privacy protection method for trajectory clustering based on semantics; in the clustering process, the clustering range of trajectory points is adjusted so that the distance distribution between trajectory points satisfies the Gaussian distribution. Before the trajectory data is released, the road network is first segmented according to the privacy protection level and the Delaunay triangulation method to form multiple Voronoi maps (VMs); secondly, based on anonymity and category, the points of interest in each VM are classified into multiple buckets; finally, the trajectory data containing the pseudo-positions of the points of interest are released. In the present invention, the pseudo-positions of the points of interest refer to the points of interest in the bucket corresponding to each point of interest that are closest to its duration. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a flowchart of the method described in the example of the present invention. DETAILED DESCRIPTION
[0060] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0061] like Figure 1 As shown, a privacy protection method for trajectory clustering based on semantics specifically includes the following steps:
[0062] Step 1, trajectory segmentation;
[0063] 1.1 Search for clusters in a single labeled trajectory based on direction and speed changes. Calculate the number of consecutive points p in a single labeled trajectory. i-1 and p i Direction change (DC(P i-1 , P i )) and speed change (SC(P i-1 , P i )), where DC(P i-1 , P i )=|DC(P i-1 )-DC(P i )|,SC(P i-1 , P i )=|V(P i-1 )-V(P i )|,V(p i ) indicates that at t i Time point p i speed.
[0064] Original trajectory: represents a sequence of spatiotemporal sampling points with equal time intervals:
[0065] P={p0=(x0, y0, t0), p1=(x1, y1, t1),…,p n =(x n ,y n , t n )}
[0066] Set p i =(x i ,y i , t i ) is a sampling point in the trajectory, where x i represents the sampling point p i Longitude, y i represents the sampling point p i Latitude, t i represents the sampling point p i is the sampling time, and n is the number of sampling points in the trajectory.
[0067] Marked trajectory: It consists of the original trajectory with marked attributes, such as the speed and direction of each sampling point:
[0068] p i =(x i ,y i , t i ,attr1,attr2,..,attr m )
[0069] Among them, attri represents the sampling point p i An attribute of m, m represents the sampling point p i The number of attributes.
[0070] Direction change: trajectory P at point p i Direction change DC(p i ) by the line segment To Segment The change angle is expressed as, where p i-1 Indicates p i The previous sampling point, p i+1 Indicates p i The next sampling point.
[0071] 1.2 Use the improved Clusters function to generate clusters on a single trajectory. The specific steps are:
[0072] 1.2.1 If the direction between two points changes (DC(P i-1 , P i )) is greater than the minimum direction change threshold (minDirChange) and the speed change between the two points (SC(P i-1 , P i )) is less than the maximum speed change threshold (maxSpeedChange), add this point to the candidate cluster, otherwise add this point to the moving area;
[0073] 1.2.2 For the trajectory points in the candidate cluster, if the time difference between the first point and the last point is greater than or equal to minTime, then this candidate cluster is added to the cluster, otherwise this candidate cluster is added to the moving area.
[0074] Step 2, calculate the initial Eps;
[0075] In this embodiment, Eps is calculated as follows:
[0076]
[0077]
[0078] Among them, μ represents the mean, σ represents the standard deviation, and erf -1 (x) represents the error function, g and u represent natural numbers, and the parameter q represents the ratio of the total number of points in the cluster to the total number of points in the trajectory, q∈[0,1].
[0079] Eps: represents the trajectory point p i The maximum distance to a point in its neighborhood.
[0080] Step 3, stop regional clustering;
[0081] 3.1 Using the Eps obtained in step 2, for each point p in the trajectory P i , determine the point p i The Eps neighborhood;
[0082] Eps neighborhood: Given a trajectory P = {p0, p1, ..., p n}, p i The Eps neighborhood of (i∈[0,n]) is defined as in p k Represents a sampling point in a given trajectory.
[0083] 3.2 Determine the core point of the cluster. Whenever a core point p is obtained i When , it is expanded to a stop region. Find all core points in the current stop region, and then add their Eps neighbors to the current stop region until it is no longer expandable, that is, no new points are added;
[0084] Core point: In p i The Eps neighborhood {p j , p j+1 , ..., p m}, if |t z -t j |≥min Time and DC(p i )≥minDC, then point p i is the core point. Where minTime is the minimum duration specified by the user, minDC is the minimum direction change specified by the user, and t j represents the sampling point p j The sampling time, t z represents the sampling point p z The sampling time.
[0085] Stop Region: Given a labeled trajectory, its stop region C is defined as (R C , ΔT), where R C is a closed polygon that represents the location and shape of the candidate interest point. AT is R C The time threshold between the first and last track points in .
[0086] Step 4, adjust EPS;
[0087] 4.1 Calculate the ratio of the total number of points in the current Eps neighborhood to the total number of points in the trajectory. In this embodiment, this value is set to r;
[0088] 4.2 The Eps value is adjusted by parameter a. In this embodiment, a is calculated as follows:
[0089]
[0090] 4.3 Calculate the product of Eps and a, and use the result as the new Eps value;
[0091] 4.4 If the termination condition |a-1|≤α∩|p-1|≤β is met, jump to step 5, otherwise return to step 3.
[0092] Step 5, secondary clustering of the stop regions through core attribute selection;
[0093] 5.1 According to the time period threshold δ of the stop area T Divide the data into two categories: greater than δ T The stop area is divided into S, less than or equal to δ T The stopping area is divided into E;
[0094] 5.2 Randomly select a stopping area sample R and find its nearest sample R in S and E S and R E , calculate the average weight of a certain attribute A of the trajectory point, repeat this step v times to get the average weight of attribute A. The average weight calculation formula of attribute A is as follows:
[0095] ω(A)=ω(A)-diff(A,R,R S ) / v+diff(A,R,R E ) / v
[0096] The function diff(A, R1, R2) calculates the difference between samples R1 and R2 for attribute A, and sets the initial value of ω(A) to 0;
[0097] 5.3 Select the attribute with the highest average weight value as the core attribute, and add the unreasonable stop area to the moving area according to the core attribute and Grubbs criterion;
[0098] 5.4 The trajectory points in the stop area are sorted by time. If the end time of one stop area is later than the start time of the next stop area, the two stop areas will be merged. Repeat this step until there is no intersection between any two stop areas, and the algorithm ends;
[0099] 5.5 Combine the map to group points of interest with the same service attributes into one category.
[0100] Step 6, privacy protection of points of interest;
[0101] 6.1 Taking points of interest as nodes and combining with privacy protection level H, the Bowyer-Watson algorithm of Delaunay triangulation is used to segment the road network to form multiple VMs;
[0102] Privacy protection requirements: The privacy protection requirements are expressed using the triple <K, L, H>. The anonymity level K means that the probability that an attacker can locate a point of interest without considering background knowledge is no more than 1 / K, the category level L means that the points of interest in the anonymity set have at least L location categories, so the probability that an attacker can derive a point of interest based on location attributes is no more than 1 / L, and the privacy protection level coefficient H is used to segment the road network.
[0103] Voronoi map (VM): The road network is divided into independent sub-areas with points of interest as nodes. The divided sub-road network is called VM.
[0104] 6.2 Based on the anonymity K and the category L, the points of interest in each VM are classified into buckets. The number of buckets is: b = [sum / K], where sum is the number of points of interest, and K means that there are K important locations and at least L location categories in each bucket;
[0105] 6.3 Select the interest point in the bucket corresponding to each interest point that is closest to its duration as the pseudo position of this interest point;
[0106] 6.4 Release trajectory data after privacy protection.
Claims
1. A privacy protection method for trajectory clustering based on semantics, characterized in that: The specific steps include: Step 1), trajectory segmentation: Use the improved Clusters function to segment the trajectory to generate clusters on a single trajectory; Step 2), according to the clusters after the trajectory segmentation in step 1), calculate the distance range Eps of the trajectory data clustering; Step 3), using Eps in step 2) to determine the Eps neighborhood of the trajectory point, then determine the core point of the cluster, and use the core point and its Eps neighborhood to perform stop area clustering; Step 4), according to the result of step 3), adjust Eps to meet the termination condition; Step 5) Perform secondary clustering of the stop area by core attribute selection. The specific steps are as follows: 5.1 According to the time period threshold δ of the stop area T Divide the data into two categories: greater than δ T The stop area is divided into S, less than or equal to δ T The stopping area is divided into E; 5.2 Randomly select a stopping area sample R and find its nearest sample R in S and E S and R E , calculate the average weight of a certain attribute A of the trajectory point, repeat this step v times to get the average weight of attribute A. The average weight calculation formula of attribute A is as follows: ω(A)=ω(A)-diff(A,R,R S ) / v+diff(A,R,R E ) / v The function diff(A, R1, R2) calculates the difference between samples R1 and R2 for attribute A, and sets the initial value of ω(A) to 0; 5.3 Select the attribute with the highest average weight value as the core attribute, and add the unreasonable stop area to the moving area according to the core attribute and Grubbs criterion; 5.4 The trajectory points in the stop area are sorted by time. If the end time of one stop area is later than the start time of the next stop area, the two stop areas will be merged. Repeat this step until there is no intersection between any two stop areas, and the algorithm ends. 5.5 Combine the map to group points of interest with the same service attributes into one category. Step 6), privacy protection is performed on the points of interest obtained in step 5), and finally, the trajectory data after privacy protection is output.
2. According to the semantic-based trajectory clustering privacy protection method of claim 1, it is characterized in that: Step 1) Specific The following steps are involved: 1.
1. Search for clusters in a single trajectory based on direction and speed changes; calculate the p of two consecutive points in a single trajectory i-1 and p i Direction change (DC(P i-1 , P i )) and speed change (SC(P i-1 , P i )), where DC(P i-1 , P i )=|DC(P i-1 )-DC(P i )|,SC(P i-1 , P i )=|V(P i-1 )-V(P i )|, the trajectory P is at point p i Direction change DC(p i ) by the line segment To Segment The change angle of V(p i ) indicates that at t i Time point p i speed; 1.
2. Use the improved Clusters function to generate clusters on a single trajectory. The specific steps are: 1.2.
1. If the direction between two points changes (DC(P i-1 , P i )) is greater than the minimum direction change threshold (minDirChange) and the speed change between the two points (SC(P i-1 , P i )) is less than the maximum speed change threshold (maxSpeedChange), add this point to the candidate cluster, otherwise add this point to the moving area; 1.2.
2. For the trajectory points in the candidate cluster, if the time difference between the first point and the last point is greater than or equal to minTime, then this candidate cluster is added to the cluster, otherwise this candidate cluster is added to the moving area.
3. The privacy protection method for trajectory clustering based on semantics according to claim 2, characterized in that: The original trajectory is represented as a sequence of space-time sampling points with equal time intervals: P={p0=(x0,y0,t0),p1=(x1,y1,t1),…,p n =(x n ,y n ,t n )} Set p i =(x i ,y i , t i ) is a sampling point in the trajectory, where x i represents the sampling point p i Longitude, y i represents the sampling point p i Latitude, t i represents the sampling point p i is the sampling time, and n is the number of sampling points in the trajectory. A marker trajectory is composed of a raw trajectory with marker attributes, such as the speed and direction of each sample point: p i =(x i ,y i ,t i ,attr1,attr2,..,attr m ) Among them, attr i represents the sampling point p i An attribute of, m represents the sampling point p i The number of attributes.
4. The privacy protection method for trajectory clustering based on semantics according to claim 1, characterized in that: In step 2), the initial Eps is calculated; EPS is calculated as follows: Among them, μ represents the mean, σ represents the standard deviation, and erf -1 (x) represents the error function, g and u represent natural numbers, and the parameter q represents the ratio of the total number of points in the cluster to the total number of points in the trajectory, q∈[0,1].
5. The privacy protection method for trajectory clustering based on semantics according to claim 4, characterized in that: Eps represents the trajectory point p i The maximum distance to a point in its neighborhood.
6. The privacy protection method for trajectory clustering based on semantics according to claim 1, characterized in that: In step 3), using Eps in step 2), for each point p in trajectory P i , determine the point p i The Eps neighborhood; Then determine the core point of the cluster. Whenever a core point p is obtained i When , it is expanded to a stop region. Find all core points in the current stop region and then add their Eps neighbors to the current stop region until it is no longer expandable, that is, no new points are added.
7. The privacy protection method for trajectory clustering based on semantics according to claim 6, characterized in that: Given a trajectory P = {p0, p1, ..., p n }, p i ( i ∈[0,n]) is defined as in p k represents a sampling point in a given trajectory; In p i The Eps neighborhood {p j , p j+1 ,…,p z }, if |t z -t j |≥min Time and DC(p i )≥min DC, then point p i It is the core point; Where minTime is the minimum duration specified by the user, minDC is the minimum direction change specified by the user, and t j represents the sampling point p j The sampling time, t z represents the sampling point p z The sampling time; Given a labeled trajectory, its stopping region C is defined as (R C , ΔT), where R C is a closed polygon that represents the location and shape of the candidate interest point. AT is R C The time threshold between the first and last track points in .
8. The privacy protection method for trajectory clustering based on semantics according to claim 1, characterized in that: Step 4) specifically includes the following steps: 4.1 Calculate the ratio of the total number of points in the current Eps neighborhood to the total number of points in the trajectory, and set this value to r; 4.2 The Eps value is adjusted by parameter a. In this embodiment, a is calculated as follows: 4.3 Calculate the product of Eps and a, and use the result as the new Eps value; 4.4 If the termination condition |a-1|≤α∩|p-1|≤β is met, jump to step 5, otherwise return to step 3.
9. The privacy protection method for trajectory clustering based on semantics according to claim 1, characterized in that: In step 6), privacy protection is performed on the points of interest obtained in step 5), which is specifically divided into the following steps: 6.1 Taking points of interest as nodes and combining with privacy protection level H, the Bowyer-Watson algorithm of Delaunay triangulation is used to segment the road network to form multiple VMs; 6.2 Based on the anonymity K and the category L, the points of interest in each VM are classified into buckets. The number of buckets is: b = [sum / K], where sum is the number of points of interest, and K means that there are K important locations and at least L location categories in each bucket; 6.3 Select the interest point in the bucket corresponding to each interest point that is closest to its duration as the pseudo position of this interest point; 6.4 Release trajectory data after privacy protection.
10. The privacy protection method for trajectory clustering based on semantics according to claim 9, characterized in that: Using triples<K,L,H> To express the privacy protection requirements; where the anonymity level K means that the probability of an attacker locating a point of interest without considering background knowledge does not exceed 1 / K, the category level L means that the points of interest in the anonymity set have at least L location categories, so the probability that an attacker can derive a point of interest based on location attributes does not exceed 1 / L, and the privacy protection level coefficient H is used to segment the road network; Taking points of interest as nodes, the road network is divided into independent sub-areas, and the divided sub-road network is called Voronoi map (VM).
