An Efficient optimal threshold-based segmentation and classification model for multi-level spinal cord Injury detection