Build a model costs in quality control with the practical application