Abstract
Background:
Stroke, medically known as the brain attack, refers to the stoppage or stoppage of blood from flowing into a particular region of the brain, or even from the breaking of a vessel, causing injury to and death of areas of the brain. It presents a medical emergency, with the potential of severe long-term neurological impairment, disability, and even death; thus, urgent detection and treatment are needed.
Objective:
The study aims to develop a novel Multilayer Perceptron of Convolutional Neural Network-based Residual Network (MLPCNNbRN) for early brain stroke detection, focusing on improving the accuracy and reliability of detecting subtle stroke patterns in medical images.
Methods:
The MLPCNNbRN provided resented in the context of residual connections within an architecture designed for deep network training in medical images. This allowed the overall model to learn complex relations very effectively. The system was implemented in the Python framework. Its performance was compared with other methods. The key metrics used in the evaluation were accuracy, precision, recall, and F-score.
Results:
The MLPCNNbRN model demonstrated superior performance compared to existing methods, achieving higher levels of accuracy in stroke detection. Specifically, the model improved overall accuracy, precision, recall, and F-score, showcasing its robustness in identifying subtle stroke patterns.
Conclusion:
The proposed MLPCNNbRN system enhances early brain stroke detection by extracting hierarchical features and residual network learning, offering a more accurate and reliable approach than previous methods. This system has the potential to aid medical professionals in timely diagnosis and treatment, ultimately improving patient outcomes.
Keywords
Introduction
Brain cells die due to anomalies in the cerebrovascular system or cerebral circulation, which causes brain strokes. 1 A cerebral stroke is an ailment that can be fatal and is caused by inadequate blood flow to the brain. After a stroke, the brain-afflicted area stops functioning normally, underscoring the importance of early detection for enhanced therapeutic interventions. 2 A stroke may occur from an abrupt interruption of blood flow to a specific brain area. The resulting disability stems from the diminished blood supply, leading to the gradual loss and eventual death of brain cells in the affected region. 3 Interrupted blood supply and nutrient delivery to the brain can lead to the development of symptoms. As stated by the WHO, stroke is the primary cause of disability and death globally. 4 The clinical manifestations of stroke typically encompass weakness, paralysis, or diminished sensation in various body parts, including the possibility of hemiplegia. 5 Stroke has emerged as a disease characterized by exceptionally high mortality rates. 6 Hemorrhagic and ischemic strokes are treated extremely differently, but the first clinical results can often be quite similar. 7
Although stroke carries a high mortality rate, early diagnosis offers treatability. Detecting a stroke at an early stage can mitigate severe consequences and prevent fatalities. 8 The utilization of Machine Learning in various domains to address challenges more expeditiously than human capabilities has garnered considerable attention, propelled by the current accessibility of affordable computing power and cost-effective memory resources. 9 Machine learning techniques have been quite important in expediting this diagnosis and triaging to strokes, leveraging feature identification and segmentation. 10 The Deep Learning approach, with its ability to comprehend the intricacies of brain imaging, has a vital role in advancing the early detection of strokes. 11 Artificial Intelligence with a Machine Learning Subset can leverage various imaging features, including those imperceptible to the human eye, consistently achieving high levels of accuracy. 12 Efficient treatment of stroke hinges on the critical step of early detection, and Machine Learning proves to be of significant value in facilitating this process. 13 Because deep learning can automatically calculate features inside the deep system's convolutional layers, it is commonly used as a classification approach. 14
Machine learning methods have made significant progress in the prediction of many diseases, and they can be used to determine the likelihood of a stroke. Machine learning methods can be employed to assess the probability of a stroke, benefiting from substantial advancements in predicting various diseases.
15
The ML model undergoes performance testing by utilizing data from one database for training and cross-validation, and data from another database for external validation.
16
In the medical field, Machine Learning is extensively employed to input data for training algorithms, aiming to achieve precise and accurate outcomes.
17
Several conventional techniques were utilized, including deep convolutional neural network (DCNN), you only look once (YOLO) 5, and single-shot detector (SSD).
18
Computer-aided diagnosis (CAD) based brain stroke detection and classification (CAD-BSDC).
19
Synthetic Minority Over Sampling Technique (SMOTE).
20
But there is no proper solution. So these problems are overcome to create our proposed methodology. The following can be used to summarize the key contribution of the proposed study:
First, compile a dataset of brain scans that consists of both normal and stroke-affected images. Standardize and normalize imaging data. To improve model generalization and boost dataset diversity, use augmentation strategies. Identify relevant features that contribute to stroke prediction. This may include age, blood pressure, cholesterol levels, and other relevant biomarkers. Then, the proposed framework is created as a Multilayer Perceptron of Convolutional Neural Network Residual Network (MLPCNNbRN). Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. Aiming to enhance early brain stroke detection through complex relationship capture in medical images Train the MLPCNNbRN on the preprocessed dataset, optimizing parameters for effective learning. To determine how well the trained model generalizes, test it on a different dataset. Apply the MLPCNNbRN to new, unseen data for early brain stroke detection. Identify potential signs of stroke based on the learned features. Eventually, F-score, Precision, Accuracy, and Recall are used to examine the performances.
The remaining section of this research is summarized as follows, section 2 elaborates on relevant literature, the System model and problem definition are detailed in Section 3, consequently, section 4 defines a novel work, and Section 5 draws the achieved results and its comparison. Finally, the paper is concluded in Section. 6.
Related work
Below, we present descriptions of several recent research works related to this topic.
Brain strokes have been responsible for a significant and concerning increase in fatalities and disabilities worldwide. Deep learning models, however, are unable to provide the same degree of performance for every medical application. This leads to the proposal of a framework in this study to address the problem of automatic stroke identification based on brain CT scan data. U-Net model Korra, S., et al. 21 is configured appropriately, and data augmentation is performed. An algorithm known as Learning-based Medical Image Processing for Brain Stroke Detection (LbMIP-BSD). This algorithm optimizes brain stroke detection performance through the utilization of a U-Net-based model in supervised learning, incorporating data.
Because brain problems are on the rise and psychological stress seems to have no boundaries these days, it is believed that brain strokes will pose a serious threat to humanity in the future. Therefore, this research suggests a novel technique for predicting the beginning of a stroke by utilizing the Adaptive Neuro-Fuzzy Inference System (ANFIS) machine learning approach Lakkshmanan, A., et al. 22 Following preprocessing with data cleaning techniques, SegNet is used to partition the acquired data, and CapsuleNet is used to extract pertinent features. Predictive analytics is done using the ANFIS model.
An interruption in blood flow to the brain can result in a stroke, sometimes referred to as a brain attack. This may occur from bleeding into the brain tissue or from a blockage in the blood arteries supplying the brain. Pokorny, T., et al., 23 has introduced support vector machines (SVMs). This study set out to evaluate the effectiveness of microwave technology in the identification of brain strokes. SVMs are inherently designed for binary classification tasks, making them suitable for distinguishing between stroke and non-stroke cases, which is often the goal in early detection.
Stroke, a prevalent neurological disorder, arises from abnormal blood flow in the brain. In addition, stroke has been leading the cause of death worldwide in recent years. In this chapter, Dandıl, E. et al. 24 offer a fully automated approach for segmenting brain stroke lesions using MR images that is based on a mask region-based convolutional neural network (Mask R-CNN). The results of the study indicate that the suggested Mask R-CNN method can be a useful tool for accurately separating stroke lesions with unique borders.
This article offers an automated epilepsy seizure detection system (AESD) utilizing Deep Learning (DL) algorithms Kumar, K.D., et al. 25 to diagnose and detect epilepsy seizures based on EEG signals, which are wavelet signals widely used for identifying abnormal brain events. The dataset encompasses attributes such as patient family history, age, and details of long-term medication usage, addressing various challenges associated with epilepsy diagnosis. Performance evaluation is conducted based on relevant parameters.
Although they are mostly curable and avoidable, cerebrovascular disorders like stroke are among the leading causes of death and disability worldwide. Recognizing strokes early and promptly intervening are pivotal in lessening the disease burden and enhancing clinical outcomes. In recent times, the spotlight has turned to machine learning methodologies for stroke detection due to their potential. Saleem, MA, et al., 26 to achieve this objective, an early stroke detection system leveraging CT brain images, alongside a genetic algorithm and a Bidirectional long short-term memory (BiLSTM) model, to identify strokes at their nascent stages. For image classification, we employed a genetic algorithm-driven neural network approach to identify the most pertinent features for classification, which were subsequently fed into the BiLSTM model.
To improve communication for people with brain stroke or paralysis, this research combines Independent Component Analysis (ICA) with several deep learning algorithms in the Brain-Computer Interface (BCI) system, Kanimozhi, M., et al. 27 Using EEG data from BCI competition III, it explores classification methods that leverage ICA-extracted components and various deep learning architectures. The innovation is in figuring out what the essential elements are and incorporating them into the network and the comparison study compares results with and without dimensionality reduction by ICA. LSTM, GRU, and CNN are a few instances of deep learning models designed to outperform current techniques in terms of EEG signal processing and classification accuracy. Research gap of the existing works are demonstrated in Table 1.
System model and problem statement
A stroke can result from an interruption in blood flow to a specific area of the brain, which can have permanent consequences, including damage to brain tissue. There are two primary stroke kinds: hemorrhagic stroke, in which brain bleeding and increased intracranial pressure result from a blood vessel burst, and ischemic stroke, which results from a blockage in a blood vessel, depriving the affected brain tissue of oxygen and nutrients. Both types of stroke lead to neurological symptoms such as sudden weakness, numbness, difficulty speaking, and vision problems, which are demonstrated in Figure 1. If not treated promptly, strokes can lead to brain tissue death and permanent disability. Early recognition and medical intervention are crucial for improving outcomes and minimizing long-term effects.

