POI recommendation method using LSTM-attention in LBSN considering privacy protection

Aiming at the problems of traditional point of interest (POI), such as sparse data, lack of negative feedback, and dynamic and periodic changes of user preferences, a POI recommendation method using deep learning in location-based social networks (LBSN) considering privacy protection is proposed. First, the idea of Embedding is used to quantify the user information, friend relationship, POI information, and so on, so as to obtain the internal relationship of the location. Then, based on the user's history and current POI check-in sequence set, the long- and short-term attention mechanism (LSA) is constructed, and the quantified information is used as the input of LSA to better capture the user's long-term and short-term preferences. Finally, the social network information and semantic information are fitted in different input layers, and the time and geographical location information of user's historical behavior are used to recommend the next POI for users. Gowalla and Brightkite datasets are used to demonstrate the proposed method. The results show that the performance of the proposed method is better than other comparison methods under different sparsity, location sequence length, and embedding length. When the number of iterations is 500, the recommended method tends to be stable, and the accuracy is 0.27. Moreover, the recommendation time of the proposed method is less than 130 ms, which is better than other comparative deep learning methods.


Introduction
With the increasingly mature positioning technology and the increasingly powerful performance of smart mobile devices, LBSN have become more and more widely used in daily life [1]. As an information point in a geographic information system, a POI can be a landmark point such as a store, a scenic spot, or a site. In LBSN, users can sign-in on POI to indicate that they have reached this point [2]. Using the user's existing check-in records to recommend their favorite POI has become one of the research contents that has attracted much attention [3].
However, the POI recommendation system is more complicated than the classic recommendation system [4][5][6]. The first thing we face is the more severe data sparsity problem.
Among the massive POIs provided by LBSN, the POIs that can be accessed by users are almost negligible, resulting in extremely sparse data sets. In addition, user sign-in data is a kind of implicit feedback. Whether the user has visited the check-in record of the place will cause the problem of only positive samples but lack of negative samples in the data set. Compared to watching movies or shopping online, people visiting a location in the real world will take more time and effort. For privacy protection, I tend not to leave personal visit records [7]. The second is the cold-start problem that is commonly encountered in recommended system tasks. There are mainly three types of POI recommendation tasks: locations that have never been visited are called coldstart POIs. Users who have never visited any location are called cold-start users. Users who move from one place to another unfamiliar place to live or travel will also encounter cold-start problems [8]. Finally, there is the issue of user dynamic preferences. That is, user preferences will change with the passage of time and changes in the environment [9]. Therefore, it is necessary to consider a variety of influencing 1 3 factors to improve the recommendation performance of this task. At the same time, in the Internet information age where user privacy is increasingly valued, POI recommendations in LBSN that consider privacy protection are even more challenging [10].
In recent years, the rapid development of deep learning technology has brought new opportunities for the development of POI recommendation systems. Based on the above problems and difficulties, a POI recommendation method using deep learning is proposed for the POI recommendation algorithm in LBSN. The innovative points of the proposed method are: 1) Aiming at the problem of data sparsity, the Embedding model is used to quantify the initial information. And for low-dimensional feature models of different information sources, different neural network layers are used to extract high-dimensional features. This further guarantees the accuracy of the next POI recommendation. 2) To solve the problem of information compression loss caused by too long input information, a kind of LSA is proposed. It can dig out the user's long-term preferences from all the historical POI sign-in sequences of the user. At the same time, it focuses on short-term preferences in the current POI sign-in sequence. Comprehensively grasp the dynamic changes of user preferences and improve the efficiency and accuracy of recommendations.
The rest of this paper is arranged as follows. The second section introduces the related research progress in this field; the third section introduces the related technologies used by others, including embedding model and attention layer model; the fourth section introduces the proposed recommendation method of POI based on LSTM-attention; in the fifth section, the feasibility and optimality of the proposed method are simulated by comparing with the current POI recommendation method; the sixth section is the conclusion of this paper.

