Intrusion detection system based on machine learning algorithms to protect the use of water on agricultural fields