Automatic detection of squats in railway infrastructure