Next Article in Journal
Integrated Starches and Physicochemical Characterization of Sorghum Cultivars for an Efficient and Sustainable Intercropping Model
Next Article in Special Issue
A Multiscale Lightweight and Efficient Model Based on YOLOv7: Applied to Citrus Orchard
Previous Article in Journal
Enhanced Carbonylation of Photosynthetic and Glycolytic Proteins in Antibiotic Timentin-Treated Tobacco In Vitro Shoot Culture
Previous Article in Special Issue
Intelligent Identification and Features Attribution of Saline–Alkali-Tolerant Rice Varieties Based on Raman Spectroscopy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Intelligent Classification of Japonica Rice Growth Duration (GD) Based on CapsNets

1
College of Computer Science and Technology, Harbin Engineering University, Harbin 150086, China
2
College of Computer and Control Engineering, Qiqihar University, Qiqihar 161006, China
3
Qiqihar Branch of Heilongjiang Academy of Agricultural Sciences, Qiqihar 161006, China
4
College of Agricultural Engineering, Heilongjiang Bayi Agricultural University, Daqing 163000, China
*
Author to whom correspondence should be addressed.
Plants 2022, 11(12), 1573; https://doi.org/10.3390/plants11121573
Submission received: 7 May 2022 / Revised: 5 June 2022 / Accepted: 7 June 2022 / Published: 15 June 2022
(This article belongs to the Collection Application of AI in Plants)

Abstract

:
Rice cultivation in cold regions of China is mainly distributed in Heilongjiang Province, where the growing season of rice is susceptible to low temperature and cold damage. Choosing and planting rice varieties with suitable GD according to the accumulated temperate zone is an important measure to prevent low temperature and cold damage. However, the traditional identification method of rice GD requires lots of field investigations, which are time consuming and susceptible to environmental interference. Therefore, an efficient, accurate, and intelligent identification method is urgently needed. In response to this problem, we took seven rice varieties suitable for three accumulated temperature zones in Heilongjiang Province as the research objects, and we carried out research on the identification of japonica rice GD based on Raman spectroscopy and capsule neural networks (CapsNets). The data preprocessing stage used a variety of methods (signal.filtfilt, difference, segmentation, and superposition) to process Raman spectral data to complete the fusion of local features and global features and data dimension transformation. A CapsNets containing three neuron layers (one convolutional layer and two capsule layers) and a dynamic routing protocol was constructed and implemented in Python. After training 160 epochs on the CapsNets, the model achieved 89% and 93% accuracy on the training and test datasets, respectively. The results showed that Raman spectroscopy combined with CapsNets can provide an efficient and accurate intelligent identification method for the classification and identification of rice GD in Heilongjiang Province.

1. Introduction

Heilongjiang Province is located in the black-soil zone of the Northeast Plain, one of the three major black-soil zones in the world. It is also the province with the largest rice planting area in China and occupies an important position in the world’s rice market [1,2]. The growth, development, and yield formation of rice are sensitive to temperature and light. Cold damage is one of the most important agrometeorological disasters for rice in cold regions. Rice cultivation in cold regions of China is mainly distributed in Heilongjiang Province [3,4], which belongs to both a high-cold rice region and mid–high latitude region, and the growing season of rice is susceptible to low temperature and cold damage [5,6,7,8]. According to the National Bureau of Statistics of China [9], from 2017 to 2019, the rice yield (kg/ha) in Heilongjiang Province was 7139.57, 7098.79, and 6986, respectively. Due to the impact of low temperature and cold damage, in recent years, rice yields in Heilongjiang Province have been declining at a rate of 1.59% [9]. The accumulated temperate zone is an important reference for the planting layout and variety selection of various crops in Heilongjiang Province [4]. Rice cultivation is mainly distributed in the 1st–3rd accumulated temperate zones of Heilongjiang Province. Different accumulated temperate zones have different requirements for GD of rice varieties. Choosing and planting rice varieties with suitable GD according to the accumulated temperate zone is an important measure to prevent low temperature and cold damage [10,11]. Japonica rice is a subspecies of rice that is resistant to low temperature and weak light, suitable for planting in Heilongjiang Province. It also has a low amylose content and good palatability [12]; therefore, rice breeding experts regard the accurate identification of GD of japonica rice varieties in cold regions as an important task.
Some researchers have obtained a variety of rice phenotype data through lots of field investigations, used statistical methods to analyze the phenotype data, and carried out research on the identification of rice GD [13,14,15,16]. The source of phenotypic data mostly relies on human experience, and the data collection process is time consuming and susceptible to environmental interference. Based on the identification results of phenotypic data, other researchers have carried out molecular QTL markers of rice variety GD to further confirm the molecules affecting rice GD [17,18,19,20]. Molecular labeling methods not only require skilled operation of instruments by professionals, but also incur high costs, which limits the development of large-scale molecular detection. With the developments in science and technology, there are more and more intelligent means. It is of great significance to design and construct an efficient, non-destructive, and accurate classification and identification method for japonica rice GD.
Raman spectroscopy technology can provide rapid, simple, repeatable, and non-destructive qualitative and quantitative analysis without sample preparation, which can be directly measured by laser [21]. Farber Charles [22] discussed the application of Raman spectra as an unlabeled, non-invasive, and non-destructive analysis technique for the rapid and accurate identification of nutrients in 15 different rice grains. Ling Zhu et al. [23] used Raman spectroscopy to identify the varieties and origin of rice in China. Tian [24] established a rapid non-destructive detection method for distinguishing rice-producing areas using Raman spectroscopy. Pezzotti Giuseppe’s team [25] analyzed polysaccharides from nine rice varieties in Japan based on Raman spectroscopy. At present, the application of Raman spectroscopy in the classification and identification of GD of japonica rice has not been reported.
Machine learning methods, such as principal component analysis (PCA), support vector machines (SVM) [26,27], random forests [28], and classification and regression trees (CART) [29], are often used in classification problems based on Raman spectral data [30,31,32,33,34,35]. However, they are limited by the shallow architecture of their own models, their performance is far inferior to machine deep learning methods, and the analysis of spectral data cannot be further improved [36]. In 2006, a paper by Hinton et al. [37] in Science led to the study of machine deep learning. Machine deep learning has been successfully applied to multiple pattern classification problems [38,39], including agricultural applications [40]. Convolutional neural networks (CNNs) [41,42] have been widely used as a classic kind of deep neural network. However, CNNs typically perform poorly with small datasets [43], which is the case for most of the plant database. In 2017, Hinton et al. [44] proposed a vector capsule network and a dynamic routing algorithm between capsules. Capsule networks establish the location relationship of features so that they can achieve better results than CNNs with similar structures in many small datasets [45]. In view of this, this paper was based on the structural advantages of CapsNets and its excellent performance. We adopted CapsNets architecture to solve the japonica rice classification problem.
At present, the application of Raman spectroscopy combined with CapsNets in the identification and classification of GD of japonica rice has not been reported. In this study, an intelligent classification model of japonica rice GD is proposed for the first time by combining Raman spectral data with CapsNets. The main purpose of this study was to provide an efficient and accurate intelligent classification method for japonica rice GD for breeding experts.