Related research
Since the POI recommendation task is restricted by physical distance in real life, current research usually focuses on analyzing the influence of location factors caused by spatial information [11][12][13][14]. At present, many algorithms at home and abroad have studied the POI recommendation task. Reference [15] proposed a POI recommendation method in LBSN that includes a special three-layer network structure. A good recommendation performance is achieved, but the recommendation ranking of the POI recommendation task is ignored. Reference [16] proposed a context and preference awareness model for the poor context-awareness in the POI recommendation process. Incorporate contextual influence and user preferences into POI recommendations. The above method predicts by the absolute score of the approximate location, which can effectively extract the global characteristics of the relationship between the user and the POI. However, the ability to express local features will be slightly worse [17]. Therefore, the reference [18] proposed a unified framework called VCG to enhance POI recommendation, incorporating visual content and geographic influence into LBSN. The test results show that the proposed method has strong effectiveness. However, less consideration is given to the influencing factors of users' geographic preferences, and user privacy issues are not considered. Reference [19] proposed a POI recommendation scheme based on group preferences. The solution combines matrix factorization and clustering technology, and can provide quality recommendations without sacrificing user privacy. Although it solves the difficulty of data sparseness caused by privacy issues, this method still has the problem of cold start and poor interpretability.
With the introduction of deep learning algorithms, its advantages have gradually been reflected. First of all, deep learning technology uses nonlinear activation functions for nonlinear modeling of data. To make up for only simple linear assumptions in the traditional recommendation methods, which results in insufficient model capacity limitations [20]. Second, the deep neural network (DNN) helps to express the characteristics of the input data, and can obtain a large amount of relevant descriptive information about users and items. In practical applications, DNN is used for characterization learning work, which can not only reduce the workload of manual feature extraction, but also integrate multi-source and multi-modal data into the recommendation system [21]. In addition, the user's access behavior in real life is highly correlated and even causal. Therefore, many researchers try to apply the recommendation task of deep learning technology to overcome the problems in the traditional recommendation model. Reference [22] proposed a real-time POI embedding model for the POI recommendation task in LBSN. Convolutional neural network (CNN) is used to mine the textual information of POI and learn its internal representation. Combining real-time POI embedding and matrix decomposition methods makes the proposed POI recommendation algorithm more comprehensive. Reference [23] proposed a POI recommendation method based on Recurrent Neural Network (RNN). Taking into account the location interest and context information of similar users, a comprehensive feature representation of user interest and context information is formed, which is more conducive to the accurate recommendation of POI. However, the proposed method takes less consideration of influencing factors such as privacy protection, and the accuracy may be reduced in actual applications. Reference [24] proposed a Deep Representation Learning-Based Model (DRLM). Four different original features are generated for each POI by constructing four co-occurrence matrices. And use the principal component analysis algorithm to generate the semantic feature of each POI from its four original features. Improve the model performance, although it has a good recommendation effect, but cannot solve the cold-start problem well. In reference [25], a POI recommendation model based on user context behavior semantics is proposed. The meta-path of heterogeneous information network is used to represent the complex semantic relationship between users and poi, and the fusion method of learning ranking is used to sort the recommendation results. The results show that the recommendation performance is ideal in simple scenarios. But how to integrate the context information into the model has become a problem to be solved. At present, only a single factor is considered when using deep learning technology for item recommendation tasks. However, more factors need to be included in the personalized POI recommendation task to improve the recommendation effect [26]. Existing research cannot solve the problem that users' POI preferences are dynamically updated with time and geographical changes under the premise of ensuring user privacy. Therefore, the method in this paper is proposed.

