Skip to main content

Package providing functions to compute a modified recall, precision and F1-score metrics for drilling anomaly detection models evaluated on historical data sets.

Project description

drillinganomalymetrics

Unit Tests License: MIT Version


Description
drillinganomalymetrics is a Python package containing functions to compute accuracy metrics in the context of drilling anomaly detection. These metrics are design to reflect the proximity of a drilling anomaly prediction model to its ideal characteristics, namely:

  • It effectively detects early signatures of all stuck pipe events without missing any,
  • It effectively detects sticking symptoms as early as possible, allowing the drilling team to take actions to prevent risk escalation, and
  • It does not generate false warnings, i.e., predictions of high risk in non-risky conditions.

Why New Metrics
In summary, traditional classification metrics fail to reflect how close a model is to the aforementioned ideal characteristics. More importantly, they often generate misleading values: bad models can get high scores and good models very low values. Moreoever, traditional metrics can become artificially inflated when used in a point-wise manner in drilling anomalies that develop over long periods of time. Examples are provided in Montes et al. (2025)—SPE-220725-PA.


Associated Theory/Methodology
The metrics provided in this package are thoroughly described and illustrated through examples in the context of stuck pipe prediction in Appendix B in the following open-access SPE Journal article:

  • Montes, A. C., Ashok, P., and van Oort, E. 2025. Review of Stuck Pipe Prediction Methods and Future Directions. SPE Journal 30(06): 3334–3363. SPE-220725-PA. Link.


Abraham C. Montes

LinkedIn | Google Scholar | Personal Website

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drillinganomalymetrics-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drillinganomalymetrics-0.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file drillinganomalymetrics-0.1.0.tar.gz.

File metadata

  • Download URL: drillinganomalymetrics-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for drillinganomalymetrics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 375f65bacde1e1b56c5dcded509f5c453a867e1f95846b24e71d0c1433d429c4
MD5 b649641e068df95e3cf28fa67b3d34e4
BLAKE2b-256 d5c1eaa1491032aa04b7ce0ad59b1a7f3f902fb2adcb631e818698d185f87628

See more details on using hashes here.

File details

Details for the file drillinganomalymetrics-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: drillinganomalymetrics-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for drillinganomalymetrics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80e1a0445ff17102d562ab0b31fa20e1f8d48ae9052451d1e55ef47b5ae03aaf
MD5 8e38af7647fe25e4ba3b4c1321bf81a9
BLAKE2b-256 336ec618938cf3b9ffe0f3678250ae4b97011f1504c97bb6bc8928caf5eb1452

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page