System model & problem statement.
The brain serves as the central organ in the human body. A medical disorder known as the brain's blood arteries burst, which results in a stroke, it causes harm to the brain. Interruption of blood supply can result in symptoms, and stroke is considered a medical emergency due to its risk of potential mortality, complications, and long-term brain damage. The WHO has identified stroke as a primary global cause of mortality and disability. Therefore, minimizing severity and optimizing outcomes require early diagnosis of stroke warning symptoms. These issues have motivated me to develop this proposed work.
The present research article has aimed to design a novel MLPCNNbRN. Early brain stroke detection using MLPCNNbRN involves Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. Figure 2 shows the architecture flow of the proposed methodology.

Proposed methodology for MLPCNNbRN.
First, compile a dataset of brain scans that consists of both normal and stroke-affected images. Standardize and normalize imaging data. To improve model generalization and boost dataset diversity, use augmentation strategies. Identify relevant features that contribute to stroke prediction. This may include age, blood pressure, cholesterol levels, and other relevant biomarkers. Then, the proposed framework is created as a MLPCNNbRN. Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. Aiming to enhance early brain stroke detection through complex relationship capture in medical images. Train the MLPCNNbRN on the preprocessed dataset, optimizing parameters for effective learning. To determine how well the trained model generalizes, test it on a different dataset. Apply the MLPCNNbRN to new, unseen data for early brain stroke detection. Identify potential signs of stroke based on the learned features. Eventually, F-score, Precision, Accuracy, and Recall are used to examine the performances.
We have used Brain stroke images in this methodology. The brain stroke dataset features two main categories: “stroke_cropped” and “stroke_noncropped,” each with specific testing, training, and validation subsets. With images cropped to focus on key areas and original non-cropped images provided, the dataset, at 73.4 MB, is invaluable for stroke-related image analysis. Researchers and practitioners can explore diverse experiments, catering to different processing needs, and ensuring effective model training and evaluation. These datasets are crucial for improving stroke diagnosis and treatment through advanced technology.
In early brain stroke detection preprocessing using deep learning, standardizing and normalizing imaging data involves ensuring consistent pixel values and scaling to a standard range. Augmentation techniques are applied to increase dataset diversity, such as rotating, flipping, or zooming images, enhancing model generalization. To successfully learn from and extract relevant information from brain images, preprocessing techniques are essential for deep learning algorithms. This improves the accuracy of stroke detection and facilitates prompt medical interventions.
Feature extraction in early brain stroke detection plays a crucial role in identifying relevant information from brain imaging data that contributes to predicting strokes. These characteristics usually include a variety of variables, including age, cholesterol, blood pressure, and different biomarkers that are taken out of patient files.
Early brain stroke detection using a MLPCNNbRN involves a comprehensive approach to analyzing medical images for subtle signs of stroke. Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. Aiming to enhance early brain stroke detection through complex relationship capture in medical images. The Multilayer Perceptron (MLP) component extracts hierarchical features, capturing intricate details and abstract patterns from the images. The Convolutional Neural Network (CNN) segment then identifies spatial features relevant to stroke, while the Residual Network (ResNet) principles enhance training by mitigating gradient issues in deep networks. By jointly learning complex relationships within the data, MLPCNNbRN excels at accurately identifying potential signs of stroke, enabling healthcare professionals to intervene early and improve patient outcomes.
Multilayer perceptron (MLP)
Utilizing early brain stroke detection entails leveraging its deep learning capabilities to extract meaningful features from medical images, distinguishing between healthy and stroke-affected brain patterns. Through training on labeled data, the MLP learns to identify subtle variations indicative of strokes, aiding healthcare professionals in timely intervention and treatment planning. The MLP consists of multiple hidden layers, each with a set of neurons. The following formula is used to determine each neuron's output:
The proposed CNN is a bio-inspired neural network that combines convolutional layers, pooling, and a fully connected network akin to a Multi-layer Perceptron. As a counterpart to the traditional feed-forward network in image processing, it embodies three distinct layers: input, hidden, and output, with units depicting neurons in each layer. The proposed CNN architecture will consist of a 1D convolutional layer, a 1D pooling layer, and a fully connected layer. The convolution layer of the proposed CNN extracts features of the input 1D sequence data through sliding filters and output feature maps. Considering hyperparameter optimization, it has selected the number of filters and the length of the filters to be used. Nonlinear activation functions will be used in both input and hidden layers, but ResNet is used except for output. This is because the ResNet function solves problems associated with vanishing gradients and errors. Additionally, the learning process is fast. Mathematically, ResNet is represented as Equation (5).
ResNet has been chosen for the proposed work since it doesn't suffer from gradient difficulties that plagued several deep learning models. A CNN network suffers from a fading gradient problem during training. An earlier layer's gradient rule declined to zero or nil as learning progressed. The problem can be solved through the ResNet technique. The second inner layer of ResNet will now arise by adding up all of its direct inputs and further with a residual layer that gets an insight into the connection between those components.
Early brain stroke detection using a CNN-based ResNet harnesses deep learning's power for intricate feature extraction from medical images, vital for spotting subtle stroke indications early. ResNet's residual connections aid in training deeper layers effectively, improving model performance by capturing complex spatial relationships. By training on a diverse dataset, the CNN-based ResNet learns to accurately distinguish between normal and stroke-affected brain images, facilitating prompt intervention and tailored treatments for at-risk patients. The output of a convolutional layer can be represented as:
The ResNet architecture includes residual connections to facilitate training deeper layers effectively. Let's denote the result of the CNN layer as H. The result of a residual block in ResNet can be represented as:
After training the MLPCNNbRN model, it can be used to identify strokes early on in the process of analyzing newly acquired brain pictures. The model uses the features it learned during training to classify these new images as either normal or stroke-affected. The testing set is a different collection of brain images that we utilize to analyze the model's functionality. We feed these unseen images through the trained model to get predictions. By setting a threshold on the model's output probabilities, we can determine if an image is classified as normal or stroke-affected. This process helps generate detection results and assess the model's accuracy in identifying strokes, which is crucial for determining its effectiveness in real-world scenarios.
Early brain stroke detection using an MLPCNNbRN involves training a sophisticated computer model to recognize subtle signs of strokes in brain images. This model combines the power of a Multilayer Perceptron (MLP) for classification with a CNNbResNet for feature extraction, allowing it to accurately classify brain scans as normal or indicative of a stroke. This strategy seeks to enhance early stroke detection, which is crucial for prompt medical intervention additionally improved patient outcomes. It does this by utilizing deep learning techniques.
If If
The binary classification output is based on applying the threshold. If the predicted probability
Advanced machine learning techniques are utilized with the MLPCNNbRN to enhance the speed along with accuracy in stroke diagnosis. In this hybrid approach, the capability of CNNs for feature extraction is fused with the robust classification power of the MLP and residual learning framework that helps to train much deeper networks by actually overcoming the vanishing gradient problem. The MLPCNNbRN might be very effective at picking up very subtle patterns from processing medical imaging data, such as MRI or CT scans, that could indicate a stroke, allowing for timely medical intervention. This integration further enhances the detection process with an ultimate focus on reducing time to treatment and improving patient outcomes within the emergency healthcare environment.
To begin the process of early brain stroke detection, a dataset comprising brain images, including samples from both stroke-affected and normal brains, is gathered. These images undergo preprocessing steps such as standardization and normalization to ensure consistency and remove any biases in pixel values. Feature extraction techniques are then applied to the preprocessed images to capture relevant information that contributes to stroke prediction. The proposed model is an MLP of a CNN-based Residual Network, which combines the hierarchical feature extraction capabilities of CNNs with the depth and skip connections of ResNets. The extraction of intricate hierarchical information from medical images is made possible by this design, which helps in the early identification of brain strokes. To gauge how well the model performs in correctly identifying stroke patterns, a portion of the dataset is used for training, and another set is used for evaluation. The purpose of this process is to use modern deep-learning methods to create a reliable and accurate system for the early identification of brain strokes. The suggested MLPCNNbRN flow chart is shown in Figure 3.