2. Materials and Methods

2.1. Test Material

Seven japonica rice varieties were collected from the experimental field of Qiqihar Branch of Heilongjiang Academy of Agricultural Sciences in September 2021. As shown in Figure 1, the seven tested japonica rice varieties were divided into three GD types (p < 0.05). QJ1 had a longer GD (144 days) and was suitable for planting in the first accumulation zone of Heilongjiang Province. SJ13 and HJ313 had a medium GD (134–135 days) and were suitable for planting in the second accumulation zone of Heilongjiang Province. LJ47, KY131, LJ11, and HH311 had short GD (124–126 days) and were suitable for planting in the third accumulation zone of Heilongjiang Province.

2.2. Measurement of Spectral Data

In September 2021, 10 holes of each variety were placed in a laboratory at room temperature of about 25 °C for natural air drying for 15 days, and the moisture content was reduced to about 20%. Five panicles were collected at different locations of each hole, and two grains were selected from each panicle, with a total of 100 grains from each variety. The husking process was carried out manually, and a thin blade was used to remove fluorescence on the surface of rice grains. Finally, 35 complete rice grains were selected as samples (Table 1), and a total of 245 samples were obtained.
The spectral data of samples were collected using an Advantage 532 Desktop Raman spectrometer. Each spectrum was scanned with a resolution of 1.4 cm−1 over 200–3400 cm−1, and the spectral information of 245 samples was obtained with 4 scanning times. ProScope HR 2.3 software was used to obtain sample image information and sample data, which were saved in PRN format. The data processing software used was Python.

2.3. Preprocessing of Spectral Data

Raman spectrum acquisition does not require sample preparation, but the sample shape, roughness, and acquisition parameters set in the acquisition software will also affect the results. In order to enhance data differences and promote the purpose of the modeling effect, spectrum preprocessing is essential. In this experiment, the original spectral data were filtered by the signal.filtfilt function [46]. The filter was constructed using signal.butter, where b, a= scipy.signal.butter (N, Wn) (N: the order of the filter; Wn: the critical frequency or frequencies; b: the numerator coefficient vector of the filter; a: the denominator coefficient vector of the filter) [47]. In this test, the N parameter was 2 (one-step forward and one-step backward filtering to avoid phase difference) and the Wn parameter was 0.002 (Wn = 2×cutoff frequency/sampling frequency). Secondly, based on the signal.filtfilt function, the difference method was used to extract the spectral crest information, as shown in Equation (1). Finally, the extracted spectral peak information was filtered by the signal.filtfilt function, the N parameter was set to 2, and the Wn parameter was set to 0.03.
X = x y 1
Note: y 1 is the spectral intensity filtered by the signal.filtfilt function, and x is the original spectral intensity.

2.4. Selection of Effective Crest Information

In order to better retain effective crest information, improve the model classification accuracy, and reduce the number of calculations, the selection of crest information is essential. Firstly, referring to wave crest extraction, Raman spectral characteristics, and the attribution of rice [48], seven effective crests were extracted at 480 cm−1, 865 cm−1, 941 cm−1, 1129 cm−1, 1339 cm−1, 1461 cm−1, and 2910 cm−1. Secondly, with each effective wave peak as the center, 56 and 55 points were taken forward and backward, respectively, and 112 points in total were taken as a window (Figure 2a). Each sample had 7 effective wave peaks, and a total of 784 points were extracted. Finally, the 112 points intercepted from each wave peak were divided into 4 segments with 28 points in length on average. Then, the four segments were aligned and overlapped (Figure 2b). Each wave peak obtained 28 × 4 two-dimensional data information, and each sample obtained 28 × 28 two-dimensional data information.

2.5. Evaluation Indices of CapsNets Model

