MSI involves capturing images at different wavelengths, typically including visible, ultraviolet, and infrared light. Each wavelength provides unique information about the sample, allowing researchers to detect and quantify chemical compounds, identify biomarkers, and assess cellular responses to toxicants. The resulting images are processed to create a comprehensive spectral profile of the sample, which can be analyzed for patterns indicative of toxicity.