Sand Production Prediction: How ML Sees It Coming

Sand production prediction machine learning workflow for oil and gas wells

By Saad Iqbal

Sand production prediction uses rock-mechanics and operating data to identify critical drawdown and emerging sand risk before equipment damage escalates.

The choke starts cutting out before anyone notices the well is sick. A production tech pulls a sample and finds fine gray sand in the separator. Wellhead equipment that should last years is eroding in months. Somewhere downhole, in an unconsolidated sandstone reservoir, grains that used to sit locked in the rock matrix started moving with the fluid the moment drawdown crossed a threshold nobody had measured precisely — because until recently, nobody could measure it precisely without a slow, expensive geomechanical test program.

That threshold has a name in the literature: critical total drawdown, or CTD — the pressure differential at which a formation stops holding its sand and starts producing it alongside oil, gas, and water. Sand production prediction has always been possible with core testing and geomechanical modeling. What machine learning has changed is how cheaply and how continuously an operator can estimate that threshold across a field, well by well, using data that’s already sitting in the production database.

Sand production prediction machine learning workflow for oil and gas wells

Why Every Well Has a Critical Drawdown It Won’t Tell You About

Sand production isn’t random. Below the critical total drawdown, the formation’s own cohesive strength and the compressive stress from the overburden hold sand grains in place well enough that fluid can flow past them without dislodging the matrix. Push drawdown past that point — by choking back too aggressively, by depleting the reservoir, or simply by producing an unconsolidated zone the way you’d produce a competent one — and the near-wellbore rock starts to fail. Sand liberates into the flow stream, and from there it’s an equipment problem as much as a reservoir one: eroded chokes, cut tubing, plugged surface facilities, and workovers that could often have been avoided with a lower drawdown target from day one.

The classical approach to finding CTD relies on rock mechanics: total vertical depth, sonic transit time (a proxy for rock strength), cohesive strength from core testing, and effective overburden vertical stress. Combine those in an empirical correlation and you get an estimate — but the published correlations have historically carried error margins north of 20%, which is a wide enough band that operators either produce too conservatively and leave rate on the table, or push too hard and sand up a well that a slightly lower choke setting would have kept clean.

Where the Machine Learning Models Actually Beat the Correlations

A study on wells in the North Adriatic Sea took those same four inputs — TVD, transit time, cohesive strength, effective overburden vertical stress — and fed them into a Sugeno-type fuzzy inference system instead of a fixed correlation. Trained on data from 23 wells with Gaussian membership functions and 500 training epochs, the fuzzy-logic model reached an R² of 0.9947 against measured CTD, with an average absolute percentage relative error of 8.647%. The best competing correlation-based model in the same study — a genetic-algorithm-tuned multiple linear regression — landed at R² 0.9827 and 22.644% error. That’s not a marginal improvement; it’s roughly a two-and-a-half-times reduction in average error, from a model built on exactly the same four rock-mechanics inputs an engineer already has on hand.

Graph showing critical total drawdown for sand production onset in oil and gas wells

A separate line of research goes further and tries to forecast the actual sand production rate over time, not just the onset threshold. Work on the Karazhanbas oilfield in Kazakhstan trained Random Forest, Support Vector Machine, Decision Tree, and K-Nearest Neighbors classifiers to flag which wells would produce sand above a 0.1 tonne-per-month threshold, then used Random Forest regression to forecast the rate itself. The classification step performed well across all four algorithms — separating sand-producing wells from clean ones is, relatively speaking, the easier half of the problem.

The Counterintuitive Finding: More Data Isn’t Automatically Better

The regression results carried a finding worth sitting with. Using operational data alone — liquid rate, water cut, production date — the model achieved an RMSE of 0.85 tonnes per month. Adding geological inputs on top of that (reservoir thickness, depth, porosity, net-to-gross ratio) actually pushed RMSE up to 1.12. More features, worse predictions. The researchers also found that wells more than 500 meters from a geological fault trained to a tight RMSE of 0.05, while near-fault wells were substantially harder to predict — fault proximity introduces near-wellbore stress and permeability variation the standard feature set doesn’t fully capture.

RMSE comparison chart for machine learning sand production prediction models using operational versus combined data