The goal of this paper was to investigate and design a CapsNets model for classifying GD of japonica rice as accurately as possible. The realization of the CapsNets model is divided into three layers: initial layer (Conv1), primary capsules layer, and final CapsLayer (Figure 3).
As shown in Figure 3, Conv1 is a normal convolutional layer, which has 256 output channels and 9 × 9 convolution kernels with a stride of 1 and ReLU activation. This layer extracts low-level features that are then used as inputs to the primary capsules, a convolutional capsule layer. This convolutional layer has 256 output channels and 9 × 9 convolution kernels with a stride of 2. The outputs are segmented into [32 × 8] vectors (primary capsules). Therefore, each primary capsule output sees the outputs of all 256 × 9 × 9 Conv1 units, which is a group 8D vectors in the 6 × 6 grid. The primary capsules contain advanced features. The length of the output vector of a capsule represents the probability that the entity represented by the capsule is present in the current input. The output capsule is computed using a nonlinear squashing function (Equation (2)) to ensure that the length of the vector is between 0 and 1. The third layer (final CapsLayer) has one capsule per class, and each of these capsules receives input from all the capsules in the layer below.
v j = s j 2 1 + s j 2 s j s j
Note: v j is the vector output of capsule j, and s j (Equation (3)) is the input vector of capsule j.
s j = i c i j u ^ ( j | i )
Note: c i j (Equation (6)) are coupling coefficients. u ^ ( j | i ) (Equation (5)) is the prediction vector of the output of capsule j at a higher level computed by capsule i in the layer below.
Agreement routing is used between primary capsules and final CapsLayer. Agreement a i j Equation (4) for updating log probabilities and coupling coefficients is calculated (Equation (6)).
a i j = v j u ^ ( j | i )
Note: v j is the vector output of capsule j. u ^ ( j | i ) is calculated.
u ^ ( j | i ) = W i j u i
Note: u i is the output of capsule i in the layer below. Wij is a weight matrix between each u i in primary capsules and v j , j ∈ (1, 3), which needs to be learned in the back pass. Coupling coefficients are calculated as follows:
c i j = exp ( b i j ) k exp ( b i j )
Note: c i j are coupling coefficients. b i j is the log probability that capsule i will be coupled with capsule j and it is initially set to 0 at the beginning of the routing by agreement process. c i j is calculated from b i j using the softmax function.
The final CapsLayer work can be simply summarized into four steps: I, matrix transformation; II, input weighting (Equation (5)); III, weighted sum (Equations (3)–(6)); IV, nonlinear transformation (Equation (2)). We use the Python-based pytorch (a deep learning algorithm framework) to build the CapsNets to complete the experiment.

3. Results and Discussion

3.1. Analysis of Spectral Data Preprocessing

Figure 4 shows that the spectral information of the seven rice varieties (245 samples) was intertwined in a disorderly manner, making it difficult to distinguish. Therefore, it was essential to preprocess the spectral data.
Figure 5 shows that the filtered curve by the signal.filtfilt function was smoother and clearer than the original curve. The normalization algorithm was used to eliminate the dimensional influence [49] and optimize the spectral data [49], and the Wn (critical frequency or frequencies) parameter of this experiment was set to 0.002. This parameter was able to filter more details and invalid information as much as possible, and reserve more original information for the difference method to extract wave peaks.
As shown in Figure 6, this experiment used the difference method to obtain 10 obvious peaks, which were extracted at 480 cm−1, 865 cm−1, 941 cm−1, 1129 cm−1, 1339 cm−1, 1461 cm−1, 1780 cm−1, 2140 cm−1, 2330 cm−1, and 2910 cm−1. At the same time as the peaks were obtained, small spectral clutters appeared. Therefore, the signal.filtfilt function was used to filter the peaks again.
Figure 7 shows the curve of the peak information processed by the difference method. The scipy.signal.filtfilt method was smoother and clearer than that processed by the difference method. When filtering wave peaks, the Wn parameter 0.03 was selected, which filtered out invalid information again and retained more original effective information, thus improving the resolution of the identification model.

3.2. Analysis of Selection of Effective Crest Information

In this experiment, two segmentation methods and one superposition fusion method were used to convert one-dimensional data to two-dimensional data, and 245 2D data of 28 × 28 were obtained. The imshow method [50] in the Python-based matplotlib package was used to complete the data visualization (Figure 8). Two-dimensional scalar data are presented as a pseudocolor image. The values were mapped to colors using normalization and a color map. Based on the fusion of local features and global features [51], the two-dimensional scalar data were transformed into two-dimensional visual image information, and the recognition rate of japonica rice GD identification was improved by taking advantage of CapsNets’ ability in image information classification [45].

3.3. Performance Analysis of CapsNets Model

In order to study the modeling performance of the CapsNets model for japonica rice GD identification and classification, Python was first used to eliminate abnormal sample image information (Table 2), and then 177 labeled items of image sample information of the training set were brought into the CapsNets model for machine deep learning. Finally, 56 items of image sample information of the test set were brought into the CapsNets model for identification, and a CapsNets total of 160 training sessions were conducted. The results are shown in Figure 9.
As shown in Figure 9, there was no significant change in the accuracy of the training datasets and test datasets when the training epochs were between 10 and 35. The accuracy of the training datasets and test datasets improved significantly when the training epochs were between 35 and 110. The accuracy fluctuated significantly when the training epochs were between 110 and 120. Finally, the accuracy converged to 86–92.85% when the training epochs were between 120 and 160.
Table 3 shows the training epochs, value of loss function, and accuracy of training datasets when the accuracy of test datasets exceeded 90%. When the training epochs were 133 and 150, the accuracy of test datasets reached the highest of 93%, and when the training epochs were 160, the accuracy of training datasets reached the highest of 89%. When the values of loss function were 0.1074 and 0.1181, the accuracy of test datasets was up to 93%, and when the value of loss function was 0.1014, the accuracy of training datasets was up to 89%.

