Skip to main content

Machine Learning Models for Petrophysics

Project description

AkerBP.models

Machine Learning Models for Petrophysics.

  • Classification Models
    • Wrapper for XGBoost classifier
    • Hierarchical and nested models for lithology (outdated)
  • Regression Models
    • Wrapper for XGBoost regressor
  • Rule-based models - several methods for badlog detection, including:
    • Crossplots outlier detection (supported: OCSVM, Elliptic envelope and Isolation Forest)
    • Logtrend, outliers, DENC and washout (based on the crossplots above)
    • Flatline
    • Resistivities
    • Casing
    • UMAP 3D segmentation
    • crosscorrelation

How to use

Example of how to use the badlog model class.

    import akerbp.models.rule_based_models as models
    # instantiate a badlog model object
    model = models.BadlogModel()

    # define which methods to run for badlog detection and run prediction
    # on data from one well
    methods = ['casing', 'flatline', 'dencorr', 'logtrend']
    model_predictions = model.predict(
        df_well,
        methods=methods,
        settings=None,
        mappings=None,
        folder_path=None
    )

Example of how to use the regression model class (wrapper of XGBoost).

    import akerbp.models.regression_models as models
    # instantiate an XGBoost regression model object with parameters as model_settings
    reg_model = models.XGBoostRegressionModel(
        settings=model_settings,
        model_path=folder_path
    )
    results = reg_model.predict(df_well)
    reg_model.save()  # it saves the model to specified folder path

This library is closely related and advised to be used together with akerbp.mlpet, also developed by AkerBP.

Rule-based models

The dataframe returned from running predictions on data from one well will contain new columns named in the following format "TYPE_METHOD_VAR", where:

  • TYPE: either "flag" or "agg". Flag can be 0 or 1 for regular or badlog samples respectively. Agg is the aggregation type, or score. It indicates how anomalous is the sample (used as a way for the user to set thresholds per method).
  • METHOD: method for the column flag. It should be as in the methods given to the predictions. An exception is the crossplots method, that will instead have [vpden, vpvs, aivpvs] as output method column names.
  • VAR: variable or curve that the column flags. It should be one of the following: den, ac, acs, rmed, rdep, rmic, calib_bs (one column only).

License

AkerBP.models Copyright 2021 AkerBP ASA

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

akerbp.models-1.20220225090738.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

akerbp.models-1.20220225090738-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file akerbp.models-1.20220225090738.tar.gz.

File metadata

  • Download URL: akerbp.models-1.20220225090738.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for akerbp.models-1.20220225090738.tar.gz
Algorithm Hash digest
SHA256 f1db7f43c1a79ff8faca68e42e8e8b501e7fb7d24e6df85e6956c363bc7d1984
MD5 c6fe26c90ff05c29edd833d2fa6f9c16
BLAKE2b-256 1f922f4c35abfcdd2983a1fbf2fabe44aa713ae71b51bb00ecd90fb23abaa092

See more details on using hashes here.

File details

Details for the file akerbp.models-1.20220225090738-py3-none-any.whl.

File metadata

  • Download URL: akerbp.models-1.20220225090738-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for akerbp.models-1.20220225090738-py3-none-any.whl
Algorithm Hash digest
SHA256 a26fad67fe562d691a56da90e91706a4a7c1900f4a4c98a41d2b86c5165fc405
MD5 47aa345465107f372134353fa1ce54b3
BLAKE2b-256 dfea6ed414486e6e9b59f16bfb7a2d45bd841a4626ad53781103d7b59aa89bad

See more details on using hashes here.

Supported by

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