An analysis of vessel behaviour based on AIS data