A privacy protection method for check-in data while maintaining the availability of trajectory pattern data
By using an algorithm based on the generalization of check-in locations, combined with the Markov-chain model and heuristic rules, the generalized location is selected to solve the problem of the failure of existing technologies to effectively protect sensitive check-in data, achieving efficient privacy protection and maximization of trajectory patterns. The degree of similarity ensures the high availability of user trajectory patterns.
Patent Information
- Application Number
- CN202111536131.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing location privacy protection methods fail to effectively consider user trajectory pattern factors, resulting in a lower level of privacy protection when protecting sensitive check-in data, and may even leak the user's real check-in information.
A check-in privacy protection algorithm based on check-in location generalization is proposed. By establishing a user trajectory pattern matrix, using the Markov-chain model to recommend generalized location types, calculating the generalized location within the query area, and combining privacy protection thresholds and heuristic rules, Select the most suitable candidate generalization position to form an anonymized trajectory pattern to ensure the high availability of the trajectory pattern.
It effectively protects the privacy of sensitive check-in data, maximizes the original trajectory pattern, and makes it difficult even for attackers with background knowledge to discover the real check-in location, ensuring the high availability of trajectory pattern data.
Smart Images

Figure CN114329582B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of privacy protection of sign-in data. Considering the availability factor of trajectory pattern data, a sign-in privacy protection algorithm is proposed to protect sensitive sign-ins in the trajectory. Specifically, a sign-in data privacy protection method that maintains the availability of trajectory pattern data is provided. Background Art
[0002] In recent years, with the continuous development of mobile networks and devices with GPS functions, the sign-in data information of mobile users has been collected and used in large quantities. Since the sign-in data contains human behavior characteristics, it plays a key role in major social science issues such as disease transmission, poverty alleviation, urban planning, and important life applications such as route recommendation and travel. Many scientific research institutions hope to create greater value through data mining and analysis. However, mobile trajectories contain a large amount of sensitive sign-in data. The leakage of these sensitive sign-in data may cause user privacy information (home address, hobbies, health status, etc.) to be obtained and used by malicious attackers. Therefore, protecting sensitive sign-in data in mobile trajectories has become a very challenging problem.
[0003] Existing location privacy protection methods include fake location protection methods, data encryption protection methods, differential privacy protection methods, etc. These methods protect location information by adding appropriate fake locations, encrypting location information, and adding Laplace noise. Since sensitive check-ins contain time and location information, and the time information and location information are interdependent, location selection affects trajectory changes, and these location protection methods do not take into account user trajectory pattern factors. Directly applying them to sensitive check-in protection may reduce the privacy protection of sensitive check-ins or even directly leak the user's real sensitive check-ins. Summary of the invention
[0004] In order to solve the problem of sensitive check-in in the protection trajectory, the present invention proposes a check-in privacy protection algorithm based on the generalization of the check-in location, which protects the privacy of the check-in data while maintaining the high availability of the trajectory pattern data. The check-in data privacy protection method for maintaining the availability of the trajectory pattern data provided by the present invention includes the following steps:
[0005] S1: Classify multiple locations according to location types, establish multiple user history trajectories, and calculate the transition probability between location types based on the historical trajectories to form a user trajectory pattern matrix M;
[0006] S2: Set sensitive check-in and use the Markov-chain model to generate a generalized location type set T for the sensitive check-in recommendation;
[0007] S3: Calculate the query area of sensitive check-in, find multiple generalized locations in the area that meet the recommended generalized location type, and form a location queue L;
[0008] S4: Set the privacy protection threshold k. If the number of positions in the queue L with the same type as the sensitive check-in is ≥ k-1, k-1 generalized positions with the same type as the sensitive position are allocated, and then go to step S5; otherwise, all positions with the same type as the generalized position in the queue L are allocated, and one position of the other type is allocated in each round to obtain the anonymized trajectory pattern matrix M′. Select the number of allocated position types with the largest similarity sim(M, M′) in each round of allocated positions, and perform the next round of position allocation until k-1 positions are allocated, and calculate the number of allocations corresponding to each position type;
[0009] S5: Based on the two indicators of the degree of dispersion between each group of generalized locations and the degree of change in the trajectory before and after anonymization, a heuristic rule is designed to select multiple candidate generalized locations from the location queue L according to the allocation quantity corresponding to each location type, and calculate the central position of the area formed by multiple generalized locations. The central position replaces the sensitive check-in position in the historical trajectory, and the sensitive check-in time remains unchanged.
[0010] Furthermore, in step S1, multiple historical tracks of the user are screened, the historical tracks include multiple check-in data arranged in chronological order, the check-in data include two dimensional information of check-in location and check-in time, and the check-in location belongs to one of the location types.
[0011] Furthermore, the query area of sensitive check-in is calculated by the following steps:
[0012] Step 1: Calculate the average speed of your users The average speed Extract the average speed of any two adjacent check-in data based on the user's historical sub-trajectory, and then delete the maximum average speed value considering the check-in in different locations;
[0013] Step 2: If the sensitive sign-in is at the starting position of the trajectory, reverse prediction is used. The so-called reverse prediction refers to predicting based on the sign-in position at the next moment of the sensitive sign-in. The sign-in position at the next moment of the sensitive sign-in is set as the center point of the query area. The query radius is used to obtain the query area, where Δt is the time interval between the next moment and the sensitive check-in moment; when the sensitive check-in is at the end of the trajectory, forward prediction is used. The so-called forward prediction refers to the prediction based on the check-in position at the previous moment of the sensitive check-in. The check-in position at the previous moment of the sensitive check-in is set as the center point of the query area. The query radius is used to obtain the query area, where Δt is the time interval between the previous moment and the sensitive check-in moment; when the sensitive check-in is not at the beginning or end of the trajectory, the secondary prediction is used, and the check-in position of the previous moment and the check-in position of the next moment of the sensitive check-in are set as the center point of the query area respectively. The query radius is used to obtain the query area, where Δt is the time interval between adjacent check-ins.
[0014] Furthermore, given the original trajectory pattern matrix M and the anonymized trajectory pattern matrix M′, the order of the matrix is m), the trajectory pattern similarity is as shown in formula (1):
[0015]
[0016] Trajectory pattern matrix M: an m×m matrix, T1,...,T m represents the location type, M(i, j) represents the user from location type T before anonymization. j Go to location type T j The probability of M′(i, j) being the user from location type T after anonymization. i Go to location type T j probability.
[0017] Furthermore, in step S5, based on the maximum value of the heuristic rule Score, a candidate generalization position is selected.
[0018]
[0019] Among them, l s For sensitive check-in locations, i , l j represents any two different positions in the set consisting of sensitive positions and generalized positions, dist(l i , l j ) represents the Euclidean distance between any two positions, position l s a Represents the anonymous central location composed of the sensitive check-in location and the generalized location.
[0020] Furthermore, given the original trajectory and sensitive check-in location l s The distance between the anonymous trajectory and the anonymous center position is defined as the Euclidean distance between the two positions, as shown in formula (3):
[0021]
[0022] Here, x and y represent the longitude and latitude coordinates of the location respectively.
[0023] Beneficial effects of the present invention
[0024] The present invention provides a sign-in data privacy protection method that maintains the availability of trajectory pattern data. It takes the user trajectory pattern as an important basis and finds the most suitable k-1 candidate locations to form a location anonymous set to protect the real sensitive sign-in. The biggest difference from the existing location privacy protection method is that the anonymous trajectory formed by the proposed method can maximize the user's original trajectory pattern, and even an attacker with background knowledge will find it difficult to discover the real sensitive sign-in. Given a user's sign-in dataset C u , sensitive sign-in set S u , user real trajectory tr, privacy protection threshold k, for sensitive check-in set S u The sensitive check-ins in the dataset are generalized based on trajectory patterns to obtain an anonymous location set, in which the generalized locations satisfy the k-anonymity of the check-ins and can ensure the maximum similarity of the trajectory patterns. The proposed method is mainly divided into four parts, including recommending location types, searching for generalized locations, allocating the number of generalized locations, and selecting candidate generalized locations. Markov-chain is used when recommending location types, and forward prediction, reverse prediction, and quadratic prediction methods are used for the three location situations of sensitive check-ins. When searching for generalized locations, the generalized search algorithm is optimized using a binary search strategy to improve the execution efficiency of the algorithm. When selecting candidate generalized locations, a heuristic rule is proposed. Based on real spatiotemporal check-in data for experimental testing and analysis, the present invention effectively protects the privacy of sensitive check-ins while ensuring the high availability of trajectory pattern data. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the overall process of the present invention;
[0026] Figure 2 A user history track collection diagram in the embodiment;
[0027] Figure 3 is the user trajectory pattern matrix obtained in the embodiment;
[0028] Figure 4 Two anonymous protection methods for sensitive sign-in in the embodiment;
[0029] Figure 5 is a user anonymized trajectory pattern matrix in the embodiment;
[0030] Figure 6 The distance product and the distance and scene graph in the embodiment; DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to understand the present invention and are not intended to limit the present invention.
[0032] refer to Figure 1 ,The present invention provides a method for privacy protection of check-in data for maintaining the availability of trajectory pattern data, characterized in that it comprises the following steps;
[0033] S1: Classify multiple specific locations according to location types; calculate the transition probability between location types based on the user's historical trajectory, and establish the user trajectory pattern matrix M;
[0034] S2: Set sensitive check-in and use the Markov-chain model to generate a generalized location type set T for the sensitive check-in recommendation;
[0035] S3: Calculate the query area of sensitive check-in, find multiple generalized locations in the area that meet the recommended generalized location type, and form a location queue L;
[0036] S4: Set the privacy protection threshold k. If the number of positions in the queue L with the same type as the sensitive check-in is ≥ k-1, k-1 generalized positions with the same type as the sensitive position are allocated, and then go to step S5; otherwise, all positions with the same type as the generalized position in the queue L are allocated, and one position of the other type is allocated in each round to obtain the anonymized trajectory pattern matrix M′. Select the number of allocated position types with the largest similarity sim(M, M′) in each round of allocated positions, and perform the next round of position allocation until k-1 positions are allocated. Calculate the total number of allocations corresponding to each position type;
[0037] S5: Based on the two indicators of dispersion between each group of generalized locations and the degree of change in trajectories before and after anonymization, a heuristic rule is designed to select candidate generalized locations from the location queue L according to the allocation quantity corresponding to each location type, and form a release set with sensitive check-ins.
[0038] Example 1: Reference Figure 2 , and classify the specific locations l1, l2, l3, l4, l5, l6, l7, l8, l9 as location types T1, T2, T3, T4. The so-called sensitive sign-in in this solution means that the user does not want the sign-in data formed by appearing at a certain time at a certain place to be leaked. Figure 2 It can be seen that the historical trajectory set of user u is T r ={tr1, tr2, tr3, tr4, tr5, tr6}, where the trajectory tr5 = <(l2, t 51 ),(l5,t 52 ),(l7,t 53 ), (l8, t 54 )> consists of four sign-in data in chronological order. Sign-in data (l7, t 53 ) represents user u at time t 53The location l7 is visited, the location type of l7 is zoo, and t 53 It is the working time of user u. User u does not want to disclose this sign-in data, so user u sets (l7, t 53 ) is a sensitive sign-in. T1, T2, T3, and T4 represent the location types of a zoo, a gym, a coffee shop, and a bank, respectively.
[0039] Combination Figure 3 , according to the location type transfer in the user's historical trajectory set, we get the user trajectory pattern matrix M, an m*m matrix, T1,...,T m Indicates the location type, where M(T i , T j ) indicates that the user is from location type T j Departure to location type T j The position type T1 includes three specific positions: l7, l8, and l9. Among them, the next position of l7 is l1(T2) and l8(T1); the next position of l8 is l2(T3); the next position of l9 is l3(T2) and l5(T4). Therefore, the transition probability M from position type T1 to position type T2 is The trajectory pattern matrix M is calculated in this way:
[0040] Matrix M <![CDATA[T1]]> <![CDATA[T2]]> <![CDATA[T3]]> <![CDATA[T4]]> <![CDATA[T1]]> 0.2 0.4 0.2 0.2 <![CDATA[T2]]> 0 0 0 1 <![CDATA[T3]]> 0.25 0.25 0 0.5 <![CDATA[T4]]> 4 / 7 0 2 / 7 1 / 7
[0041] Combination Figure 3-5 , generalized sensitive sign-in (l7, t 53 ), the sensitive check-in location l7 is located in the middle of the trajectory, so a second prediction is needed to implement the location type recommendation. According to the location type T4 of the previous moment of the sensitive check-in, the generalized location types of the sensitive check-in are predicted to be T1, T2, T3, and T4, with probabilities of 4 / 7, 0, 2 / 7, and 1 / 7 respectively; the transfer probabilities of the generalized location type to the next moment location type T1 of the sensitive location are 1 / 5, 0, 1 / 4, and 4 / 7 respectively; therefore, the generalized location type set T = {T1, T4, T3} recommended for sensitive check-ins.
[0042] Sensitive sign-in (l7, t 53 ) is based on the check-in position l5 before the sensitive check-in and the check-in position l8 after the sensitive check-in as the origin. is the circular area obtained by the query radius. Through the generalized position search algorithm, 8 generalized position sets A = [l1 1 , l1 2 , l4 1 , l4 2 , l4 3 , l3 2 , l21 , l2 2 ], where the specific location l1 1 , l1 2 The location type is T1; l2 1 , l2 2 The location type is T2; the specific location is l4 1 , l4 2 , l4 3 The location type is T4; the specific location is l3 2 The position type is T3; the specific positions corresponding to each position type in the set T are l1 1 , l1 2 , l4 1 , l4 2 , l4 3 , l3 2 , put the above specific position into the position queue L, that is, L = [l1 1 , l1 2 , l4 1 , l4 2 , l4 3 , l3 2 ], the number of specific positions of type T1 in the queue L is 2, the number of specific positions of type T3 is 1, and the number of specific positions of type T4 is 3.
[0043] Sensitive sign-in (l7, t 53 ) The position type belongs to T1, and the position queue L = [l1 1 , l1 2 , l4 1 , l4 2 , l4 3 , l3 2 ]. The 8 generalized position sets A found by the generalized position search algorithm are A=[l1 1 , l1 2 , l4 1 , l4 2 , l4 3 , l3 2 , l2 1 , l2 2]. The privacy protection threshold k=4 is set, so 3 generalized positions are found from these 6 generalized positions to ensure the maximum similarity of the trajectory pattern matrix. In the generalized position allocation algorithm based on trajectory pattern M, the generalized position of the same type as the sensitive check-in position is first allocated, so 2 generalized positions of position type T1 are allocated from set A. The remaining generalized positions are selected by adding one generalized position of a different position type from T1 in each round, and calculating sim(M, M′), selecting the allocation position type with the maximum similarity, and performing the next round of position allocation until k-1=3 positions are allocated. Calculate the corresponding trajectory pattern matrix similarity value to determine what type of generalized position to add. For the trajectory pattern matrix similarity calculation, the cosine value calculation method is used, as shown in formula (1). Among them, M(ij) represents the number of generalized positions that the user has selected from position type T before anonymization. i Go to location type T j The probability of M′(i, j) being the user from location type T after anonymization. i Go to location type T j When the generalized position of position type T3 is added, the trajectory pattern similarity is 99.81%; when the generalized position of position type T4 is added, the trajectory pattern similarity is 99.93%; therefore, 1 generalized position of position type T4 is assigned.
[0044]
[0045] Score is a heuristic function whose value measures the generalization position and the sensitive position l s The distance product of the anonymized trajectories and the distance between the anonymized trajectories before and after are affected by two aspects, as shown in formula (2). i , l j represents any two positions in the generalization position and the sensitive position, dist(l i , l j ) represents the Euclidean distance between any two positions, position l s a The anonymous center position composed of the sensitive position and the generalized position is more dispersed when the anonymous area is formed by the distance product method. Figure 6It can be seen that A and B are the selected generalization positions, and C and D are the generalization positions to be selected. When selecting the third generalization position, if the distance sum method is used to select both positions C and D, the requirements can be met, because tr_dist(D, A)+tr_dist(D, B)=tr_dist(C, A)+tr_dist(C, B). However, the distance product method should select the generalization position C, because tr_dist(C, A)*tr_dist(C, B)>tr_dist(D, A)*tr-dist(D, B), and the anonymous area formed by the generalization positions A, B, and C is more dispersed, so the candidate position with the largest Score value is selected, calculated by the following formula (2):
[0046]
[0047] Among them, l s For sensitive check-in locations, i , l j represents any two different positions in the set of generalized positions and sensitive positions, dist(l i , l j ) represents the Euclidean distance between any two positions, position l s a represents the anonymous central location composed of the sensitive check-in location and the generalized location, where x and y represent the longitude and latitude coordinates of the location respectively;
[0048] Among them, given the original trajectory and sensitive check-in location l s The distance between the anonymous trajectory and the anonymous center position is defined as the Euclidean distance between the two positions, as shown in formula (3):
[0049]
[0050] Through the Score heuristic function, the best recommended generalized location group is selected, and the center position of the area formed by the selected generalized location is calculated to replace the sensitive check-in location in the historical trajectory. The check-in time of the original sensitive check-in data does not change, only the location of the sensitive check-in is replaced, achieving anonymity protection. Figure 4 4-a in the figure is to use the existing method to detect sensitive check-in data (l7, t 53 ) to obtain anonymous trajectory <(l2, t 51 ),(l5,t 52 ), (l7 a , t 53 ), (l8, t 54 )>, it can be seen that the shape of the trajectory is quite different from the original trajectory, resulting in a decrease in the trajectory shape similarity. Figure 44-b in the figure is anonymity protection performed by the sign-in data protection scheme of this application, and the obtained anonymous trajectory is less than (l2, t 51 ),(l5,t 52 ), (l7 a , t 53 ), (l8, t 54 )>, the trajectory is closer to the original trajectory shape and the trajectory pattern is highly similar.
[0051] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A privacy protection method for check-in data while maintaining the availability of trajectory pattern data, Features: The method comprises the following steps: S1: Classify multiple locations according to location types, establish multiple user history trajectories, and calculate the transition probability between location types based on the historical trajectories to form a user trajectory pattern matrix M; S2: Set sensitive check-in and use the Markov-chain model to generate a generalized location type set T for the sensitive check-in recommendation; S3: Calculate the query area of sensitive check-in, find multiple generalized locations in the area that meet the recommended generalized location type, and form a location queue L; S4: Set the privacy protection threshold k. If the number of positions with the same type as the sensitive check-in in the queue L is ≥ k-1, k-1 generalized positions with the same type as the sensitive position are allocated, and go to step S5; otherwise, all positions with the same type as the generalized position in the queue L are allocated, and one position of the other type is allocated in each round to obtain the anonymized trajectory pattern matrix M'. The number of allocated position types with the largest similarity sim(M,M') in each round of allocated positions is selected to allocate the next round of positions until k-1 positions are allocated, and the number of allocations corresponding to each position type is calculated; S5: Based on the degree of dispersion between each group of generalized locations and the degree of change in the trajectory before and after anonymization, a heuristic rule is designed to select multiple generalized locations from the location queue L according to the allocation quantity corresponding to each location type, and calculate the central position of the area formed by multiple generalized locations. The central position replaces the sensitive check-in position in the historical trajectory.
2. A method for protecting the privacy of check-in data while maintaining the availability of trajectory mode data as claimed in claim 1, Features: In step S1, multiple historical tracks of the user are screened, the historical tracks include multiple check-in data arranged in chronological order, the check-in data include two dimensional information of check-in location and check-in time, and the check-in location belongs to one of the location types.
3. A method for protecting the privacy of check-in data while maintaining the availability of trajectory mode data as claimed in claim 1, Features: The query area for sensitive check-in is calculated through the following steps: S301: Calculate the average speed of the user The average speed Extract the average speed of any two adjacent check-in data based on the user's historical sub-trajectory, and delete the maximum average speed value; S302: When the sensitive check-in is at the starting position of the track, the check-in position at the next moment of the sensitive check-in is set as the center point of the query area. The query radius is used to obtain the query area, where Δt is the time interval between the next moment and the sensitive check-in moment; When the sensitive check-in is at the end of the track, the check-in position of the previous moment of the sensitive check-in is set as the center point of the query area. The query radius is used to obtain the query area, where Δt is the time interval between the previous moment and the sensitive check-in moment; When the sensitive check-in is not at the beginning or end of the track, the check-in position of the previous moment and the check-in position of the next moment are set as the center point of the query area. The query radius is used to obtain the query area, where Δt is the time interval between adjacent check-ins.
4. A method for protecting the privacy of check-in data while maintaining the availability of trajectory mode data as claimed in claim 1, Features: Given the original trajectory pattern matrix M and the anonymized trajectory pattern matrix M', the order of the matrix is m, then the similarity of the trajectory patterns before and after anonymization is calculated as shown in formula (1): Among them, the trajectory pattern matrix M is an m*m matrix, T 1 ,...,T m represents the location type, M(i,j) represents the user from location type T before anonymization. i Go to location type T j The probability of M′(i,j) after anonymization is i Go to location type T j probability.
5. A method for protecting the privacy of check-in data while maintaining the availability of trajectory mode data as claimed in claim 1, Features: In step S5, based on the maximum value of the heuristic rule Score, a candidate generalization position is selected. Among them, l s For sensitive check-in locations, i , l j represents any two different positions in the set consisting of sensitive positions and generalized positions, dist(l i ,l j ) represents the Euclidean distance between any two positions, position l s a Represents the anonymous central location composed of the sensitive check-in location and the generalized location.
6. A method for protecting the privacy of check-in data while maintaining the availability of trajectory mode data as claimed in claim 1, Features in, Given the original trajectory and sensitive check-in location l s The distance between the anonymous trajectory and the anonymous center position is defined as the Euclidean distance between the two positions, as shown in the following formula (3): Here, x and y represent the longitude and latitude coordinates of the location respectively.