Embedding model
The Word Embedding algorithm was proposed by Bengio et al. in 2003. It is a natural language model of a threelayer neural network. The main process is to transform the sparse matrix into a dense matrix through a series of linear transformations [27]. The purpose is to associate independent location vectors, so as to automatically learn and obtain the internal connections between locations. The network structure of the model is shown in Fig. 1.
(1) Input layer The representation of the input layer is the one-hot encoding vector of the location. For example, assuming that there are Q locations in total, the one-hot encoding vector size of each location is 1 × Q. The onehot encoding vector of the first location is [1,0,0,…0], that is, the corresponding location is 1, the rest are 0, and the rest can be deduced by analogy. The C in the figure above represents the number of context locations.
(2) Hidden layer The one-hot encoding vectors of C context locations are, respectively, multiplied by the shared initial input weight matrix Q×K (where K is artificially set), and the corresponding positions of the vectors obtained are superimposed, and averaged to obtain the hidden layer output vector i , where the dimension of The output vector i of the hidden layer is multiplied by the initial output weight matrix � K×Q to obtain the output vector j of the output layer. The dimension of j is 1 × Q. Finally, the Q-dim probability distribution is obtained through activation function processing. (4) For the Q-dim probability distribution, the location represented by the subscript index with the highest probability is used as the predicted target location. Compared with the one-hot of the real location, the initial weight matrix Q×K and � K×Q are updated and iterated through the loss function and the stochastic gradient descent algorithm. The one-hot encoding vector of each location is multiplied by the updated Q×K matrix to get its own Embedding vector.

Attention mechanism model
Attention mechanism is a brain signal processing mechanism similar to human vision. By calculating the weights of the feature vectors output from the bidirectional long short-term memory (Bi-LSTM) network at different times, highlighting some important features, the entire network model can show better performance [28]. In behavior recognition, the neural network focuses on some key actions and objects by adding an Attention mechanism when training the model. For example, playing basketball, where jumping, raising hands, basketball, and hoop objects will be assigned more weight by the Attention mechanism to deepen the model's memory. When the model encounters these types of actions or objects next time, it will give priority to predicting these behaviors and narrow the scope of recognition. Then adjust the weight distribution according to the relationship between the actions to achieve more accurate recognition [29,30]. The attention model is shown in Fig. 2.
Among them, t o represents the t th feature vector output from the Bi-LSTM network. The feature vector is transferred to the attention mechanism model, and the initial state vector t (1024 × 1) is obtained through the hidden layer in the attention model. The weight coefficient t represents the proportion of the initial input state vector in the final output state vector . The product of each initial input state vector t and the weight coefficient t is accumulated and summed to obtain the final output state vector . The calculation is as follows: In the formula, b t is an energy bias, e t is the energy value determined by the state vector t of the t th eigenvector, and (1) t is the weight matrix from one unit layer to another. Using the ratio of the power of the energy value of each part with e as the base to the cumulative sum of the energy value of the previous part, the weight coefficient that has an impact on the recognition result can be obtained. This realizes the transition from the initial state to the attention state, and then obtains the final output state vector . Finally, is integrated through a fully connected layer as an output value to reduce the impact of feature positions on classification. The Softmax classifier is used to map the output of multiple neurons to the (0,1) interval to achieve multi-classification.

Proposed POI recommendation method based on LSTM-attention
The main problem of the existing LSTM model and Embedding model is that they can only simulate singlesource information. In the POI recommendation scenario, it contains a lot of social information and semantic information. Users do not simply move from one location to another. In addition to following their own preferences, users may also be influenced by friends. Moreover, not all users have a favorite attitude towards POIs they have visited before. At this time, the user's past review information is very important. The pure LSTM model can only model the user's behavior sequence. Inputting the location information that the user has visited into the network can only capture the interest information of the user's visited location. Without adding the user's historical comment information, the user's interest changes cannot be described in detail. At the same time, the influence of the user's friend relationship on the user's choice cannot be accepted. And simply using Embedding, the existing recommendation model can independently vectorize users and friends, POIs, and comments, and apply them to the POI recommendation problem. Using one of this information alone cannot make fine-grained recommendations. However, if you train three kinds of vectors, it is difficult to grasp the weights and proportions, which will often cause model training to collapse. Even if it can be successfully trained, it is difficult to successfully apply it on the test set. This model adopts an end-to-end training method, and considers privacy protection, and regards the relationship between users and their friends as inherent attributes. The historical comment information is vectorized and then combined with the POI information visited at the time and input into the LSTM network, and user interest information is obtained as a dynamic attribute. Then, the three are combined to recommend the next location for the user.

