Journal article
Cite …

Active inference and digital twins for dynamic reconfiguration of software systems

Julia Ballati, Elena Pretel, Elena Navarro , Schahram Dustdar, Diego Perez-Palacin and Raffaela Mirandola 1
1 Institute of Information Security and Dependability (KASTEL), Karlsruhe Institute of Technology (KIT)
Abstract

Modern software systems increasingly operate in dynamic and uncertain environments, where traditional dependability mechanisms, such as fault prevention and tolerance, could prove to be insufficient. This limitation has motivated research into methods for optimising and reconfiguring systems to enable dynamic adaptation to environmental changes. Nowadays, with the rise of artificial intelligence, numerous optimisation algorithms have emerged that can support systems and improve their performance. In this paper we explore whether Digital Twins equipped with Active Inference (AIF), a framework for adaptive behaviour under uncertainty, are a proper alternative to reconfigure software systems in order to optimise the performance of systems. AIF agents maintain internal generative models and continuously update their beliefs and actions based on new evidence, making it possible to optimise the system over time. We introduce an architecture that integrates AIF within a Digital Twin (DT), a virtual representation of a system synchronised with real-time and historical data. This architecture enables both a proactive adaptation and the exploitation of the new acquired knowledge. We evaluate our approach using SWIM, a web application simulation platform, to enhance the reproducibility and replicability of our proposal. The evaluation shows that the developed AIF-enhanced DT autonomously manages workload balancing and resource provisioning, demonstrating measurable improvements over reactive strategies. This work provides a computational foundation for engineering optimised service-oriented systems, contributing to the broader goal of dependable software in uncertain environments.