The invention relates to the technical field of
photovoltaic power generation prediction, in particular to a
photovoltaic power generation prediction method based on global confrontation and local contrast transfer learning, and the method comprises the steps: respectively developing ST-Net models in a source domain and a target domain based on distributed photovoltaic
station data, so as to fully model the spatial features and time features of the
photovoltaic power generation power in a modeling region; designing a global adversarial discrimination mechanism, learning domain
invariant feature representation through a minimum-maximum game, effectively relieving
a domain offset problem, finally designing a local contrast learning strategy, and enhancing the capturing ability of the model to local key features by optimizing a sample similarity relationship in a feature space, so as to obtain a local key
feature model. Therefore, the problem of local
information loss possibly caused by global adversarial training is solved. Experimental results show that the
algorithm provided by the invention can significantly improve the photovoltaic power generation prediction precision of a newly-built
power station under the condition of data scarcity.