3.4. Discussion of the Description Results

The GD of rice is related to the amylum content in grains [52,53]. Referring to the results of Raman spectral correlation analysis, it can be seen that the effective band range of rice mainly concentrates in the region of 200–1800 cm−1 and 2800–3200 cm−1 [54,55]. In this experiment, wave crests were extracted from Raman spectral data of samples at GD stage by signal.filtfilt-difference method. In combination with the Raman spectral correlation analysis of rice, seven wave crests were extracted, and the attributed substances were amylum and sugar [48,56], with amylum being the aggregation of sugar molecules [57,58]. The spectral characteristic frequency of the same species with different attributes had different offsets, i.e., the spectral crest image had different offsets [59]. In this experiment, 1/2 of each wave crest was selected for segmentation, in order to extract the characteristic information of the wave crest offset of each sample. The same species owned a wave crest at the same Raman shift, but the wave crest starts, ends, and peaks of samples with different attributes were different [48,59]. In this experiment, 1/4 and 3/4 of each wave crest were selected for segmentation processing, in order to extract the characteristic information of the start, end, and peak intensity of each sample. In view of this, the seven wave crests extracted from each sample and the characteristic information selected by the segmentation method for each wave crest in this experiment provided a basis for the classification of biological characteristics of rice GD.
The capsule network suitable for small datasets is improved by modifying the dynamic routing protocol. Agreement routing imitates hierarchical communication of information across neurons in human brains that are responsible for perception and understanding [43]. For each potential parent, the capsule network can increase or decrease the connection strength by dynamic routing, which is more effective than primitive routing strategies, such as max pooling in CNNs [60]. Considering the number of samples (233) in this experiment, we used a full-link routing protocol. In other words, the output was routed to all possible parents. Table 3 shows that in the small sample set, when the training cycles were 110–160 and the loss function was 0.1014–0.1239, the training set and test set had the highest performance: 89% and 93%, respectively. In the few-shot task (Figure 10), the samples are regarded as parts, the classes are regarded as the whole, and the class representation encoded by the dynamic routing algorithm is more representative [61].
Overfitting is already an unavoidable problem in machine deep learning on small sample datasets, which can be solved from three aspects: training data, training process, and model structure [62]. Dataset enhancement based on image transformation can effectively improve the overfitting problem of image classification models [63], but the two-dimensional data in this experiment were generated through data transformation, so this method was not applicable. The generation of the overfitting problem is closely related to the training process. As shown in Figure 11, during the training process, the model experienced underfitting (epoch less than 120) to overfitting (epoch greater than 170). In this experiment, the method of early stopping was adopted, and selecting the appropriate number of training cycles (the epoch was equal to 160) effectively avoided the overfitting problem. It is also possible to use the L1 (lasso) regularization or L2 (ridge) regularization method to process the weight parameters during the training process to solve the problem of overfitting [64,65]. Because the capsule network model in this experiment used the capsule structure and dynamic routing, this method was not used. An overly complicated model structure is also a major cause of overfitting. Therefore, simplifying the model structure, reducing the network capacity, and reducing the number of parameters can also effectively prevent overfitting. In this experiment, the structure of the three-layer model was used (Figure 11). Even though the number of training cycles continued to increase, the difference between the accuracy of the model on the training set and the test set did not continue to expand, but remained within a reasonable interval.

4. Conclusions

The present study exhibits the feasibility of Raman spectroscopy combined with the CapsNets method for the classification of japonica rice GD. In order to improve the classification accuracy, a method of preprocessing of spectral data was constructed based on signal.filtfilt combined with difference and signal.filtfilt. For the selection of effective crests, information was obtained based on two segmentation methods and one superposition fusion method, and the CapsNets model was established. The training epochs were between 110 and 160, and the classification accuracy of the CapsNets model was between 91% and 93%. The performance of the CapsNets model tended to be stable. It provides a new approach to establish an efficient and accurate intelligent classification method of japonica rice GD.

Author Contributions

X.Z. and J.Z. conceived the study and designed the project. X.Z., J.Z., J.Y. and B.M. performed the experiments, analyzed the data, and drafted the manuscript. J.Z., J.Y., J.H. and R.L. helped to revise the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Scientific Research Project of Heilongjiang Provincial Scientific Research Institutes of China (CZKYF2021-2-A002) and Scientific and Technological Project of Qiqihar City of China (CNYGG-2021031).

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

The data and code presented in this study are openly available at: https://github.com/zxxsnh/Rice_GD_classification_CapsNets (accessed on 14 June 2022).

Conflicts of Interest

The authors hereby declare that there was no conflict of interest in the present study.