Problem definition
For the POI recommendation problem, define U as a user set, P as a POI set, and T as a label set. Among them, the user u , the point of interest v , and the label g are d-dimensional quantities. Each point of interest v has its latitude and longitude information x v , y v and a label set

Definition 1
The user's POI location is composed of multiple locations. Since the research is about Next POI location recommendations, the user POI locations are arranged in chronological order. The POI location of user U n is represented as U n = P s1 , P s2 , … , P sh , U n ∈ U . Where P s1 is the first place the user has visited in chronological order, and the last place is denoted as P sh .
Definition 2 Based on the implicit feedback model, the places that the user has visited are marked as 1, and the places that have not been visited are marked as 0. The difference from the explicit feedback model is that there is no preference for location and no score. Implicit feedback involves the positive sample and negative sample of the user, O represents the positive sample of the user (the place the user has been to), O ∈ U n . X represents the negative sample of the user (a place that the user has not been to), X ∈ U n ∕P , where the symbol / represents the difference between the two sets.
Definition 3 For next POI recommendations for timing issues, use to represent the user's target location. If the location that the user has been to continuously is P s1 , P s2 , P s3 , then the next location that the user has visited is the location that needs to be predicted. Therefore, P s4 is the target location, denoted by .

Long-and short-term attention mechanism
The attention mechanism can filter out the key information that is more important to the current task goal from a large number of information. In the process of sequence-aware recommendation, the attention mechanism can solve the problem of information compression loss caused by too long input information to a certain extent [31]. To better capture the long-term and short-term preferences of the user in the current POI check-in sequence, based on the user's historical POI check-in sequence set and the current POI check-in sequence, an LSA using all the user's check-in sequences is proposed. The long-term preference of the user can be mined from all the historical POI signin sequences of the user, while focusing on the short-term preference in the current POI sign-in sequence. The structure is shown in Fig. 3.
Assume that the user has a total of m POI checkin sequences, and the m th is the current POI check-in sequence. The overall hidden state of the user's first m − 1 historical POI sign-in sequences is denoted as LSA mainly includes two parts, a forward network used to calculate the attention score of each moment, and an attention synthesis function used to weigh the attention representation of the sequence. The specific forward propagation process is expressed as In the formula, i is the weight of the i th moment in the current POI sign-in sequence. m LSA is the attention representation of the current POI sign-in sequence obtained by the attention mechanism. m i represents the hidden state at the i th moment in the current POI sign-in sequence. m represents the overall representation of the current POI check-in sequence.̄ is the long-term preference of the user. * and a are weight matrix and deviation vector, respectively. is the activation function. The introduction of ̄ means that the calculation of the attention score will consider the user's long-term preferences. The user may have multiple historical POI check-in sequences. The overall representation of the j th sequence is denoted as j . To capture the user's long-term preference reflected in the historical sequence, the overall representation of all historical POI check-in sequences of the user is averaged to obtain the user's long-term preference representation. The specific calculation is as follows: In practical applications, to save the amount of calculation and speed up the generation of the recommendation list, the long-term preference representation vector ̄ obtained from the historical POI check-in sequence can be stored for each user in the system.
If the current sequence is the user's first POI sign-in sequence, the value of ̄ is 0. At this time, the forward network calculation of LSA becomes For ease of presentation, the calculation process of the above-mentioned LSA is abbreviated as

