The embodiment of the invention provides a method for training an event prediction model, the method can be applied to a transfer learning scene, and data isolation and privacy security protection ofa source domain participant and a target domain participant are realized by setting a neutral
server, wherein the source domain participant deploys a source domain feature extractor, the target domainparticipant deploys a target domain feature device, and a
model sharing part in an event prediction model is deployed in a neutral
server and specifically comprises a sharing feature extractor, a graph neural network and a classification network. For any participant,
feature extraction is performed on a sample in a
local domain by utilizing a feature extractor of the
local domain to obtain localdomain feature representations, and the
local domain feature representation is processed by using the current parameters of the
model sharing part obtained from the
server to obtain a corresponding event
classification result, model updating based on the event
classification result and the local domain sample is performed, and an updating result of the
model sharing part is uploaded to the serverto enable the server to perform centralized updating.