The practical takeaway isn’t “ignore geology” — it’s that throwing every available column into a training set without checking whether each one actually correlates with the target, and without validating on held-out wells, can quietly degrade a model that would have done fine with fewer, cleaner inputs. If you’re building a sand production model for the first time, start with the operational variables you trust most, get a baseline RMSE, and add geological or completion features one at a time, watching whether each addition actually earns its place. The same discipline applies to water cut prediction and most other production-forecasting problems in this field — it’s rarely the fanciest model that wins, it’s the cleanest feature set.

Building the Two-Stage Pipeline

Both studies point toward the same practical architecture: classify first, then forecast the rate only for wells flagged as at-risk. That saves you from running a full regression pipeline on wells that were never going to produce meaningful sand in the first place, and it mirrors how most production engineers already think about the problem — first “is this well at risk,” then “how bad, and when.”

Machine learning classification workflow diagram for predicting sand production in oil and gas wells using RF SVM DT KNN
  • Well inputs — liquid rate, water cut, and whatever geological data you trust for the field, evaluated for correlation with sand output before you commit to including it.
  • ML models — Random Forest is a reasonable default for both the classification and regression stages; it handled the Karazhanbas dataset well and tends to be forgiving of feature scaling issues that trip up SVM.
  • Classify — flag sand-producing versus clean wells against a threshold that matches your equipment tolerance, not an arbitrary round number.
  • Forecast — for wells flagged at-risk, run the regression to estimate expected rate in tonnes per month, which feeds directly into workover and sand-control intervention planning.

It’s worth connecting this back to the equipment sand actually damages once it’s in the flow stream. Produced sand is one of the more common root causes behind premature electrical submersible pump failures — it abrades impellers, packs off intake screens, and accelerates the same vibration signatures that eventually take a pump down. A sand production model that flags a well as at-risk weeks before the first grains show up in a sample gives an operator time to adjust drawdown or schedule a sand-control workover before the ESP absorbs the damage, rather than discovering the connection only after a pump pull confirms it. If ESP reliability is already on your radar, our piece on how AI predicts ESP failures before they happen covers the failure-signature side of that same problem.

None of this requires infrastructure beyond what most upstream data teams already run. Python with scikit-learn covers Random Forest, SVM, Decision Tree, and KNN out of the box, and the fuzzy-logic approach for CTD estimation is a smaller, more specialized build if you want to go that route instead. For the underlying reservoir and rock-mechanics inputs — porosity, net-to-gross, PVT properties — petropt can save you from reimplementing standard petroleum engineering calculations from scratch before they ever reach the model.

What This Means for Your Next Drawdown Decision

A few things worth carrying into how you set choke targets and plan interventions:

  • A well-trained model on the right four rock-mechanics inputs can roughly halve the error of a traditional CTD correlation — enough to justify producing a marginal well slightly harder, or backing off a well you’d otherwise have pushed too far.
  • Feature selection matters more than feature quantity. Validate every input you add against held-out data before trusting it in production.
  • Wells near geological faults are genuinely harder to model with a standard feature set — treat their predictions with wider error bars and lean more on physical monitoring until you have field-specific data to tighten them up.
  • A two-stage classify-then-forecast pipeline is cheaper to run and easier to interpret than a single end-to-end regression, and it matches how sand-control decisions actually get made in the field.

Sand Production Prediction Field Checklist

  • Calibrate sand production prediction against field-specific rock strength and drawdown data.
  • Recheck sand production after choke, lift or water-cut changes.
  • Track sand production trends with separator, acoustic and erosion-monitoring evidence.
  • Use sand production alerts as decision support, not as a substitute for integrity limits.
  • Document the uncertainty around every sand production threshold.
  • Retrain the sand production model when geology or completion design changes.
  • Validate sand production predictions against held-out wells before deployment.

Sand production has always been manageable with a conservative enough drawdown — the cost has always been the barrels you leave behind to stay safe. What these models change is the precision of that trade-off: a tighter, field-calibrated critical drawdown estimate means fewer wells produced more conservatively than they need to be, and fewer surprise workovers on the ones that weren’t. If you’re building out an artificial-lift or production-optimization stack next, our roundup of AI tools for artificial lift optimization is a natural next stop — sand management and lift optimization are two halves of the same production-integrity problem.

Saad Iqbal Avatar

About the author

Saad Iqbal

Petroleum Engineer · Well Intervention & Stimulation Specialist

Saad Iqbal is a petroleum engineer and well intervention and stimulation specialist with more than a decade of field experience in hydraulic fracturing, coiled tubing, CSG, tight sandstone and shale developments. He explores practical AI, automation and data-driven engineering for safer, smarter upstream operations.