Learning to identify layering