Training Machine Learning Model with Electrostatic Interaction