Machine-Learning-based global particle-identification algorithms at the LHCb experiment