An ensemble deep learning approach for soil pH classification leveraging GLCM-based texture features and neural networks

Main Article Content

Sujitranan Mungklachaiya
Anongporn Salaiwarakul

Abstract

Soil pH-level classification is a critical challenge in precision agriculture owing to data scarcity, high intra-class similarity, and subtle visual variations between pH levels. This research proposed an ensemble-feature deep learning framework that integrates convolutional neural networks with gray-level co-occurrence matrix (GLCM) texture descriptors to address fundamental limitations in pH-level classification. Through comprehensive experiments, we evaluated diverse architectures (i.e., InceptionV3, Inception ResNetV2, ResNet50, and VGG16) enhanced by GLCM features, demonstrating a substantial increase in classification accuracy, particularly under minimal visual distinctions between pH levels. The optimal Inception ResNetV2 w/GLCM configuration achieved the best overall performance, with an F1-score of 82.10%, an accuracy of 82.22%, and a precision of 82.01%, outperforming the conventional machine learning and deep learning approaches evaluated in this study. The proposed method innovatively provides a synergistic integration of hierarchical deep learning features with statistical texture analysis, achieving robust discrimination of visually similar soil sample images capturing different pH levels. These findings advance automated soil analysis and contribute to precision agriculture by establishing a robust solution for image-based soil pH-level classification.

Downloads

Download data is not yet available.

Article Details

How to Cite
Mungklachaiya, S., & Salaiwarakul, A. (2026). An ensemble deep learning approach for soil pH classification leveraging GLCM-based texture features and neural networks. Science, Engineering and Health Studies, 20, 26020002. https://doi.org/10.69598/sehs.20.26020002
Section
Physical sciences

References

Barman, U., & Choudhury, R. D. (2019). Prediction of soil pH using smartphone based digital image processing and prediction algorithm. Journal of Mechanics of Continua and Mathematical Sciences, 14(2), 226–249. https://doi.org/10.26782/jmcms.2019.04.00019

Barman, U., & Choudhury, R. D. (2020). Soil texture classification using multi class support vector machine. Information Processing in Agriculture, 7(2), 318–332. https://doi.org/10.1016/j.inpa.2019.08.001

Juraphanthong, W., & Kesorn, K. (2025). Autoregressive integrated moving average with semantic information: An efficient technique for intelligent prediction of dengue cases. Engineering Applications of Artificial Intelligence, 143, Article 109985. https://doi.org/10.1016/j.engappai.2024.109985

Mancini, M., Weindorf, D. C., Monteiro, M. E. C., de Faria, Á. J. G., dos Santos Teixeira, A. F., de Lima, W., de Lima, F. R. D., Dijair, T. S. B., Marques, F. D., Ribeiro, D., Silva, S. H. G., Chakraborty, S., & Curi, N. (2020). From sensor data to Munsell color system: Machine learning algorithm applied to tropical soil color classification via NixTM Pro sensor. Geoderma, 375, Article 114471. https://doi.org/10.1016/j.geoderma.2020.114471

Mendoza-Bernal, J., González-Vidal, A., & Skarmeta, A. F. (2024). A convolutional neural network approach for image-based anomaly detection in smart agriculture. Expert Systems with Applications, 247, Article 123210. https://doi.org/10.1016/j.eswa.2024.123210

Mungklachaiya, S., & Salaiwarakul, A. (2025). Attention-X: Enhancing the classification of natural attraction scenes with advanced attention mechanisms. Engineering and Applied Science Research, 52(3), 337–351. https://ph01.tci-thaijo.org/index.php/easr/article/view/259517

Neina, D. (2019). The role of soil pH in plant nutrition and soil remediation. Applied and Environmental Soil Science, 2019(1), Article 5794869. https://doi.org/10.1155/2019/5794869

Pandiri, D. N. K., Murugan, R., & Goel, T. (2024). Smart soil image classification system using lightweight convolutional neural network. Expert Systems with Applications, 238(Part D), Article 122185. https://doi.org/10.1016/j.eswa.2023.122185

Phiphatkamtorn, P., & Jitanan, S. (2025). Comparison of three learning approaches for plant disease classification. ICIC Express Letters Part B: Applications, 16(1), 63–71. https://doi.org/10.24507/icicelb.16.01.63

Pramote, O.-U., Khruahong, S., Jitanan, S., & Kong, X. (2023). Quality grading of crown flowers using convolutional neural network. ICIC Express Letters, 17(2), 143–152. https://doi.org/10.24507/icicel.17.02.143

Ramos-Ospina, M., Gomez, L., Trujillo, C., & Marulanda-Tobón, A. (2024). Deep transfer learning for image classification of phosphorus nutrition states in individual Maize leaves. Electronics, 13(1), Article 16. https://doi.org/10.3390/electronics13010016

Salaiwarakul, A. (2023). Soil classification using MobileNet model. ICIC Express Letters Part B: Applications, 14(8), 795–802. https://doi.org/10.24507/icicelb.14.08.795

Shah, S. R., Qadri, S., Bibi, H., Shah, S. M. W., Sharif, M. I., & Marinello, F. (2023). Comparing inception V3, VGG 16, VGG 19, CNN, and ResNet 50: A case study on early detection of a rice disease. Agronomy, 13(6), Article 1633. https://doi.org/10.3390/agronomy13061633

Sharma, H. K., & Kumar, S. (2018). Soil classification & characterization using image processing. In Proceedings of the Second International Conference on Computing Methodologies and Communication (ICCMC 2018) (pp. 885–890). IEEE. https://doi.org/10.1109/ICCMC.2018.8488103

Srivastava, P., Shukla, A., & Bansal, A. (2023). Convolutional neural network to predict soil texture classes. In A. Rani, B. Kumar, V. Shrivastava, & R. C. Bansal (Eds.), Signals, machines and automation (pp. 589–595). Springer. https://doi.org/10.1007/978-981-99-0969-8_61