A method of management and optimization in an energy network comprising software systems and protocols, connectivity and exchange means to and between distributed end devices and energy resources, the method comprising:
- receiving data and monitoring usage of a plurality of distributed end devices and energy resources at plural remote sites in an energy network, wherein the energy resources include electric vehicle (EV) batteries and/or other energy storage batteries, and wherein a processor and the plurality of distributed end devices and energy resources are configured to exchange data via a communication network, wherein the plurality of distributed end devices includes a first distributed end device and a second distributed end device;
- processing external data and market signals;
- managing energy usage of the energy resources responsive to predictions of energy usage, comprising:
- inputting into a model a time series of measurements indicative of energy usage or activity in the system, wherein the model is a recurrent neural network, wherein the recurrent neural network is trained based on real data, wherein for the first distributed end device, the time series of measures is input into a first model, wherein for the second distributed end device, the time series of measures is input into a second model, and wherein the first model is different from the second model;
- identifying, based on the model, a time or occupancy dependent mode of use of the system;
- outputting a scaler real-time value representing one or more properties associated with the mode of use, being one or more of the device or mode type, start-time of the event or mode, time and power load duration expectation, wherein the outputting of the scaler real-time value comprises:
- validating the scaler real-time value using the recurrent neural network;
- and
- calculating flexibility in the energy network over a time period based at least in part on the scalar value;
- and
- coordinating how the flexibility in the energy resources, can be scheduled, shared or orchestrated to determine a battery charging plan for charging and/or discharging batteries at the remote sites that delivers an identified amount of flexibility to the energy network.