Face-based biometric systems with deep learning in non-homogenous settings