A Novel Framework for Anomaly Detection of Robot Behaviors