Skip to main content
Log in

A graph neural network incorporating spatio-temporal information for location recommendation

  • Published:
World Wide Web Aims and scope Submit manuscript

Abstract

Location recommendation is at the core of location-based service, while recommendation based on graph neural networks (GNNs) has recently flourished, and for location recommendation tasks, GNN-based approaches are equally applicable. To provide fair location recommendation services for multi-users, correlation information between non-adjacent locations and non-consecutive visits is essential information in understanding user behavior. The key to GNN-based location recommendation is how to use GNNs to learn embedding representations for users and locations according to their neighbors. Existing approaches usually focus on how to aggregate information from the perspective of spatial structural information, but temporal information about neighboring nodes in the graph has not been fully exploited. In this paper, a GNN location recommendation model, STAGNN, is proposed to incorporate spatio-temporal information to support fairness-driven location-based service. STAGNN facilitates the progression from spatial to spatio-temporal by generating spatio-temporal embeddings from the perspective of spatial structural information and temporal information. STAGNN also explicitly uses spatio-temporal information of all check-ins through an extended attention layer, an improvement that incorporates non-adjacent locations and non-consecutive visits between point-to-point interactions into the learning of user/location embedding representations with significant spatio-temporal effects. STAGNN also employs a multi-head attention mechanism. Experimental results demonstrate that STAGNN brings a good improvement in GNN-based location recommendation, outperforming the optimal baseline by 6%-11% on the three datasets under the HR@20 evaluation metric.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Data Availibility

The data used to support the findings of this study are available from the corresponding author upon request.

