The invention discloses a rich neighborhood social contact recommendation method based on comparative learning, which comprises the following steps: acquiring interaction data of a user and an item from a selected
data set, and dividing the
data set into a
training set and a
test set; constructing a user-project interaction graph and a user-user
social graph; updating the user, the project and the social embedding vector by using lightweight graph
convolution; users and structural neighbors of the users are regarded as right facing for comparative learning; performing cross-view comparative learning between the user-item interaction graph and the user-user
social graph, and jointly optimizing a
loss function to
train a model; and performing recommendation prediction on the
test set, and evaluating the performance of the model. According to the method, the
social information of the user is fused into a recommendation
system, in consideration that direct fusion of
heterogeneous information may cause damage to representation learning, cross-view contrast learning is used to maximize the consistency of the same vector in different views, and meanwhile, the relationship between the user and a structural neighbor thereof in the
social graph is deeply mined, so that the
social information is further enriched, and the recommendation efficiency is improved. And the recommendation performance is improved.