Visual Soil Analysis: an AI-powered solution

Authors

  • Meraal Rahman Syed Babar Ali School of Science and Engineering, Lahore University of Management Sciences, RISE Intern
  • Yasir Niaz Lahore University of Management Sciences, Senior Research Fellow

DOI:

https://doi.org/10.61514/ieeep.v105i1.322

Keywords:

Soil classification, YOLOv8, deep learning, image processing, color histogram, environmental analysis

Abstract

This paper presents an image-based approach to soil classification using deep learning techniques. A custom dataset of 500 soil images, representing five distinct categories—Sandy, Loam, Alluvial, Clay, and Coarse—was compiled and used to train a YOLOv8 [1] object detection model. To enhance prediction reliability, a Python-based histogram correlation method was integrated, comparing RGB channel distributions between input and reference samples. The system outputs the predicted soil type along with a confidence score and similarity metric. Results demonstrate high classification accuracy and practical usability, delivered through a publicly accessible web application built with Streamlit [2], enabling real-time soil identification for researchers, students, and field professionals.

Downloads

Published

2025-11-29

How to Cite

[1]
M. Rahman and Y. Niaz, “Visual Soil Analysis: an AI-powered solution”, INHRJ, vol. 105, no. 1, Nov. 2025.