Cost-based Filtering for Stochastic Inventory Systems with Shortage Cost