Flow chart of proposed MLPCNNbRN.
The Python framework has been utilized in this study to implement the suggested MLPCNNbRN approach. The proposed model incorporates the features of a Multilayer Perceptron of Convolutional Neural Network based Residual Network. Early brain stroke detection using MLPCNNbRN involves Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. We have used Brain stroke images in this methodology. In this research, we used the Windows 10 version. The experimental specifications are mentioned in Table 2.
Performance estimation
The proposed model is intended to run within the Python framework. The precision, accuracy, F-score, and recall of the model were compared to those of other models to validate its efficiency score. Moreover the existing techniques like Radial Basis Function Networks (RBF), Long short-term memory (LSTM), 3 SVM, 28 and convolutional deep belief networks (CDBN), 29 Logistic Regression (LR), 4 Convolutional Neural Network (CNN). 30
Comparison of accuracy (a)
The model's total forecast accuracy is measured by accuracy. The ratio between the entire count of occurrences inside the dataset and the accurately predicted instances (true positives and true negatives) is determined.
31
When it comes to early brain stroke diagnosis, accuracy is the model's ability to correctly forecast whether a given instance is normal or stroke-affected. It is a crucial metric that assesses how accurate the model is overall in predicting both classes. Mathematically, accuracy is given by:
Accuracy calculations are used to validate the effectiveness of the suggested model MLPCNNbRN approach. Figure 4. Comparison of the existing method in terms of Accuracy gained 90.00%, RBF attained 82.09% accuracy, LSTM pertained 88.03% accuracy measure, SVM method attained 87.12% accuracy and the technique CDBN achieved 89.02% accuracy rate.

