The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 3 new columns ({'remaining_life_days', 'integrity_risk_score', 'integrity_grade'}) and 4 missing columns ({'coating_health_pct', 'external_corrosion_risk', 'cp_voltage_v', 'soil_resistivity_ohm_cm'}).
This happened while the csv dataset builder was generating data using
hf://datasets/xpertsystems/oil027-sample/integrity_labels.csv (at revision e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88), [/tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/external_corrosion.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/external_corrosion.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/integrity_labels.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/integrity_labels.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/internal_corrosion.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/internal_corrosion.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pipeline_assets.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pipeline_assets.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pitting_profiles.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pitting_profiles.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
pipeline_id: string
integrity_risk_score: double
integrity_grade: string
remaining_life_days: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 790
to
{'pipeline_id': Value('string'), 'soil_resistivity_ohm_cm': Value('float64'), 'cp_voltage_v': Value('float64'), 'coating_health_pct': Value('float64'), 'external_corrosion_risk': Value('string')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 3 new columns ({'remaining_life_days', 'integrity_risk_score', 'integrity_grade'}) and 4 missing columns ({'coating_health_pct', 'external_corrosion_risk', 'cp_voltage_v', 'soil_resistivity_ohm_cm'}).
This happened while the csv dataset builder was generating data using
hf://datasets/xpertsystems/oil027-sample/integrity_labels.csv (at revision e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88), [/tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/external_corrosion.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/external_corrosion.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/integrity_labels.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/integrity_labels.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/internal_corrosion.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/internal_corrosion.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pipeline_assets.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pipeline_assets.csv), /tmp/hf-datasets-cache/medium/datasets/24759797294923-config-parquet-and-info-xpertsystems-oil027-sampl-25ebe27f/hub/datasets--xpertsystems--oil027-sample/snapshots/e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pitting_profiles.csv (origin=hf://datasets/xpertsystems/oil027-sample@e6e70fd7f26804f3bcfeba736cd82ad9ed4a2c88/pitting_profiles.csv)]
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
pipeline_id string | soil_resistivity_ohm_cm float64 | cp_voltage_v float64 | coating_health_pct float64 | external_corrosion_risk string |
|---|---|---|---|---|
PL-000000 | 196.67 | -0.916 | 67.22 | HIGH |
PL-000001 | 4,280.56 | -1.112 | 96.53 | LOW |
PL-000002 | 2,705.52 | -1.102 | 75.92 | LOW |
PL-000003 | 1,877.35 | -0.942 | 87.93 | LOW |
PL-000004 | 3,259.76 | -0.727 | 64.35 | HIGH |
PL-000005 | 1,388.95 | -1.127 | 98.92 | MEDIUM |
PL-000006 | 2,548.51 | -0.854 | 60.91 | LOW |
PL-000007 | 891.29 | -1.141 | 97.39 | MEDIUM |
PL-000008 | 4,103.08 | -0.998 | 98.94 | LOW |
PL-000009 | 4,776.98 | -0.969 | 92.4 | LOW |
PL-000010 | 4,560.02 | -1.196 | 79.94 | LOW |
PL-000011 | 4,663.22 | -0.886 | 96.21 | LOW |
PL-000012 | 508.47 | -0.744 | 78.1 | HIGH |
PL-000013 | 582.92 | -1.14 | 62.45 | HIGH |
PL-000014 | 2,346.34 | -1.086 | 76.02 | LOW |
PL-000015 | 376.16 | -0.845 | 94.58 | HIGH |
PL-000016 | 2,165.09 | -1.051 | 75.53 | LOW |
PL-000017 | 853.44 | -1.113 | 96.77 | MEDIUM |
PL-000018 | 1,460.63 | -0.765 | 80.1 | HIGH |
PL-000019 | 4,289.31 | -1.1 | 76.03 | LOW |
PL-000020 | 586.72 | -1.056 | 63.6 | HIGH |
PL-000021 | 1,020.18 | -0.823 | 69.52 | HIGH |
PL-000022 | 4,766.27 | -0.951 | 91.44 | LOW |
PL-000023 | 3,138.7 | -1.164 | 68.01 | LOW |
PL-000024 | 2,799.18 | -0.712 | 80.25 | HIGH |
PL-000025 | 2,568.06 | -0.757 | 72.69 | HIGH |
PL-000026 | 3,724.8 | -0.715 | 87.27 | HIGH |
PL-000027 | 2,335.79 | -0.842 | 93.77 | HIGH |
PL-000028 | 252.57 | -1.018 | 67.96 | HIGH |
PL-000029 | 4,735.57 | -0.973 | 66.96 | LOW |
PL-000030 | 3,668.22 | -1.134 | 87.83 | LOW |
PL-000031 | 2,609.13 | -0.906 | 78.09 | LOW |
PL-000032 | 2,184.84 | -1.088 | 93.25 | LOW |
PL-000033 | 1,053.51 | -0.86 | 75.59 | MEDIUM |
PL-000034 | 1,757.95 | -0.772 | 63 | HIGH |
PL-000035 | 2,435.47 | -1.081 | 96.17 | LOW |
PL-000036 | 1,569.4 | -1.049 | 78.06 | LOW |
PL-000037 | 4,280.52 | -0.969 | 66.71 | LOW |
PL-000038 | 2,812.42 | -0.835 | 65.4 | HIGH |
PL-000039 | 1,182.61 | -0.71 | 68.08 | HIGH |
PL-000040 | 2,458.01 | -0.915 | 98.53 | LOW |
PL-000041 | 4,397.56 | -0.916 | 61.33 | LOW |
PL-000042 | 1,695.59 | -1.083 | 78.72 | LOW |
PL-000043 | 2,142.1 | -1.116 | 66.46 | LOW |
PL-000044 | 1,280.56 | -0.967 | 95.98 | MEDIUM |
PL-000045 | 965.15 | -1.031 | 98.78 | MEDIUM |
PL-000046 | 2,265.98 | -0.702 | 72.03 | HIGH |
PL-000047 | 3,643.23 | -1.04 | 87.87 | LOW |
PL-000048 | 2,404.43 | -1.118 | 85.4 | LOW |
PL-000049 | 4,605.81 | -1.184 | 68.6 | LOW |
PL-000050 | 2,630.6 | -1.059 | 83.85 | LOW |
PL-000051 | 2,083.83 | -1.036 | 71.63 | LOW |
PL-000052 | 3,659.04 | -1.042 | 81.36 | LOW |
PL-000053 | 2,323.83 | -0.729 | 91.41 | HIGH |
PL-000054 | 2,907.1 | -0.99 | 82.51 | LOW |
PL-000055 | 199.32 | -1.147 | 86.01 | HIGH |
PL-000056 | 597.79 | -1.002 | 84.03 | HIGH |
PL-000057 | 435.77 | -0.71 | 87.02 | HIGH |
PL-000058 | 1,875.41 | -0.919 | 98.17 | LOW |
PL-000059 | 234.59 | -0.948 | 64.7 | HIGH |
PL-000060 | 3,171.83 | -0.981 | 60.43 | LOW |
PL-000061 | 1,880.7 | -0.843 | 91.53 | HIGH |
PL-000062 | 2,673.79 | -0.953 | 96.74 | LOW |
PL-000063 | 2,882.99 | -0.928 | 88.16 | LOW |
PL-000064 | 3,049.85 | -0.866 | 94.83 | LOW |
PL-000065 | 402.44 | -1.153 | 88.15 | HIGH |
PL-000066 | 1,476.63 | -1.013 | 76.44 | MEDIUM |
PL-000067 | 4,819.03 | -1.131 | 73.6 | LOW |
PL-000068 | 1,699.42 | -0.908 | 76.22 | LOW |
PL-000069 | 4,859.58 | -1.023 | 65.63 | LOW |
PL-000070 | 846.26 | -1.164 | 73.25 | MEDIUM |
PL-000071 | 1,933.67 | -0.907 | 90.74 | LOW |
PL-000072 | 4,796.07 | -0.728 | 66.79 | HIGH |
PL-000073 | 3,631.73 | -0.823 | 67.46 | HIGH |
PL-000074 | 596.44 | -0.851 | 97.49 | HIGH |
PL-000075 | 2,807.04 | -1.072 | 63.24 | LOW |
PL-000076 | 4,188.77 | -1.193 | 84.46 | LOW |
PL-000077 | 864.73 | -1.187 | 76.21 | MEDIUM |
PL-000078 | 2,325.91 | -0.917 | 93.28 | LOW |
PL-000079 | 1,370.39 | -0.732 | 86.78 | HIGH |
PL-000080 | 3,282.42 | -1.133 | 77.06 | LOW |
PL-000081 | 3,099.32 | -0.971 | 67.57 | LOW |
PL-000082 | 378.93 | -0.807 | 87.38 | HIGH |
PL-000083 | 2,133.71 | -1.158 | 98.61 | LOW |
PL-000084 | 935.32 | -0.71 | 92.96 | HIGH |
PL-000085 | 4,627.59 | -1 | 78.66 | LOW |
PL-000086 | 2,957.16 | -0.715 | 66.95 | HIGH |
PL-000087 | 443.92 | -1.114 | 77.98 | HIGH |
PL-000088 | 3,818.34 | -0.99 | 97.22 | LOW |
PL-000089 | 3,531.07 | -0.7 | 73.88 | HIGH |
PL-000090 | 1,437.22 | -0.935 | 60.63 | MEDIUM |
PL-000091 | 3,490.56 | -0.753 | 93.18 | HIGH |
PL-000092 | 3,397.57 | -0.708 | 75.04 | HIGH |
PL-000093 | 2,948.45 | -0.894 | 83.56 | LOW |
PL-000094 | 1,780.03 | -0.882 | 64.42 | LOW |
PL-000095 | 2,217.29 | -0.835 | 69.66 | HIGH |
PL-000096 | 1,775.14 | -1.136 | 74.38 | LOW |
PL-000097 | 491.4 | -1.155 | 95.35 | HIGH |
PL-000098 | 1,749.51 | -0.792 | 78.82 | HIGH |
PL-000099 | 4,450.88 | -0.989 | 91.3 | LOW |
- What's in the box
- Calibration: industry-anchored, honestly reported
- Schema highlights
- Suggested use cases
- Loading
- Reproducibility
- Honest disclosure of sample-scale limitations
- Where physics IS strong (use these for ML)
- Cross-references to other XpertSystems OIL SKUs
- Full product
- Citation
- Generation details
OIL-027 — Synthetic Pipeline Corrosion Dataset (Sample)
SKU: OIL027-SAMPLE · Vertical: Oil & Gas / Midstream Pipeline Integrity
License: CC-BY-NC-4.0 (sample) · Schema version: oil027.v1
Sample version: 1.0.0 · Default seed: 42
A free, schema-identical preview of XpertSystems.ai's enterprise pipeline corrosion dataset for corrosion rate prediction, internal/external corrosion classification, cathodic protection optimization, pitting analysis, and integrity grade ML. The sample covers 1,300 pipelines across 4 environments (Onshore / Offshore / Subsea / Arctic) and 3 API 5L material grades, with 245,045 rows linked across 5 tables spanning 180 days of daily corrosion progression.
OIL-027 specializes in the corrosion-physics layer of pipeline integrity
management — implementing NACE SP0169 cathodic protection threshold
gating (the -0.85V criterion) and de Waard-Milliams water-cut corrosion
coupling in a 5-table relational schema joinable on pipeline_id.
What's in the box
| File | Rows | Cols | Description |
|---|---|---|---|
pipeline_assets.csv |
1,300 | 9 | Pipeline catalog: 3 API 5L material grades (X52, X65, X70) × 4 environments × diameter + wall thickness + age + CO2 + H2S + water cut |
internal_corrosion.csv |
234,000 | 6 | 180-day daily corrosion progression: rate (de Waard-Milliams water-cut coupling), accumulated wall loss, temperature, pressure |
external_corrosion.csv |
1,300 | 5 | NACE SP0169 cathodic protection: soil resistivity per NACE TM0497, CP voltage, coating health, 3-class risk (LOW/MEDIUM/HIGH) physics-gated |
pitting_profiles.csv |
7,145 | 5 | Per-pipeline pit catalog: depth + width + growth rate (avg 5.5 pits per pipeline per ASTM G46 pit density) |
integrity_labels.csv |
1,300 | 4 | Per-pipeline 4-class integrity grade (LOW/MEDIUM/HIGH/CRITICAL) + risk score + remaining life days |
Total: 245,045 rows across 5 CSVs, ~13.2 MB on disk.
Calibration: industry-anchored, honestly reported
Validation uses a 10-metric scorecard with targets sourced exclusively to named industry standards: NACE SP0169 (External Corrosion Control of Buried Pipelines — Cathodic Protection -0.85V Criterion), NACE MR0175 / ISO 15156 (Sulfide Stress Cracking in H2S Service), NACE TM0497 (Soil Resistivity Measurement), de Waard & Milliams (1991) CO2 Corrosion Prediction Model, API 510 (Pressure Vessel Inspection Code), API 570 (Piping Inspection Code), API 580/581 (Risk-Based Inspection), API 5L (Line Pipe), ASME B31.4 (Liquid Hydrocarbon Pipelines), ASME B31.8 (Gas Transmission Pipelines), PHMSA 49 CFR 195 (Hazardous Liquid Pipeline Safety), NACE SP0502 (Pipeline External Corrosion Direct Assessment), API 1163 (In-Line Inspection Systems), ASTM G1 (Cleaning Corrosion Specimens), ASTM G46 (Pit Density Standard Charts).
Sample run (seed 42, n_pipelines=1300, days=180):
| # | Metric | Observed | Target | Tolerance | Status | Source |
|---|---|---|---|---|---|---|
| 1 | avg diameter in | 25.1554 | 25.0 | ±6.0 | ✓ PASS | API 5L Line Pipe specification + PHMSA pipeline inventory — mean diameter for mixed transmission portfolio (8-42 inch range; 25 inch median for crude/gas mainline operations) |
| 2 | avg wall thickness mm | 16.5198 | 16.5 | ±4.0 | ✓ PASS | API 5L + ASME B31.4/B31.8 design wall thickness — typical wall thickness for transmission pipelines (8-25 mm range; 16-17 mm mid-portfolio for 600-1500 psi MAOP) |
| 3 | avg corrosion rate mpy | 6.3514 | 6.0 | ±3.0 | ✓ PASS | API 570 (Piping Inspection Code) + NACE TM0274 — mean corrosion rate for mixed pipeline portfolio with moderate water cut (2-10 mpy normal; >15 mpy triggers RBI high-risk classification per API 581) |
| 4 | avg cp voltage v | -0.9440 | -0.95 | ±0.2 | ✓ PASS | NACE SP0169 (External Corrosion Control) — typical cathodic protection potential for buried pipelines (-0.85V vs Cu/CuSO4 minimum protection criterion; -1.0 to -1.2V for fully-protected pipelines) |
| 5 | avg soil resistivity ohm cm | 2567.9367 | 2500.0 | ±1000.0 | ✓ PASS | NACE TM0497 (Soil Resistivity Measurement) + NACE SP0169 — typical soil resistivity for mixed onshore/offshore/subsea/arctic portfolio (100-5000 ohm-cm range; <1000 ohm-cm is highly corrosive per NACE classification) |
| 6 | avg coating health pct | 79.8284 | 80.0 | ±8.0 | ✓ PASS | API 1163 (In-Line Inspection Systems) + NACE SP0502 (External Corrosion Direct Assessment) — typical coating health for mid-life transmission pipelines (70-90% typical; FBE coating degrades 2-4% per decade) |
| 7 | water cut corrosion pearson correlation | 0.3275 | 0.3 | ±0.12 | ✓ PASS | de Waard & Milliams (1991) CO2 corrosion prediction model — expected positive correlation between water cut and corrosion rate (generator formula: rate = base × temp_factor × (1 + water_cut/100); within-pipeline coupling deterministic, cross-pipeline base-rate variation dilutes global correlation). Validates water-conditioned corrosion physics. |
| 8 | cp voltage external risk pearson correlation | 0.6422 | 0.55 | ±0.15 | ✓ PASS | NACE SP0169 -0.85V cathodic protection criterion — expected strong positive correlation between CP voltage (less negative) and external corrosion risk numeric (LOW=0/MEDIUM=1/HIGH=2). Validates generator's physics-gated risk classification per NACE. |
| 9 | soil resistivity external risk pearson correlation | -0.3809 | -0.3 | ±0.15 | ✓ PASS | NACE SP0169 + NACE TM0497 soil corrosivity classification — expected inverse correlation between soil resistivity and external corrosion risk numeric (low resistivity soil drives high corrosion). Validates generator's NACE-anchored gating. |
| 10 | material grade diversity entropy | 0.9998 | 0.96 | ±0.04 | ✓ PASS | API 5L Line Pipe material grade taxonomy (X52, X65, X70) — 3-class diversity benchmark for mixed transmission portfolio per API 5L specification + PHMSA pipeline inventory, normalized Shannon entropy |
Overall: 100.0/100 — Grade A+ (10 PASS · 0 MARGINAL · 0 FAIL of 10 metrics)
Schema highlights
pipeline_assets.csv — 3 × 4 portfolio matrix per API 5L + PHMSA:
| Material Grade | Use Case | Specified Min Yield Strength (psi) |
|---|---|---|
| API 5L X52 | Older transmission / gathering | 52,000 |
| API 5L X65 | Modern transmission mainline | 65,000 |
| API 5L X70 | High-pressure transmission | 70,000 |
4 environment classes per NACE SP0169 classification:
| Environment | Corrosion Drivers |
|---|---|
| Onshore | Soil chemistry, stray current, AC interference |
| Offshore | Splash zone, marine atmosphere, oxygen ingress |
| Subsea | Cathodic protection mandatory, biofouling |
| Arctic | Permafrost cycling, ice gouging, low temperature stress |
internal_corrosion.csv — de Waard-Milliams (1991) water-cut coupling:
corrosion_rate_mpy = base_rate × temp_factor × (1 + water_cut/100) wall_loss_pct = corrosion_rate × day/365 × 0.1 (deterministic accumulation)
The sample's water cut ↔ corrosion rate Pearson correlation is r ≈ +0.33 — moderate positive coupling validates de Waard-Milliams water-cut physics (within-pipeline coupling is deterministic; cross-pipeline base- rate variability dilutes the global correlation).
external_corrosion.csv — NACE SP0169 -0.85V cathodic protection
threshold gating:
external_corrosion_risk = HIGH if (soil_resistivity < 800 OR cp_voltage > -0.85) external_corrosion_risk = MEDIUM if soil_resistivity < 1500 external_corrosion_risk = LOW otherwise
The sample's CP voltage ↔ external risk Pearson correlation is r ≈ +0.64 — strong positive coupling validates NACE SP0169 -0.85V cathodic protection criterion physics.
Risk class distribution: 49% LOW / 10% MEDIUM / 41% HIGH — meaningful 3-class diversity for ML class-balancing (better than degenerate single-class outcomes).
pitting_profiles.csv — per-pipeline pit catalog per ASTM G46
pit density standard:
n_pits_per_pipeline = U(2, 9) pit_depth_mm = U(0.5, 12) pit_width_mm = U(1, 25) growth_rate_mm_year = U(0.05, 1.5)
Suggested use cases
- Internal corrosion rate regression — predict
corrosion_rate_mpyfrom water cut + environment features per de Waard-Milliams (1991). Strong physics signal within-pipeline; moderate global. - External corrosion risk classification — 3-class classifier on
external_corrosion_riskfrom soil resistivity + CP voltage + coating features per NACE SP0169. Strong physics: CP↔risk r ≈ +0.64. - Wall loss time-series forecasting — predict accumulated
wall_loss_pctover 180-day horizon per API 510 remaining life calculations. - Pit growth rate regression — predict
growth_rate_mm_yearfrom pit depth + width features per ASTM G46. - Cathodic protection optimization — predict CP voltage thresholds from soil resistivity + coating health features per NACE SP0169.
- Integrity grade classification — 4-class classifier on
integrity_grade(LOW/MEDIUM/HIGH/CRITICAL). Note: integrity labels in this sample are not feature-coupled (see Honest Disclosure §1). - Multi-table relational ML — entity-resolution learning across
the 5 tables via
pipeline_id. Join asset metadata with corrosion time-series for feature-rich ML pipelines.
Loading
from datasets import load_dataset
ds = load_dataset("xpertsystems/oil027-sample", data_files="internal_corrosion.csv")
print(ds["train"][0])
Or with pandas:
import pandas as pd
assets = pd.read_csv("hf://datasets/xpertsystems/oil027-sample/pipeline_assets.csv")
internal = pd.read_csv("hf://datasets/xpertsystems/oil027-sample/internal_corrosion.csv")
external = pd.read_csv("hf://datasets/xpertsystems/oil027-sample/external_corrosion.csv")
pits = pd.read_csv("hf://datasets/xpertsystems/oil027-sample/pitting_profiles.csv")
labels = pd.read_csv("hf://datasets/xpertsystems/oil027-sample/integrity_labels.csv")
# Multi-table corrosion feature engineering:
corr_avg = internal.groupby("pipeline_id")["corrosion_rate_mpy"].mean().reset_index()
joined = (assets
.merge(corr_avg, on="pipeline_id")
.merge(external, on="pipeline_id")
.merge(labels, on="pipeline_id"))
# Now you have water_cut + corrosion_rate + CP voltage + integrity_grade in one frame
Reproducibility
All generation is deterministic via the integer seed parameter (driving
np.random.seed and random.seed). A seed sweep across [42, 7, 123, 2024, 99, 1] confirms Grade A+ on every seed in this sample.
Honest disclosure of sample-scale limitations
This is a sample product calibrated for pipeline corrosion ML research, not for live operational decisions. Several important limitations should be understood before use:
Integrity grade is NOT feature-coupled. The 4-class
integrity_gradelabel is sampled fromnp.random.uniform(0, 1)with threshold gates, without any coupling to corrosion_rate, wall_loss, pitting depth, or external_corrosion_risk. The sample's integrity_grade↔corrosion_rate correlation is r ≈ +0.04 — essentially noise. For integrity ML, train on labels you derive yourself from the physics features (e.g.,wall_loss_pct > 30% → CRITICAL) rather than the provided integrity_grade. The full product (v1.1) will implement feature-coupled integrity grading per API 580 RBI methodology.Remaining life is NOT physics-computed. The
remaining_life_daysfield is sampled fromnp.random.uniform(180, 7200)and is not computed from corrosion rate or wall loss per API 510 RBI. Real remaining life = (current_wall_thickness - retirement_limit) / corrosion_rate. For RUL ML, derive remaining life from internal_ corrosion features rather than using the provided field.CO2 and H2S do not drive corrosion rate. The pipeline_assets table includes
co2_pctandh2s_ppmfields, but neither is used in the corrosion rate calculation. Real CO2 corrosion follows de Waard 1991rate ∝ partial_pressure_CO2^0.67 × temp^1.41and real H2S service triggers NACE MR0175 / ISO 15156 sulfide stress cracking thresholds. CO2 ↔ corrosion rate r ≈ +0.08 in sample (not de Waard physics). Full product v1.1 will implement de Waard 1991 CO2 corrosion model and MR0175 H2S service classifications.Pitting growth rate is NOT coupled to environment. Pit growth rates are uniformly sampled
U(0.05, 1.5) mm/yearwithout coupling to internal corrosion rate, environment class, or external_corrosion_risk. Real pit growth follows ASTM G46 + environment-specific kinetics. For pit-growth ML, filter to environment subsets and treat growth rate as residual variance rather than predictable from physics.Temperature varies only by noise factor. The
temperature_ffield in internal_corrosion is sampled per-rowU(70, 180)without conditioning on pipeline service or seasonality. Real pipeline temperature tracks ambient + fluid-source temperature with strong seasonal cycles. For temperature-conditioned corrosion ML, use temperature as a noisy random feature, not a true operational signal.Pressure is independent of MAOP. The
pressure_psifield is sampledU(500, 2200)without coupling to material grade or design MAOP. Real operating pressures are typically 60-80% of MAOP. For pressure-conditioned corrosion ML, filter to realistic MAOP-conditioned operating ranges.Coating health is not age-coupled. The
coating_health_pctfield is sampledU(60, 100)without conditioning on pipeline age. Real FBE coating health degrades 2-4% per decade per NACE SP0502 direct assessment. For coating-degradation ML, the sample is uniform-prior over coating quality rather than age-conditioned.Pipeline age is independent of all features. The
pipeline_age_yearsfield is sampledU(1, 40)without coupling to material grade (older pipelines were X42/X52, modern are X65/X70 per API 5L history). For age-conditioned ML, expect age to be uncoupled from material choice at sample scale.
Where physics IS strong (use these for ML)
Three coupling signals in this sample are physically valid and ML-useful:
| Coupling | Pearson r | Physics | Use For |
|---|---|---|---|
| Water cut → corrosion rate | +0.33 | de Waard-Milliams (1991) water-cut formula | Within-pipeline corrosion ML |
| CP voltage → external risk | +0.64 | NACE SP0169 -0.85V criterion | External corrosion risk classification |
| Soil resistivity → external risk | -0.38 | NACE TM0497 + SP0169 soil corrosivity | External corrosion risk classification |
| Wall loss accumulation | deterministic | Time-integrated corrosion rate | RUL forecasting |
Cross-references to other XpertSystems OIL SKUs
This SKU is the fourth midstream SKU in the catalog — specializing in corrosion physics complementing the leak detection trilogy:
| SKU | Layer | Focus |
|---|---|---|
| OIL-015 | Midstream | Pipeline flow assurance (wax / hydrate / asphaltene threshold gating) |
| OIL-024 | Midstream | Full pipeline hydraulics + SCADA + 15 transient events |
| OIL-025 | Midstream | Leak detection + rupture prediction + acoustic + CPM |
| OIL-027 | Midstream | Corrosion progression + cathodic protection + pitting + integrity (this SKU) |
OIL-027 vs OIL-025: OIL-025 simulates event-centric leak/rupture detection with acoustic + pressure wave physics. OIL-027 simulates continuous corrosion progression (180-day time series) driving the underlying integrity degradation. Use OIL-025 for leak detection ML, OIL-027 for corrosion progression + cathodic protection ML.
OIL-027 vs OIL-022: OIL-022 simulates refinery vessel/piping corrosion (RBI + inspection findings). OIL-027 simulates pipeline external + internal corrosion with cathodic protection physics specific to buried/subsea pipelines. Use OIL-022 for vessel inspection planning, OIL-027 for pipeline corrosion ML.
Full product
The full OIL-027 dataset ships at 15,000 pipelines × 730-day daily corrosion progression (prod mode) producing tens of millions of rows with feature-coupled integrity grades per API 580 RBI methodology, physics-computed remaining life per API 510, de Waard 1991 CO2 corrosion model with partial-pressure conditioning, NACE MR0175 / ISO 15156 H2S service classifications, environment-conditioned pit growth kinetics per ASTM G46, age-coupled coating degradation per NACE SP0502, and MAOP-conditioned operating pressures — licensed commercially. Contact XpertSystems.ai for licensing terms.
📧 pradeep@xpertsystems.ai 🌐 https://xpertsystems.ai
Citation
@dataset{xpertsystems_oil027_sample_2026,
title = {OIL-027: Synthetic Pipeline Corrosion Dataset (Sample)},
author = {XpertSystems.ai},
year = {2026},
url = {https://huggingface.co/datasets/xpertsystems/oil027-sample}
}
Generation details
- Sample version : 1.0.0
- Random seed : 42
- Generated : 2026-05-23 00:15:44 UTC
- Pipelines : 1300
- Simulation days : 180 (daily corrosion progression per pipeline)
- Material grades : 3 (API 5L X52, X65, X70)
- Environments : 4 (Onshore, Offshore, Subsea, Arctic)
- Risk classes : 3 (LOW, MEDIUM, HIGH) per NACE SP0169
- Integrity grades : 4 (LOW, MEDIUM, HIGH, CRITICAL) — sample-scale random
- Calibration basis : NACE SP0169, NACE MR0175 / ISO 15156, NACE TM0497, de Waard & Milliams (1991), API 510, API 570, API 580/581, API 5L, ASME B31.4/B31.8, PHMSA 49 CFR 195, NACE SP0502, API 1163, ASTM G1, ASTM G46
- Overall validation: 100.0/100 — Grade A+
- Downloads last month
- 29