Abstract
Precise determination of the photosynthetic photon flux density (PPFD) is important for illumination in modern horticultural systems. This paper presents two methods to calculate the PPFD of daylight spectra using low cost optic sensors. The first method uses the spectral sensitivity functions of spectral sensors to recreate the quantum sensitivity curve of quantum sensors. Two sets of spectral sensitivity functions are compared. The second method calculates the PPFD based on the calculated correlated colour temperature and a spectral reconstruction using the CIE daylight model. It is demonstrated that all methods offer a useful estimation of the PPFD with correspondingly similar daylight spectra, but the supposedly simpler method, which is based on weighting of the individual channels, is more stable against deviations from the CIE daylight model.
1. Introduction
Plant growth in greenhouses is affected by temperature, humidity, nutrient supply, water supply and light. In modern horticulture, growers are increasingly supported by technology to handle these parameters; for example, decision making on irrigation is provided by sensors. 1 Regular measurement of nutrients in the substrate or nutrient solution is moreover already part of the repertoire of a modern grower.
To take control of the light environment, light affecting plant growth needs to be measured. According to McCree in 1972, 2 radiation in the range from 400 nm to 700 nm is used for photosynthesis and therefore defined as photosynthetic active radiation (PAR). This range has been used for a long time but may be extended in the future to include far red radiation, as proposed by Zhen et al. 3 Inside the PAR range, all photons are summed up, without further weighting.
Growers and farmers are measuring the photosynthetic active photon flux density (PPFD) in µmol m−2 s−1, which indicates how many photons in the spectral range of PAR radiation are received per area and time unit. By continuously recording the PPFD, it is possible to determine the light sum of an area element over the entire day, referred to as the daily light integral (DLI). Different crops have different needs regarding the DLI. An estimation of the DLI using prediction models based on the solar radiation was proposed by Albright et al. 4
If the natural sunlight is not sufficient, supplemental lighting in greenhouses is used to achieve a constant PPFD, where a control loop is built using sensors to measure PPFD. 5–7 Previous works have used different approaches to measure PPFD. 8–19 Summed up, it can be done with several techniques, as stated by Ross and Sulev 20 using: (1) spectroradiometers; (2) pyranometers covered with hemispherical glass filters; or (3) sensors based on silicon photodiodes (quantum sensors).
Using spectrometers returns information about the spectral composition of the light; however, it is too expensive for broad applications in field. Pyranometers are used to measure sun radiation, including the IR-range. Today, quantum sensors are mostly used in the field of horticultural applications. Those are constructed using a photodiode to measure irradiance, while the spectrum is weighted according to the photon energy using an optical filter set.
Barnes et al. demonstrated that depending on the spectrum of the radiation source, as well as on the spectral response of the quantum sensor, the accuracy can vary, while broad light sources are most accurate. 21 Blonquist et al. as well as an experiment performed by LI-COR measured errors of more than 30 % by testing different sensors in a variety of light sources. 22,23 Quantum sensors are not able to attain spectral information, and having this information could be beneficial.
Recent work introduced spectral sensors as a promising tool to measure PPFD.
24,25
Spectral sensors are an array of photodiodes, each one coated with different optical bandpasses. For one diode-filter component, the digital output corresponds to the integral of the sensor spectral sensitivity s
channel(λ), which is dependent on the optical filter and the used semiconductor. The sensor output is proportional to the sensitivity and the spectral irradiance Ee(λ)
In dependence of the amount of different photodiode-filter combinations (channels), the information about the spectral composition of the irradiance varies. Usually, the centre-wavelength of the optical filters is distributed over the visible range. Due to the sensitivity of silicon in the infrared region, measurement in this region is possible, too.
Depending on the application, optical filters are used to customise the sensitivity function to enable: (1) spectral measurements, (2) a fit to the colour response curves of the eye, (3) a fit to the luminous efficiency function for photopic vision V(λ), and (4) a fit to calculate R-G-B-components. None of these filters allows a direct measurement of the PPFD, but those filters can be used to determine information about the spectrum. This enables the calculation of a conversion factor to calculate PPFD from measured irradiance.
The focus of this work is on the error of different methods to determine this conversion factor. Future works can benefit from this investigation by choosing an appropriate method for individual illumination case.
2. Experimental details and methods
Overview of the sensors used in this work
Two methods are used: method 1 uses a reduced PAR-weighting function to calculate PPFD, and method 2 uses the CIE daylight model. Method 1 is applied to sensors 1 and 2, while method 2 is applied to sensors 2 and 3. Characteristics of all sensors are used to calculate their theoretical ability to measure the PFPD under a daylight spectrum. Therefore, the sensors response to different monochromatic light sources is determined using the setup in Figure 1. The set-up of the measurement and determination for the sensitivity curves of spectral sensors
In this setup, monochromatic light provided from a Xenon light source together with a LOT MSH-300 monochromator enters an integrating sphere (6 inch diameter), where the spectral sensor and a spectrometer (Spectro 320 scanning spectrometer from Instrument Systems) with a resolution smaller than that of the spectral sensor are mounted to. The spectrometer serves as a reference measurement for the characterisation. Sweeping the centre-wavelength of the entering quasi-monochromatic light enables the calculation of the spectral sensors sensitivity curves by dividing the response of the sensor through the spectrometer one, which is known as the simple estimates procedure.
29,30
With this setup, the sensitivity curves for sensor 1 are illustrated in Figure 2, for sensor 2 in Figure 3 and for sensor 3 in Figure 4
Sensitivity curves of the multi-channel spectral sensor (sensor 1). S1 to S8 sorted by increasing peak wavelength Sensitivity curves of the R-G-B sensor (sensor 2) Sensitivity curves of the X,Y,Z sensor (sensor 3)


