The invention belongs to the technical field of
power load prediction, and particularly relates to a Mama-based endogenous and endogenous variable
fusion power load prediction method, which comprises the following steps of: collecting and preprocessing a
data set; embedding an endogenous variable, dividing a
power load endogenous sequence into N non-overlapping Patch blocks, adding position codes to each block, generating a block token Pen of block fine
granularity through linear projection and position codes, and introducing a learnable global token Gen to represent the macroscopic state of the sequence; global embedding of exogenous variables; performing cross-
granularity fusion on internally and externally generated tokens; carrying out Mama
time sequence dependence modeling; and performing multi-step prediction output, mapping the
time sequence characteristics into future multi-step load prediction values through a full connection layer, restoring the
original data scale after reverse normalization, and outputting a final prediction result. According to the method, through a block embedding strategy and a dynamic parameter selection mechanism, the adaptability of the model to a complex power scene is remarkably improved, and reliable
technical support is provided for efficient scheduling and marketization operation of an intelligent
power grid.