Functional MRI (fMRI) is the use of MRI to detect localized changes in brain activity, usually in the form of…