References

  1. Song, L.J. Study on Nitrogen Nutrition Diagnosis for Cold-Terra Rice Based on Airborne Multispectral Imager and SPAD; Shenyang Agricultural University: Shenyang, China, 2020. [Google Scholar] [CrossRef]
  2. Wang, X.P. Effects of Drought Stress at Booting Stage on Carbon Metabolism and Yield Formation of Japonica Rice in Cold Region; Northeast Agricultural University: Harbin, China, 2020. [Google Scholar] [CrossRef]
  3. Han, G.Q. China Japonica Rice; China Agriculture Press: Beijing, China, 2011. [Google Scholar]
  4. Lin, T.; Liu, G.; Chen, D.L.; Duan, X.W. Impact of Clinate Change on Crop Yields in Heilongjiang Province. J. Nat. Resour. 2008, 23, 307–318. [Google Scholar]
  5. Zhang, Z.; Wang, P.; Chen, Y.; Song, X.; Wei, X.; Shi, P.J. Global warming over 1960-2009 did increase heat stress and reduce cold stress in the major rice planting areas across China. Eur. J. Agron. 2014, 59, 49–56. [Google Scholar] [CrossRef]
  6. Sun, W.; Huang, Y. Global warming over the period 1961-2008 did not increase high-temperature stress but did reduce low-temperature stress in irrigated rice across China. Agric. For. Meteorol. 2011, 151, 1193–1201. [Google Scholar] [CrossRef]
  7. Wang, P.; Zhang, Z.; Song, X.; Chen, Y.; Wei, X.; Shi, P.J.; Yao, F.L. Temperature variations and rice yields in China: Historical contributions and future trends. Clim. Change 2014, 124, 777–789. [Google Scholar] [CrossRef]
  8. Zhang, Z.; Liu, X.; Wang, P.; Shuai, J.B.; Chen, Y.; Song, X.; Tao, F.L. The heat deficit index depicts the responses of rice yield to climate change in the northeastern three provinces of China. Reg. Environ. Change 2014, 14, 27–38. [Google Scholar] [CrossRef]
  9. National Bureau of Statistics. China Statistical Yearbook. 2021. Available online: http://www.gov.cn/gongbao/content/2021/content_5581075.htm (accessed on 25 March 2022).
  10. Wang, X.Y.; Yang, X.G.; Lv, S.; Chen, F. The Possible Effects of Climate Warming on Geographical Shift in Safe Planting Area of Rice in Cold Areas and the Risk Analysis of Chilling Damage. Sci. Agric. Sin. 2016, 49, 1859–1871. [Google Scholar] [CrossRef]
  11. Feng, Y.J. Effect of Water and Nitrogen Coupling on Growth and Nutrient Absorption of Japonica Rice in Cold Region; Shenyang Agricultural University: Shenyang, China, 2017. [Google Scholar]
  12. Zhang, Z.Y. Characteristics and high-yield cultivation techniques of japonica rice. Henan Agric. 2017, 52. [Google Scholar] [CrossRef]
  13. Zhang, R.; Wang, Y.; Hussain, S.H.; Liu, Y.H.; Shao, X.Y.; Yang, S.; Chen, Y.L.; Wei, H.H.; Dai, Q.G. Identification of Salt-tolerant Rice Cultivars in the Growth Period under Hydroponic Conditions. J. Plant Genet. Resour. 2021, 22, 1567–1581. [Google Scholar] [CrossRef]
  14. Yang, L.K.; Yang, Z.M.; Ceng, L. Screening Test of the New Varieties of National Hybrid Rice Consortium. Anhui Agric. Sci. 2022, 50, 39–42. [Google Scholar] [CrossRef]
  15. Wang, Q. Comparative experiment of early rice varieties in xuanzhou District in 2020. Anhui Agric. Sci. 2021, 27, 94–95. [Google Scholar] [CrossRef]
  16. Liu, D. Comparative Test of New Mid Early Maturing Rice Varieties in Xixiu District of Anshun City in 2018. Tillage Cultiv. 2020, 40, 69–71. [Google Scholar] [CrossRef]
  17. Zhan, X.D.; Yu, P.; Lin, Z.C.; Chen, D.B.; Shen, X.H.; Zhang, Y.X.; Fu, J.L.; Chen, S.H.; Cao, L.Y. QTL Mapping of Heading Date and Yield-related Traits in Rice Using a Recombination Inbred Lines (RILs) Population Derived from BG1/XLJ. China Rice Sci. 2014, 28, 570–580. [Google Scholar]
  18. Li, S.G.; Ma, Y.Q.; He, P.; Wang, Y.P.; Zhou, K.D.; Zhu, L.H. Comparative Mapping of Quantitative Trait Loci for Heading Date and Plant Height in Cultivated Rice (Oryza sativa L.) across Environments. Acta Agron. Sin. 2002, 04, 546–550. [Google Scholar]
  19. Tan, X.L.; Huang, Z.L.; Vanavichit, A.; Trangoonrung, S. Molecular Markers and QTL Analysis of Growth Duration of Rice. Jiangsu J. Agric. Sci. 2000, 04, 249–250. [Google Scholar]
  20. Li, S.G.; Ma, Y.Q.; Wang, W.M.; Liu, G.Q.; Zhou, K.D.; Zhu, L.H. Molecular Tagging of a New Recessive Gene for Late Heading in a Rice Cultivar. Acta Genet. Sin. 2000, 02, 133–138. [Google Scholar]
  21. Hibben, J.H.; Teller, E. The Raman effect and its chemical aplications and physical research. Industrial and Engineering Chemistry. News Ed. 1939, 17, 556. [Google Scholar]
  22. Farber, C.; Islam, A.S.M.; Thomson, M.J.; Kurouski, D. Non-Invasive Identification of Nutrient Components in Grain. Molecules 2021, 26, 3124. [Google Scholar] [CrossRef]
  23. Zhu, L.; Sun, J.; Wu, G.C.; Wang, Y.N.; Zhang, H.; Wang, L.; Qian, H.F.; Qi, X.G. Identification of rice varieties and determination of their geographical origin in China using Raman spectroscopy. J. Cereal Sci. 2018, 82, 175–182. [Google Scholar] [CrossRef]
  24. Tian, F.M.; Tan, F.; Li, H. A rapid nondestructive testing method for distinguishing rice producing areas based on Raman spectroscopy and support vector machine. Vib. Spectrosc. 2020, 107, 103017. [Google Scholar] [CrossRef]
  25. Pezzotti, G.; Zhu, W.L.; Chikaguchi, H.; Marin, E.; Masumura, T.; Sato, Y.; Nakazaki, T. Raman spectroscopic analysis of polysaccharides in popular Japanese rice cultivars. Food Chem. 2021, 354, 129434. [Google Scholar] [CrossRef]
  26. Chung, C.; Lin, C.J. Training nu-support vector regression: Theory and algorithms. Neural Comput. 2002, 14, 8. [Google Scholar]
  27. Schol, K.F.; William, S.; Bart, L. New support vector algorithms. Neural Comput. 2000, 12, 1207–1245. [Google Scholar]
  28. Leo, B. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  29. Glenn, D.; Fabricius, K.E. Classification and regression trees: A powerful yet simple technique for ecological data analysis. Ecology 2000, 81, 11. [Google Scholar] [CrossRef]
  30. Rekha, G.; Sandeep, V.; Freek, A.; Siva, U. Review of multidimensional data processing approaches for Raman and infrared spectroscopy. EPJ Tech. Instrum. 2015, 2, 1. [Google Scholar] [CrossRef] [Green Version]
  31. Thissen, U.; Pepers, M.; Üstün, B.; Melssen, W.J.; Buydens, L. Comparing support vector machines to PLS for spectral regression applications. Chemom. Intell. Lab. Syst. 2004, 73, 2. [Google Scholar] [CrossRef]
  32. Widjaja, E.; Zheng, W.; Huang, Z.W. Classification of colonic tissues using near-infrared Raman spectroscopy and support vector machines. Int. J. Oncol. 2008, 32, 3. [Google Scholar] [CrossRef] [Green Version]
  33. Seng, K.T.; Zheng, W.; Ho, K.Y.; Ming, T.; Yeoh, K.G.; Huang, Z. Diagnosis of gastric cancer using near-infrared Raman spectroscopy and classification and regression tree techniques. J. Biomed. Opt. 2008, 13, 3. [Google Scholar] [CrossRef]
  34. Hoehse, M.; Paul, A.; Gornushkin, I.; Panne, U. Multivariate classification of pigments and inks using combined Raman spectroscopy and LIBS. Anal. Bioanal. Chem. 2011, 402, 4. [Google Scholar] [CrossRef]
  35. Woo, Y.A.; Kim, H.J.; Chung, H. Classification of cultivation area of ginseng radix with NIR and Raman spectroscopy. Anal. Anal. J. R. Soc. Chem. A Mon. Int. Publ. Deal. All Branches Anal. Chem. 1999, 124, 8. [Google Scholar] [CrossRef]
  36. Curtis, F.; Scheinberg, K. Optimization Methods for Supervised Machine Learning: From Linear Models to Deep Learning. In Leading Developments from INFORMS Communities; INFORMS: Holland, MI, USA, 2017. [Google Scholar] [CrossRef] [Green Version]
  37. Hinton, G.E.; Salakhutdinov, R.R. Reducing the Dimensionality of Data with Neural Networks. Science 2006, 313, 5786. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  38. Zheng, Y.P.; Li, G.Y.; Li, Y. Survey of Application of Deep Learning in Image Recognition. Comput. Eng. Appl. 2019, 55, 20–36. [Google Scholar] [CrossRef]
  39. Sun, Z.J.; Xue, L.; Xu, Y.M.; Wang, Z. Overview of deep learning. Appl. Res. Comput. 2012, 29, 2806–2810. [Google Scholar] [CrossRef]
  40. Yang, M.-D.; Tseng, H.-H.; Hsu, Y.-C.; Tsai, H.P. Semantic Segmentation Using Deep Learning with Vegetation Indices for Rice Lodging Identification in Multi-date UAV Visible Images. Remote Sens. 2020, 12, 633. [Google Scholar] [CrossRef] [Green Version]
  41. Alex, K.; Ilya, S.; Geoffrey, E. Hinton. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 6. [Google Scholar] [CrossRef]
  42. Bouguettaya, A.; Zarzour, H.; Kechida, A.; Taberkit, A.M. Deep learning techniques to classify agricultural crops through UAV imagery: A review. Neural Comput. Appl. 2022. prepublish. [Google Scholar] [CrossRef]
  43. Afshar, P.; Mohammadi, A.; Plataniotis, K.N. Brain Tumor Type Classification via Capsule Networks; IEEE: Athens, Greece, 2018. [Google Scholar] [CrossRef] [Green Version]
  44. Sabour, S.; Frosst, N.; Hinton, G.E. Dynamic Routing Between Capsules. In Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
  45. Yang, Y.C.; Han, S.J.; Mao, L.; Dai, X.Z.; Chen, Y.R. Review of capsule network. J. Shandong Univ. (Eng. Sci.) 2019, 49, 1–10. [Google Scholar] [CrossRef]
  46. Gustafsson, F. Determining the initial states in forward-backward filtering. In IEEE Transactions on Signal Processing: A Publication of the IEEE Signal Processing Society; IEEE: Piscataway, NJ, USA, 1996; pp. 988–992. Available online: https://ieeexplore.ieee.org/document/492552/citations#citations (accessed on 25 March 2022).
  47. Available online: https://scipy.github.io/devdocs/reference/generated/scipy.signal.filtfilt (accessed on 25 March 2022).
  48. Tian, F.M. Identification of Rice Based on Analysis of Raman Spectrum and Organic Ingredients; Jilin University: Jilin, China, 2018. [Google Scholar]
  49. Yin, H.; Li, F.; Yang, H.B.; Li, Y. Estimation of canopy chlorophyll in potato based on UAV hyperspectral images. J. Plant Nutr. Fertil. 2021, 27, 2184–2195. [Google Scholar]
  50. Available online: https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.imshow.html#matplotlib.axes.Axes.imshow (accessed on 25 March 2022).
  51. Wu, R.B.; Qiao, H.; Jia, Y.F.; Liu, S.L.; Zhang, Z.C.; Liu, Y. Sentiment Analysis of Mid-length Microblog Based on Capsule Network. J. Signal Process. 2022, 06, 1–13. Available online: http://kns.cnki.net/kcms/detail/11.2406.TN.20220318.1639.013.html (accessed on 14 June 2022).
  52. Xie, L.; Wang, F.M.; Zhang, Y.; Huang, J.F.; Hu, J.H.; Wang, F.L.; Yao, X.P. Monitoring of amylose content in rice based on spectral variables at the multiple growth stages. Trans. Chin. Soc. Agric. Eng. 2020, 36, 165–173. [Google Scholar] [CrossRef]
  53. Zhang, H.; Ma, B.J.; Zhang, C.M.; Zhao, B.H.; Xu, J.; Shao, S.M.; Gu, J.F.; Liu, L.J.; Wang, Z.Q.; Yang, J.C. Effects of alternate wetting and drying irrigation during whole growing season on quality and starch properties of rice. J. Yangzhou Univesity (Agric. Life Sci. Ed.) 2020, 41, 1–8. [Google Scholar] [CrossRef]
  54. Zhao, Y.; Li, M.; Xiao, Z.L.; Ren, L.Z.; Wang, L. Study on Rapid Discrimination of Fresh and Stale Rice Based on Raman Spectroscopy. Spectrosc. Spectr. Anal. 2016, 36, 303–304. [Google Scholar]
  55. Sun, J.; Zhang, H.; Wang, L.; Qian, H.F.; Qi, X.G. Method for rapid discrimination of varieties rice by using Raman spectroscopy. OOD Mach. 2016, 32, 41–45. [Google Scholar] [CrossRef]
  56. Almeida, M.R.; Alves, R.S.; Nascimbem, L.B.; Stephani, R.; Poppi, R.J.; Oliveira, L.F. Determination of amylose cetent in starch using Raman spectroscopy and multivariate calibration analysis. Aanlytical Bioanal. Chem. 2010, 397, 2693–2701. [Google Scholar] [CrossRef] [PubMed]
  57. Li, Q. Effects of Irrigation Practices on Carbohydrate Accumulation and Translocation and Grain Filling in Rice; Yang Zhou University: Yang Zhou, China, 2020. [Google Scholar] [CrossRef]
  58. Ma, B.; Liu, C.; Hu, J.; Liu, K.; Zhao, F.; Wang, J.; Zhao, X.; Guo, Z.; Song, L.; Lai, Y.; et al. Intelligent Identification and Features Attribution of Saline–Alkali-Tolerant Rice Varieties Based on Raman Spectroscopy. Plants 2022, 11, 1210. [Google Scholar] [CrossRef]
  59. Tan, F. Research on the Spectral Characteristics and Early Detection Mechanism of Rice Blast in Cold Area; Heilongjiang Bayi Agricultural University: Daqing, China, 2012. [Google Scholar]
  60. Samuel, M.J. Capsule Network Algorithm for Performance Optimization of Text Classification. J. Soft Comput. Paradig. 2021, 3, 1–9. [Google Scholar] [CrossRef]
  61. Zhang, X.M.; Dou, Q.S.; Chen, S.Z.; Tang, H.L. Adaptive capsule network for few-shot relation extraction. Appl. Res. Comput. 2022, 06, 1–7. [Google Scholar] [CrossRef]
  62. Chen, C. Deep Image Classification for Few Shot and Weak Supervision; University of Chinese Academy of Sciences: Beijing, China, 2020. [Google Scholar] [CrossRef]
  63. Shrivastava, N.; Tyagi, V. Content based image retrieval based on relative locations of multiple regions of interest using selective regions matching. Inf. Sci. 2014, 259, 212–224. [Google Scholar] [CrossRef]
  64. Zhou, Z.; Zhang, L.Q. Content-Based Image Retrieval Using Iterative Search. Neural Processing Lett. 2018, 47, 3. [Google Scholar] [CrossRef]
  65. Xie, L.Y.; Xia, Z.J.; Zhu, S.; Zhang, D.Q.; Zhao, F.K. Analysis and Research of Overfitting of Image Recognition Based on Convolutional Neural Networks. Softw. Eng. 2019, 22, 27–29+26. [Google Scholar] [CrossRef]
