Details on fabrication of the valley Hall device, atomic force microscope image of the valley Hall device, polarization optical setup, photocurrent and Hall voltage measurement, fabrication of soil and microplastic mixture samples, raw linear polarization images of the samples, acquisition of ellipticity, intensity, and polarization image datasets, training of YOLOv5 based on different image datasets, and model performance evaluation criteria.