System to detect abnormal vessel behavior based on historical AIS data