The invention relates to a place recommendation method based on a shared
hypergraph mask. The method comprises the following steps: selecting a public
data set and constructing a
recommendation model; constructing a trajectory
hypergraph by using long and short trajectories of a user, inputting the trajectory
hypergraph into the model, calculating user characterization and trajectory characterization of the long and short trajectories through an auto-
encoder module in the model, and calculating fusion characterization of the user characterization and the trajectory characterization; a
loss function # imgabs0 # is constructed by adopting a hypergraph, global and local loss functions # imgabs1 # and # imgabs2 # are constructed by using user characterization of long and short tracks and track characterization through a double-level contrast learning module in a model, local tracks obtained after position information is embedded are embedded into Eu, a prediction result # imgabs3 # is obtained through a
Transformer encoder, and a
loss function # imgabs4 # is constructed at the same time, and four losses are constructed through the prediction result # imgabs3 # and the
loss function # imgabs4 #. The loss function forms a model overall loss function # imgabs5 # for training the model, and a final trained
recommendation model is obtained. By adopting the method, discrete data can be effectively processed, the characteristics of long and short term behavior
modes can be accurately captured, and deeper and more accurate interest point recommendation can be provided.