A stroke is a potentially fatal brain attack that causes an interruption in the blood supply to the brain. As a result, brain cells start to die due to a lack of oxygen and nutrients. After a stroke, every minute is critical. A million or more brain cells perish every minute during a stroke. The prompt identification of a stroke can prevent lasting brain damage or even save the patient’s life. Doctors advise computed tomography (CT) images of the brain for earlier stroke detection. If doctors delay CT diagnosis or may make erroneous diagnoses, this can be life-threatening. For that reason, an automatic diagnosis of stroke from a brain CT scan image will be beneficial for stroke patients. This study moderates three pre-trained convolutional neural network (CNN) models named Inceptionv3, MobileNetv2, and Xception by updating the top layer of those models using the transfer-learning technique based on CT images of the brain. A new ensemble convolutional neural network (ENSNET) model is proposed for automatic brain stroke prediction from brain CT scan images. ENSNET is the average of two improved CNN models named InceptionV3 and Xception. We have relied on the following metrics: accuracy, precision, recall, f1-score, confusion matrix, accuracy versus epoch, loss versus epoch, and the receiver operating characteristic (ROC) curve to assess performance matrices. The accuracy of the moderated Inceptionv3 is 97.48%, the moderated MobileNetv2 is 83.29%, and the moderated Xception is 96.11%. Nonetheless, the suggested ensemble model ENSNET performs better than the other models when it comes to the diagnosis of stroke from brain CT scans, providing 98.86% accuracy, 97.71% precision, 98.46% recall, 98.08% f1-score, and 98.74% area under the ROC curve(AUC). Therefore, the proposed model ENSNET can detect strokes from computed tomography images of the brain more successfully than other models.