Email Post: A hierarchical privacy-preserving IoT architecture for vision-based hand rehabilitation assessment