The invention provides a sequence recommendation method based on a self-attention auto-
encoder, and the method comprises the steps: obtaining a user commodity sequence and a scoring matrix, and carrying out the preprocessing of the commodity sequence; training the commodity sequence by using a self-
attention model, and predicting a relevance
score of the user and the commodity; reconstructing thescoring matrix by using an auto-
encoder, and calculating a user
preference index; and in combination with the relevance
score of the user and the commodity and the user
preference index, obtaining a high-
score commodity to preferentially recommend to the user. According to the sequence recommendation method based on the self-attention auto-
encoder, the article browsing sequence of the user is converted into a low-dimensional dense vector by using a
word embedding method; the position codes are combined and input into the self-
attention model, then the self-encoder is used for fitting and reconstructing the scoring matrix, the user
preference index is calculated, finally, the final
prediction score is obtained, recommendation is made for the user, factors such as long-term and short-term preferences of the user are considered at the same time, and the recommendation precision is effectively improved.