Fig. 3
From: Personalized tourism recommendation model based on temporal multilayer sequential neural network

Time series attention mechanism. The attention mechanism first computes the dot product of each element with all other elements, resulting in an initial relevance score. Subsequently, positional offsets are introduced to enhance the model’s ability to distinguish between elements at different positions. Then, the SoftMax function is applied to normalize these relevance scores, yielding a set of attention weights. These weights reflect the importance of each element in processing the current input, enabling the model to focus on the most relevant information.