Intelligent Monitoring and Control of Interconnected Cyber-Physical Systems