{'fraction_non_alphanumeric': 0.02937062937062937, 'fraction_numerical': 0.0, 'mean_word_length': 5.781990521327014, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Spatio-Temporal Mogrifier LSTM and Attention Network for Next POI Recommendation

The next point-of-interest (POI) recommendation is indispensable in enhancing the richness of users’ lives and helping service providers achieve more economic earnings. Recurrent Neural Network (RNN) based methods are remarkable in learning users’ long-term or short-term behavioral dependencies. However, existing RNN-based methods lack sufficient interaction with their contexts, and at the same time, ignore the importance of non-consecutive POIs with different degrees for understanding users’ behaviors. In order to solve these problems, we propose a novel Spatio-Temporal model based on mogrifier LSTM and attention network (named STMLA) for next POI recommendation. The STMLA model builds a parallel structure to process the users’ check-in sequences through the mogrifier LSTM and the multi-head attention network, which can achieve better contextual interaction while selectively considering nonconsecutive factors with different degrees of significance. Our STMLA algorithm explicitly integrates temporal and spatial information to capture users’ long-term and short-term preferences, incorporating spatial information to build the Location-Saltant algorithm. Through extensive experiments on several real-world datasets, we demonstrate that our model outperforms the existing state-of-the-art methods in the next POI recommendation task.