SMS: Efficient Intelligence with Applications in Embedded Sensing