label listlengths 1 5 | anomalyIndex listlengths 30 5.46k |
|---|---|
[
{
"B": "273"
}
] | [
1418956,
1321048,
1325205,
1433542,
1320069,
1372105,
1389025,
1193975,
1481066,
1186423,
1087363,
1320276,
1422113,
1062588,
1177966,
1082767,
1322993,
1135355,
1025669,
1438897,
1123379,
1346727,
1371525,
1389789,
1371923,
1166553,
1038991,
1467310,
1693947,... |
[
{
"B": "621"
}
] | [
1204018,
1136417,
1151317,
1784747,
3402143,
1586546,
1686482,
1577400,
3437471,
960996,
3422536,
1734908,
1158188,
1187786,
1183244,
1678023,
1449573,
1525362,
1371678,
1630157,
1761382,
1621119,
997326,
1104465,
1492326,
1597326,
1774687,
1757134,
1562789,
... |
[
{
"A": "280"
}
] | [
2144405,
2309686,
3899731,
1950666,
25876,
4147516,
3049160,
4197750,
2044704,
3052319,
2320083,
2303544,
2684069,
2619021,
2119885,
4088843,
2351154,
1998797,
26144,
2573346,
30819,
2461246,
4195356,
3123563,
2083091,
3245382,
4044116,
1948119,
3947373,
198... |
[
{
"A": "8"
}
] | [
2050198,
2323256,
1807637,
1804273,
2815554,
2383437,
2962689,
2581141,
3491516,
2423600,
2446631,
4031847,
4175153,
3036247,
4230543,
3203681,
2111132,
2295965,
2077942,
2473251,
4081894,
2849167,
3140305,
1729893,
4249220,
2396210,
4264416,
2660269,
3906981,... |
[
{
"B": "701"
},
{
"A": "428"
},
{
"A": "81"
},
{
"B": "798"
}
] | [
3480467,
2984622,
2063568,
4203060,
2384616,
3999383,
4042488,
3199686,
4141619,
2641465,
1106,
1871289,
1900204,
2697452,
2946847,
3986599,
3830443,
3031302,
1900263,
2867205,
2347181,
2725933,
2174163,
2878908,
2186198,
3237500,
2750811,
3967291,
3288376,
... |
[
{
"A": "354"
},
{
"A": "4706"
},
{
"A": "428",
"B": "128"
},
{
"B": "701"
}
] | [
3202833,
2663140,
2599604,
2607462,
2505476,
4151802,
54039,
2996780,
2624076,
2643754,
2151203,
2357595,
2173696,
4095517,
3886783,
3098153,
2738141,
2612433,
2354848,
4165061,
2543890,
3241334,
4004715,
2036819,
24041,
2477047,
2226426,
2666090,
2102547,
4... |
[
{
"B": "273"
}
] | [
1346727,
1371525,
1333825,
1382296,
3420957,
3393967,
1480116,
966404,
1166553,
977630,
1038991,
1648002,
973986,
1768909,
1255417,
958211,
1320924,
1480123,
1130134,
1382303,
3387324,
1126244,
1070536,
1349232,
1089420,
1437903,
1555576,
1480125,
1650830,
3... |
[
{
"A": "81"
},
{
"D": "159"
},
{
"B": "710"
},
{
"B": "145"
}
] | [
3825060,
2194258,
3156315,
2444038,
4052591,
2574492,
2392383,
2281342,
2776097,
2404929,
2803208,
3802179,
4187196,
2260836,
2313782,
3222688,
2606612,
2641465,
3039971,
1057207,
3992282,
1970639,
2280336,
4231968,
1912622,
2691508,
2070757,
4068751,
2375210,... |
[
{
"A": "3546"
},
{
"B": "1407"
}
] | [
2373767,
4215196,
1809794,
3555524,
2961972,
2366841,
2787996,
2413500,
1800422,
1996539,
2586800,
1991981,
4098249,
2662409,
1959783,
696,
3518588,
2352460,
1922899,
2475749,
3520264,
2095902,
2161483,
2053476,
2281821,
1960918,
2900242,
2270636,
1963137,
2... |
[
{
"A": "66"
},
{
"A": "3546"
}
] | [
2053950,
2508205,
3449726,
2864659,
2373767,
3559130,
2304484,
4195706,
2961972,
2690075,
1800422,
2570698,
2493000,
2735948,
3518588,
3070072,
4219349,
2518757,
4137256,
2581279,
1930248,
2391329,
2431645,
1907588,
3295885,
4026529,
2400457,
3877805,
2309298,... |
NFC: A Multi-Dimensional Root Cause Localization Dataset
NFC is a benchmark dataset for root cause localization on multi-dimensional data, built from anonymized NFC (Near-Field Communication) transaction records. Each dimension combination carries categorical attributes, and anomalies manifest as unexpected concentrations of records under specific attribute combinations. The task: given a set of anomalous records, identify the attribute combination (e.g., B=273 & D=42) that best explains them.
This dataset was used to evaluate Prism (PRecision-driven Iterative Search for Multi-dimensional root cause localization), a root cause localization algorithm that formulates the problem as a precision–recall joint optimization over attribute-selection weights.
Dataset Structure
| File | Size | Description |
|---|---|---|
df.csv |
~146 MiB | Main data table: 5,135,932 records × 15 categorical dimensions |
label.json |
~6 MB | 100 labeled test cases with ground-truth root causes |
df.csv
- 15 anonymized categorical dimensions, named
AthroughO. - Values are integer-encoded; missing values are left empty (a dedicated missing-value category).
- 0-based row positions serve as record indices (the default
RangeIndexafterpd.read_csv).
Example:
A,B,C,D,E,F,G,H,I,J,K,L,M,N,O
3,3,,,3,3,3,,3,3,3,,,3,3
3,3,,,3,3,3,357,3,3,3,,,3,3
label.json
A JSON array of 100 test cases. Each case contains:
label— the ground-truth root cause, a list of attribute combinations of the form{"column": "value"}(values are the integer codes fromdf.csv):[{"B": "273"}]anomalyIndex— row indices intodf.csvof the records flagged as anomalous in this case (typically a few hundred indices).
Task Definition
For each test case, given anomalyIndex, a method must predict one or more root causes as attribute combinations. Predictions are compared against the ground-truth label:
- Precision — fraction of predicted combinations that are true root causes
- Recall — fraction of true root causes that are predicted
- F1 — harmonic mean
Aggregating TP/FP/FN across all 100 cases yields micro-averaged Precision/Recall/F1.
Quick Start
import json
import pandas as pd
from huggingface_hub import hf_hub_download
df = pd.read_csv(
hf_hub_download("Ysqq/NFC", "df.csv", repo_type="dataset")
)
with open(
hf_hub_download("Ysqq/NFC", "label.json", repo_type="dataset")
) as f:
cases = json.load(f)
case = cases[0]
anomaly_rows = df.iloc[case["anomalyIndex"]]
print(f"Ground-truth root cause: {case['label']}")
A reference implementation (the Prism algorithm with a statistical noise-filtering variant, PrismNFC) is available in the accompanying code repository.
Citation
If you use this dataset in your research, please cite the associated Prism paper (citation to be added upon publication).
- Downloads last month
- 21