The invention relates to a load prediction method and
system based on an attention mechanism, and the
system comprises the steps: 1, carrying out the deep analysis of power utilization data, calculating the importance of each feature, selecting a key feature according to the importance, learning the dependency relationship of long sequence input based on a multi-head probability sparse self-
attention model, and carrying out the calculation of the importance of each feature; a relative position coding method is adopted to enhance the internal relation between the data, and a data
feature set is obtained; and step 2, training a multi-scale
time sequence prediction model based on the data
feature set obtained in the step 1 as an input
feature set, and predicting a load sequence and peak valleys. According to the method, different parts in the
time sequence are dynamically focused through the attention mechanism, the long-
time dependency relationship in the
time sequence is captured, important features can be extracted more effectively, complex
modes in data can be captured more effectively, the accuracy of
power load prediction is improved, and decision support is provided for defining the adjustable range of the load and optimizing
energy distribution.