The present application discloses an online group recommendation method and
system based on a multi-scale contrastive learning dual-
tower model, belonging to the field of
artificial intelligence technology. The method comprises: first, the
system obtains and pre-processes
relevant information for online group recommendation, generates a
user group sequence, a user initial representation, an event initial representation, and a neighbor set of users and events; the left
tower of the model is composed of a sequence coding network, including a group embedding coding layer, a sequence initial coding layer, and a similar user coding layer, aiming to extract a sequence representation of a
user group; the right
tower is composed of a group coding network, including an opinion fusion layer and a
feature aggregation layer, for generating a final representation of the group; the contrastive
learning network includes group-group, sequence-sequence, and sequence-group contrast
layers, and a corresponding contrast
loss function is constructed; by optimizing the
loss function, a multi-scale contrastive learning dual-tower optimization model is trained to finally achieve accurate and personalized group recommendation results.