A neural network approach to event-by-event primary mass identification by means of FD observables