A Cyber-Physical Architecture for Microgrids based on Deep learning and LORA Technology