Relaxing the Implementation of Embedded Sensing Systems through Machine Learning and Statistical Optimization