Data science in petroleum engineering combines engineering knowledge with statistics and machine learning to extract decisions from logs, tests, production records and sensor streams. The workflow is the same whatever the method: acquire and validate the data, choose a model that fits the physics and the question, test it on data it has not seen, and review the results with engineers. This guide walks through that workflow and a worked decline-curve fit, the simplest form of data-driven forecasting.

Production rates and limits in the worked example are a synthetic teaching example.
1. Typical data sources
| Source | Examples | Typical uses |
|---|---|---|
| Well logs and core | Gamma ray, resistivity, density, porosity, permeability | Facies classification, property prediction |
| Production and injection | Rates, pressures, water cut, GOR | Forecasting, allocation, anomaly detection |
| Drilling data | Weight on bit, torque, ROP, vibration | Drilling optimization, dysfunction detection |
| Equipment sensors | ESP current, temperatures, compressor data | Failure prediction |
| Seismic | Attributes and inversions | Reservoir property mapping |
2. Workflow
- Acquire: gather data with units, timestamps and depth references.
- Validate: remove duplicates and impossible values, align depths and times, flag gaps.
- Model: start with physics-based or simple models, add complexity only if it improves validated results.
- Test: hold out data by well or by time to avoid leakage between training and test sets.
- Review: check that predictions are physically plausible and explain the main drivers.
- Deploy and monitor: track performance and retrain when conditions change.
3. Worked example: exponential decline fit
q(t) = qi e−D t, Np = (qi − q) / D
A well declines from 1,000 to 700 bbl/d in 12 months. The nominal decline rate is D = ln(1,000/700) / 12 = 0.0297 per month, or 35.7 percent per year, and 0.000977 per day. Production from now to an economic limit of 50 bbl/d is (1,000 − 50) / 0.000977 = 973,000 bbl. Arps hyperbolic and harmonic forms, or more complex models, are compared on the same held-out data before choosing one, and the forecast is checked against reservoir constraints such as drainage area and material balance.
4. Pitfalls
- Data leakage: information from the future or from test wells entering training.
- Correlation mistaken for causation, for example completion size and productivity both linked to well location.
- Extrapolation beyond the range of training data.
- Ignoring operational events such as shut-ins and workovers in production histories.
Key points
- Data quality and validation matter more than model complexity.
- Test models on data they have not seen, split by well or time.
- Simple physics-based models give baselines and sanity checks.
- Engineers must review results before decisions are taken.
References
- J. J. Arps, Analysis of decline curves, Transactions of the AIME, 160 (1945) 228 to 247.
- S. D. Mohaghegh, Data-Driven Reservoir Modeling, Society of Petroleum Engineers, 2017.
Related reading and community
Questions or field experience to share? Join the PetroSmart Telegram group, watch worked examples on the PetroSmart Academy YouTube channel and follow us on Facebook.