This invention discloses a virtual immunohistochemical
staining method and
system based on relation generative adversarial networks (GANs) and sequence slide data, comprising the following steps: Step S1, constructing a sequence slide dataset, wherein each H&E-stained slide is followed by three consecutive Ki67-stained slides; Step S2, constructing a relation
generative adversarial network (GAN) model, the model comprising two ResNet generators and two relation discriminators, used to
train and evaluate the credibility of the sequence relationship between image pairs; Step S3, performing two-stage training on the relation
generative adversarial network model, namely, basic style pre-training and Z-axis alignment relation
adaptation. This invention fundamentally solves the Z-axis alignment problem, resulting in higher image fidelity and
pathological accuracy, significantly improving clinical application value, and providing new research resources and evaluation paradigms.