journal article·2025-12-26Open access

Soil Classification from Cone Penetration Test Profiles Based on XGBoost

Jinzhang Zhang, Jiaze Ni, Feiyang Wang, Hongwei Huang, Dongming Zhang

Applied Sciences· Volume 16· Issue 1

Abstract

This study develops a machine-learning-based framework for multiclass soil classification using Cone Penetration Test (CPT) data, aiming to overcome the limitations of traditional empirical Soil Behavior Type (SBT) charts and improve the automation, continuity, robustness, and reliability of stratigraphic interpretation. A dataset of 340 CPT soundings from 26 sites in Shanghai is compiled, and a sliding-window feature engineering strategy is introduced to transform point measurements into local pattern descriptors. An XGBoost-based multiclass classifier is then constructed using fifteen engineered features, integrating second-order optimization, regularized tree structures, and probability-based decision functions. Results demonstrate that the proposed method achieves strong classification performance across nine soil categories, with an overall classification accuracy of approximately 92.6%, an average F1-score exceeding 0.905, and a mean Average Precision (mAP) of 0.954. The confusion matrix, P–R curves, and prediction probabilities show that soil types with distinctive CPT signatures are classified with near-perfect confidence, whereas transitional clay–silt facies exhibit moderate but geologically consistent misclassification. To evaluate depth-wise prediction reliability, an Accuracy Coverage Rate (ACR) metric is proposed. Analysis of all CPTs reveals a mean ACR of 0.924, and the ACR follows a Weibull distribution. Feature importance analysis indicates that depth-dependent variables and smoothed ps statistics are the dominant predictors governing soil behavior differentiation. The proposed XGBoost-based framework effectively captures nonlinear CPT–soil relationships, offering a practical and interpretable tool for high-resolution soil classification in subsurface investigations.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Soil and Unsaturated Flow · Soil Geostatistics and Mapping · Landfill Environmental Impact Studies

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Military Installations, Army Logistics Academy of PLA, Chongqing 401331, China

Department of Geotechnical Engineering, Tongji University, Shanghai 200092, China

Key Laboratory of New Technology for Construction of Cities in Mountain Area, Ministry of Education, Chongqing University, Chongqing 400045, China

Department of Civil Engineering, College of Environmental Science and Engineering, Donghua University, Shanghai 201620, China

Funding

Chongqing Key Laboratory of Geomechanics and Geoenvironment Protection · National Natural Science Foundation of China · Shanghai Pujiang Program · Fund of Key Laboratory of New Technology for Construction of Cities in Mountain Area, Ministry of Education

References (64)

