<p>Stroke is a leading cause of disability and death worldwide. Early diagnosis and treatment are crucial in reducing the risk of stroke-related complications. Brain magnetic resonance imaging (MRI) is a common diagnostic tool used for stroke evaluation. However, manual interpretation of MRI images can be time-consuming and subjective. Machine learning (ML) algorithms have shown promise in automating and improving stroke diagnosis accuracy. This article focuses on classification and segmentation techniques used to detect early stroke diagnosis using brain magnetic imaging. The diagnosis, treatment, and prognosis of complications and patient outcomes in a number of neurological diseases are currently made possible by ML through pattern recognition algorithms. However, the use of MRI is limited because of MRI plays an important role in diagnosing lumbar disc disease. However, the use of MRI is limited due to its high cost and significant operational and processing time. More importantly, MRI is contraindicated in some patients who are claustrophobic or have pacemakers due to the potential for damage. Recent studies have shown that treatment within six hours of a stroke can save a patient's life. Unfortunately, Malaysia is facing a shortage of neuroradiologists, hampering efforts to treat its growing number of stroke patients.</p>