Artificial intelligence opens new perspectives for basic science. It is no exception for nuclear structure studied at the extreme of the nuclear chart by the Super Separator Spectrometer (S3) under construction at GANIL-SPIRAL2. The Piège à Ions Linéaire du Ganil pour la Résolution des Isotopes en Masse (PILGRIM) is a Multi-Reflection time-of-flight Mass Spectrometer (MR-ToF-MS), with state-of-the-art performances that can only be exploited fully thanks to a joint development with the FASTER (http://faster.in2p3.fr/) data acquisition at LPC Caen. The PhD thesis will consist in carrying out this development with the FASTER developers and the physicist in charge of PILGRIM. Machine learning techniques will have to be employed to recognize patterns in the time-of-flight of ions extracted as bunches from the S3 Low Energy Branch. For each individual ion, the time of flight will have to be determined with sub-nanosecond precision, correcting for effects due to pile-up, gain and baseline fluctuations. This development should lead to the determination of masses of exotic nuclei with exquisite precision, enabling tests of nuclear physics models in previously uncharted territories.