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

Uploaded Python 3

File details

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

File metadata

  • Download URL: drillinganomalymetrics-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d28e9e463643e069bf5104f712551d13e1b01797588aab63e7cdeecbdbad74f4
MD5 ce5deaa48a540febd702a096a5bf1360
BLAKE2b-256 d96501c0b1ce512f5954a659358ee06c9847373f45a6bacc3fb4fd7b2951e7b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: drillinganomalymetrics-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e689f6233dfd142215fe91f2898b60ef98ccc6ef4af80a2068e08c71da67feb1
MD5 d4202a79159f0f63a569d25178d80a2c
BLAKE2b-256 8ea76a4fff6650c621e3168c7ed6418bc3855eb9f92737bd4fc2e95b887975e6

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