Lightweight Privacy-preserving Medical Diagnosis in Edge Computing