Digitalization is one of the key drivers for energy system transformation. The advances in communication technologies and measurement devices render available a large amount of operational data and enable the centralization of such data storage and processing. The greater access to data opens up new opportunities for a more efficient and decentralized management of the energy system. At the distribution level of the energy system, local electricity markets (LEMs) provide new degrees of flexibility by trading and balancing the energy locally and offering ancillary services to the wider transmission and distribution system operators. Maximizing the grid impact from this flexibility calls for novel data analytics and artificial intelligence techniques to enhance the system's security and reduce the energy costs of local prosumers. At the same time, however, relying on data-based approaches increases the risk of cyberattacks, and robust countermeasures are, therefore, needed as an integral aspect of digitalization efforts. This article discusses the key role of centralized data analytics to fully benefit from the advantages of LEMs in terms of system's security enhancement and energy costs' reduction. Data-driven paradigms are investigated that allow for flexibility from decentralized markets, mitigate the physical security risks, and devise defensive strategies shielding the system from cyber threats.
@en