I'll assume what you want to achieve is a way to remove aliens without having any direct or indirect human contact as that would lead to the mind control.
I see here two problems:
1. Recognise and localise the enemy
This is the difficult part here. There are few problems here.
* How can we distinguish them? Are they similar in terms of biology but look different (e.g. have spiky ears or look totally different) or they are similar to human and cannot be distinguished easily?
* Where are they? Did they already penetrate the Earth or are they just a threat out there in the space (e.g. a space ship coming where contact tries lead to a mind control of those who tried)?
If the threat is from a spaceship and we can locate it (and we do actually) then all you have to do is set a trajectory and fire projectiles/missiles on it. Boom. Distinguishing them from humans isn't a problem in this case.
If they are already on Earth but concentrated in some way you need to locate them using some automated systems (e.g. spy drones making stills - a still should not be capable of controlling the human brain) or simply by recognising where the mind-control has a epicentre. 335
Again, clear area from potential casualties and fire anything that can keep a trajectory. Boom.
If they are spread, you need to learn recognising them. Use machine deep learning to recognise patterns where the epidemic mental controls appear and learn how to distinguish aliens from humans. I'm assuming it is difficult in some way as otherwise you'd just capture them on stills and recognise easily. Then Use AI controlled killing drones (yes, they exist already) to make precise attacks.
Don't want to spoil the fun but the whole plot sounds a bit unrealistic. If they have to adapt to a species, they need to be aware which species to adapt to. So there is no way of making it automatically without spotting the human in the first place. But I have hand-waved this for the purpose of the answer. 64