Understanding the universe's expansion involves measuring the redshift of light from distant galaxies. Viviana explains how the Doppler effect parallels light waves, highlighting the challenges of distinguishing between spectral lines from various galaxies. Machine learning plays a crucial role in classifying this data, allowing researchers to analyze readings from telescopes like the Hobby Eberly.