how to add a badge on product based on filter?

how to add a badge on product based on filter?