NBI works by employing narrow-bandwidth filters that isolate specific wavelengths of light, typically blue and green. These wavelengths penetrate the superficial layers of mucosa and are absorbed by hemoglobin, enhancing the visibility of blood vessels and other structures. This increased contrast aids clinicians in identifying abnormal tissue that may indicate cancerous lesions.