Real-time system diagnosis tool through anomaly detection