Design and development of a FOC algorithm based on machine learning for the HEPS | Synapse