Using these sensitivity curves, two methods are presented in the following to calculate the PPFD.
2.1 Calculating PPFD from spectral irradiance
To calculate PPFD (E
p,PAR), analogue to the V(λ) curve, a weighting function is needed to transform the energy-based quantity to a quantum-based one Photon flux density per Watt in dependence of the wavelength

Equation (4) can be rewritten as
For a precise determination of E
e,PAR, the critical part is the determination of
2.2 Method 1: Determination based on reduced PAR-weighting functions
The first method to approximate E p,PAR using spectral sensors is based on the sensitivities of the channels. Thus, the W(λ) function is simulated using the sensitivities and additional weights a n , which depend on the value of the W(λ) function at the centre-wavelength, and the sum of these weighted channels is taken as the PPFD.
Overview of channel, full width at half maximum (FWHM) and value of the W(λ)-curve at the corresponding centre-wavelength of the used sensors: sensor 1: R-G-B and sensor 2: S1 to S8
Factor
2.3 Method 2: Determination based on the CIE daylight model
The second method uses an approach based on the correlated colour temperature (CCT) and a reconstruction of the spectrum using the CIE daylight model.
The CIE daylight model
31
is a linear combination of different vectors describing the phases of daylight
These basic curves S
0(λ), S
1(λ) and S
2(λ) are illustrated in Figure 6. The basic curves S0(λ), S1(λ), S2(λ) of CIE daylight model
31