Model framework
The user's vector input is similar to Word2Vec's input, input one-hot vector as input, and then get the user's vector through the Embedding layer. Similarly, the vector of friends is k one-hot vectors as input, and then, the vector of k friends is obtained as input. In the implementation, directly input the k-hot vector, and get the vector representing the relationship network as the input of this layer. For the user's evaluation information for each point of interest, the pre-trained vector corresponding to the word is used as input. Then, through the convolutional layer and the region of interest (ROI) pooling layer, the evaluation information is compressed into a one-dimensional vector as part of the input of the LSA. This vector, the geographic location vector of the point of interest, and the vector of the point of interest are joined together as the input of the LSA layer. The overall network architecture is shown in Fig. 4.
Inputs from different sources have been extracted into high-dimensional features through the above-mentioned process. They are the user's own characteristics, social characteristics, evaluation, and behavior sequence characteristics [ 32,33]. After these features are spliced together, the vector representation of the points of interest to be visited next time can be obtained through the activation layer. At the same time, to ensure the accuracy of the model, the high-dimensional features are passed through the fully connected layer, and a geographic location information and access ranking information are output. To ensure that the location of the visit and the location of the next visit has a small deviation in geographic location. Especially for low-dimensional features of different information sources, the model uses different neural network layers to extract high-dimensional features. User features are directly connected to the last fully connected and activated layer. The social features are the information of the user's friends, and the high-dimensional features are extracted by CNN and then converted into fixed-length high-dimensional features through the ROI pooling layer. User comments on points of interest, like social information, need to go through the CNN layer to extract high-dimensional features, and then go through the ROI pooling layer to obtain fixed-length high-dimensional features. Then < comment feature, geographic location, point of interest feature > will be entered as a whole into the LSA network as the user's historical behavior feature. Because LSA can well express the user's long-term interest, and can also accurately capture the user's interest characteristics in the recent period. After the highdimensional features pass through the tanh activation layer, the user's existing interest features can be obtained. This feature expresses the user's next point of interest. At the same time, this high-dimensional feature should also be able to express the user's range of activities. Using the fully connected layer, the corresponding geographic location information in high-dimensional features can be extracted.

Loss function and optimization algorithm
The loss function of the model is divided into two parts: the distance between the predicted interest point vector and the real vector and the distance between the predicted geographic location and the real geographic location. The gap between the predicted vector and the real vector can describe the accuracy of the predicted vector and is the most important part of the loss function. The difference between the predicted geographic location and the actual location is also added to the loss function as part of the adjustment. This is because the user's own range of activities is limited, and the predicted POI should not deviate too much from the user's regular range of activities. Otherwise, the recommendation will become meaningless [34]. The specific loss function is as follows: (1) The difference between the predicted vector and the real vector is measured by cosine similarity. The predicted interest point vector is p t . We use m points of interest visited by the user after the current moment l to determine the prediction accuracy In the formula, p v and p l represent the historical visit records of v and l.
(2) Euclidean distance is used for the similarity between geographic locations, and the predicted geographic location is set to x l ,ỹ l . Also measure the distance between it and m points of interest in the future. The loss function is as follows: Finally, the loss function of the model is as follows: (8) Loss total = Loss sim + Loss loc The proposed method uses adaptive moment estimation Adam as the optimization algorithm. The algorithm uses the gradient's first-order and second-order matrix estimation to dynamically adjust the learning rate of each parameter. The advantage is that after adjustment, each iterative learning rate has a certain range, and the parameters are relatively stable. The mathematical theory is expressed as follows: Equation (9) is the first-order moment estimation and the second-order moment estimation of the gradient.  (10) is a correction to the first and second moment estimation, which can be approximated as an unbiased estimation of the expectation. Equation (12) is a dynamic constraint on the learning rate . Among them, is a very small number to avoid the denominator being 0.

Experimental results and analysis
In the experiment, the Gowalla and Brightkite datasets are used, both of which are location-based social networking sites. It can provide users with services such as location sharing, activity sharing, line sharing, and so on by way of sign-in. From the Gowalla data set, 3,500 users and 3230 points of interest were randomly selected, 61,742 signin records, and the density of the extracted data set was 6.89 × 10 -3 . From the Brightkite data set, 6000 users and 3,525 points of interest were randomly selected, 51,815 signin records, and the density was 3.17 × 10 -3 . The description of the two datasets is shown in Table 1.