Figure 1. The GD values of 7 tested japonica rice varieties. Values with different superscript letters were significantly different at p < 0.05. The GD refers to the number of days (d) that rice takes from emergence to maturity.
Figure 1. The GD values of 7 tested japonica rice varieties. Values with different superscript letters were significantly different at p < 0.05. The GD refers to the number of days (d) that rice takes from emergence to maturity.
Plants 11 01573 g001
Figure 2. (a) Seven wave peak curves were extracted from each sample. (b) Each wave peak is divided into four sections of the curve.
Figure 2. (a) Seven wave peak curves were extracted from each sample. (b) Each wave peak is divided into four sections of the curve.
Plants 11 01573 g002
Figure 3. Schematic of the CapsLayer model.
Figure 3. Schematic of the CapsLayer model.
Plants 11 01573 g003
Figure 4. The 245 raw spectral curves for 7 varieties. Raman shift is the reciprocal of wavelength, and its range is 200–3400 cm−1. Intensity is the intensity of Raman scattering.
Figure 4. The 245 raw spectral curves for 7 varieties. Raman shift is the reciprocal of wavelength, and its range is 200–3400 cm−1. Intensity is the intensity of Raman scattering.
Plants 11 01573 g004
Figure 5. The 245 spectral curves were filtered by the signal.filtfilt function.
Figure 5. The 245 spectral curves were filtered by the signal.filtfilt function.
Plants 11 01573 g005
Figure 6. The curve of the peak information extracted by the difference method for 245 samples.
Figure 6. The curve of the peak information extracted by the difference method for 245 samples.
Plants 11 01573 g006
Figure 7. The curves of the peaks were filtered by the signal.filtfilt function for 245 samples.
Figure 7. The curves of the peaks were filtered by the signal.filtfilt function for 245 samples.
Plants 11 01573 g007
Figure 8. Nine pieces of 28 × 28 two-dimensional image information. Class 0, Class 1, and Class 2 were japonica rice varieties suitable for planting in the third, first, and second accumulation zones of Heilongjiang Province, respectively.
Figure 8. Nine pieces of 28 × 28 two-dimensional image information. Class 0, Class 1, and Class 2 were japonica rice varieties suitable for planting in the third, first, and second accumulation zones of Heilongjiang Province, respectively.
Plants 11 01573 g008
Figure 9. Classification results of japonica rice GD by CapsNets model. Epoch represents the number of training cycles of the model, and the yellow line and blue line represent the accuracy of training datasets and test datasets, respectively.
Figure 9. Classification results of japonica rice GD by CapsNets model. Epoch represents the number of training cycles of the model, and the yellow line and blue line represent the accuracy of training datasets and test datasets, respectively.
Plants 11 01573 g009
Figure 10. Schematic diagram of neural capsule calculation process.
Figure 10. Schematic diagram of neural capsule calculation process.
Plants 11 01573 g010
Figure 11. Classification results of japonica rice GD by CapsNets model. Epoch was the number of training cycles of the model, and the yellow line and blue line represent the accuracy of the training and test datasets, respectively.
Figure 11. Classification results of japonica rice GD by CapsNets model. Epoch was the number of training cycles of the model, and the yellow line and blue line represent the accuracy of the training and test datasets, respectively.
Plants 11 01573 g011
Table 1. Appropriate accumulated temperature zone and quantity of test samples (ATZH: accumulation temperate zone in Heilongjiang Province).
Table 1. Appropriate accumulated temperature zone and quantity of test samples (ATZH: accumulation temperate zone in Heilongjiang Province).
Serial NumberName of SampleATZHNumber of Samples
1QJ1The first35
2SJ13The second35
3HJ313The second35
4LJ47The third35
5KY131The third35
6LJ11The third35
7HH311The third35
Table 2. Number of training samples and test samples with classification labels.
Table 2. Number of training samples and test samples with classification labels.
Name of SampleLabel of SampleSampleSubtotal
Training SetTest Set
LJ47024832
KY131026834
LJ11024832
HH311026834
QJ1126834
SJ13226834
HJ313225833
Total17756233
Table 3. The training cycles and loss function values with high accuracy were obtained by the CapsNets model.
Table 3. The training cycles and loss function values with high accuracy were obtained by the CapsNets model.
Serial
Number
Training EpochsValue
of Loss Function
Accuracy of Training DatasetsAccuracy of Test Datasets
11100.11488491
21120.12398491
31260.11118691
41330.11818693
51370.11948591
61390.11578691
71490.10768891
81500.10748893
91550.11018891
101600.10148991
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhao, X.; Zhang, J.; Yang, J.; Ma, B.; Liu, R.; Hu, J. Intelligent Classification of Japonica Rice Growth Duration (GD) Based on CapsNets. Plants 2022, 11, 1573. https://doi.org/10.3390/plants11121573

AMA Style

Zhao X, Zhang J, Yang J, Ma B, Liu R, Hu J. Intelligent Classification of Japonica Rice Growth Duration (GD) Based on CapsNets. Plants. 2022; 11(12):1573. https://doi.org/10.3390/plants11121573

Chicago/Turabian Style

Zhao, Xin, Jianpei Zhang, Jing Yang, Bo Ma, Rui Liu, and Jifang Hu. 2022. "Intelligent Classification of Japonica Rice Growth Duration (GD) Based on CapsNets" Plants 11, no. 12: 1573. https://doi.org/10.3390/plants11121573

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop