Detection and Classification of Human Arm Movements for Physical Rehabilitation