Comparison of existing methods in terms of Accuracy.
Out of all the cases that the model predicts to be stroke cases, the precision metric quantifies the proportion of actual stroke cases. It aids in comprehending how the model prevents false positives.
32
Out of all the instances that were predicted to be positive, this is the percentage of actual stroke cases that the model correctly recognized. It can be determined as follows:

Comparison of existing method in terms of Precision.
Recall measures the model's capacity to accurately separate positive examples from all real positive instances. It is often referred to as sensitivity or TPR.
33
Recall quantifies the model's ability to correctly identify all positive instances. Specifically, it represents the proportion of actual stroke-affected images that were correctly classified by the model. A high recall is crucial in medical diagnostics, as it ensures that most cases of stroke are detected, thus enabling timely intervention and treatment. The ratio of all real positive occurrences to all true positive forecasts (false negatives and true positives) is computed. Mathematically, recall is given by:
Figure 6. Recall the comparison of the current approach. The MLPCNNbRN technique that was developed achieved a recall measure of 90.00%. As a result, the RBF of the current method was 74.52%, the LSTM approach's recall measure was 81.31%, and the SVM method's recall measure was 86.89%. In the end, the CDBN method produced a recall measure of 86.71%.
The F1-score is the harmonic mean of precision and recall. It provides a balance between the two metrics, offering a single score that represents the model's performance in both identifying true positives and minimizing false positives. This metric is particularly useful when you want to maintain a balance between precision and recall, especially in cases where one may be prioritized over the other.
10
The F-score is calculated using the formula below:

