Objective: The antinuclear antibodies (ANA) that present in the human serum have a link with various autoimmune diseases. Human Epithelial type-2 (HEp-2) cells acts as a substance in the Indirect Immuno fluorescence (IIF) test for diagnosing these autoimmune diseases. In recent times, the computer-aided diagnosis of autoimmune diseases by the HEp-2 cell classification has drawn more interest. Though, they often pose limitations like large intra-class and small inter-class variations. Hence, various efforts have been performed to automate the procedure of HEp-2 cell classification. To overcome these problems, this research work intends to propose a new HEp-2 classification process. Materials and Methods: This is regulated by integrating two processes, namely, segmentation and classification. Initially, the segmentation of the HEp-2 cells is carried out by deploying the morphological operations. In this paper, two morphology operations are deployed called opening and closing. Further, the classification process is exploited by proposing a modified Convolutional Neural Network (CNN). The main objective is to classify the HEp-2 cells effectively (Centromere, Golgi, Homogeneous, Nucleolar, NuMem, and Speckled) and is made by exploiting the optimization concept. This is implanted by developing a new algorithm called Distance Sorting Lion Algorithm (DSLA), which selects the optimal convolutional layer in CNN. Results: Through the performance analysis, the performance of the proposed model for test case 1 at learning percentage 60 is 3.84%, 1.79%, 6.22%, 1.69%, and 5.53% better than PSO, FF, GWO, WOA, and LA, respectively. At 80, the performance of the proposed model is 5.77%, 6.46%, 3.95%, 3.24%, and 5.55% better from PSO, FF, GWO, WOA, and LA, respectively. Hence, the performance of the proposed work is proved over other models under different measures. Conclusion: Finally, the performance is evaluated by comparing it with the other conventional algorithms in terms of accuracy, sensitivity, specificity, precision, FPR, FNR, NPV, MCC, F1-Score and FDR, and proves the efficacy of the proposed model.