Hyperspectral imaging (HSI) is revolutionizing fields such as agriculture, food safety, and medical analysis by providing high-resolution spectral data. This emerging technology is proving invaluable in diverse applications, including plant stress detection, weed discrimination . Hyperspectral imaging collects and processes information from across the electromagnetic spectrum. The goal of hyperspectral imaging is to obtain the spectrum for each pixel in the image of a scene, with the purpose of finding objects, identifying materials, or detecting processes.