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.1.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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: drillinganomalymetrics-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f2291d75c63f030c531bfc9f606e4b7382988611910dd936bb90118fb415d9a1
MD5 872cb27b8d39da4eca7885d2220c5875
BLAKE2b-256 7e4f94eca554d48e44fd2473b9f53da48cb208172be6e326666ca0311de5d838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drillinganomalymetrics-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 beeafdc7156cac64071d5f66aa528b89c831bb3072f85725b951fc827b521bd8
MD5 5c6e04c658bb9321d8a0c6fa0d39af81
BLAKE2b-256 c7843d40cdaf3be2c7662af88089c36b67a12243f23b9cd947cc430a93f1b475

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