Automatic ship classification for a riverside monitoring system using a cascade of artificial intelligence techniques including penalties and rewards.