Text this: Using machine learning algorithm for detection of cyber-attacks in cyber physical systems