Abstract
Background
Virtual plants can simulate the plant growth and development process through computer modeling, which assists in revealing plant growth and development patterns. Virtual plant visualization technology is a core part of virtual plant research. The major limitation of the existing plant growth visualization models is that the produced virtual plants are not realistic and cannot clearly reflect plant color, morphology and texture information.
Results
This study proposed a novel trait-to-image crop visualization tool named CropPainter, which introduces a generative adversarial network to generate virtual crop images corresponding to the given phenotypic information. CropPainter was first tested for virtual rice panicle generation as an example of virtual crop generation at the organ level. Subsequently, CropPainter was extended for visualizing crop plants (at the plant level), including rice, maize and cotton plants. The tests showed that the virtual crops produced by CropPainter are very realistic and highly consistent with the input phenotypic traits. The codes, datasets and CropPainter visualization software are available online.
Conclusion
In conclusion, our method provides a completely novel idea for crop visualization and may serve as a tool for virtual crops, which can assist in plant growth and development research.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Background
With the rapid development of computer technology, the application of computer technology in agriculture has gradually increased [1,2,3]. Benefiting from the development of digital agriculture, the concept of virtual plants [4] was proposed and gained the attention of a large number of researchers. The virtual plant is a multidisciplinary technology that combines multiple types of knowledge, including computer graphics, botany, geography, agriculture, and virtual reality [5]. Virtual plants simulate plant growth and development processes through computer modeling so that they can be analyzed and predicted on the computer [6, 7]. As one of the important research areas in digital agricultural technology, virtual plants play an important role in plant cultivation, strain improvement, plant growth and yield prediction and thus are of great significance in revealing plant growth and development patterns [8]. Virtual plant visualization is an important part of virtual plants [9, 10]. The main purpose of virtual plant visualization is to simulate plant morphology and growth through computer modeling [11].
The study of virtual crop visualization was proposed early by researchers. The L-system [12], first proposed by Lindenmayer in 1968, was essentially a theory that continuously updated the strings representing plant growth and added geometric interpretations to the strings to generate fractal graphs of plants. In later studies, the L-system was continuously improved and extended [13,14,15,16,17,18]. Allen et al. proposed the L-peach model for modeling structural and physiological changes during tree growth [19]. Leitner et al. modeled plant root growth based on the L-system by defining growth rules [20]. Cieslak et al. presented an interactive method for creating and calibrating developmental plant models for maize and canola based on the L-system [21]. With increasing research on plant growth systems, different plant growth models have been proposed. De Reffye et al. developed the AMAP plant growth software system using the reference axis technique, which is another popular method for virtual plant modeling [22]. The reference axis technique uses a finite automaton to simulate plant morphology, and plant growth and development processes were obtained by Markov chain theory and state transition diagrams. Mündermann et al. constructed successively quantitative models of plant topology and organs based on plant growth patterns and empirical data [23]. Jallas et al. established a coupled model that integrates plant architectural modeling and physiologically based modeling to virtualize the cotton growth process [24]. Dornbusch et al. used intercepted apical cones to simulate leaf sheaths and internodes of spring barley and ellipsoidal bodies to simulate spikelet seeds [25]. Espana et al. used a two-dimensional rectangular plane to approximate the leaf blade and mapped different parts of the leaf into a 3D space to achieve 2D and 3D morphological simulation of the maize leaf [26]. Based on the biomechanics of cell growth, Abera et al. developed tissue generation algorithms to study the influence of leaf anatomy on photosynthesis [27, 28]. Although virtual crop visualization has achieved tremendous improvement, the major limitation of the established plant models is that the plant models are not realistic in morphology, color, and texture, and cannot be used for precise crop visualization.
Generative adversarial networks (GAN) [29], proposed by Ian Goodfellow, have revolutionized the deep learning field. GAN is one of the most widely used techniques for image generation. It generates fake data consistent with its distribution by continuously approximating the data distribution of real samples. The network includes two parts: generator G and discriminator D. The goal of G is to generate fake samples by imitating the data distribution of real samples, and the goal of D is to make judgments on the authenticity of the samples. In the training process, G and D are constantly pitted against each other and the performance of G and D is continuously optimized. Consequently, the generator can generate highly realistic images. DCGAN (deep convolutional generative adversarial networks) [30] proposed by Alec Radford et al. is an extension of GAN, in which the authors combined GAN and CNN to improve the ability of the GAN to learn image representations. GAN has been widely used in various academic fields. In the crop research field, GAN applications are mainly focused on plant dataset augmentation. To alleviate the lack of training data in plant phenotyping, Giuffrida et al. used generative adversarial networks to expand the dataset and improved the CNN accuracy for detecting and segmenting Arabidopsis [31]. Espejo-Garcia et al. used GAN to create artificial tomato images and improved weed recognition accuracy [32]. Lu et al. enhanced the dataset by generating pest images using GAN to improve the accuracy of the CNN classifier model for pest classification [33]. Barth et al. used an unsupervised recurrent GAN for unpaired image-to-image translation to generate segmented bell pepper images from bell pepper images, reducing the manual labeling task [34]. Kerdegari et al. utilized a semisupervised GAN to generate multispectral images of agricultural fields, demonstrating the potential of GAN-based methods for multispectral image classification [35]. One advantage of GAN is that the generated virtual images are very realistic. Thus, GAN networks have the potential to be applied in crop visualization research to produce highly realistic virtual crops.
This paper aimed to generate virtual crops using phenotypic information as input. Specifically, the phenotypic traits for each crop were presented as a feature vector. In other words, a conditional image synthesis method that is conditioned on a feature vector, other than conditioned on a single label describing the overall image class or other images [36,37,38], was needed. Text-to-image generation is one of the classical tasks in computer vision, which aims to generate specific images by providing textual descriptions. StackGAN [39] proposed by Zhang et al. is a widely used text-to-image technique that can generate highly realistic images from text. StackGAN-v2 [40] is the improved version of StackGAN, which improved the training stability and the quality of the generated images. Specifically, in StackGAN-v2, text description information was first encoded and converted into vectors, and then the vectors were input into the generators to produce images. In this study, we introduced the idea of text-to-image conversion of StackGAN-v2 to transform crop phenotypic traits into crop images, with necessary modifications to the original model to make the model conditioned on a vector other than text. A GAN-based crop visualization tool named CropPainter was proposed. Given phenotypic traits, CropPaniter can generate realistic crop images. Specifically, we
-
(1)
Provided an image analysis pipeline for building the training dataset.
-
(2)
Developed a GAN-based crop visualization tool.
-
(3)
Evaluated the performance of the method for visualizing rice panicles (organ level).
-
(4)
Extended the method for visualizing crop plants (individual plant level), including rice, maize and cotton plants.
Materials and methods
Image acquisition
CropPainter was first developed for crop generation at the organ level. Rice panicles were chosen in this study as an example of virtual plant organ generation. To build the panicle dataset, 212 rice materials with 4 replications were used in this study. The rice materials came from Zhenshan, Minghui and their hybrids. The rice plants were cultivated in plastic pots at the crop phenotyping platform of Huazhong Agricultural University in 2014. At the filling stage, rice plant images were collected by a high-throughput imaging system [41]. For each rice plant, 15 side-view images of different angles were acquired.
To test the general applicability of CropPainter, CropPainter was extended for visualizing crop plants, including rice, maize and cotton. The rice plant images were acquired from the same rice materials as the panicle dataset, except that the rice plant dataset was captured at the seedling stage. To build the maize plant dataset, the maize plant images were acquired from 696 maize accessions with 4 replications at the seedling stage in 2019. The images of the cotton plant dataset were acquired from 200 cotton accessions with 3 replications at the seedling stage in 2017. All crop plants, including rice, maize and cotton, were cultivated in plastic pots at the crop phenotyping platform of Huazhong Agricultural University.
Model training
CropPainter was trained on a computer with Ubuntu 16.04 and an NVIDIA GeForce RTX 2070s graphics card with 8 GB memory. The software environments were based on Python 2.7, which uses PyTorch, TensorBoard, Python-Dateutil, EasyDict, Pandas, and Torchfile. The Adam optimizer (lr = 0.0002, beta_1 = 0.5, beta_2 = 0.999, epsilon = 10e-8) was used in the training.
Results
The overall CropPainter flowchart
The overall CropPainter flowchart is shown in Fig. 1. The rice images (Fig. 1A) were first segmented to obtain panicle images (Fig. 1B). The panicle images were then analyzed to build the datasets for training and testing the CropPainter model (Fig. 1C, D). The training set, including 20,066 images and their corresponding phenotypic traits, was fed into the GAN model to train CropPainter (Fig. 1E, F). Phenotypic traits extracted from the 4,141 testing images were then input into the trained CropPainter. Virtual panicle images generated by the CropPainter were then evaluated to test the CropPainter performance (Fig. 1G). Finally, CropPainter was extended for the visualization of maize, rice and cotton plants (Fig. 1H).
The overall flowchart. A Original RGB rice image. B Rice panicle image after segmentation. C Rice panicle image datasets along with phenotypic traits extracted by LabVIEW. D Randomly dividing the datasets into a training set and testing set. E Network Training. F Trained CropPainter model. G Generating virtual rice panicle images from traits in the testing set. H Extending CropPainter to visualize rice, maize and cotton plants
Image processing and phenotypic trait extraction
To obtain the rice panicle images for building the panicle dataset, the deep semantic segmentation model SegNet [42] was used to segment the panicles from the rice images. Subsequently, the panicle regions were cropped by detecting the minimum bounding rectangle of the panicle regions. The maximum height or width of the bounding rectangle among the datasets was then calculated and denoted as M. Then, the cropped image containing the panicle regions was centered in an image with a resolution of M×M (Fig. 2). Then, the images were resized to 256 × 256 to fit the GAN model. Finally, 24,207 images were prepared and divided randomly into two sets: a training set (20,066 images) and a testing set (4,141 images).
For the maize, rice and cotton plant datasets, the images went through a similar image processing flowchart. To fully express the maize plant characteristics, for each maize, only the image with the largest width among 20 side-view images was selected. For rice and cotton plants, all side-view images from different angles were used. In total, the numbers of images for the rice plant dataset, maize plant dataset and cotton plant dataset were 12,634, 11,064, and 7,280, respectively. The datasets were divided randomly into training sets and testing sets. The number of images and varieties in each dataset are listed in Table 1.
After image processing, 18 phenotypic traits were extracted using LabVIEW 2015 (National Instruments, Austin, USA), including mean value (M), standard error (SE), smoothness (S), third moment (MU3), uniformity (U), entropy (E), total projected area (TPA), height of the bounding rectangle (H), width of the bounding rectangle (W), the ratio of total projected area and circumscribed box area (TBR), the circumscribed box area (CBA), the ratio of total projected area and hull area (THR), the ratio of perimeter and total projected area (PAR), fractal dimension with image cropping (FDIC), perimeter (P), green projected area (GPA), yellow projected area (YPA), and the ratio of total projected area and yellow projected area (YTR) [43].
Crop visualization based on GAN
In our research, to visualize the phenotypic crop traits, we proposed a GAN-based method, namely, CropPainter, which takes the phenotypic crop traits as input and generated its corresponding crop image. StackGAN-v2 is a commonly used model for text-to-image generation that generates images from the input text. StackGAN-v2 first encodes the input text into multidimensional vectors and then feeds the encoded vector to the generator. The StackGAN-v2 comprises three discriminators and three generators in a tree structure to generate images of different scales.
In this study, we improved the StackGAN-v2 as the basic structure of CropPainter. Specifically, instead of the text embedding method, we used our own encoding approach to encode the phenotypic traits. The text embedding block in StackGAN-v2 was used to convert the text description into vectors. However, the phenotypic information in this study was already presented as vectors. Moreover, the scale of the phenotypic traits varied greatly in our datasets. Therefore, the input phenotypic traits were first normalized by a min-max normalizer, which linearly rescaled each trait to the [0,1] interval. The normalization was also beneficial for speeding up the model and improving the performance. For these reasons, we replaced the original text embedding block with normalization. In addition, the conditioning augmentation network (CA network) in StackGAN-v2 was removed in our study because the CA network adds unnecessary randomness, which is not beneficial for accurately generating crop images by phenotypic traits. The normalized phenotypic traits were then input into the generators as the condition vector. For the panicle dataset and cotton dataset, all 18 phenotypic traits were used as the condition vector. For the rice plant dataset and maize plant dataset, the YPA and YTR were removed, and the remaining 16 traits were used for image generation because there were almost no yellow components in rice plant images and maize plant images. The input of the next generator was formed by concatenating the hidden feature vector h by the previous generator and the phenotypic traits vector along the channel dimension. The discriminator was used to distinguish between real and fake images and determine whether the generated crop image matched the input phenotypic traits (Fig. 3). For the network structure, the generator in the first stage was composed of a fully connected block, four upsampling blocks, and a convolutional layer. The fully connected block contains a linear layer and a batchnorm layer. Each upsampling block contains an upsampling layer, a convolutional layer and a batchnorm layer. The hidden feature vector h1 output by the upsampling block was passed to the second-stage generator in subsequent training, which generated a low-resolution crop image with a dimension of 64 × 64 through the convolutional layer. The second-stage and third-stage generators were composed of a joint block, two residual blocks, an upsampling block, and a convolutional layer. The joint block included a convolutional layer and a batchnorm layer. Each residual block contained two convolutional layers and batchnorm layers. Phenotypic trait vector and h1 were concatenated along the channel dimension and passed through a convolutional layer, which outputs the hidden feature vector h2. After that, h2 was fed to the generator of the second stage, and a crop image with a dimension of 128 × 128 was generated. Finally, the h2 and phenotypic trait vectors were input into the third stage to generate a crop image with a dimension of 256 × 256, which was deemed the final virtual image generated by CropPainter.
Evaluation of crop visualization
After training, the phenotypic traits of the testing sets were input into the trained model to generate the crop images. To evaluate the effectiveness of our method for crop visualization, we evaluated our model in two aspects: visual fidelity and prediction accuracy.
Visual fidelity
The quality and fidelity of the virtual images generated by CropPainter were evaluated by calculating the structural similarity (SSIM) and the Frechet inception distance (FID) score [44, 45]. The SSIM value is a number between 0 and 1, indicating the similarity of the two images in terms of brightness, contrast and structure. A higher SSIM value indicates a higher similarity between the two images. The FID value calculates the distance between the real image and the virtual image in the feature space. The smaller the FID value is, the higher the quality of the virtual image. The computational formulas for SSIM and FID are provided in Eqs. 1 and 2.
where x and y are the real image and virtual image, respectively. μx and μy are the mean values of images x and y, respectively. σx and σy represent the standard deviation of the two images, respectively, and σxy is the covariance of x and y. ∑x and ∑y are the covariance matrices of the two images.
Prediction accuracy
To evaluate the prediction accuracy of CropPainter, the phenotypic traits of the generated images (hereafter denoted as virtual traits) were calculated and compared with the phenotypic traits of the real images (hereafter denoted as real traits) in the testing set. The correlation coefficient and cosine similarity between virtual traits and real traits were computed to assess the accuracy of the model in terms of image phenotypic trait prediction. The correlation coefficient is the Pearson product moment correlation coefficient, which is a dimensionless index ranging from − 1 to 1 and reflects the degree of linear correlation between two datasets. Cosine similarity measures the magnitude of the difference between two samples by the cosine of the angle between the two vectors in the vector space. The computational formulas for the correlation coefficient and cosine similarity are provided in Eqs. 3 and 4.
where \(x\) is the virtual traits, \(y\) is the real traits, and \(\stackrel{-}{x}\) and \(\stackrel{-}{y}\) represent the mean values of the virtual traits and the real traits, respectively. n is the number of phenotypic traits used for trait-to-image crop visualization.
Virtual panicle generation by CropPainter
Eighteen phenotypic traits extracted from 4,141 panicle images in the testing set were used as the CropPainter input, and the generated virtual panicle images were used to evaluate the CropPainter performance for panicle image generation. The average SSIM and FID values between the generated virtual images and real images reached 0.8322 and 22.82, respectively, which proved that the generated virtual images were realistic and similar to the corresponding real images. Figure 4a shows two examples of virtual panicle image generation.
In addition, the phenotypic traits of the generated virtual images (virtual traits) were extracted and compared with the phenotypic traits of the testing images (real traits). The mean value of correlation coefficients for the 18 traits was 0.9512, with the highest correlation coefficient reaching 0.9861 (Fig. 4b). The mean value and the standard deviation of cosine similarity of traits among the test dataset were 0.9881 and 0.0091, respectively.
Virtual crop plant generation by CropPainter
To validate the generality of CropPainter, CropPainter was extended to generate virtual images of rice plants, maize plants and cotton plants. Figures 5a, 6a, 7a show examples of virtual image generation of rice plants, maize plants and cotton plants, respectively. Correlation analysis of virtual traits and real traits for rice plants, maize plants and cotton plants proved that the CropPainter achieved good performance in visualizing crop plants (Figs. 5b, 6b, 7b).
Table 2 illustrates the CropPainter performance in terms of visual fidelity and prediction accuracy. Generally, CropPainter had good applicability to visualizing different crops. Among the crop visualizations, CropPainter performed relatively worse on cotton plant visualizations. The main reason was that the number of images in the cotton plant dataset was approximately half of that in the rice plant dataset and maize plant dataset.
Software development
For the convenience of readers using our method, we created a UI interactive interface for CropPainter and packaged the project as executable software on the Windows 10 system. Readers can generate virtual crop images from trait information using this software. An additional video file shows the use of the software in more detail [see Additional file 1]. The software along with detailed instructions are available at http://plantphenomics.hzau.edu.cn/usercrop/Rice/download.
Discussion
Traditional crop visualization methods cannot truly reflect crop characteristics. For instance, the existing methods usually use prior shapes to simulate plant organs. However, the exact organ shapes were different among different varieties and even among the same plant. For example, the shape of the leaves at different locations on the maize plant can be very different. GAN provides a new tool for digital crop visualization. Applying GAN for crop visualization using crop phenotypic information is a new idea. By improving the StackGAN-v2 structure, we introduced a novel method for trait-to-image crop visualization. The greatest advantage of our approach is that the developed crop visualization models have no constraints on the morphology, color and texture of the crop. Consequently, the generated virtual crops were highly realistic. In conclusion, the proposed CropPainter method is fundamentally different from traditional crop visualization methods.
To test the universality of our method, we carried out a series of experiments to verify it. We validated the CropPainter for crop visualization at both the organ level (rice panicles) and whole plant level (rice plant, maize plant and cotton plant), in which rice and maize were chosen as representatives of monocotyledons and cotton plants were selected as representatives of dicotyledons. Rice is a multitiller crop, and maize is a single-tiller crop. The results showed that our method had good adaptability to different crops. Moreover, the number and type of phenotypic traits used for virtual image generation can be adjusted conveniently, which indicates the flexibility of our method in the application of crop visualization. The significant contribution of our visualization method is that the generated virtual image is realistic and highly consistent with the input phenotypic traits. Consequently, CropPainter can also be used for precise image augmentation, which can create diverse and specified images for image classification tasks.
Accurate phenotypic trait extraction is essential for crop visualization using CropPainter. Inaccurate image segmentation leads to error in phenotypic trait calculation and thus result in an unsatisfying visualization. The number of images in the training dataset is another key factor for crop visualization. Generally, a larger sample size will produce a better visualization model. In our experiments, the accuracy of cotton plant image generation is relatively low. The main reason is that the number of images in the cotton dataset was relatively small, which was only a quarter of the number of images in the panicle dataset. In addition, unlike other traits, the color-related traits, including YPA and YTR, involved the segmentation of yellow and green components, which brought additional errors. Moreover, the color of the cotton stem close to the soil was yellow and very similar to that of the soil, which made it difficult to distinguish the cotton stem from the soil. Consequently, larger errors may have occurred in YPA and YTR extraction compared with other traits, which eventually resulted in lower correlation coefficients between the virtual color-related traits and the real color-related traits. A larger number of datasets and more precise image segmentation methods can improve the accuracy and similarity of CropPainter for virtual crop image generation. In addition, more samples are needed if the structure, shape or texture of the crop is complex or the dataset has a high diversity; for instance, the dataset has a large number of varieties.
Although the presented CropPainter performed well in crop visualization, it also had limitations. For example, CropPainter can only generate images with a resolution of 256 × 256 for this version. For this reason, only the visualization of crop plants at the seedling stage was tested in this study. Crop visualization tools that can generate virtual crop images with higher resolution will be developed in our future work, and the visualization of crop plants at later growth stages, for instance, the maturity stage, will be investigated. In addition, CropPainter can only generate a two-dimensional virtual crop. Three-dimensional virtual crop visualization tools will be studied in the future. This study generated virtual crop images based on crop phenotypic traits. However, the CropPainter input was not limited to phenotypic traits. Other crop omics datasets, such as genetic information, environmental information and combinations of different omics data, can also be used for generating virtual crops.
Conclusion
This study proposed a novel trait-to-image crop visualization tool, namely, CropPainter, which can generate highly realistic and accurate virtual crop images based on crop phenotypic information. Our model also has the advantages of wide applicability and strong flexibility. To the best of our knowledge, there is no research available on crop phenotype visualization using GAN. Our method provides a completely novel idea for crop visualization and may serve as a tool for virtual plant research.
Availability of data and materials
Supplementary files for this article, which include datasets, trained models, software as well as the source codes used in this study, are available on website: http://plantphenomics.hzau.edu.cn/usercrop/Rice/download and https://github.com/zhwang-hzau/CropPainter-master.
Abbreviations
- GAN:
-
Generative adversarial network
- CNN:
-
Convolutional neural network
- G:
-
Generator
- D:
-
Discriminator
References
Konstantinos L, Patrizia B, Dimitrios M, Simon P, Dionysis B. Machine learning in agriculture: a review. Sensors. 2018;18(8):2674.
Bochtis D, SøRensen C, Busato P. Advances in agricultural machinery management: a review. Biosyst Eng. 2014;126:69–81.
Gomes JF, Leta FR. Applications of computer vision techniques in the agriculture and food industry: a review. Eur Food Res Technol. 2012;235(6):989–1000.
Prusinkiewicz P, Hanan J. Virtual plants: new perspectives for ecologists, pathologists and agricultural scientists. Trends Plant Sci. 1996;1(1):33–8.
Wilson P, Chakrabrty S. The virtual plant: a new tool for the study and management of plant diseases. Crop Prot. 1998;17(3):231–9.
Smith C, Prusinkiewicz P. Simulation modeling of growing tissues. International workshop on functional structural plant models. 2004;365–370.
Yoshida S, Barbier De Reuille P, Lane B, Bassel G, Prusinkiewicz P, Smith R, Weijers D. Genetic control of plant development by overriding a geometric division rule. Dev Cell. 2014;29(1):75–87.
Fourcaud T, Zhang XP, Stokes A, Lambers H, Korner C. Plant growth modelling and applications: the increasing importance of plant architecture in growth models. Ann Botany. 2008;101:1053–63.
Tang WD, Li PP. Research on visualization of virtual plant based on information fusion. International conference on artificial intelligence & computational intelligence. IEEE. 2010;3–6.
Dhondt S, Vanhaeren H, Loo DV, Cnudde V, Inzé D. Plant structure visualization by high-resolution X-ray computed tomography. Trends Plant Sci. 2010;15(8):419–22.
Li X, Su Z, Sun H, Ping Z. Agent-based plant growth modeling. Internet computing for science and engineering. IEEE. 2010;6–11.
Lindenmeyer A. Mathematical models for cellular interactions in development. J Theor Biol. 1968;18(3):300–15.
Weber J, Penn J. Creation and rendering of realistic trees. Proceedings of SIGGRAPH 95. 1995;119–128.
Hanan JS. Parametric L-systems and their application to the modelling and visualization of plants. PhD thesis, University of Regina, 1992.
Radomír M, Prusinkiewicz P. Visual models of plants interacting with their environment. Proceedings of the 23rd annual conference on computer graphics and interactive techniques. ACM. 1996;397–410.
Rodkaew Y, Chuai-Aree S, Siripant S, Lursinsap C, Chongstitvatana P. Animating plant growth in L-system by parametric functional symbols. Int J Intell Syst. 2004;19(1/2):9–23.
Ke G. The plant modeling research based on improved 3D L-system and quaternion. international conference on information & automation. IEEE. 2008;1828–1833.
Sun B, Jiang L, Sun B, Jiang S. Research of plant growth model based on the combination of L-system and sketch. International conference for young computer scientists. ICYCS. 2008;2968–2972.
Allen M, Dejong T, Prusinkiewicz P. L-PEACH, an L-systems based model for simulating the architecture and carbon partitioning of growing fruit trees. Acta Hort. 2006;707:71–6.
Leitner D, Klepsch S, Knie A, Schnepf A. The algorithmic beauty of plant roots - an L-system model for dynamic root growth simulation. Math Comput Model Dyn Syst. 2010;16(6):575–87.
Mikolaj C, Nazifa K, Pascal F, Raju S, Robinson SJ, Isobel P, Ian MQ, Przemyslaw P. L-system models for image-based phenomics: case studies of maize and canola. in silico Plants. 2022;4(1):diab039.
De RP, Edelin C, Françon J, Jaeger M, Puech C. Plant models faithful to botanical structure and development. ACM Siggraph Computer Graphics. 2011;22(4):151–8.
Mündermann L, Erasmus Y, Lane B, Coen E, Prusinkiewicz P. Quantitative modeling of arabidopsis development. Plant Physiol. 2005;139(2):960–8.
Jallas E, Sequeira R, Martin P, Turner S, Papajorgji P. Mechanistic virtual modeling: coupling a plant simulation model with a three-dimensional plant architecture component. Environ Model Assess. 2009;14(1):29–45.
Dornbusch T, Wernecke P, Diepenbrock W. Description and visualization of graminaceous plants with an organ-based 3D architectural model, exemplified for spring barley (Hordeum vulgare L.). Visual Comput. 2007;23(8):569–81.
España M, Frédéric B, Aries F, Chelle M, Andrieu B, Prévot L. Modeling maize canopy 3D architecture: application to reflectance simulation. Ecol Model. 1999;122:25–43.
Abera MK, Verboven P, Herremans E, Defraeye T, Fanta SW, Ho QT, Carmeliet J, Nicolai BM. 3D virtual pome fruit tissue generation based on cell growth modeling. Food Bioprocess Technol. 2014;7(2):542–55.
Retta MA, Abera MK, Nc BH, Pieter V, Struik PC, Nicolaï BM. In silico study of the role of cell growth factors on photosynthesis using a virtual leaf tissue generator coupled to a microscale photosynthesis gas exchange model. J Exp Bot. 2019;3:3.
Goodfellow I, Pouget-Abadie J, Mirza M, Bing Xu, Warde-Farley D, Ozair S, Courville A, Bengio Y. Generative adversarial nets. Neural information processing systems. Cambridge: MIT Press; 2014.
Radford A, Metz L, Chintala S. Unsupervised representation learning with deep convolutional generative adversarial networks. International conference on learning representations (ICLR). 2016.
Giuffrida MV, Scharr H, Tsaftaris SA. ARIGAN: Synthetic arabidopsis plants using generative adversarial network. IEEE international conference on computer vision workshop. IEEE computer society. 2017;22–29.
Espejo-Garcia B, Mylonas N, Athanasakos L, Vali E, Fountas S. Combining generative adversarial networks and agricultural transfer learning for weeds identification. Biosyst Eng. 2021;204:79–89.
Lu CY, Rustia DJA, Lin TT. Generative adversarial network based image augmentation for insect pest classification enhancement. IFAC-PapersOnLine. 2019;52(30):1–5.
Barth R, Hemming J, Henten EV. Optimising realism of synthetic images using cycle generative adversarial networks for improved part segmentation. Comput Electron Agric. 2020;173:105378.
Kerdegari H, Razaak M, Argyriou V, et al. Urban scene segmentation using semi-supervised GAN. Image and signal Pprocessing for remote sensing XXV. 2019.
Isola P, Zhu JY, Zhou T, Efros AA. Image-to-image translation with conditional adversarial networks. IEEE conference on computer vision and pattern recognition (CVPR 2017). 2017;5967–5976.
Esser P, Rombach R, Ommer B. Taming transformers for high-resolution image synthesis. IEEE/CVF conference on computer vision and pattern recognition (CVPR 2021). 2021;12868–12878.
Tran QN, Yang SH. Video Frame interpolation via down-up scale generative adversarial networks. Computer Vision Image Understand. 2022;220:103434.
Zhang H, Xu T, Li H, Zhang S, Wang X, Huang X, Metaxas D. StackGAN: text to photo-realistic image synthesis with stacked generative adversarial networks. IEEE. 2017;5907–5915.
Zhang H, Xu T, Li H, Zhang S, Wang X, Huang X, Metaxas D. StackGAN++: realistic image synthesis with stacked generative adversarial networks. IEEE Trans Pattern Anal Mach Intell. 2018;41:1947–62.
Yang W, Guo Z, Huang C, Duan L, Chen G, Jiang N, Fang W, Feng H, Xie W, Lian X, Wang G, Luo Q, Zhang Q, Liu Q, Xiong L. Combining high-throughput phenotyping and genome-wide association studies to reveal natural genetic variation in rice. Nat Commun. 2014;5:5087.
Badrinarayanan V, Kendall A, Cipolla R. SegNet: a deep convolutional encoder-decoder architecture for image segmentation. IEEE Trans Pattern Anal AMP Mach Intell. 2017;39:2481–95.
Guo Z, Yang W, Chang Y, Ma X, Tu H, Xiong F, Jiang N, Feng H, Huang C, Yang P, Zhao H, Chen G, Liu H, Luo L, Hu H, Liu Q, Xiong L. Genome-wide association studies of image traits reveal genetic architecture of drought resistance in rice. Mol Plant. 2018;11(6):789–805.
Dowson DC, Landau BV. The fréchet distance between multivariate normal distributions. J Multivar Anal. 1982;12(3):450–5.
Zhou W, Bovik AC, Sheikh HR, Simoncelli EP. Image quality assessment: from error visibility to structural similarity. IEEE Trans Image Process. 2004;13:600–12.
Acknowledgements
This work was supported by grants from the National Key Research and Development Program (2021YFD1201500), Key projects of Natural Science Foundation of Hubei Province (2021CFA059), National Natural Science Foundation of China (32170411, U21A20205), Foundation of Hubei Hongshan Laboratory (2021hskf005), Fundamental Research Funds for the Central Universities (2662020GXPY007, 2021ZKPY006, 2662022JC006), Major science and technology projects in Hubei Province, HZAU-AGIS Cooperation Fund (SZYJY2022014).
Author information
Authors and Affiliations
Contributions
LD: methodology, data analysis,writing. ZW: software, data analysis,writing. HC: software. JF: data preparation, HW: data preparation, ZG: data preparation, WY: project administration, writing – review & editing. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval and consent to participate
Not applicable.
Consent for publication
Not applicable.
Competing interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Additional file 1: Instruction video for the CropPainter visualization software.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.
About this article
Cite this article
Duan, L., Wang, Z., Chen, H. et al. CropPainter: an effective and precise tool for trait-to-image crop visualization based on generative adversarial networks. Plant Methods 18, 138 (2022). https://doi.org/10.1186/s13007-022-00970-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s13007-022-00970-3