Mustafa, RSarkar, Nurul IMohaghegh (McCauley), MPervez, SOvesh, V2025-06-262025-06-262025-06-13Sensors, ISSN: 1424-2818 (Print); 1424-8220 (Online), MDPI AG, 25, 1-43. doi: 10.3390/s251237201424-28181424-8220http://hdl.handle.net/10292/19378The widespread adoption of the Internet of Things (IoT) raises significant concerns regarding security and energy efficiency, particularly for low-resource devices. To address these IoT issues, we propose a cross-layer IoT architecture employing machine learning (ML) models and lightweight cryptography. Our proposed solution is based on role-based access control (RBAC), ensuring secure authentication in large-scale IoT deployments while preventing unauthorized access attempts. We integrate layer-specific ML models, such as long short-term memory networks for temporal anomaly detection and decision trees for application-layer validation, along with adaptive speck encryption for the dynamic adjustment of cryptographic overheads. We then introduce a granular RBAC system that incorporates energy-aware policies. The novelty of this work is the proposal of a cross-layer IoT architecture that harmonizes ML-driven security with energy-efficient operations. The performance of the proposed cross-layer system is evaluated by extensive simulations. The results obtained show that the proposed system can reduce false positives up to 32% and enhance system security by preventing unauthorized access up to 95%. We also achieve 30% reduction in power consumption using the proposed lightweight Speck encryption method compared to the traditional advanced encryption standard (AES). By leveraging convolutional neural networks and ML, our approach significantly enhances IoT security and energy efficiency in practical scenarios such as smart cities, homes, and schools.© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).https://creativecommons.org/licenses/by/4.0/0301 Analytical Chemistry0502 Environmental Science and Management0602 Ecology0805 Distributed Computing0906 Electrical and Electronic EngineeringAnalytical Chemistry3103 Ecology4008 Electrical engineering4009 Electronics, sensors and digital hardware4104 Environmental management4606 Distributed computing and systems softwareCross-Layer Analysis of Machine Learning Models for Secure and Energy-Efficient IoT NetworksJournal ArticleOpenAccess10.3390/s25123720