Investigation of shortage and contamination of bulk cargo