Software-Hardware Co-Design for Energy-Efficient Continuous Health Monitoring via Task-Aware Compression