MVOS_HSI: A Python Library for Preprocessing Agricultural Crop Hyperspectral Data
2026-04-08 • Software Engineering
Software EngineeringComputer Vision and Pattern Recognition
AI summaryⓘ
The authors created MVOS_HSI, a free Python tool to help scientists analyze detailed plant images taken with hyperspectral cameras. These cameras capture lots of color bands that show plant health, but the data can be tricky to work with. MVOS_HSI simplifies this by handling steps like cleaning the raw data, finding leaves, and preparing data for machine learning. It also offers ways to visualize plant traits and is easy to use and share. This helps researchers get reliable results when studying plants without damaging them.
Hyperspectral imagingPlant phenotypingNDVIVegetation indicesData augmentationMachine learningPython libraryENVI filesSpectral profileImage calibration
Authors
Rishik Aggarwal, Krisha Joshi, Pappu Kumar Yadav, Jianwei Qin, Thomas F. Burks, Moon S. Kim
Abstract
Hyperspectral imaging (HSI) allows researchers to study plant traits non-destructively. By capturing hundreds of narrow spectral bands per pixel, it reveals details about plant biochemistry and stress that standard cameras miss. However, processing this data is often challenging. Many labs still rely on loosely organized collections of lab-specific MATLAB or Python scripts, which makes workflows difficult to share and results difficult to reproduce. MVOS_HSI is an open-source Python library that provides an end-to-end workflow for processing leaf-level HSI data. The software handles everything from calibrating raw ENVI files to detecting and clipping individual leaves based on multiple vegetation indices (NDVI, CIRedEdge and GCI). It also includes tools for data augmentation to create training-time variations for machine learning and utilities to visualize spectral profiles. MVOS_HSI can be used as an importable Python library or run directly from the command line. The code and documentation are available on GitHub. By consolidating these common tasks into a single package, MVOS_HSI helps researchers produce consistent and reproducible results in plant phenotyping