To apply the daylight model, the correlated colour temperature (CCT) of the spectrum needs to be determined from the sensor values. For sensor 3, CCT can be obtained by transforming the X,Y tristimulus values to x,y colour coordinates and applying the formula from McCamy. 32
This can furthermore be applied for sensor 2, but first, the R-G-B sensor values need to be transformed to X,Y,Z. For this purpose, a transformation matrix is empirically calculated, which allows transformation of the sensor responses. This transformation matrix is calculated using the optimisation algorithm ‘fminsearch’ in Matlab. The optimisation constraint is a low ΔEu′v′ between the input spectra and the calculated X,Y,Z values of the R-G-B sensor. With a determination constraint of ΔEu′v′ ≤ 0.003, the transformation-matrix results in the matrix given in equation (9)
In a second step, factors M
1 and M
2 from equation (8), which are based on the chromaticity coordinates x
D
and y
D
of the daylight phase are computed
31
The chromaticity coordinates are determined as follows, for CCT between 5000 K and 7000 K.
And for CCT above 7000 K
After calculation of those factors, the daylight spectrum to the corresponding CCT is determined using equation (8). Using this spectrum S
daylight (λ, CCT) and equation (4) leads to factor
2.4 Determination of the error
To calculate the error of factor
3. Results
Various test datasets were used to calculate the accuracy of the methods. The set of test spectra contains daylight-spectra calculated by the CIE-Method and real-world measurements under clear (19.08.2020, Darmstadt N 49.87, E 8.65, Germany) and cloudy (23.09.2020, Darmstadt N 49.87, E 8.65, Germany) sky, taken horizontally by a handheld spectrometer (CSS-45 Gigahertz-Optik). A set of 215 spectra was obtained, split into 131 training spectra and 84 test spectra.
33
CCT of the spectra ranges from 5000 K to 16 000 K, calculated using the method by McCamy.
32
Figure 7 displays the distribution of the used CCTs. Most spectra were in the range between 5000 K and 6000 K, with most spectra above 6000 K being calculated using the CIE-daylight model. Due to differences between clear and cloudy sky as well as to the CIE-daylight distribution, it is important to mix these data for training and test data to train this system for more than one daylight-condition. Mixing these sets leads to a variation of the incidence spectra, which causes a more robust calculation when applying the trained model. To illustrate the differences in the spectra, Figure 8 shows some spectra of the clear and cloudy sky as well as D65 and D50 daylight spectra. Distribution of the test dataset CCT Relative spectral distribution of D50 and D65 daylight spectra and two examples of diffuse and direct measured spectra at clear and cloudy sky

Errors in the following sections were calculated using equation (14). For sections 3.1 and 3.2, the training dataset was used, for section 3.3 the test one.
3.1 Error using method 1
The results for method 1 are illustrated in Figure 9. The horizontal line shows the median and the whiskers represent the 95% confidence interval. The outliers are marked with +. Sensor 1, using the 8-channel spectral sensor, has a mean error of 1.81 % compared to the one of sensor 2 with an underestimation of −23.52 %. The over- or underestimation of the PPFD with a relatively small variance allows an offset correction of the calculation. The overestimation of sensor 1 is probably due to the overlapping of the individual channels and the rising sensitivity in longer wavelength (see Figure 2). The underestimation of sensor 2 is due to the low number of sampling points. Results of both sensors and methods using the training spectra before and after offset correction (labelled with ‘c.’). In this graph and also Figures 10 and 11, the horizontal line shows the median, the whiskers represent the 95% confidence interval, and outliers are marked with +.
Results in % of sensors 1 and 2 with method 1 using the training dataset before and after offset correction (c.)
3.2 Error using method 2
Using the spectral reconstruction method with the CIE-daylight model leads to a lower mean error with the use of sensor 2 (R-G-B) and sensor 3 (X,Y,Z) compared to method 1 (see Figure 10). Mean error for sensors 2 and 3 is nearly the same, with −0.48 % and −0.27 %, respectively. After considering the offset, mean error is decreased to zero. Using this method, errors with and without offset correction are smaller than using method 1. Offset is set to be the mean of the error over all training spectra (Table 4). Results of both sensors and methods using the training dataset after offset correction (c.) Results in % of sensors 2 and 3 with method 2 using the training dataset before and after offset correction
3.3 Errors using test spectra dataset
After training and determination of the offset factors using the training dataset, all methods are applied to the test dataset. The results are displayed in Figure 11, and error values are in Table 5. With the test dataset, method 1 in combination with sensor 1 leads to an error with a low standard deviation. Mean error for method 1 using sensor 1 and method 2 using sensor 2, respectively 3, is similar, but with a larger standard deviation. Largest error occurs with sensor 2, using method 1, which was the same case using method 1 without offset correction (see Table 3). Results for all sensors using the test dataset. The applied offset correction was determined using the training dataset Results in % for all sensors using the test dataset
3.4 Errors using greenhouse spectra
Errors of the different methods using greenhouse spectra

