Near-infrared spectroscopy (NIRS) is a non-invasive analytical technique that utilizes the near-infrared region of the electromagnetic spectrum to determine the composition of a sample by measuring the absorption of light. It is widely used in various fields such as medicine, agriculture, and food science for its ability to provide rapid and accurate analysis without the need for extensive sample preparation.