Filling missing soil data using machine learning

Siau Chen Chian, Jinbo Bi, Harshad Halai, Namyoon Lee, C. F. LeungOpenalex Unknown 2023 · OpenAlex

Abstract: Missing soil parameters are common in soil investigation and published literature because undisturbed soil samples used in laboratory tests cannot be reused for subsequent testing, as the soil becomes disturbed and no longer represents actual field conditions. This issue is exacerbated by high ground heterogeneity, where parameters from one depth may not reflect another. Consequently, missing parameters must often be inferred from available data. This paper explores using machine learning, specifically the XGBoost algorithm, to handle and predict these missing values directly from incomplete datasets.

Introduction

In geotechnical engineering, obtaining a complete and perfectly representative dataset is a significant challenge. Soil testing is inherently destructive; once a specimen is subjected to a triaxial or oedometer test, its structure is altered, preventing further testing on that exact sample. Furthermore, the high spatial variability of soil means that properties can change drastically within short distances, even within the same borehole.

These factors lead to "missing soil parameters"—gaps in the data required for numerical modeling and design. Traditional approaches involve manual interpolation or simple averaging, which can introduce bias and fail to capture complex inter-parameter relationships. This study investigates whether machine learning models can natively manage these data gaps more effectively than traditional imputation methods.

Methodology: The Sparsity-Aware Approach

The research focuses on XGBoost (eXtreme Gradient Boosting), a tree-based algorithm known for its efficiency and performance. A key feature of XGBoost is its sparsity-aware split finding. Unlike many algorithms that require complete data, XGBoost learns an optimal "default direction" for missing values at each node in a decision tree. During training, it determines whether sending missing data to the left or right branch minimizes prediction error, effectively treating the absence of data as a potentially informative feature.

To evaluate this native capability, the authors compared it against several standard imputation techniques:

  • Simple Imputation: Filling gaps with the Mean or Median.
  • Distance-based Imputation: K-Nearest Neighbors (KNN).
  • Iterative/Multivariate Imputation: Advanced methods like MissForest and Bayesian Ridge Regression.

Dataset Characteristics

The study utilized a database compiled from 77 different publications concerning soil compressibility. The dataset comprised 12 key parameters, including target variables (Compression index, $C_c$; Recompression index, $C_r$) and input features such as initial void ratio ($e_0$), moisture content ($w_0$), specific gravity ($G_s$), Atterberg limits (PL, LL, PI), and grain size distribution.

Distributions of input features across the compiled geotechnical dataset, highlighting the diversity of soil properties.

The data was characterized by significant missingness. For instance, in the $C_c$ training set, specific gravity ($G_s$) was missing in 80.3% of samples, and silt content was missing in 71%. This "holy" nature of the data provided a rigorous test for the proposed machine learning approach.

Results and Discussion

The performance of the models was evaluated using Cross-Validated Mean Squared Error (CVMSE). The results revealed a "Less is More" paradox: pre-processing the data to fill in missing values generally degraded model performance.

Global distributions for the target variables: Compression Index (Cc) and Recompression Index (Cr).

Key findings include:

  • Superiority of Native Handling: The unimputed "OriginalData" (letting XGBoost handle gaps natively) achieved the best performance for predicting $C_c$, with an MSE of approximately 0.123.
  • Imputation Error: Sophisticated iterative imputation using "Extra Trees" significantly increased the error to 0.185. Even standard mean and median imputation resulted in higher errors (~0.127) than using the raw, incomplete data.
  • Information in Missingness: The study suggests that the absence of a test result is often not random (Missing at Random, MAR) but may be related to soil type or site constraints. XGBoost captures this "missingness" as useful information rather than noise.

Conclusion

This research demonstrates that for geotechnical datasets with high levels of missing information, leveraging the native sparsity-aware capabilities of algorithms like XGBoost is superior to traditional data imputation. By avoiding manual "fixes" that can squash natural variance or introduce bias, engineers can develop more accurate predictive models for critical soil parameters like compressibility indices. Future work will explore the applicability of this approach to other parameters, such as shear strength, and investigate the impact of missing data on design reliability.

Summary updated

BibTeX
@inproceedings{chian2023filling,
  author = {Siau Chen Chian and Jinbo Bi and Harshad Halai and Namyoon Lee and C. F. Leung},
  title = {{Filling missing soil data using machine learning}},
  booktitle = {Openalex Unknown},
  year = {2023},
  doi = {10.1201/9781003299127-38},
}
Figure