Evaluation index
To accurately evaluate the performance of each method on the Next POI recommendation task, Precision is used to measure its performance. The calculation is as follows: Each user has one positive sample data and multiple negative sample data in the test set. Where O represents the positive sample data of user n in the test set. Both positive and negative sample data have a score, and the model predicts the score of the user's next destination. sort n sort n represents the set of POI locations with the highest predicted scores of the positive and negative samples of user n in the test set. If the location of the positive sample data of user n is in the sort n set, then i is recorded as 1, which means that the model predicts the user's POI location correctly; otherwise, it is recorded as 0. N represents the total number of users.
Generally, the larger the value, the higher the accuracy of the model's prediction.

Parameter discussion
In the proposed method, the learning rate controls the rate of decline of the objective function, and determines the size of the regular term. Based on the Gowalla and Brightkite datasets, the influence of and on the recommendation results is shown in Fig. 5. In addition to the precision, the used evaluation indicators also use two indicators: Recall and Mean Average Precision (MAP). As can be seen in Fig. 5a-c, on the Gowalla and Brightkite data sets, there is a negative correlation between accuracy, recall, and MAP and . When = 10 −5 , the three all reach the maximum. Take the Gowalla dataset as an example, the order is 0.047, 0.25, and 0.135. Similarly, it can be seen from Fig. 5d-f that when does not exceed 10 -4 on the two datasets, the accuracy, recall, and MAP are increasing. When exceeds 10 -4 , both MAP and recall rate decrease significantly. Therefore, is set to 10 -4 and is set to 10 -5 .

