Industrial IoT middleware using a multi-agent system for consistency-based diagnostic in cement factory