Edge-based Compression and Classification for Smart Healthcare Systems: Concept, Implementation and Evaluation