The invention relates to a
data center dynamic energy consumption optimization method based on
machine learning, and the method comprises the following steps: S1, deploying a sensor at a key position in a
data center for collecting
energy consumption, temperature, load and other data, and collecting the operation data of the
data center through a
system interface; s2, preprocessing the data, including data cleaning and
feature engineering, extracting features from the
original data, selecting the most important features by using an LASSO
algorithm, and constructing a training
data set; s3, constructing an
energy consumption prediction model based on the
machine learning model, and training based on the training
data set; s4, performing prediction based on the trained
energy consumption prediction model, and dynamically allocating tasks according to the predicted energy consumption and the
current load condition of the equipment to obtain a preliminary task allocation scheme; and S5, carrying out strategy training by adopting hierarchical
reinforcement learning, optimizing a task allocation scheme of the data center, and carrying out task allocation based on the optimized task allocation scheme. The
resource utilization efficiency and energy efficiency of the data center can be improved.