A method for training at least one model able to predict a
power consumption or production of at least one
electric equipment, also called target. The method includes: (a) obtaining
time series data representing the evolution of the
power consumption or production of the target over a first period of time, (b) comparing the target
time series data to known
time series data representing the evolution, over a second period of time, of the
power consumption or production of known electric equipments, the second period of time being greater than the first period of time, to determine the k known time
series data that are the most similar to the target time
series data, (c) training of a first prediction model or backbone for each of the k known electric equipments, the backbone being able to predict the evolution over time of the consumption or the production of the corresponding known
electric equipment, the backbone being trained on the corresponding time
series data over the second period of time, and (d) training at least one second prediction model, called target model, by
fine tuning at least one of the first trained prediction model on the time series data of the target over the first period of time.