• Spectroscopy and Spectral Analysis
  • Vol. 41, Issue 3, 892 (2021)
TANG Yong-sheng* and CHEN Zheng-guang
Author Affiliations
  • [in Chinese]
  • show less
    DOI: 10.3964/j.issn.1000-0593(2021)03-0892-06 Cite this Article
    TANG Yong-sheng, CHEN Zheng-guang. Soil pH Prediction Based on Convolution Neural Network and Near Infrared Spectroscopy[J]. Spectroscopy and Spectral Analysis, 2021, 41(3): 892 Copy Citation Text show less

    Abstract

    The soil pH is the key factor affecting the transformation of soil nutrients and the soil fertility. The detection of pH value of soil by near-infrared spectroscopy can provide an important basis for the development and utilization of soil resources. As a typical algorithm of deep learning in artificial intelligence, the convolutional neural network can not only extract the characteristics of complex spectral data but also reduce the training parameters of the network and improve the efficiency of network operation, because its structure has the ability of “local perception, weight sharing”. In this paper, the convolution neural network is applied to the modeling and analysis of the near-infrared spectrum, and a soil pH prediction method based on convolution neural network and the near-infrared spectrum is proposed. The network is built by Python calling Tensor Flow toolkit, and its structure is composed of the input layer, convolution layer, pooling layer and full connection layer. The spectral sample dataset of mineral soils, collected from the Statistical Survey of Land Use and Coverage conducted by the European Statistical Office in 2008—2012, was employed as an object of study. In order to eliminate the baseline drift in the spectrum and improve the signal-to-noise ratio, the first derivative and Savitzky-Golay smoothing of the original visible near-infrared spectrum (400~2 500 nm) were carried out. In the model training process, 15 000 samples are randomly selected as the training set, and the remaining 2 272 samples are selected as the test set. The effects of the number of convolution layers and training iterations on the model performance are discussed. The ReLU activation function and Adam optimizer are used to prevent the gradient disappearance of the model and improve the stability of the model. Then, the goodness of fit of the model is analyzed and calculated, and finally, the network model is compared with the traditional BP and PLSR models. The experimental results show that when the number of iterations of the model is 2 500, and the number of convolution layers is 4, the model reaches the best performance, and the mean square error of the training set is reduced from 1.898 to 0.097; the goodness of fit of the test set is 0.909, which is 0.117 and 0.218 higher than BP and PLSR models respectively. The results indicate that convolution neural network can extract the internal characteristic information of soil near-infrared spectrum, so as to realize efficient and accurate prediction of soil pH on a large scale. CNNR model can provide guidance for crop planting and precision fertilization to achieve the goal of soil structure stability and sustainable development. The convolution neural network-based NIRS regression method can also be applied to other soil information research.
    TANG Yong-sheng, CHEN Zheng-guang. Soil pH Prediction Based on Convolution Neural Network and Near Infrared Spectroscopy[J]. Spectroscopy and Spectral Analysis, 2021, 41(3): 892
    Download Citation