Anomaly-based intrusion detection system for cyber-physical system security