The only reliable way of confirming membership would be reading tattoos. And even then, some cops get it wrong.
Gang members will lie about their identity all the time, especially if they aren't already in the system and have no record.
Asking other people in the area about a certain individual's affiliation should also be considered unreliable.
Then the problem of level of activity. Being a a non active gang member vs being active.