A woman wearing glasses works with red and white cables connected to network equipment in a server room, reaching up to adjust or inspect a device on a rack.

AI-based self control for each distributed energy source

Researchers at KTH have developed an open-source artificial intelligence (AI) solution to counter the challenges posed by integrating renewable energy and electric vehicles (EVs) in power grids. The increasing reliance on variable sources like solar and wind, combined with the demand for charging EVs, creates voltage fluctuations and deviations, potentially leading to power grid failure. According to Qianwen Xu, Assistant Professor at KTH and a member of the Digital Futures Faculty, the inconsistency of wind power and solar radiation, coupled with unpredictable EV charging needs, introduces many uncertainties.

The team has introduced open-source deep reinforced learning (DRL) algorithms for power converters deep within the grid. These algorithms enable the coordination of energy sources on a large scale, optimizing the system’s performance in the face of fast fluctuations without real-time communication. The decentralized management approach of the solution ensures voltage levels are maintained within required limits, preventing detrimental effects on electrical equipment and overall grid stability.

The researchers have demonstrated the effectiveness of their solution in a real-world smart microgrid hardware platform at KTH. The open-source software package is available on GitHub, and the research paper has been published in the IEEE Transactions on Sustainable Energy. The work is part of Digital Futures collaborating with researchers from the University of California, Berkeley, and Stockholm University.

Learn more in this article on AI protects power grid from fluctuations caused by renewable power and EVs, by David Callahan at KTH.

Photo: Assistant Professor Qianwen Xu in her lab at the Department of Electric Power and Energy Systems, KTH Royal Institute of Technology (by David Callahan)

More news

A stack of brochures titled digital futures Strategic Plan: From Science to Societal Impact 2026-2030, featuring a dark cover with colourful, blurred light streaks.

From Science to Societal Impact: Digital Futures sets the course for 2026–2030

25/08/2026

A new strategy puts human agency, responsible AI, and collaboration at the heart of digital...

A speaker presents to an audience in a conference room. The slide reads, Resilience is the dynamic capacity to adapt, recover, grow, and advance when facing continuous stress, crises, or major systemic shocks.

Exploring resilience in the digital age

20/08/2026

How can we build digital and physical systems that are better prepared for disruption? This...

A person standing outdoors in sunlight holds a globe in one hand, with a grassy field and bright sky in the background.

Three new Scholars-in-Residence to join Digital Futures

12/08/2026

Three KTH researchers have been awarded funding to host Scholars-in-Residence through the Digital Futures mobility...

Close-up of young green seedlings emerging from soil, with soft focus on leaves and stems. The background is blurred, highlighting the fresh, vibrant growth of the plants.

Seed Projects receive funding to strengthen Digital Futures Working Groups

11/08/2026

Seven research projects have been awarded Seed Project funding from Digital Futures to strengthen the...