Comparison of existing method in terms of F-Score.

Comparison of existing method in terms of Recall.
The overall performance of early brain stroke detection using MLPCNNbRN is highly promising, offering accurate stroke classification with strong precision, recall, and F1 scores. The model benefits from the deep learning architecture, effectively capturing complex image patterns. However, its high computational requirements and potential interpretability issues limit its practical use in some real-world clinical settings.
Table 3: Comparing the estimation of overall performance as measured by F-score, recall, accuracy, and precision. Accuracy calculations are used to validate the effectiveness of the suggested model MLPCNNbRN approach. As a result, the accuracy of the suggested model increased to 90.00%. As a result, a precision rate of 92.00% was accomplished using the recommended technique. The MLPCNNbRN technique that was developed achieved a recall measure of 90.00%. Compared to the current methods, the suggested method's F-score estimation is more efficient, having reached 91.00%.
Research gap of previous studies.
Research gap of previous studies.
Experimental setup.
Comparison of overall performance estimation.
Early brain stroke detection using a MLPCNNbRN faces several limitations that can impact its effectiveness and implementation in clinical settings. One major limitation is data dependency, as the model's performance is heavily influenced by the quality and quantity of training data; inadequate or imbalanced datasets may lead to poor generalization and increased false positives or negatives. Additionally, the complexity of the model raises concerns about overfitting, particularly when the training dataset lacks sufficient diversity, resulting in a system that performs well on training data but fails on unseen cases. Interpretability is another challenge, as deep learning models often operate as black boxes, making it difficult for clinicians to understand their decision-making processes, which can hinder trust in the technology. Moreover, MLPCNNbRN requires substantial computational resources for training and inference, potentially limiting access in resource-constrained healthcare environments. Variability in imaging conditions, such as differences in equipment and patient positioning, can further affect performance consistency. Finally, regulatory and ethical concerns surrounding patient privacy, data security, and compliance with medical standards may complicate the integration of AI in medical diagnostics, delaying the deployment of such advanced stroke detection technologies.
Numerous neurological impairments, including paralysis or weakness on a single body side (hemiparesis or hemiplegia), difficulty comprehending or speaking (aphasia), vision impairment, issues with coordination, and sensory difficulties, can result from a brain stroke. To overcome this issue a novel MLPCNNbRN. Early brain stroke detection using MLPCNNbRN involves Extracting hierarchical features from medical images, leveraging residual connections for deep network training, and jointly learning complex relationships, enhancing accuracy in subtle stroke pattern identification. Future research will focus on integrating multi-modal data sources, including imaging data, clinical data, genetic data, and real-time physiological monitoring data. In this scenario, the developed model has achieved impressive outcomes, boasting a remarkable 90.00% accuracy, coupled with a high precision of 92.00%, 90.00% recall rate, and 91.00% is an F-score. As a result, the performance of the suggested model was contrasted with that of current techniques, verifying its efficacy in achieving improved outcomes and displaying superior results. In the future, the developed work will further improve the validation and training and increase the model's generalizability across various populations, using larger and more varied datasets. Also, healthcare professionals are incorporating with this model into the current medical imaging systems to streamline processes.
Footnotes
Ethical approval
This article does not contain any studies with human participants or animals performed by any of the authors.
Consent to publish
All the authors involved in this manuscript give full consent for publication of this submitted article.
Consent to participate
All the authors involved have agreed to participate in this submitted article.
Authors contributions
All authors have equal contributions in this work.
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data availability
Data sharing does not apply to this article.
