A Machine Learning-Based Approach for Materials Microstructure Analysis and Prediction