Cyber-physical systems (CPS) operate in dynamic and uncertain environments, where maintaining operational objectives without manual intervention is critical. Self-adaptive systems (SAS) have emerged as a promising solution, leveraging machine learning (ML) models within feedback control loops to make runtime adaptation decisions. However, the black-box nature of these models poses challenges related to transparency and efficiency, particularly in safety-critical domains. This paper introduces CSA-Φ, a counterfactual-based self-adaptation approach that integrates model-agnostic interpretable ML into the adaptation loop. CSA-Φ includes two main components: an offline pre-processor with pre-trained classifiers for requirement evaluation, and an online opportunistic adaptation engine that uses counterfactual explanations to guide adaptation decisions efficiently. By bridging the gap between explainability and actionable adaptation, CSA-Φ enhances decision-making while reducing adaptation cost. Experimental results show that CSA-Φ achieves significant improvements in execution efficiency and provides adaptation decisions that are both effective and interpretable, outperforming selected baseline approaches.
Counterfactual Self-adaptation in Cyber-Physical Systems
Camilli, Matteo;
2026-01-01
Abstract
Cyber-physical systems (CPS) operate in dynamic and uncertain environments, where maintaining operational objectives without manual intervention is critical. Self-adaptive systems (SAS) have emerged as a promising solution, leveraging machine learning (ML) models within feedback control loops to make runtime adaptation decisions. However, the black-box nature of these models poses challenges related to transparency and efficiency, particularly in safety-critical domains. This paper introduces CSA-Φ, a counterfactual-based self-adaptation approach that integrates model-agnostic interpretable ML into the adaptation loop. CSA-Φ includes two main components: an offline pre-processor with pre-trained classifiers for requirement evaluation, and an online opportunistic adaptation engine that uses counterfactual explanations to guide adaptation decisions efficiently. By bridging the gap between explainability and actionable adaptation, CSA-Φ enhances decision-making while reducing adaptation cost. Experimental results show that CSA-Φ achieves significant improvements in execution efficiency and provides adaptation decisions that are both effective and interpretable, outperforming selected baseline approaches.| File | Dimensione | Formato | |
|---|---|---|---|
|
SEAA_2025.pdf
accesso aperto
:
Pre-Print (o Pre-Refereeing)
Dimensione
1.16 MB
Formato
Adobe PDF
|
1.16 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


