Machine-Learning-Aided Method for Optimizing Beam Selection and Update Period in 5G Networks and Beyond | Synapse