Can we learn where people come from? Retracing of origins in merging situations