Evaluation of grain yield based on digital images of rice canopy

Background Rice canopy changes are associated with changes in the red light (R), green light (G), and blue light (B) value parameters of digital images. To rapidly diagnose the responses of rice to nitrogen (N) fertilizer application and planting density, a simple model based on digital images was developed for predicting and evaluating rice yield. Results N application rate and planting density had significant effects on rice yield. Rice yield first increased and then decreased with increasing of N rates, while the rice yield always increased significantly with increasing planting density. The normalized redness intensity (NRI), normalized greenness intensity (NGI), and normalized blueness intensity (NBI) values of the rice canopy varied among stages; however, they were primarily affected by N fertilizer rates, while planting density had no significant effects. Furthermore, the significant relationships of grain yield with NRI and NBI at the late filling stage could be fitted by quadratic equations, but there was no significant relationship observed between grain yield and NGI across all stages. In addition, a field validation experiment showed that the predicted yield based on the fitted quadratic equations was consistent with the measured yield. Conclusion The NRI, NGI, and NBI values of rice canopy were mainly affected by N fertilizer rates, while the planting density had no significant effect. The significant relationships between grain yield with NRI and NBI at the late filling stage could be fitted by quadratic equations. Therefore, the canopy NRI and NBI at the late filling stage as measured by digital photography could be used to predict grain yield in southern China. Electronic supplementary material The online version of this article (10.1186/s13007-019-0416-x) contains supplementary material, which is available to authorized users.


