Classification of Stars from Redshifted Stellar Spectra utilizing Machine Learning