The application relates to the technical field of user portrait generation, in particular to a user portrait generation method and
system based on private domain traffic of a
public account, which comprises the following steps: acquiring recommended information of a
public account clicked and followed by a user each time, determining a theme distribution of the recommended information clicked by the user each time by using a probability generation model; composing a probability distribution sequence by using the probability distribution of each theme
label of the user in the recommended information clicked all the times; analyzing a change trend and persistence of elements in the probability distribution sequence to determine a situation persistence of each theme
label of the user; analyzing a current following degree of each theme
label of the user based on the probability distribution sequence, combining the situation persistence to determine an interest retention degree of each theme label of the user; and determining an interest tendency confidence degree of each theme label of the user by using a numerical distribution of elements in the probability distribution sequence and combining the interest retention degree, so as to generate a user portrait. Therefore, the precision of user portrait generation is improved.