Hardware-oriented Protection and Acceleration for Machine Learning Application