Distributed Machine Learning For Autonomous And Secure Cyber-Physical Systems