You earn them by defeating the Frontier Brains. Each Brain sits at the end of a Battle Frontier facility, so beating the one in charge of a given facility awards that facility's badge.