Explainable and Energy-Aware Self-Adaptive IoT Architecture Using Deep Q-Learning
Abstract
The dynamic and resource-constrained nature of Internet of Things (IoT) environments demands software systems that are both adaptive and transparent. Traditional static architectures fall short in addressing these challenges, particularly in scenarios requiring real-time decision-making and energy efficiency. This paper presents a modular and explainable self-adaptive software architecture that leverages Deep Q-Learning (DQN) for intelligent adaptation and integrates hybrid explainability mechanisms using SHAP and LIME. The proposed architecture supports runtime decision-making through a layered design, enabling context-aware sensing, battery-aware adaptation, and interpretable actuation. A custom reward function optimizes energy consumption, latency, and service quality, while explainability modules provide insight into both global learning behavior and individual runtime decisions. Experimental evaluation in a simulated smart home environment demonstrates the effectiveness and transparency of the system, highlighting its potential for deployment in constrained and safety-critical IoT settings.
Keywords
- Self-adaptive systems
- Reinforcement learning
- Software architecture
- Policy-based algorithms
- Autonomic computing
- Explainability
Ethical Statement
References
- R. Zhao, X. Wang, J. Xia, and L. Fan, “Deep reinforcement learning based mobile edge computing for intelligent Internet of Things,” Phys. Commun., vol. 43, Art. no. 101184, Dec. 2020, doi: 10.48550/arXiv.2008.00250.
- Q. He, C. Liu, J. Zhan, W. Huang, and R. Hao, “State-aware IoT scheduling using deep Q-networks and edge-based coordination,” arXiv preprint arXiv:2504.15577, Apr. 2025, doi: 10.48550/arXiv.2504.15577
- J. Hribar, A. Marinescu, G. A. Ropokis, and L. A. DaSilva, “Using deep Q-learning to prolong the lifetime of correlated Internet of Things devices,” arXiv preprint arXiv:1902.02850, Feb. 2019.
- H. Zhou, S. Yu, X. Zhang, L. Guo, and B. Lorenzo, “DQN-based QoE enhancement for data collection in heterogeneous IoT network,” in Proc. IEEE 19th Int. Conf. Mobile Ad Hoc Smart Syst. (MASS), Oct. 2022, pp. 188–194, doi: 10.1109/MASS56207.2022.00032.
- F. Liang, W. Yu, X. Liu, D. W. Griffith, and N. Golmie, “Towards deep Q-network based resource allocation in industrial Internet of Things,” IEEE Internet Things J., vol. 9, no. 12, pp. 9138–9150, Jun. 2022, doi: 10.1109/JIOT.2021.3093346.
- N. Shone, T. N. Ngoc, V. D. Phai, and Q. Shi, “A deep learning approach to network intrusion detection,” IEEE Trans. Emerg. Top. Comput. Intell., vol. 2, no. 1, pp. 41–50, Feb. 2018, doi: 10.1109/TETCI.2017.2772792.
- M. A. Ambusaidi, X. He, P. Nanda, and Z. Tan, “Building an intrusion detection system using a filter-based feature selection algorithm,” IEEE Trans. Comput., vol. 65, no. 10, pp. 2986–2998, Oct. 2016, doi: 10.1109/TC.2016.2519914.
- R. S. Sullivan and L. Longo, “Explaining deep Q-learning experience replay with SHapley additive exPlanations,” Mach. Learn. Knowl. Extr., vol. 5, no. 4, pp. 1433–1455, Dec. 2023, doi: 10.3390/make5040072.
Details
Primary Language
English
Subjects
Software Architecture, Software Engineering (Other)
Journal Section
Research Article
Early Pub Date
May 11, 2026
Publication Date
June 17, 2026
Submission Date
July 7, 2025
Acceptance Date
December 5, 2025
Published in Issue
Year 2026 Volume: 9 Number: 2
