Infrared spectroscopy, by analyzing vibrational modes and spectral patterns, can differentiate between healthy and cancerous tissues, providing insights into disease progression and treatment response.