Plastic pollution in aquatic ecosystems has increased dramatically in the last five decades, with strong impacts on human and aquatic life. Recent studies endorse the need for innovative approaches to monitor the presence, abundance, and types of plastic in these ecosystems. One approach gaining rapid traction is the use of multi- and hyperspectral cameras. However, most experiments using this approach have been conducted in controlled environments, making findings challenging to apply in natural environments. We present a method linking lab- and field-based identification of macroplastics using hyperspectral data (1150-1675 nm). Experiments using riverbank-harvested macroplastics were set up in (1) a laboratory environment, and (2) on the banks of the Rhine River. Representative pixel selections of eleven lab-based images (n = 786,264 pixels) and two field-based images (n = 40,289 pixels) were used to analyse the differences between these two environments. Next, classifier algorithms such as support vector machines (SVM), spectral angle mappers (SAM) and spectral information divergence (SID) were applied, because of their robustness to varying light conditions and high accuracies in mapping spectral similarities. Our results showed that SAM classifiers are most robust in separating plastic debris from natural or anthropogenic background elements. By applying lab-based data for plastic detection in field-based images, user accuracies for plastics to up to 93.6\% (n = 8,370 plastic pixels) were attained. This study provides key fundamental insights in linking lab-based data to plastic detection in the field. With this paper we aim to contribute to the development of future spectral missions to detect and monitor plastic pollution in aquatic ecosystems.