A Python Based Application for Automated Soil Classification Using the Unified Soil Classification System (USCS)
DOI:
https://doi.org/10.51137/wrp.ijmat.370Keywords:
Unified Soil Classification System (USCS), Python, Graphical User Interface (GUI), Automation, Sieve Analysis, PI ChartAbstract
Soil being a natural material can behave in any way as it suffers from intrinsic spatial variability that results from natural phenomenon and their influence on the soil. It became controversial and debated how to estimate its classification to obtain a reliable geotechnical design with low cost and effort. Classifying soils is one of the most essential steps in geotechnical engineering since it guides how foundations are designed, structures are built, and land is developed. The Unified Soil Classification System (USCS) is widely used for this purpose because of its clarity and acceptance worldwide, but in practice, the process is still carried out manually in most cases. Manual classification takes time, requires experience, and is prone to errors, which can affect both learning and fieldwork. In this study, a desktop application was developed using Python to automate USCS soil classification. The program is supported by a graphical user interface (GUI) that allows users to input sieve analysis results and Atterberg limits and then automatically calculates D10, D30, D60, the coefficient of uniformity (Cu), and the coefficient of curvature (Cc), while also generating gradation curves and plasticity charts in real time. Testing against standard soil problems showed that the results closely matched those from textbooks, confirming the accuracy of the application. The application, in its combination of rigorous technical competence and easy-to-operate format, obviates calculation mistakes, saves time, and improves understanding of soil characteristics, and thus also functions as a helpful engineering assistant and an efficient teaching resource in geotechnical education.
References
B. Bhattac, B. Bhattacharya and D. P. Solomatine, “Machine learning in soil classification,” Neural Networks, vol. 19, no. 2, pp. 186–195, Mar. 2006, doi: 10.1016/j.neunet.2006.01.005. DOI: https://doi.org/10.1016/j.neunet.2006.01.005
A. F. da Silva, M. J. Pereira, J. D. Carneiro, C. R. L. Zimback, P. M. B. Landim, and A. Soares, “A new approach to soil classification mapping based on the spatial distribution of soil properties,” Geoderma, vol. 219–220, pp. 106–116, May 2014, doi: 10.1016/j.geoderma.2013.12.011. DOI: https://doi.org/10.1016/j.geoderma.2013.12.011
A. E. Hartemink, “The use of soil classification in journal papers between 1975 and 2014,” Geoderma Regional, vol. 5, pp. 127–139, Aug. 2015, doi: 10.1016/j.geodrs.2015.05.002. DOI: https://doi.org/10.1016/j.geodrs.2015.05.002
V. N. S. Murthy, Geotechnical Engineering: Principles and Practices of Soil Mechanics and Foundation Engineering. Boca Raton: CRC Press, 2002. doi: 10.1201/9781482275858. DOI: https://doi.org/10.1201/9781482275858
J. Knappett and R. F. Craig, Craig’s Soil Mechanics, 8th ed. London: CRC Press, 2012. doi: 10.1201/b12841. DOI: https://doi.org/10.1201/b12841
T. Liu, “A Review of Engineering Soil Classification Systems,” Special Procedures for Testing Soil and Rock for Engineering Purposes: Fifth Edition, pp. 361–382, Jan. 1970, doi: 10.1520/STP38527S. DOI: https://doi.org/10.1520/STP38527S
J. M. Moreno-Maroto, J. Alonso-Azcárate, and B. C. O’Kelly, “Review and critical examination of fine-grained soil classification systems based on plasticity,” Applied Clay Science, vol. 200, p. 105955, Jan. 2021, doi: 10.1016/j.clay.2020.105955. DOI: https://doi.org/10.1016/j.clay.2020.105955
R. D. Holtz, W. D. Kovacs, and T. C. Sheahan, An introduction to geotechnical engineering, vol. 733. Prentice-hall Englewood Cliffs, NJ, 1981. Accessed: Oct. 16, 2025. [Online]. Available: https://www.academia.edu/download/53733597/libro.pdf
B. C. O’Kelly and A. Soltani, “Discussion: Atterberg limits determination and soil classification using fall cone device on the silty sands and sandy silts [International Journal of Geotechnical Engineering 19(1–3): 78–87],” International Journal of Geotechnical Engineering, vol. 19, no. 6, pp. 472–478, July 2025, doi: 10.1080/19386362.2025.2502774. DOI: https://doi.org/10.1080/19386362.2025.2502774
X. Zhao, W. D. Zhu, Y. H. Li, M. Li, and X. Y. Li, “Review, classification, and extension of classical soil-structure interaction models based on different superstructures and soils,” Thin-Walled Structures, vol. 173, p. 108936, Apr. 2022, doi: 10.1016/j.tws.2022.108936. DOI: https://doi.org/10.1016/j.tws.2022.108936
G. M. Castro, J. Park, and J. C. Santamarina, “Revised Soil Classification System: Implementation and Engineering Implications,” Journal of Geotechnical and Geoenvironmental Engineering, vol. 149, no. 11, p. 04023109, Nov. 2023, doi: 10.1061/JGGEFK.GTENG-10447. DOI: https://doi.org/10.1061/JGGEFK.GTENG-10447
C. H. Benson and J. M. Trast, “Hydraulic Conductivity of Thirteen Compacted Clays,” Clays and clay miner., vol. 43, no. 6, pp. 669–681, Dec. 1995, doi: 10.1346/CCMN.1995.0430603. DOI: https://doi.org/10.1346/CCMN.1995.0430603
U. El Shamy, “DEM-Based Computational Lab for Geotechnical Engineering Education,” pp. 1–10, June 2012, doi: 10.1061/40910(229)3. DOI: https://doi.org/10.1061/40910(229)3
K. D. Rakesh et al., “DEVELOPMENT OF MOBILE APP FOR THE SOIL CLASSIFICATION,” JMT, vol. 6, no. 1, p. 34, 2019, doi: 10.26634/jmt.6.1.14635. DOI: https://doi.org/10.26634/jmt.6.1.14635
H. M. Ali and R. R. Shakir, “Applying a Python script to predict the geotechnical properties of the Nasiriyah soil,” IOP Conf. Ser.: Earth Environ. Sci., vol. 961, no. 1, p. 012004, Jan. 2022, doi: 10.1088/1755-1315/961/1/012004. DOI: https://doi.org/10.1088/1755-1315/961/1/012004
S. Shivhare, “A Review on Automatic Soil Classification in Digital Image Processing,” IJRASET, vol. 9, no. VIII, pp. 449–455, Aug. 2021, doi: 10.22214/ijraset.2021.37387. DOI: https://doi.org/10.22214/ijraset.2021.37387
“El sistema unificado de clasificación del suelo (sucs) en la Ingeniería Geotécnica -.” Accessed: July 29, 2025. [Online]. Available: https://geo-webonline.com/en/sistema-unificado-de-clasificacion-del-suelo/
T. S. Krishna et al., “Forecasting the Classification of Soil Systems by Using Python Programming,” Mar. 27, 2024, Research Square. doi: 10.21203/rs.3.rs-4148930/v1. DOI: https://doi.org/10.21203/rs.3.rs-4148930/v1
M. I. Ragab, “PYTHON PROGRAM FOR SOIL CLASSIFICATION ACCOURDING TO UNIFIED SOIL CLASSIFICATION SYSTEM (USCS,” Mohamed Ibrahim Ragab, Jan. 2023, doi: 10.13140/RG.2.2.21221.78562.
C.-Y. Liu, C.-Y. Ku, T.-Y. Wu, and Y.-C. Ku, “An Advanced Soil Classification Method Employing the Random Forest Technique in Machine Learning,” Applied Sciences, vol. 14, no. 16, Art. no. 16, Jan. 2024, doi: 10.3390/app14167202. DOI: https://doi.org/10.3390/app14167202
S. N. N. Obasi, J. Pemberton, and O. O. Awe, “A comparative study of soil classification machine learning models for construction management,” International Journal of Construction Management, vol. 25, no. 5, pp. 584–593, Apr. 2025, doi: 10.1080/15623599.2024.2341500. DOI: https://doi.org/10.1080/15623599.2024.2341500
D. R. Gambill, W. A. Wall, A. J. Fulton, and H. R. Howard, “Predicting USCS soil classification from soil property variables using Random Forest,” Journal of Terramechanics, vol. 65, pp. 85–92, June 2016, doi: 10.1016/j.jterra.2016.03.006. DOI: https://doi.org/10.1016/j.jterra.2016.03.006
J. Ewing, T. Oommen, P. Jayakumar, and R. Alger, “Utilizing Hyperspectral Remote Sensing for Soil Gradation,” Remote Sensing, vol. 12, no. 20, Art. no. 20, Jan. 2020, doi: 10.3390/rs12203312. DOI: https://doi.org/10.3390/rs12203312
S. Youwai and P. Makam, “Computer Vision for Particle Size Analysis of Coarse-Grained Soils,” Nov. 11, 2023, arXiv: arXiv:2311.06613. doi: 10.48550/arXiv.2311.06613.
Madrigal et al., “USoil: Development of USCS-Based Soil Classifier Using Digital Image Processing and Convolutional Neural Network,” ResearchGate, July 2022, doi: 10.12785/ijcds/120109.
B. M. Das, Fundamentals of geotechnical engineering, 3rd ed. Toronto, Ont.: Thomson, 2008.
B. M. Das and K. Sobhan, Principles of Geotechnical Engineering, Eight Edition, SI. 2014.
Madrigal et al., “USoil: Development of USCS-Based Soil Classifier Using Digital Image Processing and Convolutional Neural Network,” ResearchGate, July 2022, doi: 10.12785/ijcds/120109. DOI: https://doi.org/10.12785/ijcds/120109
B. M. Das, Fundamentals of geotechnical engineering, 3rd ed. Toronto, Ont.: Thomson, 2008.
B. M. Das and K. Sobhan, Principles of Geotechnical Engineering, Eight Edition, SI. 2014.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ibrahim Muhammad, Zeeshan Ahmed, Basit Ali Khan (Author); Ihsan Ullah, Umar Malik (Translator)

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