References

  1. Feng, S. Li, X. Zeng, Y. Cong, G. Chee, Y.M. Personalized ranking metric embedding for next new poi recommendation. In: IJCAI 15 Proceedings of the 24th International Conference on Artificial Intelligence, pp. 2069–2075 (2015). ACM

  2. Haldar, N. A. H., Li, J., Ali, M. E., Cai, T., Chen, Y., Sellis, T., Reynolds, M.: Top-k socio-spatial co-engaged location selection for social users. IEEE Trans. Knowl. Data Eng. 35(5), 5325–5340 (2022)

  3. Jia, Y., Gu, Z., Jiang, Z., Gao, C., Yang, J.: Persistent graph stream summarization for real-time graph analytics. World Wide Web 1-21 (2023)

  4. Rahmani, H.A., Aliannejadi, M., Baratchi, M., Crestani, F.: A systematic analysis on the impact of contextual information on point-of-interest recommendation. ACM Transactions on Information Systems (TOIS) 40(4), 1–35 (2022)

    Article  Google Scholar 

  5. Islam, M.A., Mohammad, M.M., Das, S.S.S., Ali, M.E.: A survey on deep learning based point-of-interest (poi) recommendations. Neurocomputing 472, 306–325 (2022)

    Article  Google Scholar 

  6. Cheng, C. Yang, H. Lyu, M.R. King, I. Where you like to go next: Successive point-of-interest recommendation. In: Twenty-Third International Joint Conference on Artificial Intelligence (2013)

  7. Liu, Q. Wu, S. Wang, L. Tan, T. Predicting the next location: A recurrent model with spatial and temporal contexts. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 30 (2016)

  8. Zhao, P., Luo, A., Liu, Y., Xu, J., Li, Z., Zhuang, F., Sheng, V.S., Zhou, X.: Where to go next: A spatio-temporal gated network for next poi recommendation. IEEE Transactions on Knowledge and Data Engineering 34(5), 2512–2524 (2020)

    Article  Google Scholar 

  9. Hamilton, W. Ying, Z. Leskovec, J. Inductive representation learning on large graphs. Advances in neural information processing systems 30 (2017)

  10. Kipf, T.N. Welling, M. Semi-supervised classification with graph convolutional networks. In: International Conference on Learning Representations

  11. Velickovic, P. Cucurull, G. Casanova, A. Romero, A. Lio, P. Bengio, Y. et al. Graph attention networks. stat 1050 (20), 10 48550 (2017)

  12. Berg, R. Kipf, T. Welling, M., et al. Graph convolutional matrix completion (2017)

  13. He, X. Deng, K. Wang, X. Li, Y. Zhang, Y. Wang, M. Lightgcn: Simplifying and powering graph convolution network for recommendation. In: Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 639–648 (2020)

  14. Wang, X. He, X. Wang, M. Feng, F. Chua, T.-S. Neural graph collaborative filtering. In: Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 165–174 (2019)

  15. Ying, R. He, R. Chen, K. Eksombatchai, P. Hamilton, W.L. Leskovec, J. Graph convolutional neural networks for web-scale recommender systems. In: Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery Data Mining, pp. 974–983 (2018)

  16. Jia, Y., Lin, M., Wang, Y., Li, J., Chen, K., Siebert, J., Zhang, G.Z., Liao, Q.: Extrapolation over temporal knowledge graph via hyperbolic embedding. CAAI Trans. Intell. Technol. 8(2), 418–429 (2023)

    Article  Google Scholar 

  17. Wu, S., Sun, F., Zhang, W., Xie, X., Cui, B.: Graph neural networks in recommender systems: a survey. ACM Computing Surveys 55(5), 1–37 (2022)

    Article  Google Scholar 

  18. Liu, Q. Wu, S. Wang, D. Li, Z. Wang, L. Context-aware sequential recommendation. In: 2016 IEEE 16th International Conference on Data Mining (ICDM), pp. 1053–1058 (2016). IEEE

  19. Zhu, Y. Li, H. Liao, Y. Wang, B. Guan, Z. Liu, H. Cai, D. What to do next: Modeling user behaviors by time-lstm. In: IJCAI, vol. 17, pp. 3602–3608 (2017)

  20. Kang, W.-C. McAuley, J. Self-attentive sequential recommendation. In: 2018 IEEE International Conference on Data Mining (ICDM), pp. 197–206 (2018). IEEE

  21. Li, J. Wang, Y. McAuley, J. Time interval aware self-attention for sequential recommendation. In: Proceedings of the 13th International Conference on Web Search and Data Mining, pp. 322–330 (2020)

  22. Liu, J., Chen, Y., Huang, X., Li, J., Min, G.: GNN-based long and short term preference modeling for next-location prediction. Inf. Sci. 629, 1–14 (2023)

    Article  Google Scholar 

  23. Kong, D. Wu, F. Hst-lstm: A hierarchical spatial-temporal long-short term memory network for location prediction. In: IJCAI, vol. 18, pp. 2341–2347 (2018)

  24. Yao, D. Zhang, C. Huang, J. Bi, J. Serm: A recurrent model for next location prediction in semantic trajectories. In: Proceedings of the 2017 ACM on Conference on Information and Knowledge Management, pp. 2411–2414 (2017)

  25. Feng, J. Li, Y. Zhang, C. Sun, F. Meng, F. Guo, A. Jin, D. Deepmove: Predicting human mobility with attentional recurrent networks. In: Proceedings of the 2018 World Wide Web Conference, pp. 1459–1468 (2018)

  26. Huang, L., Ma, Y., Wang, S., Liu, Y.: An attention-based spatiotemporal lstm network for next poi recommendation. IEEE Transactions on Services Computing 14(6), 1585–1597 (2019)

    Article  Google Scholar 

  27. Sun, K. Qian, T. Chen, T. Liang, Y. Nguyen, Q.V.H. Yin, H. Where to go next: Modeling long-and short-term user preferences for point-of-interest recommendation. In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, pp. 214–221 (2020)

  28. Zhang, J. Shi, X. Zhao, S. King, I. Star-gcn: stacked and reconstructed graph convolutional networks for recommender systems. In: Proceedings of the 28th International Joint Conference on Artificial Intelligence, pp. 4264–4270 (2019)

  29. Wu, F. Souza, A. Zhang, T. Fifty, C. Yu, T. Weinberger, K. Simplifying graph convolutional networks. In: International Conference on Machine Learning, pp. 6861–6871 (2019). PMLR

  30. Gehring, J. Auli, M. Grangier, D. Yarats, D. Dauphin, Y.N. Convolutional sequence to sequence learning. In: International Conference on Machine Learning, pp. 1243–1252 (2017). PMLR

  31. Li, J. Tu, Z. Yang, B. Lyu, M.R. Zhang, T. Multi-head attention with disagreement regularization. In: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 2897–2903 (2018)

  32. Vaswani, A. Shazeer, N. Parmar, N. Uszkoreit, J. Jones, L. Gomez, A.N. Kaiser, L. Polosukhin, I. Attention is all you need. Advances in neural information processing systems 30 (2017)

  33. Cho, E. Myers, S.A. Leskovec, J. Friendship and mobility: user movement in location-based social networks. In: Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1082–1090 (2011)

  34. Yang, D. Qu, B. Yang, J. Cudre-Mauroux, P. Revisiting user mobility and social relationships in lbsns: a hypergraph embedding approach. In: The World Wide Web Conference, pp. 2147–2157 (2019)

  35. Rendle, S. Freudenthaler, C. Gantner, Z. Schmidt-Thieme, L. Bpr: Bayesian personalized ranking from implicit feedback. In: Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, pp. 452–461 (2009)

  36. He, X. Liao, L. Zhang, H. Nie, L. Hu, X. Chua, T.-S. Neural collaborative filtering. In: Proceedings of the 26th International Conference on World Wide Web, pp. 173–182 (2017)

  37. Kingma, D.P. Ba, J. Adam: A method for stochastic optimization. In: Bengio, Y. LeCun, Y. (eds.) 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7–9, 2015, Conference Track Proceedings (2015)

  38. Glorot, X. Bengio, Y. Understanding the difficulty of training deep feedforward neural networks. In: Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, pp. 249–256. JMLR Workshop and Conference Proceedings (2010)

Download references

Acknowledgements

The authors thank the reviewers for their constructive comments in improving the quality of this paper.

Funding

This work is supported by the National Natural Science Foundation of China (No. 62076224) and the Open Research Project of The Hubei Key Laboratory of Intelligent Geo-Information Processing (KLIGIP-2022-B16).

Author information

Authors and Affiliations

Authors

Contributions

Yunliang Chen made substantial contributions to the design of the work. Guoquan Huang contributes to the implementation of the work and the writting of the draft. Yuewei Wang and Xiaohui Huang contribute to the analysis of experimental results and the revision of the draft. Geyong Min contributes to the revision of the draft.

Corresponding author

Correspondence to Guoquan Huang.

Ethics declarations

Ethical Approval

Not applicable.

Competing interests

We declare that none of the authors have any competing interests in the manuscript.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

This article belongs to the Topical Collection: Special Issue on Fairness-driven User Behavioral Modelling and Analysis for Online Recommendation

Guest Editors: Jianxin Li, Guandong Xu, Xiang Ren, and Qing Li.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Chen, Y., Huang, G., Wang, Y. et al. A graph neural network incorporating spatio-temporal information for location recommendation. World Wide Web 26, 3633–3654 (2023). https://doi.org/10.1007/s11280-023-01193-9

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11280-023-01193-9

Keywords

Navigation