Relative spectral distribution of D50 and D65 daylight spectra, two examples of measured spectra at clear and cloudy sky and three spectral distributions measured under a greenhouse roof
However, using the spectral sensor (sensor 1) with method 1, results are more stable against deviations of the incident spectrum compared to method 2. Due to only 3 channels, the spectral resolution of sensor 2 is not sufficient to measure these deviations. As the spectrum is different from the daylight spectrum, it was expected for method 2 to not lead to useful results.
4. Discussion and future work
Without offset correction, the results in the previous section demonstrate that method 2 based on the CIE-daylight model estimates PPFD best. After appropriate offset correction, all methods are very close to the ideal value, and this has been shown with the test dataset. Additionally, both methods theoretically surpass the accuracy of a commercial quantum sensor under daylight. 24 Due to the higher number of sampling points, sensor 1 is closer to the ideal value than sensor 2 using method 1. In addition, method 1 exhibited better stability against unexpected incident spectra.
Due to the calculation of the PPFD based on the CIE daylight model, the second method is not stable against spectral distributions which deviate from the ones used in the training datasets, for example, spectra in greenhouses or daylight mixed with spectra from artificial light sources. For example, the accuracy of the calculation of the PPFD in the case of mixed light from daylight and sodium vapour lamp or LED lamp, as used in modern greenhouses, would decrease significantly when using the second method. Furthermore, the first method is assumed to lose accuracy, but not to the same extent as the second method.
Method 1 can be executed with very little computational effort on a low-cost microcontroller and thus offers the possibility to be integrated into an inexpensive and portable handheld measuring device. 24,25 Leon-Salas et al. 25 measured an error between 1.77 % and 7.3 % for different daylight conditions using the same sensor. Such a dependency on the daylight spectrum was not noticeable in this study, leading to the assumption that this error might not come from the determination of the factor k e..p.
Without an offset correction, method 2 performs better. For applications where computation power is not a limiting factor, this method could moreover be used to precisely determine the factor k e..p. Especially useful is this in situations where devices with an already integrated colour sensor, for example, colorimeters, are available to measure PPFD.
All sensors in this work cost approximately 5 USD in small quantities to about 2 USD per chip in large quantities. Ready-to-use development kits for these sensors are in a range between 150 and 200 USD. In contrast, the cost of a handheld spectrometer is about 2500 USD. By calculating PPFD with such a low-cost measurement setup, more people gain access to the technology. Nowadays, most smartphones use built-in ambient sensors for ambient detection and R-G-B camera sensors. It may be possible to calculate the PPFD using those built-in sensors and a smartphone application. In addition, XYZ sensors are becoming more and more common in medical displays (white balance) or colour recognition (LED, skin, hair, printed materials).
For future work, this simulation-based calculation of the PPFD must be transferred into a real measurement setup to evaluate the two methods in a practical application.
For applications in horticulture, the use of method 1 has the possibility to gather information about spectral composition of the light and allows spectral ratios to be adjusted to influence plant physiology. The influence of far red on the plant reveals that the daily dose in this spectral range must be recorded. Simple PAR quantum counters have no sensitivity in this spectral range and thus give no information about these parameters. An extension of the PAR-range to the far-red region in the future, as proposed by Zhen et al, 3 could be measured with a spectral sensor. The accuracy in this range should be tested in future experiments.
5. Conclusion
In this work, determination of the conversion factor k e..p using two approaches was compared. The results demonstrate that both methods are well-suited approach for measurements under daylight. Testing the methods with spectra measured in a greenhouse revealed the benefits of sensor 1, using 8 spectral channels. Depending on the application, this study helps in choosing an appropriate method for measuring PPFD. Theoretically, the sensitivity curves of optical sensors can lead to precise measurements of daylight PPFD. Future work shall focus on real-world measurement with different intensities and compare the conversion factors with the theoretical ones.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received no financial support for the research, authorship, and/or publication of this article.
