Learning-Based Techniques For Energy-Efficient And Secure Computation On The Edge