Skip to main content

A tool to analyze the leakage in an pipeline using modified SPRT technique

Project description

🛠️ Leak Detection Analysis Dashboard

👋 Welcome to the Leak Detection Analysis Dashboard

This dashboard helps you analyze likelihood values of leakage from your data — whether it's static (CSV/Excel) or real-time (from OSI-PI server).


🚀 Key Features

  • 📁 CSV/Excel Analysis: Upload historical data for static analysis using interactive charts.
  • 🌐 Real-time Analysis: Connect live to an OSI-PI server and analyze streaming sensor data in real time.

🛠️ How to Use

  1. Select the desired analysis mode from the sidebar.

  2. For static analysis:

    • Upload a CSV or Excel file containing your sensor data.
    • View the interactive visualizations and Zn statistics.
  3. For real-time analysis:

    • Choose a start date and time.
    • The dashboard will begin streaming and visualizing the live Zn values.

ℹ️ About Likelihood Values (Zn)

The Zn score represents the system’s confidence in detecting disturbances or leaks.

  • Zn is computed using a modified SPRT (Sequential Probability Ratio Test) technique — designed for early and reliable detection.
  • When Zn crosses the upper threshold, the system is confident that a leak or disturbance has likely occurred.
  • If Zn stays below the lower threshold, the system is confident that no disturbance has occurred so far.

📝 Sample Data Files

Three sample CSV files have been included in the core module of this project. You can use these files for a quick static analysis demo. These files are based on real-time data collected from the actual field. Please note:

  • Pressure values were missing, so we used volume values as pressure values since they don't affect the analysis.

Feel free to experiment with these sample files to get a feel for the application.


🖥️ Mock API and Configuration

Since many users may not have access to an API key for connecting to a real-time OSI-PI database, I've created a mock API within the main logic. This mock API will simulate a sample run of the software using mock data.

If you have your own API key:

  • You will need to uncomment the relevant sections in the api_processor.py file located in the core module.
  • The logic for connecting to the OSI-PI server is already in place. You only need to provide a few details such as:
    • Web ID tags of the sensors
    • Duration for updating data

These parameters can be found and configured within the api_processor.py file.


🚀 Running the Program Locally

To run the program locally, use the following command in your terminal:

dashboard

To stop the execution use Ctrl+C in the terminal.

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

lds_pipelines-0.2.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

lds_pipelines-0.2.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file lds_pipelines-0.2.0.tar.gz.

File metadata

  • Download URL: lds_pipelines-0.2.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lds_pipelines-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6506fe50ab8bd32ec8af0eef7f637a4ec9154a284231dc2817770fab0c3a88ba
MD5 39cb78856c2bb7f3c910f649881b0583
BLAKE2b-256 e32c87b9d6156cc8fbcb90b708d51bf840b64590328efc3a45e6e7f380bd6a4f

See more details on using hashes here.

File details

Details for the file lds_pipelines-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: lds_pipelines-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for lds_pipelines-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b26daaf2863a4319a7bd973908403835da157ae2d5a6283bc74f2abccca1a82
MD5 843c5b0d57e0fffe31d620c50a355ad1
BLAKE2b-256 942ce9de1ac692193edb497d77d25594bed386b14fb4dbce3b991275a45f5342

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