Hidden Markov models for supercapacitor state-of-charge tracking and audio watermarking