Evaluation of bioactive compounds with various therapeutic properties in black rice, ginger, Elsholtzia griffithii, and Cinnamomum zeylanicum using different spectroscopy and infrared technologies, such as cyanidin-3-glucoside, gingerol, citral, and cinnamaldehyde, respectively. Development of a low-cost, portable NIR spectrometer for rapid detection of chemical compound concentrations in medicinal plants and spices that is environmentally friendly and non-invasive. Development of a sensing system using near-infrared spectroscopic technique and a chemometric model for quantifying Citral from Elsholtzia griffithii and Cinnamaldehyde from Cinnamomum zeylanicum.