ACE: Automated Optimization Towards Iterative Classification in Edge Health Monitors