Performance comparison with comparison method
To verify the accuracy of the proposed method, compare it with reference [15,24,25]. Since the accuracy of the recommendation result is related to the sparseness of the data set, the accuracy of the prediction result is different if the data set with different sparseness is selected. For the two data sets under different sparsity, ten tests were performed, respectively. Take the average precision as shown in Fig. 6. The algorithm randomly filters out some training sets through the random function to control the sparsity of the training set.
It can be seen from Fig. 6 that the accuracy of the proposed method is significantly better than other comparison methods under different sparsity. And when the data sparsity is 20%, its recommendation accuracy is nearly 50% higher than the traditional method in the Reference [15]. Higher than the deep learning method Reference [24] and [25] is about 14% to 21%. As the amount of data increases, the difference between the recommended accuracy of the proposed method and the comparison method has increased significantly. When the sparsity is 100%, the ultra-deep learning method is about 28% to 32%. It can be argued that the proposed method is very effective for mining user points of interest to realize the next POI point of interest recommendation task.
When the data set is preprocessed, different sequence lengths have different effects on the recommended accuracy. Therefore, the effectiveness of the proposed method is verified by setting up sequences of different lengths and comparing other methods. In the experiment, the length of the time series location ranges from 4 to 14. The precision comparison results of sequence lengths at different locations under the same data set are shown in Fig. 7. It can be seen from Fig. 7 that the method in reference [15] does not perform well on timing issues. Because it integrates social and geographic influences into the matrix decomposition framework, it cannot directly analyze the changes in the sequence of locations, so the accuracy rate is affected. Similarly, the accuracy of the proposed method under different location sequence lengths is better than the other two deep learning methods. When the location sequence length is 6, the performance of the proposed method is the best, and the recommended accuracy is the highest 0.24. When the sequence of locations exceeds 6, the recommended performance decreases, but it is still higher than other methods. It can be seen that the choice of the timing length has to be considered for the impact of the recommended method. Similarly, the number of iterations also determines the performance of the recommended method. Some methods converge faster, and some methods converge slowly. The accuracy comparison results of each method under the same data set with different iteration times are shown in Fig. 8.
It can be seen from Fig. 8 that when the number of iterations is 500, the recommended accuracy of each method reaches the maximum. And the recommended accuracy of the proposed method is 0.27, which is better than other comparison methods. Because it uses the LSA model, it can accurately capture the user's recent interest characteristics. Reference [24] uses DRLM analysis to generate semantic features of each POI, and then realizes location recommendation. Reference [25] uses meta-path of heterogeneous information network to represent the complex semantic relationship between users and poi, and combined with the fusion method of learning ranking to sort the recommendation results, and the accuracy of the two is not much different. When the number of iterations is 500, the accuracy rates are 0.16 and 0.18, respectively. Since the two contrasting deep learning methods do not consider issues such as user dynamic preferences, the recommendation performance still needs to be improved. Ref. [15] Ref. [24] Ref. [25] The proposed method Ref. [15] Ref. [24] Ref. [25] The proposed method Ref. [15] Ref. [24] Ref. [25] The proposed method Embedding length Ref. [15] Ref. [24] Ref. [25] The proposed method In addition, the number of different dimensions of the POI vector will also affect the performance of the recommendation method. Every time the dimension is set in the experiment, it is necessary to test the effect of the recommended method. Under the same sparsity, the precision comparison results when the Embedding dimensions are 8, 16, 32, and 64 are shown in Fig. 9.
It can be clearly seen from Fig. 9 that when the Embedding dimension is 32, the recommendation performance of each method is the best. The recommended accuracy of the proposed method is 0.34, which is 20.59% higher than the reference [25]. When the Embedding dimension is 16, the recommendation accuracy is the lowest. Because the Embedding dimension is lower, the ability to process sparse data is weaker, and the result of recommendation is not ideal.
The time consumption of the recommended method is an important indicator. The comparison results of the time consumption of each recommended method under different sparsity are shown in Fig. 10.
It can be seen from Fig. 10 that the recommended timeconsuming of the proposed method is shorter than that of References [24,25], and the maximum time is no more than 130 ms. Because it uses the LSA model, it can quickly obtain the key information that assists the POI recommendation, which is less time-consuming than other deep learning methods. However, compared with Reference [15], the recommendation takes a little longer. Because the recommended method in the Reference [15] is simple, the calculation amount is not large, so it takes a short time. When the sparsity is 40%, it takes only 36 ms. It can be argued that the proposed method has a certain guarantee in the real-time performance of POI recommendations.

Conclusion
Traditional POI recommendation focuses on the user's check-in frequency and check-in time, etc., and rarely pays attention to the user's front and back behavior associations reflected in the POI check-in sequence. And the capture of the dynamic variability and periodic characteristics of user access preferences is not satisfactory. For this reason, a POI recommendation method using deep learning in LBSN considering privacy protection is proposed. Use Embedding ideas to quantify user information, friend relationships, POI information, etc. The information is jointly inputted into the LSA model for analysis and processing to capture the user's interest characteristics and interest changes. And use the time and geographic location information of the user's historical behavior to recommend the next point of interest for the user. The Gowalla and Brightkite datasets are used to experimentally demonstrate the proposed method.
The context information used in the proposed method only includes geographic distance context, time context, and POI classification information. In the future research, we will try to incorporate more contextual information related to the POI sign-in sequence into the recommendation model, or propose a general model structure that can effectively integrate all relevant contextual information.
Funding This work was supported by Scientific and Technological Innovation Programs of Higher Education Institutions in Shanxi (STIP, No. 201802004).

Availability of data and materials
The data included in this paper are available without any restriction.
Code availability Not applicable.

Declarations
Conflicts of interest/competing interests The authors declare that they have no conflicts of interest to report regarding the present study.
Ethics approval Our manuscript does not involve research manuscripts of human participants, human data, or human tissues, so our manuscript does not require the statement of ethical approval and ethical consent.

Consent to participate
We consent to participate. Sparsity/% Ref. [15] Ref. [24] Ref. [25] The proposed method Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/.