A method, including a computer-implemented method, is provided for in vivo detection of epidermal growth factor receptor (EGFR) mutation status within peritumoral edematous tissue of a patient. The method includes performing quantitative pattern analysis of magnetic resonance imaging (MRI) data corresponding to MRI of in vivo peritumoral edematous tissue to determine a level of spatial heterogeneity or similarity within the in vivo peritumoral edematous tissue. EGFR mutation status is assigned as one of negative or positive based on the level of spatial heterogeneity or similarity determined. A non-transitory computer-readable storage medium and a system are also provided.