The application provides a non-standard
rock sample compressive strength correction method, comprising: collecting rock samples generated under different formation conditions from different oil and gas blocks, measuring the height and
diameter of each sample, determining the corresponding
sample type, and simultaneously obtaining the
lithology of each sample, and measuring the
compressive strength of each sample by setting a conventional experiment; the height,
diameter, confining pressure, and
compressive strength are dimensionally standardized, and the sample data is randomly divided into a
training set and a
test set with consistent
sample type and
lithology distribution according to a ratio of 7:3; a
quantile regression model based on GBDT is constructed using the
training set, the hyperparameters of the
quantile regression model are optimized using a
particle swarm optimization algorithm, the
test set is used to verify the
quantile regression model to output the compressive strength correction values of multiple key quantiles, and the uncertainty range of the correction result is quantified. The method can accurately establish a unified standard strength benchmark that adapts to different height-
diameter ratios and different lithologies, and greatly improves the correction accuracy.