Prostate cancer (PCa) is a severe type of cancer and causes major deaths among men due to its poor diagnostic system. The images obtained from patients with carcinoma consist of complex and necessary features that cannot be extracted readily by traditional diagnostic techniques. This research employed deep learning long short-term memory (LST M) and Residual Net (ResN et−101), independent of hand-crafted features, and is fine-tuned. The results were compared with hand-crafted features such as texture, morphology, and gray level co-occurrence matrix (GLCM) using non-deep learning classifiers such as support vector machine (SV M) Gaussian Kernel, k-nearest neighbor-Cosine (KN N − Cosine), kernel naive Bayes, decision tree (DT) and RUSBoost tree. This study reduces the features of carcinoma images, employed machine learning and deep learning approaches. For validation of training and testing data, a jack-knife tenfold cross-validation method was used. The performance was measured using a confusion matrix such as sensitivity, specificity, positive predictive value (P P V), negative predictive value (N P V), accuracy (AC), Mathews Correlation Coefficient (M CC), and area under the curve (AU C). The most remarkable performance was obtained using non-deep learning methods with GLCM features using KNN-Cosine with sensitivity (98.00%), specificity (99.25%), PPV (98.99%), NPV (99.11%), accuracy (99.07%), and AUC (0.998). The LSTM deep learning method yields performance with sensitivity (98.33%), specificity (100%), PPV (100%), NPV (99.26%), accuracy (99.48%), MCC (0.9879) and AUC (0.9999), where using Deep learning method ResN et − 101, we obtained (100%) Accuracy and AUC (1) for Kernel Naive Bayes, SVM Gaussian and RUSBoost Tree. The results show that ResN et − 101 deep learning outperformed than non-deep learning methods and LST M. Thus, the deep learning method ResN et − 101 could be used as a better predictor for the detection of prostate cancer.