Spectral Data-Driven Prediction of Soil Properties Using LSTM-CNN-Attention Model
Source abstract
Abstract
Accurate prediction of soil properties is essential for sustainable land management and precision agriculture. This study presents an LSTM-CNN-Attention model that integrates temporal and spatial feature extraction with attention mechanisms to improve predictive accuracy. Utilizing the LUCAS soil dataset, the model analyzes spectral data to estimate key soil properties, including organic carbon (OC), nitrogen (N), calcium carbonate (CaCO3), and pH (in H2O). The Long Short-Term Memory (LSTM) component captures temporal dependencies, the Convolutional Neural Network (CNN) extracts spatial features, and the attention mechanism highlights critical information within the data. Experimental results show that the proposed model achieves excellent prediction performance, with coefficient of determination (R2) values of 0.949 (OC), 0.916 (N), 0.943 (CaCO3), and 0.926 (pH), along with corresponding ratio of percent deviation (RPD) values of 3.940, 3.737, 5.377, and 3.352. Both R2 and RPD values exceed those of traditional machine learning models, such as partial least squares regression (PLSR), support vector machine regression (SVR), and random forest (RF), as well as deep learning models like CNN-LSTM and Gated Recurrent Unit (GRU). Additionally, the proposed model outperforms S-AlexNet in effectively capturing temporal and spatial patterns. These findings emphasize the potential of the proposed model to significantly enhance the accuracy and reliability of soil property predictions by capturing both temporal and spatial patterns effectively.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Soil Geostatistics and Mapping · Smart Agriculture and AI · Soil and Land Suitability Analysis
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Information and Intelligence, Hunan Agricultural University, Changsha 410128, China
Continuous Education College, Hunan Agricultural University, Changsha 410128, China
Funding
Natural Science Foundation of Hunan Province · Scientific Research Program of the Hunan Province Department of Education
References (48)
Show source-provided references
1. Using Soil Library Hyperspectral Reflectance and Machine Learning to Predict Soil Organic Carbon: Assessing Potential of Airborne and Spaceborne Optical Soil Sensing10.1016/j.rse.2022.112914 ↗
2. Assessment of Spatial Variability and Mapping of Soil Properties for Sustainable Agricultural Production Using Geographic Information System Techniques (GIS)10.1080/23311932.2017.1279366 ↗
3. Zhang, X., and Huang, B. (2019). Prediction of Soil Salinity with Soil-Reflected Spectra: A Comparison of Two Regression Methods. Sci. Rep., 9.10.1038/s41598-019-41470-0 ↗
4. Soil pH Value, Organic Matter and Macronutrients Contents Prediction Using Optical Diffuse Reflectance Spectroscopy10.1016/j.compag.2014.11.019 ↗
5. Diffuse Reflectance Spectroscopy for Estimating Soil Properties: A Technology for the 21st Century10.1111/ejss.13271 ↗
6. Yang, M., Xu, D., Chen, S., Li, H., and Shi, Z. (2019). Evaluation of Machine Learning Approaches to Predict Soil Organic Matter and pH Using Vis-NIR Spectra. Sensors, 19.10.3390/s19020263 ↗
7. Digital Mapping of GlobalSoilMap Soil Properties at a Broad Scale: A Review10.1016/j.geoderma.2021.115567 ↗
8. Soil Moisture Effects on Predictive VNIR and MIR Modeling of Soil Organic Carbon and Clay Content10.1016/j.geoderma.2022.116103 ↗
9. Using Environmental Variables and Fourier Transform Infrared Spectroscopy to Predict Soil Organic Carbon10.1016/j.catena.2021.105280 ↗
10. Soil Organic Carbon (SOC) Prediction in Australian Sugarcane Fields Using Vis–NIR Spectroscopy with Different Model Setting Approaches10.1016/j.geodrs.2022.e00566 ↗
11. Ribeiro, S.G., Teixeira, A.D.S., De Oliveira, M.R.R., Costa, M.C.G., Araújo, I.C.D.S., Moreira, L.C.J., and Lopes, F.B. (2021). Soil Organic Carbon Content Prediction Using Soil-Reflected Spectra: A Comparison of Two Regression Methods. Remote Sens., 13.10.3390/rs13234752 ↗
12. A Systematic Study on the Application of Scatter-Corrective and Spectral-Derivative Preprocessing for Multivariate Prediction of Soil Organic Carbon by Vis-NIR Spectra10.1016/j.geoderma.2017.11.006 ↗
13. Predicting Key Soil Properties from Vis-NIR Spectra by Applying Dual-Wavelength Indices Transformations and Stacking Machine Learning Approaches10.1016/j.still.2023.105684 ↗
14. Xie, S., Li, Y., Wang, X., Liu, Z., Ma, K., and Ding, L. (2021). Research on Estimation Models of the Spectral Characteristics of Soil Organic Matter Based on the Soil Particle Size. Spectrochim. Acta Part Mol. Biomol. Spectrosc., 260.10.1016/j.saa.2021.119963 ↗
15. Comparing Different Multivariate Calibration Methods for the Determination of Soil Organic Carbon Pools with Visible to near Infrared Spectroscopy10.1016/j.geoderma.2011.08.001 ↗
16. Modelling Soil Carbon Fractions with Visible Near-Infrared (VNIR) and Mid-Infrared (MIR) Spectroscopy10.1016/j.geoderma.2014.10.019 ↗
17. Quantitative Analysis Modeling of Infrared Spectroscopy Based on Ensemble Convolutional Neural Networks10.1016/j.chemolab.2018.08.001 ↗
18. Combination of Convolutional Neural Networks and Recurrent Neural Networks for Predicting Soil Properties Using Vis–NIR Spectroscopy10.1016/j.geoderma.2020.114616 ↗
19. Machine Learning and Soil Sciences: A Review Aided by Machine Learning Tools10.5194/soil-6-35-2020 ↗
20. Comparison of PLS and SVM Models for Soil Organic Matter and Particle Size Using Vis-NIR Spectral Libraries10.1016/j.geodrs.2021.e00436 ↗
21. Removal of External Influences from On-Line Vis-NIR Spectra for Predicting Soil Organic Carbon Using Machine Learning10.1016/j.catena.2022.106015 ↗
22. Multi-Task Convolutional Neural Networks Outperformed Random Forest for Mapping Soil Particle Size Fractions in Central Iran10.1016/j.geoderma.2020.114552 ↗
23. Veres, M., Lacey, G., and Taylor, G.W. (2015, January 3–5). Deep Learning Architectures for Soil Property Prediction. Proceedings of the 2015 12th Conference on Computer and Robot Vision, Halifax, NS, Canada.10.1109/CRV.2015.15 ↗
24. Kawamura, K., Nishigaki, T., Andriamananjara, A., Rakotonindrina, H., Tsujimoto, Y., Moritsuka, N., Rabenarivo, M., and Razafimbelo, T. (2021). Using a One-Dimensional Convolutional Neural Network on Visible and Near-Infrared Spectroscopy to Improve Soil Phosphorus Prediction in Madagascar. Remote Sens., 13.10.3390/rs13081519 ↗
25. A CNN Model for Predicting Soil Properties Using VIS–NIR Spectral Data10.1007/s12665-023-11073-0 ↗
26. Estimation of Soil Properties from the EU Spectral Library Using Long Short-Term Memory Networks10.1016/j.geodrs.2019.e00233 ↗
27. Deep Neural Networks for Spectrum Sensing: A Review10.1109/ACCESS.2023.3305388 ↗
28. Analysis of Spectrum Sensing Using Deep Learning Algorithms: CNNs and RNNs10.1016/j.asej.2023.102505 ↗
29. Quantitative Estimation of Soil Properties Using Hybrid Features and RNN Variants10.1016/j.chemosphere.2021.131889 ↗
30. Miao, T., Ji, W., Li, B., Zhu, X., Yin, J., Yang, J., Huang, Y., Cao, Y., Yao, D., and Kong, X. (2024). Advanced Soil Organic Matter Prediction with a Regional Soil NIR Spectral Library Using Long Short-Term Memory–Convolutional Neural Networks: A Case Study. Remote Sens., 16.10.3390/rs16071256 ↗
31. Attention-Based CNN Ensemble for Soil Organic Carbon Content Estimation with Spectral Data
32. Zhang, J., Wei, F., Feng, F., and Wang, C. (2020). Spatial–Spectral Feature Refinement for Hyperspectral Image Classification Based on Attention-Dense 3D-2D-CNN. Sensors, 20.10.3390/s20185191 ↗
33. Commission, E., Centre, J.R., Jones, A., Fernández-Ugalde, O., and Scarpa, S. (2020). LUCAS 2015 Topsoil Survey—Presentation of Dataset and Results, Publications Office of the European Union.
34. Institute for Environment and Sustainability (Joint Research Centre), Jones, A., Montanarella, L., and Tóth, G. (2013). LUCAS Topsoil Survey—Methodology, Data and Results, Publications Office of the European Union.
35. A Conditioned Latin Hypercube Method for Sampling in the Presence of Ancillary Information10.1016/j.cageo.2005.12.009 ↗
36. Stevens, A., Nocita, M., Tóth, G., Montanarella, L., and Van Wesemael, B. (2013). Prediction of Soil Organic Carbon at the European Scale by Visible and Near InfraRed Reflectance Spectroscopy. PLoS ONE, 8.10.1371/journal.pone.0066409 ↗
37. Simple but Efficient Signal Pre-Processing in Soil Organic Carbon Spectroscopic Estimation10.1016/j.geoderma.2017.03.012 ↗
38. Evaluation of Data Pre-Processing and Regression Models for Precise Estimation of Soil Organic Carbon Using Vis–NIR Spectroscopy10.1007/s11368-022-03337-2 ↗
39. Standard Normal Variate Transformation and De-Trending of Near-Infrared Diffuse Reflectance Spectra10.1366/0003702894202201 ↗
40. A Review on the Long Short-Term Memory Model10.1007/s10462-020-09838-1 ↗
41. Learning to Forget: Continual Prediction with LSTM10.1162/089976600300015015 ↗
42. Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions10.1186/s40537-021-00444-8 ↗
43. Simonyan, K., and Zisserman, A. (2015). Very Deep Convolutional Networks for Large-Scale Image Recognition. arXiv.10.1109/ICCV.2015.314 ↗
44. Convolutional Neural Networks: An Overview and Application in Radiology10.1007/s13244-018-0639-9 ↗
45. A Review of Uncertainty Quantification in Deep Learning: Techniques, Applications and Challenges10.1016/j.inffus.2021.05.008 ↗
46. Tang, J., Li, Y., Ding, M., Liu, H., Yang, D., and Wu, X. (2022). An Ionospheric TEC Forecasting Model Based on a CNN-LSTM-Attention Mechanism Neural Network. Remote Sens., 14.10.3390/rs14102433 ↗
47. Cao, L., Sun, M., Yang, Z., Jiang, D., Yin, D., and Duan, Y. (2024). A Novel Transformer-CNN Approach for Predicting Soil Properties from LUCAS Vis-NIR Spectral Data. Agronomy, 14.10.3390/agronomy14091998 ↗
48. Feng, G., Li, Z., Zhang, J., and Wang, M. (2024). Multi-Scale Spatial Attention-Based Multi-Channel 2D Convolutional Network for Soil Property Prediction. Sensors, 24.10.3390/s24144728 ↗