Deriving material inventories using big data methods