Application of Conditional Random Fields and Sparse Polynomial Chaos Expansions to Geotechnical Problems