Show source-provided references
1. Quantitative evaluation of geological uncertainty and its influence on tunnel structural performance using improved coupled Markov chain10.1007/s11440-021-01287-6 ↗
2. Optimization of site exploration program based on coupled characterization of stratigraphic and geo-properties uncertainties10.1016/j.enggeo.2023.107081 ↗
3. Hybrid machine learning model with random field and limited CPT data to quantify horizontal scale of fluctuation of soil spatial variability10.1007/s11440-021-01360-0 ↗
4. Novel approach to estimate vertical scale of fluctuation based on CPT data using convolutional neural networks10.1016/j.enggeo.2021.106342 ↗
5. Multi-scale generative adversarial networks (GAN) for generation of three-dimensional subsurface geological models from limited boreholes and prior geological knowledge10.1016/j.compgeo.2024.106336 ↗
6. Probabilistic performance analysis of longitudinal tunnels based on coupled characterization of stratigraphic and geo-properties uncertainties10.1016/j.tust.2025.106552 ↗
7. Geotechnical characterization of soft soil deposits in Northern Poland10.1016/j.enggeo.2019.105187 ↗
8. AHP multi criteria analysis for landslide susceptibility mapping in the Tellian Atlas chain10.1038/s41598-025-10819-z ↗
9. Toscani, R., Rabelo Matos, D., and Guimaraes Campos, J. (2025). An Assessment of Landscape Evolution Through Pedo-Geomorphological Mapping and Predictive Classification Using Random Forest: A Case Study of the Statherian Natividade Basin, Central Brazil. Geosciences, 15.10.20944/preprints202504.0666.v1 ↗
10. Cone penetration test (CPT)-based soil behaviour type (SBT) classification system—An update10.1139/cgj-2016-0044 ↗
11. The influence of pore pressure gradients in soil classification during piezocone penetration test10.1016/j.enggeo.2013.01.016 ↗
12. Linear Trendlines to Assess Soil Classification from Cone Penetration Test Data10.1061/(ASCE)GT.1943-5606.0001729 ↗
13. Cone penetration index for soil behaviour type prediction10.1038/s41598-022-15994-x ↗
14. CPT-Based Probabilistic Soil Characterization and Classification10.1061/(ASCE)1090-0241(2009)135:1(84) ↗
15. Interpretation of electric piezocone data of Chennai coast10.1016/j.oceaneng.2009.02.006 ↗
16. Algorithm for generation of stratigraphic profiles using cone penetration test data10.1016/j.compgeo.2017.04.010 ↗
17. CPTU identification of regular, sensitive, and organic clays towards evaluating preconsolidation stress profiles10.3934/geosci.2021032 ↗
18. Statistical to fuzzy approach toward CPT soil classification10.1061/(ASCE)1090-0241(1999)125:3(179) ↗
19. Influence of Partial Consolidation during Cone Penetration on Estimated Soil Behavior Type and Pore Pressure Dissipation Measurements10.1061/(ASCE)GT.1943-5606.0000646 ↗
20. Estimation of the undrained shear strength of Adapazari fine grained soils by cone penetration test10.1016/j.enggeo.2019.105277 ↗
21. Various Approaches for Assessment of Crude Oil Mixed Soil Behavior Using Cone Penetration Test Records10.1007/s40515-024-00484-6 ↗
22. Deng, S., Zhang, Y., Han, J., Wang, K., Tian, Z., and Liu, T. (2023). An Analytical Study on Penetration and Pore Pressure Dissipation of Piezocone Test in Typical Normally and Over-Consolidated Silty Clays. Appl. Sci., 13.10.3390/app13063797 ↗
23. Zhang, Y., Gao, H., Fang, X., Xing, S., Xiao, L., and Duan, L. (2025). Research on the Compactness of Lunar Soil Simulant Based on Static Cone Penetration Test. Appl. Sci., 15.10.3390/app15137553 ↗
24. Fall cone tests considering water content, cone penetration index, and plasticity angle of fine-grained soils10.1016/j.jrmge.2020.02.005 ↗
25. Empirical estimation of shear wave velocity from in situ tests on soil formations in Greece10.1007/s10064-010-0324-9 ↗
26. Cone penetration test dataset Premstaller Geotechnik10.1016/j.dib.2020.106618 ↗
27. Theory and practice of the fall cone test10.1680/geot.2001.51.8.701 ↗
28. A global database considering Atterberg limits with the Casagrande and fall-cone tests10.1016/j.enggeo.2019.105201 ↗
29. Mohajerani method: Tool for determining the liquid limit of soils using fall cone test results with strong correlation with the Casagrande test10.1016/j.enggeo.2020.105852 ↗
30. Machine learning techniques for relating liquid limit obtained by Casagrande cup and fall cone test in low-medium plasticity fine grained soils10.1016/j.enggeo.2021.106381 ↗
31. Nakayenga, J., Inui, M., and Hata, T. (2022). Study on the Effect of Amorphous Silica from Waste Granite Powder on the Strength Development of Cement-Treated Clay for Soft Ground Improvement. Sustainability, 14.10.3390/su14074073 ↗
32. Machine learning in soil classification10.1016/j.neunet.2006.01.005 ↗
33. Automatic classification of fine-grained soils using CPT measurements and Artificial Neural Networks10.1016/j.aei.2018.04.003 ↗
34. Predicting the spatial distribution of soil profile in Adapazari/Turkey by artificial neural networks using CPT data10.1016/j.cageo.2012.01.021 ↗
35. Application of machine learning to the identification of quick and highly sensitive clays from cone penetration tests10.1631/jzus.A1900556 ↗
36. Machine Learning-Based Organic Soil Classification Using Cone Penetrometer Tests10.1061/JGGEFK.GTENG-12322 ↗
37. Rauter, S., and Tschuchnigg, F. (2021). CPT Data Interpretation Employing Different Machine Learning Techniques. Geosciences, 11.10.3390/geosciences11070265 ↗
38. Learning decision boundaries for cone penetration test classification10.1111/mice.12662 ↗
39. Improvement of data imbalance for digital soil class mapping in Eastern China10.1016/j.compag.2023.108322 ↗
40. Athar, M., Khoshnevisan, S., and Sadik, L. (2023, January 26–29). CPT-Based Soil Classification through Machine Learning Techniques. Proceedings of the GEO-CONGRESS 2023: Geotechnical Systems from Pore-Scale to City-Scale, Los Angeles, CA, USA.
41. Cone Penetration Test Prediction Based on Random Forest Models and Deep Neural Networks10.1007/s10706-023-02535-0 ↗
42. Chala, A., and Ray, R. (2023). Assessing the Performance of Machine Learning Algorithms for Soil Classification Using Cone Penetration Test Data. Appl. Sci., 13.10.3390/app13095758 ↗
43. Cho, S., Kim, H., and Kim, H. (2023). Locally Specified CPT Soil Classification Based on Machine Learning Techniques. Sustainability, 15.10.3390/su15042914 ↗
44. Machine learning method for CPTu based 3D stratification of New Zealand geotechnical database sites10.1016/j.aei.2021.101397 ↗
45. Automatic soil classification method from CPTU data based on convolutional neural networks10.1007/s10064-024-03815-6 ↗
46. Multi-fidelity fusion for soil classification via LSTM and multi-head self-attention CNN model10.1016/j.aei.2024.102655 ↗
47. Knowledge-based U-Net and transfer learning for automatic boundary segmentation10.1016/j.aei.2023.102243 ↗
48. A semi-supervised clustering-based approach for stratification identification using borehole and cone penetration test data10.1016/j.enggeo.2018.11.014 ↗
49. Feasibility of Stochastic Gradient Boosting Approach for Evaluating Seismic Liquefaction Potential Based on SPT and CPT Case Histories10.1061/(ASCE)CF.1943-5509.0001292 ↗
50. Bernard, M. (2024). Integrating Machine Learning in Geotechnical Engineering: A Novel Approach for Railway Track Layer Design Based on Cone Penetration Test Data. Infrastructures, 9.10.3390/infrastructures9080121 ↗
51. Soil classification based on unsupervised learning using cone penetration test data10.1088/1755-1315/1337/1/012032 ↗
52. Zhao, H., Wang, Y., Li, X., Guo, P., and Lin, H. (2023). Prediction of Maximum Tunnel Uplift Caused by Overlying Excavation Using XGBoost Algorithm with Bayesian Optimization. Appl. Sci., 13.10.3390/app13179726 ↗
53. Salehi Hikouei, I., Kim, S., and Mishra, D. (2021). Machine-Learning Classification of Soil Bulk Density in Salt Marsh Environments. Sensors, 21.10.3390/s21134408 ↗
54. Novel multi-spatial receptive field (MSRF) XGBoost method for predicting geological cross-section based on sparse borehole data10.1016/j.enggeo.2024.107604 ↗
55. Prediction of fracture initiation in cohesive soils based on data mining modelling and large-scale laboratory verification10.1016/j.undsp.2024.01.007 ↗
56. A machine learning approach to sustainable land use: Integrating Markov chains and XGBoost for black galingale cultivation in Thailand
57. Analysis of CPT end resistance at variable penetration rates using the spherical cavity expansion method in normally consolidated soils10.1016/j.compgeo.2015.04.019 ↗
58. Correlation between the Shear-Wave Velocity and Tip Resistance of Quartz Sand in a Centrifuge10.1061/(ASCE)GT.1943-5606.0001782 ↗
59. Cone penetration tests in dry and saturated Ticino sand10.1007/s10064-021-02156-y ↗
60. Cone penetration resistance of CUMT-1 lunar regolith simulant under magnetic-similitude lunar gravity condition10.1007/s11440-023-01971-9 ↗
61. Wu, C., Song, Y., Dai, J., Li, L., and Gu, X. (2025). Calibration of Cone Factor in Cone Penetration Test for Evaluating the Undrained Shear Strength of Silty Clay. Materials, 18.10.3390/ma18061283 ↗
62. Some relations among fall cone penetration, liquidity index and undrained shear strength of clays considering the sensitivity ratio10.1007/s10064-019-01478-2 ↗
63. Influence of geological uncertainty and soil spatial variability on tunnel deformation and their importance evaluation10.1016/j.tust.2024.105930 ↗
64. Experimental study of the coupling effect on segmental shield tunnel lining under surcharge loading and excavation unloading10.1016/j.tust.2023.105199 ↗