Al‐based energy aware parent selection mechanism to enhance security and energy efficiency for smart homes in Internet of Things | Synapse