Learning to take diamonds from the sea