Background
As one of the most important food crops in the world, rice feeds half of the global population, especially in East Asia and Southeast Asia [1,2]. Most rice-dependent populations are currently in developing countries such as China, India, and Thailand [3,4]. With increasing food demand in these and other regions, advanced technological innovations in rice production will be critical to stabilizing food security.
Rice yield is typically quantified after harvesting and drying. This process requires time, power, and resources. Therefore, the rapid and accurate estimation of rice yield has become an important part of rice production technology research. With the development of remote sensing technology, more remote sensing tools have been applied to agricultural monitoring. Use of terrestrial hyperspectral remote sensing [5,6] and satellite and aerial imagery [7][8][9] to conduct rice yield assessment have been reported. At present, the main methods for assessing rice yield primarily include spectroscopic diagnosis [9] and remote sensing evaluation [10], but these methods require the purchase of expensive spectrometers or satellite remote sensing images. Additionally, these methods are complex and give uncertain results [11], which makes them difficult to promote and apply.
However, owing to recent price decreases and integration with smartphones, digital cameras are now widely used [12]. Since the 1990s, digital cameras have been used as one of the most convenient tools for remote sensing of the visible light spectrum (in which R, G, and B represent the gray values from the red, green, and blue

Open Access
Plant Methods *Correspondence: liukailou@126.com 1 Jiangxi Institute of Red Soil, National Engineering and Technology Research, Center for Red Soil Improvement; Scientific Observational and Experimental Station of Arable Land Conservation in Jiangxi, Ministry of Agriculture, Nanchang 331717, People's Republic of China Full list of author information is available at the end of the article channels) in agricultural information monitoring, such as automatic classification of agricultural products [13], weed identification, and pest monitoring [14], among other applications. Kawashima et al. [15] reported manual selection of a complete blade for crop extraction (RB)/(R + B) to estimate the leaf chlorophyll content. Adamsen et al. [16] used a digital camera to vertically capture images of wheat canopies, and cut out images representing 1 m 2 to calculate parameters such as G/R. That study showed that G/R and the normalized difference vegetation index (NDVI) were significantly related to the chlorophyll metric, which was shown by soil-plant analyses development; (SPAD) value. Rorie et al. [17] used a digital camera to capture images of corn leaves under an active light source and calculated dark green color index (DGCI) after correction with a reference color, with results showing a strong correlation between nitrogen (N) content and yield of leaves. Li et al. [18] vertically photographed wheat canopies and segmented the images using soil adjustment vegetation index (SAVI) Green > 0 and found that the extracted coverage (Canopy Cover) positively correlated with the leaf area index (LAI), plant N content, and aboveground biomass. Previous studies in rice showed that leaf color measured with digital cameras can characterize N and chlorophyll content in rice [19,20]. In addition, green-channel minus red (GMR) can further distinguish the N diagnosis of indica and japonica rice varieties [21]. In summary, the R, G, and B values of digital photos are closely related to nutrient content in rice [18,20].
The current applications for digital cameras in rice and other crops are limited to nutritional diagnosis, and only a few studies have reported the evaluation of rice yield with digital cameras [22]. Using digital cameras for predicting rice yields can quickly assess rice production and provide decision-making basis for rice farmers and for governments. In this study, a field experiment was conducted which included different N fertilizer application rates and planting densities, and the color images of the rice canopy in the key growth periods were measured, including values for R, G, and B and the normalized redness intensity (NRI), normalized greenness intensity (NGI), and normalized blueness intensity (NBI). Moreover, the fitted regressions between grain yield with NRI, NGI, and NBI values were established. Field verification was also conducted to evaluate the practicality of the fitted regression.

Rice yield
N rates and planting density both had significant effects on rice yield (Fig. 1). Among all treatments, grain yield was highest in the N2D4 treatment with 8.34 × 10 3 kg ha −1 , while yield was the lowest in N0D1 treatment (5.01 × 10 3 kg ha −1 ). Compared with the no N application (N0), the grain yields were higher in the There was no significant relationship between N rate and grain yield under the same planting density, as demonstrated through the fitted regressions ( Table 1).
The fitted regressions showed that grain yield could be significantly improved by increasing planting densities under the same N rate (Table 2). Furthermore, these equations also showed that the growth rate of rice yield was higher in the N2 and N3 treatments than in the N0 and N1 treatments. The yield of the N2 treatment increased by 23.22% over that of the N0 treatment, but the yield of the N1 and N3 treatments did not differ significantly than that of the N0 treatment (Table 3). Increasing rice planting density can significantly improve grain yield. The highest yield was observed in the D4 treatment, which was increased by 34.27% over that of the D1 treatment. However, the yields of D2 and D3 treatments were not significantly increased over that of the D1 treatment.

Changes in the NRI, NGI, and NBI values of the rice canopy
The NRI values among all treatments gradually increased with the development of rice growth, which can be roughly divided into three periods ( Fig. 2): (1) the gradually increasing period was from the tillering to heading stage, (2) the stable period was from the heading to late filling stage, and (3) the rapidly increasing period was from the late filling to maturity stage. NRI in the key growth stages of rice was primarily regulated by the amount of N fertilizer, and different planting densities have little effect (Table 3). Across different growth periods, the NRI value in the N0 treatment was the highest among the most key stages, although different N rates also caused a significant difference in NRI values. Compared with the no N fertilizer treatment (Table 4), the NRI values in the N1 treatment were reduced by 4.86%, 3.51%, and 5.91% in the heading, filling, and late filling stages, respectively, while those in the N2 treatment decreased by 5.31%, 3.88%, and 6.27%, and those of the N3 treatment decreased by 6.25%, 3.57%, and 6.65% across these same stages.
The NGI values of all treatments gradually decreased with increasing rice growth, and these can be divided into three general periods as well ( Fig. 3): (1) a stable period was from the tillering to the jointing stage, (2) a gradual increase period was from the jointing to the heading stage, and (3) a rapid reduction period was from the heading to the maturity stage. Similar to trends for NRI, NGI during the key growth stages of rice could be affected by the N rates, but different planting densities Table 1 The fitted regression between nitrogen (N) rates (x) and grain yield (y) D (Table 4). Among four N rates, the NGI value of the tillering stage was the highest in the N3 treatment. However, in the late filling stage, the NGI values for the N fertilizer treatments were significantly lower than that of the N0 treatment ( Table 5). The NGI values in the N1, N2, and N3 treatments decreased below that of the N0 treatment by 2.90%, 3.82%, and 4.26%, respectively. Across all treatments, NBI values gradually decreased along with rice growth, and could be roughly divided into four periods, which include: (1) the gradual increase period was from the tillering to the jointing stage, (2) the rapid reduction period was from the jointing to the heading stage, (3) the increase period was from the heading to the late filling stage, and (4) the stabilization period was from the late filling to the maturity stage (Fig. 4). Like NRI and NGI, the NBI values in the key growth stages of rice were also affected by N rates (Table 5), while the different Table 4 Comparative analysis of the normalized redness intensity (NRI) in rice canopy under nitrogen (N) fertilizer and density treatments TS, JS, HS, FS, LFS and MS indicate the tillering, jointing, heading, filling, late filling and maturity stages of rice, respectively. Different lowercase letters indicate significant differences among nitrogen (N) fertilizer treatments (p < 0.05). Different uppercase letters indicate significant differences among planting density treatments (p < 0.05)

Relationships between rice yield and NRI, NBI, and NGI
Across different key growth stages of rice, the relationships between yield and NRI or NBI of rice canopy digital images at the late filling stage were fitted by quadratic curves (Table 7), with y = − 3437.4x 2 + 2465.5x − 434.79 (R 2 = 0.4853, p < 0.05); and y = − 1198.9x 2 + 436.5x − 32 .612 (R 2 = 0.4122, p < 0.05), respectively. However, there was no significant relationship between NGI and yield.

Model verification
In field validation experiments, the predicted yields were attained through the fitted equations with NRI and NBI at the late filling stage (Fig. 5). Concurrence between the simulated and measured values was high, with R 2 of 0.4592 and 0.7074 and RMSE of 0.5489 and 0.4010, respectively, with average RE values of − 0.024 and − 0.028. Therefore, the NRI and NBI at the late filling stage can be used to better predict grain yield.

Discussion
The application of digital cameras and image processing technology can be used to quickly obtain crop canopy data, and this method is cheaper and easier to operate and implement than other methods, such as hyperspectral remote sensing and satellite imagery. The rapid increase in the use of smartphones (with a self-contained camera function) can enable this technology to meet huge potential applications for rice planting. In this study, with increases in rice growth (from the tillering to the maturity stage), NRI values increased gradually, while NGI and NBI peaked at the heading and jointing stages, respectively, and then gradually decreased. This may be due to growth and metabolism consuming a great deal of energy, because NRI is directly related to available energy [23,24]. Moreover, NRI, NGI, and NBI in key growth stages of rice were   mainly regulated by N fertilizer application, rather than by planting density. Compared with no N application, the NRI values of the heading stage in the N fertilizer treatments were significantly lower, but the NBI values were significantly higher. The R, G, B values could change as a result of leaf yellowing and senescence, which can be caused by insufficient nutrient supply [25,26]. The R, G, and B values of plant canopies can reflect nutrient uptake, especially that of N content and uptake by crops [17][18][19]. Previous studies have shown that for rice, wheat, corn, and cotton, the R, G, B values obtained by a camera can reflect the N uptake capacity of plants, and can be further used to diagnose N deficiency and assess biomass and grain yield [18,20,22]. The current study also found that the relationship between NRI or NBI and grain yield can be fitted by a quadratic curve across all key rice growth stages. This result was the same as other studies, which all suggested that grain yield was closely related to NRI and NBI [27,28]. In these field experiments, the rainfall and temperature that occurred in the second year (2017) of the verification experiments were similar to those of the first year (2016). The simulated values of rice yield obtained by fitting equations were highly consistent with the measured values, with high estimation accuracy and low average relative error. NRI and NBI at the late filling stage can thus be used to better predict grain yield. However, rice yield could change as a result of the interaction of complex factors [29,30], such as unusual precipitation and temperature, which can cause rice lodging and disease [31][32][33]. Therefore, actual rice yield may differ from the yield predicted by NRI and NBI at the late filling stage, so these predictions should be used cautiously.

Conclusion
Metrics of growth in rice canopy across different growth stages can be measured and assessed by changes to the R, G, and B parameters of digital images. The NRI, NGI, and NBI of the rice canopy varied significantly across different N fertilizer rates, though the measured rice yield varied depending on both N fertilizer rate and planting density. NRI and NBI at the late filling stage could be used to predict grain yield through using the fitted quadratic curve equations, and these results were upheld by the field validation experiment.

Site description
The field experiment was conducted at Yanjia Village, Zhanggong Town, Jinxian County, Nanchang City, Jiangxi Province, China (116°′24″E, 28°15′30″N). This area The relationships between predicted and measured yield. R 2 , RMSE, RE and RRMSE mean correlation coefficient, root mean square error, relative error and relative root mean square error, respectively. NRI and NBI indicate the normalized redness intensity and normalized blueness intensity experiences a mid-subtropical monsoon climate, with an average annual rainfall of 1537 mm, annual evaporation of 1150 mm, annual average temperature of 18.1 °C, with average temperatures in the coldest month (January) and the hottest month (July) of 4.6 °C and 29.1 °C, respectively. In the experimental years of the study (2016 and 2017), rainfall primarily occurred in March, April, May, and June (Fig. 6)

Experimental design
In this study, the field experiment was conducted in 2016 and 2017 for model establishment and validation, respectively. The main treatment was N fertilizer rates (0, 135, 180, and 225 kg ha −1 N) and the secondary treatment was density levels (0.21, 0.27, 0.33 and 0.39 million plants ha −1 ). Each treatment was three replications, and main area was 9 × 4.5 = 40.5 m 2 (the sub-area was 2.2 × 4.5 = 9.9 m 2 ), and the random area group was arranged. Chemical fertilizer was applied to treatments ( Table 8). The application ratios for N fertilizer were 40%, 30%, and 30% in basal, tiller, and panicle fertilizers, respectively. All treatments (including the no N fertilizer treatment) received application of 60 kg ha −1 P 2 O 5 with calcium magnesium phosphorus (12.5% P 2 O 5 ) and 225 kg ha −1 K 2 O with potassium chloride (60% K 2 O). All phosphorus and 50% of the potassium fertilizer were used as base fertilizer, while the remaining 50% potassium fertilizer was applied as panicle fertilizer. The application time for basal, tiller, and panicle fertilizers was 1 day before transplanting rice, 10 days and 45 days after transplanting rice, respectively.
The rice variety was 'Zhengcheng 456' , which was sown on 25th June, transplanted on 24th July, harvested on 5th November. Water, weeds, insects, and disease were controlled as required to avoid yield loss.

1) Rice yield determination
Matured rice plants in each plot were harvested for threshing and measured for standard yield after drying (water content was 13.5%). 2) Photographing rice canopy In the tillering, jointing, heading, filling, late filling, and maturity stages, images of the rice canopy of rice in 2016 and 2017 (Additional file 1: Figs. S1 and S2) were obtained in the field with a Canon IXUS140 digital camera following established methods [34]. Crops were photographed at a vertical height of 1.2 m from the ground (about 1 m from the rice canopy) and at a 60° angle to the ground. A 15 × 5 cm white plastic plate was used as the background for shooting in the camera's automatic white balance mode. The image resolution was 1280 × 960, and the camera's image of the ground rice canopy range was approximately 1.2 m × 1 m trapezoids. Digital images were transferred to the computer in JPEG format.
The image was processed using Adobe Photoshop. "Color selection" was used to select the plant canopy part of the digital image (without the interference of the soil or water surface), and then the "histogram procedure" was employed to obtain data. The R, G, and B values of the image were measured, and the corresponding NRI, NGI, and NBI were calculated. The calculation of each normalized value is as follows:

3) Statistical analysis and model validation
The yield difference between treatments was statistically analyzed in SPSS16.0. Differences were compared with the Duncan method, with differences in N fertilizer application rate and planting density distinguished. When p < 0.05, the difference was significant.
The evaluation model was constructed through linear relationships between grain yield and color parameters through data of 2016. In order to test the reliability and universality of the model, the established models were validated using the data of 2017. The validity of the models was estimated from the statistical values of RMSE (root mean square error), RE (relative error), and RRMSE (relative root mean square error), which were calculated as: where X 0 and X S represent measured and predicted values, respectively. The model is available when RRMSE < 25%. NBI = B/(R + G + B)