The aim of this study was to analyze the application value of functional magnetic resonance imaging (FMRI) optimized by the fast independent component correlation algorithm (ICA algorithm) in the diagnosis of brain functional areas in patients with lumbar disc herniation (LDH). An optimized fast ICA algorithm was established based on the ICA algorithm. 50 patients with cerebral infarction were selected as the research objects, and 30 healthy people were selected as the control group. The 50 patients from the observation group were examined by fMRI based on Fast ICA algorithm, while the control group was tested by fMRI based on the routine ICA algorithm. The performances of the two algorithms, the analysis results of the two groups of brain functional areas, cerebral blood flow (CBF), resting state functional connectivity (rsFC), behavioral data, and image data correlation of patients were compared. The results showed that the sensitivity, specificity, and accuracy of Fast ICA algorithm were 97.83%, 89.52%, and 96.27%, respectively, which in the experimental group were greatly better than the control group (88.73%, 72.19%, and 89.72%), showing statistically significant differences (
P
<
0.05
). The maximum Dice coefficient of FAST ICA algorithm was 0.967, and FAST ICA algorithm was better obviously than the traditional ICA algorithm (
P
<
0.05
). The cerebral blood flow of the healthy superior frontal gyrus (SFG) and healthy superior marginal gyrus (SMG) of the observation group with good motor function recovery were 1.02 ± 0.22 and 1.53 ± 0.61, respectively; both indicators showed an increasing trend, and those in the experimental group were much higher in contrast to the control group, showing statistically obvious differences (
P
<
0.05
). Besides, the detection results of cerebral blood flow (CBF) in the healthy SFG and healthy SMG were negatively correlated with the results of connection test B. In summary, the fMRI based on the Fast ICA algorithm showed a good diagnostic effect in the changes of brain functional areas in patients with cerebral infarction. The experimental results showed that the cerebral blood flow in the brain area was related to motor or cognitive function. The results of this study provided a reliable reference for the examination and diagnosis of brain functional areas in patients with cerebral infarction.