Are only option is drones with “super sense”. These can distinguish between ISIS, Iraqi regular Army, Iranian Quds Forces, Kurds, Sunni civilian, Shiite civilian...miscellaneous goat hearders and Christians. In order of importance -of coarse.
Indeed, how hard would that be, considering that (aside from Christians) they aren't even sure what group they associate with on any given day :-)
As an example, Iraqi soldiers turned into Shiite civilians in minutes. But generally, it is common in Middle East for citizens to exist in two quantum states: a civilian and a jihadi. You can resolve this duality by turning your back toward them. If they stab you, they were a jihadi.