Real-Time Session-Based Recommendations Using LSTM with Neural Embeddings

  • David LenzEmail author
  • Christian Schulze
  • Michael Guckert
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 11140)


Recurrent neural networks have successfully been used as core elements of intelligent recommendation engines in e-commerce platforms. We demonstrate how LSTM networks can be applied to recommend products of interest for a customer, based on the events of the current session only. Inspired by recent advances in natural language processing, our network computes vector space representations (VSR) of available products and uses these representations to derive predictions of user behaviour based on the clickstream of the current session. The experimental results suggest that the Embedding-LSTM is well suited for session-based recommendations, thus offering a promising method for attacking the user cold start problem. A live test gives proof that our LSTM model outperforms a recommendation model created with traditional methods. We also show that providing the learned VSR as features to neighbourhood-based methods leads to improved performance as compared to standard nearest neighbour methods.


LSTM Neural embeddings Session-based recommendations Real-time recommendations 


  1. 1.
    Barkan, O., Koenigstein, N.: Item2Vec: neural item embedding for collaborative filtering. CoRR abs/1603.04259 (2016).
  2. 2.
    Dallmann, A., Grimm, A., Pölitz, C., Zoller, D., Hotho, A.: Improving session recommendation with recurrent neural networks by exploiting dwell time. ArXiv e-prints, June 2017Google Scholar
  3. 3.
    Davahri, M.: Kollaborative empfehlungssysteme im e-commerce. Technical report, Technische Hochschule Mittelhessen in cooperation with Dastani Consulting (2016)Google Scholar
  4. 4.
    Devooght, R., Bersini, H.: Collaborative filtering with recurrent neural networks. CoRR abs/1608.07400 (2016).
  5. 5.
    Hidasi, B., Karatzoglou, A., Baltrunas, L., Tikk, D.: Session-based recommendations with recurrent neural networks. CoRR abs/1511.06939 (2015).
  6. 6.
    Hidasi, B., Quadrana, M., Karatzoglou, A., Tikk, D.: Parallel recurrent neural network architectures for feature-rich session-based recommendations. In: Proceedings of the 10th ACM Conference on Recommender Systems, RecSys 2016, pp. 241–248. ACM, New York (2016).
  7. 7.
    Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997). Scholar
  8. 8.
    van der Maaten, L., Hinton, G.: Visualizing high-dimensional data using t-SNE (2008)Google Scholar
  9. 9.
    Mikolov, T., Sutskever, I., Chen, K., Corrado, G., Dean, J.: Distributed representations of words and phrases and their compositionality. CoRR abs/1310.4546 (2013).
  10. 10.
    Ricci, F., Rokach, L., Shapira, B., Kantor, P.B. (eds.): Recommender Systems Handbook, 1st edn. Springer, Boston (2011). Scholar
  11. 11.
    Sutskever, I., Vinyals, O., Le, Q.V.: Sequence to sequence learning with neural networks. Technical report arXiv:1409.3215 [cs.CL], Google (2014). NIPS 2014
  12. 12.
    Tan, Y.K., Xu, X., Liu, Y.: Improved recurrent neural networks for session-based recommendations. In: Proceedings of the 1st Workshop on Deep Learning for Recommender Systems, DLRS 2016, pp. 17–22. ACM, New York (2016).
  13. 13.
    Yuan, J., Shalaby, W., Korayem, M., Lin, D., AlJadda, K., Luo, J.: Solving cold-start problem in large-scale recommendation engines: a deep learning approach. CoRR abs/1611.05480 (2016).

Copyright information

© Springer Nature Switzerland AG 2018

Authors and Affiliations

  • David Lenz
    • 1
    Email author
  • Christian Schulze
    • 2
  • Michael Guckert
    • 2
  1. 1.Fachbereich WirtschaftswissenschaftenJustus-Liebig-Universität GießenGiessenGermany
  2. 2.KITE - Kompetenzzentrum für InformationstechnologieTechnische Hochschule MittelhessenFriedbergGermany

Personalised recommendations