Coarsegrained model for filtering and detection built