Hyperspectral open source imaging system

preprint OA: closed
📄 Open PDF Full text JSON View at publisher

Abstract

The spatial and spectral properties of the light environment underpin the appearance of scenes and objects. As such its measurement is crucial for understanding many aspects of animal behaviour, ecology and evolution, along with many more applications in fields ranging from optical physics, agriculture/plant sciences, human psychophysics, food science, architecture and materials sciences. The escalating threat of artificial light at night (ALAN) presents unique challenges for measuring the visual impact of light pollution, requiring measurement at low light levels across the human-visible and ultraviolet ranges, across all viewing angles, and often with high within-scene contrast. Here I present a hyperspectral open-source imaging system (HOSI), an innovative and low-cost solution for collecting full-field hyperspectral data. The system uses a Hamamatsu C12880MA micro spectrometer to take single-point measurements, together with a motorised gimbal for spatial control. The hardware uses off-the-shelf components and 3D printed parts, costing around £350 in total. The system can run directly from a computer or smartphone with a graphical user interface, making it highly portable and user-friendly. The HOSI system can take panoramic hyperspectral images that meet the difficult requirements of ALAN research, sensitive to low light around 0.001 cd.m -2 , across 320-880nm range with spectral resolution of ∼9nm (FWHM) and spatial resolution of ∼0.2 degrees. The independent exposure of each pixel also allows for an extremely wide dynamic range that can encompass typical natural and artificially illuminated scenes, with sample night-time scans achieving peak-to-peak dynamic ranges of >50,000:1. This system’s adaptability, cost-effectiveness, and open-source nature position it as a valuable tool for researchers investigating the complex relationships between light, environment, behaviour, ecology, and biodiversity, with further potential uses in many other fields.
Full text 40,151 characters · extracted from preprint-html · click to expand
Hyperspectral open source imaging system | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results Hyperspectral open source imaging system View ORCID Profile Jolyon Troscianko doi: https://doi.org/10.1101/2024.06.21.600046 Jolyon Troscianko 1 Centre for Ecology & Evolution, University of Exeter Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jolyon Troscianko For correspondence: jt{at}jolyon.co.uk Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF Abstract The spatial and spectral properties of the light environment underpin the appearance of scenes and objects. As such its measurement is crucial for understanding many aspects of animal behaviour, ecology and evolution, along with many more applications in fields ranging from optical physics, agriculture/plant sciences, human psychophysics, food science, architecture and materials sciences. The escalating threat of artificial light at night (ALAN) presents unique challenges for measuring the visual impact of light pollution, requiring measurement at low light levels across the human-visible and ultraviolet ranges, across all viewing angles, and often with high within-scene contrast. Here I present a hyperspectral open-source imaging system (HOSI), an innovative and low-cost solution for collecting full-field hyperspectral data. The system uses a Hamamatsu C12880MA micro spectrometer to take single-point measurements, together with a motorised gimbal for spatial control. The hardware uses off-the-shelf components and 3D printed parts, costing around £350 in total. The system can run directly from a computer or smartphone with a graphical user interface, making it highly portable and user-friendly. The HOSI system can take panoramic hyperspectral images that meet the difficult requirements of ALAN research, sensitive to low light around 0.001 cd.m -2 , across 320-880nm range with spectral resolution of ∼9nm (FWHM) and spatial resolution of ∼0.2 degrees. The independent exposure of each pixel also allows for an extremely wide dynamic range that can encompass typical natural and artificially illuminated scenes, with sample night-time scans achieving peak-to-peak dynamic ranges of >50,000:1. This system’s adaptability, cost-effectiveness, and open-source nature position it as a valuable tool for researchers investigating the complex relationships between light, environment, behaviour, ecology, and biodiversity, with further potential uses in many other fields. Introduction Light carries a wealth of information about the world around us; primarily conveyed in its intensity, spectral composition and angular direction. Taken together, this spatio-spectral information forms the basis of animal vision; guides behaviour, and ultimately impacts animal evolution via natural or sexual selection ( Endler, 1993 ). Spatio-spectral information is also used by a range of sensing/measurement systems, including optical physics ( Akkaynak et al., 2017 ), plant ecology and agriculture ( Imran et al., 2023 ; Youngentob et al., 2012 ), food technology, geology/mineral science, and astronomy ( Hänel et al., 2018 ). Quantifying the light field is also critical for accurate modelling of object and scene appearance, linking fields as diverse as human psychophysics, visual ergonomics, lighting design and architecture, and digital creative industries ( Morimoto et al., 2019 ; Yu et al., 2023 ). The light environment is fundamental to all aspects of visual ecology; from behaviour to evolution, and can even drive speciation ( Price, 2017 ; Seehausen et al., 2008 ). Natural scenes vary substantially in their spatio-spectral properties ( Párraga et al., 1998 ), largely driven by the type of illuminant (such as sunlight, moonlight, starlight, bioluminescence or artificial light), and also how the light propagates through the environment as it is absorbed, scattered and reflected. Factors such as scattering (e.g. Rayleigh scattering or oceanographic backscattering), cloud/fog/forest canopy/algal absorption, and Snell’s window determine the intensity, spectral composition and spatial structure of the light environment ( Akkaynak & Treibitz, 2018 ; Bohren, 1987 ; Cronin et al., 2014 ; Tidau et al., 2021 ). For example, a cloudy/foggy day will result in isotropic illumination (spatially uniform illumination), reducing shadows and contrast. Direct light (such as sunshine) will result in interactions between the habitat’s 3D structure and lighting angle to create strong shadows likely to increase the scene’s visual complexity and make visual search more difficult ( Xiao & Cuthill, 2016 ). The light’s directional properties will also affect critical anti-predator defences such as countershading, which is dependent on the intensity of an animal’s self-shadows ( Cuthill et al., 2016 ). Artificial light at night (ALAN) is increasingly recognised as a global threat to biodiversity ( Rich & Longcore, 2013 ; Sanders et al., 2021 ), and over the past 18 years it’s intensity has more than quadrupled ( Kyba et al., 2023 ). ALAN can modify animal and plant behaviour and phenology through a number of mechanisms that vary in their spectral sensitivity ranges ( Briolat et al., 2021 ; Davies et al., 2013 ; Sanders et al., 2021 ). Existing data on the global extent of ALAN are largely limited to satellite-based data that measure upwelling light on cloud-free nights, so are unable to account for atmospheric effects and horizontally propagated light. Marine systems are also increasingly recognised as vulnerable to the effects of ALAN, and measurements in these conditions are even more difficult ( Tidau et al., 2021 ). Many existing studies are also unable to measure the spectra most relevant to animal and plant responses, or weigh the likely impacts to non-human receivers ( Kyba et al., 2023 ; Sánchez de Miguel et al., 2022 ). Measuring skyglow – which is particularly strong under cloud-cover – is increasingly recognised as a major factor in the intensity of ALAN ( Kyba et al., 2023 ; Stöckl & Foster, 2022 ), that also causes substantial shifts in the light’s directional structure. Recent work has also highlighted the potential for the directional structure of lighting to impact animal anti-predator defences, with diffuse light causing a mismatch between colour change and background selection in a marine isopod ( Bullough et al., 2023 ). Quantifying the light environment’s spatial and spectral properties is therefore of particular importance for ALAN research. A number of existing methods have been developed for quantifying spatio-spectral information. No clear consensus exists on the distinction between multispectral and hyperspectral imaging systems ( Polder & Gowen, 2021 ), however, I propose that ‘hyperspectral’ should be reserved for systems that operate at substantially higher spectral resolution than the full-width at half-maximum (FWHM) of typical opsin responses. Multispectral techniques such as wide-angle photography can be used to photograph whole scenes, with calibration allowing for conversion to absolute radiance ( Nilsson & Smolka, 2021 ). Further recent work has used similar methods to model non-human low-light visual dynamics to ALAN and sky glow in particular ( Stöckl & Foster, 2022 ). This method enables rapid data collection using affordable equipment, with high spatial resolution and moderately high dynamic range. While exposure bracketing can increase the effective dynamic range of such systems, in practice the optical train’s internal reflections and modulation transfer function will often result in under-estimates of true scene dynamic ranges. Photography-based methods also have limited spectral resolution (human RGB only, and will not readily work for ultraviolet ranges due to the limitations of wide-angles lenses). Multispectral and hyperspectral camera systems that use pass filters are a good compromise between spatial and spectral resolution under natural lighting for many tasks ( Párraga et al., 1998 ; Troscianko & Stevens, 2015 ). However, as above, wide-angle lenses cannot operate over the ultraviolet-visible range, and the spectral resolution is not sufficient for ALAN work that often involves complex emission spectra [resulting in metamerism in low-spectral resolution systems ( Troscianko, 2022 )]. These camera systems also require moderately complex calibration to convert pixel values to absolute radiance. Hyperspectral cameras can be used to image reflective spheres in order to build up whole-scene radiance with higher spectral resolution than that offered by camera-based systems ( Morimoto et al., 2019 ). This technique can provide moderately high spectral and spatial resolution, however there are a number of drawbacks. Notably the dynamic range of existing hyperspectral cameras is comparatively low (because the optics and exposure control must now operate over a wider band of spectra), and they struggle to measure the vast dynamic range typical of natural scenes. Absolute sensitivity is also typically low, making them poorly suited to low-light situations (such as ALAN research). Capture and calibration is also complex as it requires taking and stitching together multiple scans from different angles to build up a whole scene on top of the above calibrations required to convert to absolute radiance. Hyperspectral cameras are also comparatively expensive (typically >£20k for human-visible range, or considerable more for UV-visible systems), and far beyond the resources of many researchers. Motorised (gimbal-mounted) spectroradiometers or imaging telescopes are a final technique, such as the ASTMON systems for quantifying night-time lighting for astronomy ( Hänel et al., 2018 ). Nevertheless, such systems are not typically affordable, accessible, or easily adapted to measuring high dynamic range light environments. I therefore developed a low-cost, high-sensitivity imaging system capable of producing spectral radiance or relative reflectance images of whole-scenes across wavelengths relevant to any visual system. Materials and Methods All code, calibration data and sample scans are provided as supplementary information with this submission, however, see the Github project for the latest updates: https://github.com/troscianko/HOSI/ Hardware The HOSI system was developed from OSpRad; an open-source spectroradiometer designed for low-light spectral radiance and irradiance measurements ( Troscianko, 2022 ). Both systems are built around the Hamamatsu C12880MA micro spectrometer, which has comparatively high sensitivity (down to 0.001 cd.m -2 ), a high spectral resolution with 288 photosites (typical FWHM of 9nm, and maximum FWHM of 15nm), and a spectral range of ∼320-850nm that encompasses effectively all animal phototransduction-based visual systems, and the PAR/near-IR ranges required for plant-based measurements. The component is low-cost (approximately £220 from Hamamatsu UK), and is typically used in medical equipment, but can be interfaced through a customised open-source microcontroller. For further details on how the microcontroller interfaces with the C12880MA, see Troscianko (2022) , and the HOSI’s C++ Arduino code. Parts were printed in matt black PLA (Polylactic acid, SUNLU Matte PLA 1.75mm Printer Filament, Amazon UK, ∼£18, figure 1c ). It is essential the the printed plastic does not transmit near-infrared light (e.g. avoid black PET, Polyethylene terephthalate). See figure 1 for examples. Download figure Open in new tab Figure 1. 3D parts and wiring. a) Photograph of a HOSI unit in the field, running from a smartphone. b): 3D assembly; c): parts arranged for 3D printing; d): wiring diagram and required wire lengths. GND (ground) is the shared negative voltage, VIN is the 5v output from the Arduino that is delivered via the USB cable. Note that the spectrometer should be connected to the Arduino’s regulated 5v output (as shown), not VIN that has a slightly lower voltage due to a protective diode in the Arduino. Focusing is achieved using a biconvex fused silica lens with 10mm focal length, and 6mm diameter (LB4280; Thorlabs Ltd. ∼£75). This is an off-the-shelf lens that provides sufficient spatial detail for most imaging and light environment measurement tasks. The lens is placed into a 3D-printed threaded holder that can be screwed into the HOSI housing for manual focusing from infinity to roughly 30mm, providing a roughly 0.5 degree acceptance angle. A 3D printed tool allows for easy focusing, and a user can make marks on this tool to denote the positions of different focal depths. This system is well suited to low-light applications, but will saturate under strong daylight light intensities, so light reducer aperture 3D printed parts are also provided for daytime use (note that the spectral sensitivity measurements below must be repeated if a light reducer is used). Hyperspectral images are acquired by using a 3D printed gimbal that pans and tilts the spectroradiometer with stepper motors. 28BYJ-48 stepper motors were selected for their high angular resolution of 2048 steps per revolution, an ability to run from a USB (5v) source, their availability, and low cost. The spectrometer and stepper motors are controlled by an Arduino Nano microcontroller; this in turn interfaces through serial connection with a computer or smart phone. The housing uses 3D printed parts and can be assembled with basic soldering skills ( figure 1d ). Calibration Linearisation Calibration broadly followed Troscianko (2022) . While the uncalibrated system has a good linear response to radiance across most of its range (R 2 values typically ∼0.996-0.998 using the below linearisation protocol), low count values (below roughly 1% of maximum) over-estimate radiance relative to the middle and upper ranges. To make linearisation more straightforward I developed a Python script (file: Calculate_HOSI_linearisation_curve_0.6.py) that automates the process by taking 22 measurements with exposures ranging from 0.005 to 1.5 times the auto-exposed integration time. To use the script, the HOSI should be placed in front of a surface that is illuminated with a source that will remain stable in spectral output and intensity for roughly one minute. For most reliable results this should be performed in a dark room to eliminate unwanted light ingress during the dark measurement. Almost any stable non-flickering source can be used in principle, such as conventional non-flickering LED room lighting, or a display screen. Ideally the intensity should use upper integration times of around 200,000-800,000 microseconds to maximise the dynamic range. The script removes any saturated (over-exposed) values, and selects the spectral peak of the linearisation spectrum. Values at this peak wavelength are then compared between known exposure times, comparing observed and expected (linear) responses. A Gaussian smoothing function (σ=3) is applied to the spectral recordings to reduce noise, and dark count values are subtracted from light counts. The script then uses least squares regression to fit the results to a linearisation equation, and outputs the model coefficients together with R 2 values and log-log axis plot. This linearisation modelling typically increases R 2 values to >0.999, with performance at low-values notably improved. Spectral sensitivity Stable illumination in the UV-visible range was provided by an Osram XBO R 100 W/45 bulb (∼$435), driven by a USHIO SMARTARC™ HBX-76 igniter and ballast (∼$500), both sourced from LabGear Inc. The lamp was fitted to a stainless steel hemispherical reflector (made from an IKEA BLANDA bowl £5). The XBO lamp provides a highly focused beam of light that is not suitable for diffuse illumination. To diffuse the light source a 80mm diameter disk of 1mm thick virgin PTFE sheet was fitted roughly 100mm from the bulb. A second, larger diffuser disk 300mm diameter made from 0.5mm thick virgin PTFE was then used for further diffusion mounted roughly 150mm from the bulb. A centrifugal fan at the base of the lamp provides cooling to the bulb and diffusers (the ballast provides a 12v output for this purpose). The resulting lamp provides unfocused, roughly cosine-shaped throw and is far better suited to typical calibrated photography/hyperspectral imaging than most stable xenon sources available from commercial suppliers, while being considerably cheaper. However, care must be taken to house and use the system in a safe way given its ionising radiation emissions, high voltage spikes at ignition, and potential for explosion of the high-pressure XBO lamp. Spectral sensitivity calibration was achieved by taking a hyperspectral image of a Spectralon 99% reflectance illuminated by the stable Xenon source (above), and comparing this to a calibrated spectral radiance measurement. The illuminant was directly above the standard (90 degrees from the surface), while measurements were taken from approximately 45 degrees using the HOSI system, and a NIST-tracable Jeti Specbos UV-1211 spectroradiometer. Raw count data were then extracted from the hyperspectral image file (averaged across the 35 pixels that recorded the white standard), together with count data of the dark measurements taken before and after the white standard, matching the same integration. Average dark counts are then subtracted from average light count data at each wavelength. A Python script (file: Calculate_HOSI_spectral_sensitivity_0.2.py) can then be used to calculate the spectral sensitivities from these count data and calibrated spectrum, together with the integration time (in microseconds) and the linearisation coefficients (measured above). Calibration data must be saved to the calibration_data.txt file in the same directory as the GUI’s Python code. This file specifies the photosite wavelength calculation coefficients (provided with each Hamamatsu C12880MA chip by the manufacturer), linearisation model coefficients, and spectral sensitivity functions for each unit. Each HOSI unit can have its own unit number that is specified when uploading the firmware, and the calibration_data.txt file allows for multiple units to be added (so labs can use multiple units across smartphones/computers without risk of using the wrong calibration data). All testing was performed at standard room temperatures of around 19-20 degrees. Sensor performance may vary at temperatures well outside this range, and users should calibrate and test their units under typical use scenarios. Firmware The Arduino Nano microcontroller uses custom written code (‘firmware’, file: Arduino_HOSI_1.05.ino, written in Arduino C++), that was developed from the OSpRad project as above ( Troscianko, 2022 ), however it has a number of major changes to optimise the system for speed while maintaining high-dynamic range, and providing gimbal positional control. This firmware is uploaded to the Nano using Arduino IDE software. Dark measurement The spectrometer uses a CMOS sensor, which converts absorbed light at photocells into a potential difference (higher voltage for more light received), an analogue-to-digital-converter on the Arduino Nano then converts this to a digital count. However, each photocell also has a “dark current” associated with the black point, and this varies with factors such as supply voltage and sensor temperature, so must be measured regularly. The HOSI system automatically makes regular (and user customisable) dark measurements by rotating the spectrometer down into the gimbal housing at the end of a panning scan, to a position designed to block light. These dark measurements are stored in the raw output for subsequent calculation of absolute spectral radiance. Exposure control Exposures are calculated independently at each gimbal position, with integration times starting from the minimum of 500 microseconds, and increasing in octaves until an exposure is saturated in any wavelength, or the user-specified maximum integration time is reached (default of 2 seconds, maximum 30 seconds). The firmware then sends the previous (non-saturated) exposure to the app (below), and proceeds to the next gimbal position. The theoretical dynamic range of the system within a single hyperspectral image is therefore approximately 1:60,000 based on integration times alone, and considerably higher when considering the dynamic range of the sensor itself. Scanning behaviour The user can specify the start point, stop point and resolution (steps per measurement) for the pan and tilt axes independently. Panning allows measurements across 360 degrees (azimuth), and tilt from approximately -20 degrees 90 degrees (elevation). The stepper motor gears introduce a small amount of play that the firmware overcomes by overshooting and returning to position when starting a new panning scan. Projection HOSI uses a Mercator projection to link each pixel’s azimuth and elevation to 2D image x and y coordinates respectively. This would result in higher resolution measurements near the poles (high elevation measurements), and as such the firmware progressively skips redundant pixel scans near the poles, interpolating measurements for efficient whole-scene scans. Spectral Compression Spectral data can be compressed by selecting an averaging value that combines neighbouring photosite count data over a user-specified window size. For example, a value of 2 halves the number of output data without reducing the effective spectral resolution (given the C12880MA’s ∼9nm FWHM resolution). Window sizes greater than 2 will result in loss of spectral resolution. Graphical User Interface (GUI) Application The HOSI unit receives both power and communication via its USB connection with a computer or smartphone, making the system highly portable and flexible. The graphical user interface application (app, file: HOSI_GUI_0.1.45.py) was written in Python 3.10.6, and provides straightforward access to control a HOSI unit and save the output data to the computer/smartphone (see figure 2 ). The code can run on computers with Python, or on Android smart phones using the free Pydroid app. The app uses the calibration data (above) to calculate radiance for each pixel ( Le [W.sr -1 .m -2 .nm -1 ]), which is saved in the output file along with raw data, an sRGB image of the scan, a user-specified label, and time-stamp. Download figure Open in new tab Figure 2. Graphical user interface (GUI) layout, showing the available functions and a scan of butterflies. The spectrum shows a selection from a patch of wing that appears black to human vision, but has a UV peak visible to many other animals. This scene was illuminated by an Exo-Terra Sunray lamp. The app supports multiple preview formats, including: RGB (conventional sRGB image), an extended spectral range image that uses near infrared, green (CIE Y), and ultraviolet in place of RGB values respectively, a saturation preview mode that highlights any pixels where saturation has occurred through over-exposure, and an NDVI image for vegetation. Each pixel’s spectral radiance ( Le ) can be plotted by tapping/clicking on it in the preview. Output can also be viewed as relative reflectance by selecting a pixel containing a grey or white standard and clicking “Set Ref.”. Once set, pixel spectrum plots now show relative reflectance (% relative to the standard), and the preview image has the white-balance set. Discussion The hyperspectral open-source imaging system (HOSI) presented in this study addresses the growing need for affordable and versatile tools for quantifying spatio-spectral properties of light environments. In particular it offers high spectral and spatial resolution, high sensitivity, and a far larger dynamic range than existing ultraviolet to near infrared systems (because each pixel has an optimal exposure and glare-shielded optical train). Figure 3 shows a night-time scene measured with the HOSI system, demonstrating how individual bulb technologies can be identified, while also highlighting the large dynamic range present (with the highest spectral peak over 50,000 times higher than the lowest spectral peak in the scene). Moreover, the system is small and portable, capable of being operated with a smart phone, and has comparatively straightforward calibration compared to existing solutions, with output data that are largely pre-processed. Download figure Open in new tab Figure 3. Example hyperspectral scan of Falmouth (UK) docks at night. a): panoramic photograph of the scene; b): HOSI’s hyperspectral RGB preview image; c): radiance plots created by the HOSI GUI at chosen pixels (x-axis: wavelength [nm]; y-axis: linear radiance Le [W.sr -1 .m -2 .nm -1 ]). These spectra illustrate how individual light sources can be identified and compared. The highest spectral peak in the brightest pixel of this hyperspectral image is approximately 50,000 times higher than the peak in the darkest pixel. The full dynamic range (highest peak to lowest trough) is considerably greater, and can be maximised further with longer exposure times to reduce noise. While the HOSI system offers significant advantages, a notable limitation is the time it takes to scan high-resolution images, particularly under low-light. As such the system is not suited to instantaneous imaging of scenes with fast-changing illumination or moving objects. However, high spatial resolution is typically not required for quantifying the light environment, and in many cases movement or spatial changes may be statistically averaged out in large datasets. Moreover, the system’s flexibility allows researchers to adjust elevation and azimuth resolutions independently based on their specific needs, balancing time constraints with spatial requirements. For example, Nilsson & Smolka (2021) use whole-scene photographic techniques with high spatial resolution, but the data are subsequently converted to vertical transects that a HOSI system could readily replicate through transects. When used as a hyperspectral imaging camera, the HOSI system can be used in the lab with a stable full-spectrum light source for generating high spectral resolution images where capture time is not limiting. The HOSI’s adaptability, and open-source nature contribute to its potential for environmental sensing and light environment quantification in a wide range of scientific disciplines. Furthermore, its affordability allows the system to be used in high-risk environments (aerial or underwater sensing ( Tidau et al., 2021 )), or at increased scope by deploying multiple systems. The project also paves the way for future innovations in spatio-spectral data measurement systems that require co-ordination of spectrometry with actuators, such as automated goniometry for quantifying iridescence ( Gruson et al., 2018 ), or automated sensing systems in medicine or food testing. Data Availability All code, 3D models, calibration data, and sample scans are available at the project’s GitHub page: https://github.com/troscianko/HOSI/ , released under a GNU General Public License v3.0. Funding This work was supported by Natural Environment Research Council grant (NERC NE/W006359/1) Conflict of interest I declare that I have no conflict of interest. Footnotes Contact: jt{at}jolyon.co.uk https://github.com/troscianko/HOSI/ References ↵ Akkaynak , D. , & Treibitz , T. ( 2018 ). A revised underwater image formation model . Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition , 6723 – 6732 . http://openaccess.thecvf.com/content_cvpr_2018/html/Akkaynak_A_Revised_Underwater_CVPR_2018_paper.html ↵ Akkaynak , D. , Treibitz , T. , Shlesinger , T. , Loya , Y. , Tamir , R. , & Iluz , D. ( 2017 ). What is the space of attenuation coefficients in underwater computer vision? Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition , 4931 – 4940 . http://openaccess.thecvf.com/content_cvpr_2017/html/Akkaynak_What_Is_the_CVPR_2017_paper.html ↵ Bohren , C. F. ( 1987 ). Multiple scattering of light and some of its observable consequences . Am. J. Phys , 55 ( 6 ), 524 – 533 . OpenUrl Web of Science ↵ Briolat , E. S. , Gaston , K. J. , Bennie , J. , Rosenfeld , E. J. , & Troscianko , J. ( 2021 ). Artificial nighttime lighting impacts visual ecology links between flowers, pollinators and predators . Nature Communications , 12 ( 1 ), 4163 . doi: 10.1038/s41467-021-24394-0 . OpenUrl CrossRef ↵ Bullough , K. , Gaston , K. J. , & Troscianko , J. ( 2023 ). Artificial light at night causes conflicting behavioural and morphological defence responses in a marine isopod . Proceedings of the Royal Society B: Biological Sciences , 290 ( 2000 ), 20230725 . doi: 10.1098/rspb.2023.0725 . OpenUrl CrossRef ↵ Cronin , T. W. , Johnsen , S. , Marshall , N. J. , & Warrant , E. J. ( 2014 ). Visual ecology . Princeton University Press . ↵ Cuthill , I. C. , Sanghera , N. S. , Penacchio , O. , Lovell , P. G. , Ruxton , G. D. , & Harris , J. M. ( 2016 ). Optimizing countershading camouflage . Proceedings of the National Academy of Sciences , 113 ( 46 ), 13093 – 13097 . doi: 10.1073/pnas.1611589113 . OpenUrl Abstract / FREE Full Text ↵ Davies , T. W. , Bennie , J. , Inger , R. , de Ibarra , N. H. , & Gaston , K. J. ( 2013 ). Artificial light pollution: Are shifting spectral signatures changing the balance of species interactions? Global Change Biology , 19 ( 5 ), 1417 – 1423 . OpenUrl CrossRef PubMed ↵ Endler , J. A. ( 1993 ). The Color of Light in Forests and Its Implications . Ecological Monographs , 63 ( 1 ), 2 – 27 . doi: 10.2307/2937121 . OpenUrl CrossRef ↵ Gruson , H. , Andraud , C. , Daney de Marcillac , W. , Berthier , S. , Elias , M. , & Gomez , D. ( 2018 ). Quantitative characterization of iridescent colours in biological studies: A novel method using optical theory . Interface Focus , 9 ( 1 ), 20180049 . doi: 10.1098/rsfs.2018.0049 . OpenUrl CrossRef ↵ Hänel , A. , Posch , T. , Ribas , S. J. , Aubé , M. , Duriscoe , D. , Jechow , A. , Kollath , Z. , Lolkema , D. E. , Moore , C. , Schmidt , N. , Spoelstra , H. , Wuchterl , G. , & Kyba , C. C. M. ( 2018 ). Measuring night sky brightness: Methods and challenges . Journal of Quantitative Spectroscopy and Radiative Transfer , 205 , 278 – 290 . doi: 10.1016/j.jqsrt.2017.09.008 . OpenUrl CrossRef ↵ Imran , H. A. , Zeggada , A. , Ianniello , I. , Melgani , F. , Polverari , A. , Baroni , A. , Danzi , D. , & Goller , R. ( 2023 ). Low-Cost Handheld Spectrometry for Detecting Flavescence Doree in Vineyards . Applied Sciences-Basel , 13 ( 4 ), 2388 . doi: 10.3390/app13042388 . OpenUrl CrossRef ↵ Kyba , C. C. M. , Altıntaş , Y.Ö. , Walker , C. E. , & Newhouse , M. ( 2023 ). Citizen scientists report global rapid reductions in the visibility of stars from 2011 to 2022 . Science , 379 ( 6629 ), 265 – 268 . doi: 10.1126/science.abq7781 . OpenUrl CrossRef ↵ Morimoto , T. , Kishigami , S. , Linhares , J. M. M. , Nascimento , S. M. C. , & Smithson , H. E. ( 2019 ). Hyperspectral environmental illumination maps: Characterizing directional spectral variation in natural environments . Optics Express , 27 ( 22 ), 32277 – 32293 . doi: 10.1364/OE.27.032277 . OpenUrl CrossRef ↵ Nilsson , D.-E. , & Smolka , J. ( 2021 ). Quantifying biologically essential aspects of environmental light . Journal of The Royal Society Interface , 18 ( 177 ), 20210184 . doi: 10.1098/rsif.2021.0184 . OpenUrl CrossRef ↵ Párraga , C. A. , Brelstaff , G. , Troscianko , T. , & Moorehead , I. R. ( 1998 ). Color and luminance information in natural scenes . JOSA A , 15 ( 3 ), 563 – 569 . doi: 10.1364/JOSAA.15.000563 . OpenUrl CrossRef PubMed ↵ Polder , G. , & Gowen , A. ( 2021 ). The hype in spectral imaging . Spectroscopy Europe . https://library.wur.nl/WebQuery/wurpubs/fulltext/574548 ↵ Price , T. D. ( 2017 ). Sensory Drive, Color, and Color Vision . The American Naturalist , 000 – 000 . doi: 10.1086/692535 . OpenUrl CrossRef ↵ Rich , C. , & Longcore , T. ( 2013 ). Ecological consequences of artificial night lighting . Island Press . ↵ Sánchez de Miguel , A. , Bennie , J. , Rosenfeld , E. , Dzurjak , S. , & Gaston , K. J. ( 2022 ). Environmental risks from artificial nighttime lighting widespread and increasing across Europe . Science Advances , 8 ( 37 ), eabl6891 . doi: 10.1126/sciadv.abl6891 . OpenUrl CrossRef ↵ Sanders , D. , Frago , E. , Kehoe , R. , Patterson , C. , & Gaston , K. J. ( 2021 ). A meta-analysis of biological impacts of artificial light at night . Nature Ecology & Evolution , 5 ( 1 ), Article 1. doi: 10.1038/s41559-020-01322-x . OpenUrl CrossRef ↵ Seehausen , O. , Terai , Y. , Magalhaes , I. S. , Carleton , K. L. , Mrosso , H. D. J. , Miyagi , R. , van der Sluijs , I. , Schneider , M. V. , Maan , M. E. , Tachida , H. , Imai , H. , & Okada , N. ( 2008 ). Speciation through sensory drive in cichlid fish . Nature , 455 ( 7213 ), 620 – 626 . doi: 10.1038/nature07285 . OpenUrl CrossRef PubMed Web of Science ↵ Stöckl , A. L. , & Foster , J. J. ( 2022 ). Night skies through animals’ eyes—Quantifying night-time visual scenes and light pollution as viewed by animals . Frontiers in Cellular Neuroscience , 16 . doi: 10.3389/fncel.2022.984282 . OpenUrl CrossRef ↵ Tidau , S. , Smyth , T. , McKee , D. , Wiedenmann , J. , D’Angelo , C. , Wilcockson , D. , Ellison , A. , Grimmer , A. J. , Jenkins , S. R. , Widdicombe , S. , Queirós , A. M. , Talbot , E. , Wright , A. , & Davies , T. W. ( 2021 ). Marine artificial light at night: An empirical and technical guide . Methods in Ecology and Evolution , 12 ( 9 ), 1588 – 1601 . doi: 10.1111/2041-210X.13653 . OpenUrl CrossRef ↵ Troscianko , J. ( 2022 ). OSpRad; an open-source, low-cost, high-sensitivity spectroradiometer (p. 2022.12.09.519768). bioRxiv . doi: 10.1101/2022.12.09.519768 . OpenUrl Abstract / FREE Full Text ↵ Troscianko , J. , & Stevens , M. ( 2015 ). Image calibration and analysis toolbox – a free software suite for objectively measuring reflectance, colour and pattern . Methods in Ecology & Evolution , 6 ( 11 ), 1320 – 1331 . doi: 10.1111/2041-210X.12439 . OpenUrl CrossRef ↵ Xiao , F. , & Cuthill , I. C. ( 2016 ). Background complexity and the detectability of camouflaged targets by birds and humans . Proc. R. Soc. B , 283 ( 1838 ), 20161527 . doi: 10.1098/rspb.2016.1527 . OpenUrl CrossRef PubMed ↵ Youngentob , K. N. , Renzullo , L. J. , Held , A. A. , Jia , X. , Lindenmayer , D. B. , & Foley , W. J. ( 2012 ). Using imaging spectroscopy to estimate integrated measures of foliage nutritional quality . Methods in Ecology and Evolution , 3 ( 2 ), 416 – 426 . doi: 10.1111/j.2041-210X.2011.00149.x OpenUrl CrossRef ↵ Yu , C. , Wijntjes , M. , Eisemann , E. , & Pont , S. ( 2023 ). Quantifying the spatial, temporal, angular and spectral structure of effective daylight in perceptually meaningful ways . Optics Express , 31 ( 5 ), 8953 – 8974 . doi: 10.1364/OE.479715 OpenUrl CrossRef View the discussion thread. Back to top Previous Next Posted June 26, 2024. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Hyperspectral open source imaging system Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Hyperspectral open source imaging system Jolyon Troscianko bioRxiv 2024.06.21.600046; doi: https://doi.org/10.1101/2024.06.21.600046 Share This Article: Copy Citation Tools Hyperspectral open source imaging system Jolyon Troscianko bioRxiv 2024.06.21.600046; doi: https://doi.org/10.1101/2024.06.21.600046 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Ecology Subject Areas All Articles Animal Behavior and Cognition (7646) Biochemistry (17728) Bioengineering (13917) Bioinformatics (42038) Biophysics (21489) Cancer Biology (18637) Cell Biology (25554) Clinical Trials (138) Developmental Biology (13403) Ecology (19941) Epidemiology (2067) Evolutionary Biology (24368) Genetics (15624) Genomics (22547) Immunology (17764) Microbiology (40475) Molecular Biology (17208) Neuroscience (88756) Paleontology (667) Pathology (2842) Pharmacology and Toxicology (4834) Physiology (7659) Plant Biology (15175) Scientific Communication and Education (2047) Synthetic Biology (4304) Systems Biology (9835) Zoology (2272)

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2024) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00