SoilNet – Soil Texture Classification using Convolutional Neural Network
DOI:
https://doi.org/10.58445/rars.3497Keywords:
Soil Texture, Convolutional Neural Network, ClassificationAbstract
Soil texture classification is a critical task in agriculture, as it directly impacts water retention, nutrient availability, and crop planning. Traditional approaches rely on manual inspection and laboratory analysis, which are time-consuming and subject to human error. This study introduces SoilNet, a Convolutional Neural Network (CNN)-based model designed to automate soil texture classification using image data. The proposed architecture consists of four convolutional blocks for hierarchical feature extraction, followed by a fully connected layer that outputs class probabilities for three texture categories: coarse, medium, and fine. The model was trained and evaluated on a combined dataset of 3,702 soil images from Roboflow’s SOIL (v1) dataset and additional Kaggle samples. After hyperparameter tuning - optimizing epochs, learning rate, kernel size, and activation function - SoilNet achieved an outstanding 99.46% accuracy, 0.0182 test loss, and near-perfect precision, recall, and F1-scores. These results demonstrate the model’s robustness and its potential as a reliable tool for rapid, scalable, and objective soil texture classification in precision agriculture.
References
Albawi, S., Mohammed, T. A., & Al-Zawi, S. (2017, August). Understanding of a convolutional neural network. In 2017 International Conference on Engineering and Technology (ICET) (pp. 1–6). IEEE. https://doi.org/10.1109/ICEngTechnol.2017.8308186
Dhakal, S., Shrestha, S., & Sharma, S. (2020). Soil texture classification using convolutional neural networks. Journal of Applied Remote Sensing, 14(3), 1–12.
Gholizadeh, A., Borůvka, L., Saberioon, M., & Kozák, J. (2013). Visible, near-infrared, and mid-infrared spectroscopy applications for soil assessment. Applied Spectroscopy, 67(12), 1349–1362.
Gonzalez, A., Lopez, D., & Carrasco, J. (2021). Transfer learning for soil classification using convolutional neural networks. Computers and Electronics in Agriculture, 190, 106423.
Li, W., Wang, J., & Zhang, Y. (2022). Fusion of multispectral and ground-level soil imagery using deep convolutional networks for texture classification. Remote Sensing, 14(5), 1103.
Md Sohag. (2025). SOIL (v1) dataset [Data set]. Roboflow Universe. https://universe.roboflow.com/md-sohag-w9lng/soil-aoweg
Pondy, J. (2022). Soil Image Dataset [Data set]. Kaggle. https://www.kaggle.com/datasets/jayaprakashpondy/soil-image-dataset
Viscarra Rossel, R. A., Walvoort, D. J. J., McBratney, A. B., Janik, L. J., & Skjemstad, J. O. (2006). Visible, near infrared, mid infrared or combined diffuse reflectance spectroscopy for simultaneous assessment of various soil properties. Geoderma, 131(1–2), 59–75.
Zhang, Y., Qin, Q., & Liu, J. (2018). Soil texture classification from hyperspectral data using convolutional neural networks. ISPRS Journal of Photogrammetry and Remote Sensing, 146, 183–192.
Downloads
Posted
Categories
License
Copyright (c) 2025 Lam Phan

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.