Magnesium alloys, among the lightest structural materials, represent excellent candidates for lightweight applications. However, industrial applications remain limited due to relatively low strength and ductility. Solid solution alloying has been shown to enhance Mg ductility and formability at relatively low concentrations. Zn solutes are significantly cost effective and common. However, the intrinsic mechanisms by which the addition of solutes leads to ductility improvement remain controversial. Here, by using a high throughput analysis of intragranular characteristics through data science approaches, we study the evolution of dislocation density in polycrystalline Mg and also, Mg–Zn alloys. We apply machine learning techniques in comparing electron back-scatter diffraction (EBSD) images of the samples before/after alloying and before/after deformation to extract the strain history of individual grains, and to predict the dislocation density level after alloying and after deformation. Our results are promising given that moderate predictions (coefficient of determination\documentclass[12pt]{minimal}
				\usepackage{amsmath}
				\usepackage{wasysym} 
				\usepackage{amsfonts} 
				\usepackage{amssymb} 
				\usepackage{amsbsy}
				\usepackage{mathrsfs}
				\usepackage{upgreek}
				\setlength{\oddsidemargin}{-69pt}
				\begin{document}$$R^2$$\end{document}R2ranging from 0.25 to 0.32) are achieved already with a relatively small dataset (\documentclass[12pt]{minimal}
				\usepackage{amsmath}
				\usepackage{wasysym} 
				\usepackage{amsfonts} 
				\usepackage{amssymb} 
				\usepackage{amsbsy}
				\usepackage{mathrsfs}
				\usepackage{upgreek}
				\setlength{\oddsidemargin}{-69pt}
				\begin{document}$$\sim$$\end{document}∼5000 sub-millimeter grains).