Introducing Five Machine Learning Benchmark Datasets from BhinnekaAI

Hi everyone! :waving_hand:

I’ve published five tabular datasets under BhinnekaAI on Hugging Face, covering different domains and anomaly detection challenges.

Rather than focusing only on obvious outliers, these datasets are designed around more subtle patterns where anomalous samples may remain within normal feature ranges but violate deeper relationships in the data.

:bar_chart: The Datasets

1. FRD — Credit Card Fraud Simulator
:credit_card: Explore the dataset

Simulates credit card transactions with fraudulent samples hidden within normal feature ranges. The challenge is identifying broken multivariate relationships between transaction amounts, account balances, and daily activity.

2. NET — Network Intrusion Logs
:globe_with_meridians: Explore the dataset

Represents network traffic with multiple clusters of normal activity. Simulated cyberattacks are placed near narrow gaps between normal clusters, challenging models to detect subtle spatial and local-density anomalies.

3. MED — Patient Biomarker Screening
:hospital: Explore the dataset

Models multivariate blood biomarker profiles with normal covariance structures. Anomalies are represented through changes in the orientation of the underlying multivariate structure.

4. IOT — Sensor Anomaly
:satellite_antenna: Explore the dataset

Simulates industrial machine telemetry with nonlinear harmonic patterns. Mechanical anomalies are introduced through phase shifts while keeping individual feature values within their normal amplitude ranges.

5. LOG — Supply Chain Inventory Audit
:package: Explore the dataset

Represents high-dimensional logistics records with irrelevant noise. Hidden audit discrepancies, such as inventory inconsistencies and cost inflation, challenge models to identify meaningful anomalies among distracting features.

:bullseye: Why These Datasets?

The goal is to explore how machine learning models handle different types of subtle anomalies across financial, cybersecurity, biological, industrial, and logistical data.

These datasets may be useful for experimenting with unsupervised anomaly detection, comparing baseline algorithms, and studying the limitations of different scoring approaches.

I’d appreciate feedback from the community:

  • Which dataset presents the most interesting anomaly detection challenge?

  • Which unsupervised methods would you recommend benchmarking against these datasets?

  • What additional evaluation scenarios would make this collection more useful for research?

Explore the full collection:
:hugs: BhinnekaAI (BhinnekaAI)

Thanks for checking them out! Feedback and contributions are welcome.

#MachineLearning #AnomalyDetection :hugs:Datasets #OpenScience

For now, I tried a few small CPU-only checks using the public datasets:


Short answers to the three questions

1. Which dataset is the most interesting anomaly-detection challenge?

My first choice would be LOG / Supply Chain Inventory Audit, with NET / Network Intrusion Logs as a useful contrast.

On one held-out generator-seed pair, five general-purpose scores gave LOG ROC-AUC around 0.50–0.51. Yet a separate examination revealed a very precise relation concentrated in labeled anomalies. The contrast raises a useful question: what kind of structure can a detector recognize? Because the relation was investigated partly after looking at labels, it is an explanatory observation, not a blind-unsupervised benchmark result.

NET offers a useful contrast. Its attacks are described as lying near gaps between normal clusters. Fitting a two-component Gaussian mixture to each feature and averaging negative log densities gave held-out ROC-AUC/AP of 1.000/1.000; individual features also ranked anomalies well. An observation can lie within an ordinary numeric range but in a low-density valley of one feature. This suggests a control for separating marginal multimodality from cross-feature dependence, without diminishing NET’s value.

The others complement them: FRD and MED help contrast joint and marginal detection, while IOT reveals sensitivity to the training population. I would not infer an overall difficulty ranking.

2. Which unsupervised methods would be worth benchmarking?

I would compare a few genuinely different definitions of “unusual”:

  • Marginal density: separate one-dimensional Gaussian mixtures, or a comparable histogram/density baseline. This catches gaps within a feature distribution, not only large values.
  • Joint dependence: a regularized covariance/Mahalanobis score, with PCA reconstruction as an optional related-but-different control. This tests whether combinations of individually ordinary values are improbable.
  • Local geometry: LOF or a KNN-distance score, with the neighborhood size and fitting regime stated explicitly.
  • Isolation: Isolation Forest as a useful contrasting family, especially if it is already part of the published comparisons.
  • Optional structured diagnostic for LOG: a predeclared relation/residual-search family. Its search rule, tolerance, and score orientation would need to be fixed before a fresh held-out evaluation. A relation selected after seeing labels belongs in explanatory analysis, not the unsupervised leaderboard.

PyOD and ADBench offer more implementations. But one baseline per mechanism may be more illuminating than many similar scores. Where the published HDS comparisons already cover Isolation Forest or LOF, I would build on those results and prioritize a missing contrast, especially marginal density versus joint dependence.

3. What additional evaluation scenarios would be most useful?

My preferred default is modest:

  1. Use different generator seeds for fit and evaluation; identify the dataset revision and files.
  2. State the training regime: mixed unlabeled observations, or a reference set selected to contain known-normal examples. Those are different tasks even if anomaly labels are not directly passed to a detector.
  3. Report ROC-AUC and average precision (AP) together, with test anomaly prevalence, feature set, preprocessing, and score direction. They may favor different methods.
  4. Include a marginal-versus-joint control. It helps identify whether the reported difficulty comes from one-dimensional rarity, joint inconsistency, neighborhood geometry, or a more specialized relation.

Optional extensions include an IOT LOF training-size/neighbor sweep, a LOG feature-role ablation, or a controlled NET cluster-gap perturbation. None is a prerequisite for making the existing collection useful.

A small default evaluation path

For low-cost information gain, I would start with NET and MED, then examine LOG as the more specialized case. This is not a ranking of research value.

On NET, put per-feature two-component density beside a multivariate score. If the former works, the anomalous rows are at least partly distinguishable from each coordinate’s density under that protocol. On MED, run the same comparison against regularized joint covariance and LOF; ask what dependence information helps. Then try LOG with the generic controls and a separately labeled structural diagnostic, so a low generic ROC-AUC is not mistaken for an absence of any signal.

A compact table of dataset / train regime / train seed / test seed / feature set / method / ROC-AUC / AP, plus one interpretation per dataset, would be enough to start. I would add targeted perturbations only when they answer a clear question.

The central distinction: near the mean, low marginal density, unlikely feature combination, and rare exact relation are different anomaly definitions. Comparing them explicitly would help interpret the scores.

What I observed in the CPU check

I used the publicly available synthetic CSVs, with seed 11 / 5,000 rows for fitting and seed 42 / 1,000 different rows for held-out scoring, for all five datasets. Each inspected file had 10% labeled anomalies. The primary models were fitted to the mixed training features without using the training labels; training-only preprocessing was used, with labels reserved for final metrics. The run used CPU, Python 3.13.18, and scikit-learn 1.6.1. These are exploratory fixed settings, not a reproduction of the author’s evaluation pipeline or a multi-seed performance study.

Dataset Selected held-out observations Why they are interesting
FRD LOF ROC-AUC 0.828; shrunk Mahalanobis 0.767, with AP 0.533 versus LOF 0.365 The method preferred by ROC-AUC differs from the one preferred by AP.
NET Featurewise two-component GMM ROC-AUC/AP 1.000/1.000; individual feature ROC-AUC roughly 0.975–1.000 Marginal density alone is informative in these files.
MED LOF ROC-AUC 0.898; shrunk Mahalanobis 0.873 (AP 0.695); featurewise GMM 0.709 Tested joint/local scores outperform the chosen independent-density reference.
IOT Isolation Forest ROC-AUC 0.939; LOF with 5,000 mixed training rows 0.546 The fitted reference population can matter greatly.
LOG Five generic scores ROC-AUC 0.501–0.513 A useful place to separate general-purpose scoring from structural diagnostics.

These are results on specific synthetic CSVs and fixed settings, not conclusions about all generator seeds, universal model rankings, or real-world deployment. A low score can be informative for a benchmark designed to expose limitations.

A small clarification for reuse

The LOG card describes five semantic features, whereas the CSV variants I inspected have 15 numeric feat_* feature columns plus a label. A mapping or short note explaining whether these are transformations, distractors, or another representation would make feature ablations interpretable. Column positions alone do not establish their roles.

In all ten files, normal rows preceded anomalous rows. A future user should not split these CSVs into contiguous chunks without checking labels or order; this is not a claim about the author’s own evaluation. All ten files had 10% anomalies, so I would record prevalence per file rather than assume it from the general description.

The longer notes below explain the measurements, practical branches, and limits in case they help someone reproduce or extend the comparison.

Methods, complete CPU result table, and metric interpretation

What was actually compared

I used five fixed scoring constructions on the same seed pair:

  1. Maximum absolute standardized feature value, a deliberately weak marginal tail reference.
  2. Mean negative log density from separately fitted one-dimensional two-component Gaussian mixtures.
  3. Mahalanobis-type squared distance using Ledoit-Wolf covariance shrinkage.
  4. Isolation Forest, scored with the fixed convention that higher means more anomalous.
  5. Local Outlier Factor (n_neighbors=25, novelty=True) scoring the unseen seed 42 rows.

Model names alone are insufficient: independent 1D mixtures differ from a multivariate GMM, covariance needs an estimator, and LOF has distinct training-set and unseen-sample APIs. All scores here were oriented so larger meant more anomalous, with no tuning against held-out labels.

The scikit-learn guide distinguishes LOF scoring on training rows from novelty=True scoring on unseen rows. I used the latter API to score a held-out seed, despite fitting on mixed data; that does not make this a clean-reference novelty-detection study. Score negations were fixed before examining test metrics.

Complete selected score table

Every entry is ROC-AUC / AP, rounded to three decimals. These are point results on one seed pair, not confidence intervals.

Dataset Max abs z 1D 2-GMM mean Shrunk Mahalanobis Isolation Forest LOF novelty, k=25
FRD 0.487 / 0.096 0.510 / 0.106 0.767 / 0.533 0.597 / 0.145 0.828 / 0.365
NET 0.000 / 0.052 1.000 / 1.000 0.319 / 0.068 0.958 / 0.562 0.274 / 0.064
MED 0.707 / 0.334 0.709 / 0.303 0.873 / 0.695 0.770 / 0.335 0.898 / 0.614
IOT 0.538 / 0.139 0.537 / 0.131 0.577 / 0.219 0.939 / 0.667 0.546 / 0.143
LOG 0.501 / 0.105 0.512 / 0.139 0.513 / 0.142 0.509 / 0.148 0.503 / 0.135

The NET z-score ROC-AUC of 0.000 means that, under this predeclared tail score, anomalous rows were ranked as unusually central, not extreme. Reversing the sign after seeing test labels would be label-guided optimization. A mixture-density score instead searches for low-density valleys with its anomaly direction set in advance.

Metrics and prevalence

ROC-AUC evaluates positive-negative ranking without selecting an alert threshold. AP summarizes precision-recall ranking using scikit-learn’s non-interpolated definition. With 10% positives, a random ranking has AP around 0.10. A high ROC-AUC alone does not establish high precision among top-ranked alerts.

AP depends on prevalence, and neither metric chooses a deployment threshold. For a fixed review budget, Precision@k / Recall@k may help, with k set beforehand. Optimizing F1 thresholds on the final test labels would be optimistic; validation data or a fixed operating rule is preferable.

FRD illustrates why reporting both metrics is useful: LOF had the higher ROC-AUC (0.828 versus 0.767), while the covariance score had the higher AP (0.533 versus 0.365). MED shows a related change in ordering. Neither tells us the best production system without specifying costs, prevalence, and decision thresholds.

Training-data regimes are part of the task

My primary comparison used mixed, unlabeled training files with roughly 10% anomalies. A detector trained on a known-normal reference is solving a different problem. Such a reference can be useful as a deliberately constructed control, but if anomaly labels were used to select normal rows, the selection procedure was label-assisted even if labels were never passed to .fit().

Label-free fitting, label-assisted clean-reference selection, and test-label tuning are different regimes. It helps to record where labels enter: selection, preprocessing, hyperparameters, thresholding, or metrics. In my main comparison, labels entered only the final metrics.

Reproducibility boundary

The CPU run collected ten revision-pinned CSVs, with file hashes and an error log showing no acquisition or analysis failures. The dataset links are public inputs, not links to the measured results archive. Exact replication requires the pinned revisions, hashes, settings, and code.

Bootstrapping the held-out rows could assess uncertainty conditional on this test file; independent generator seeds are needed to evaluate seed-to-seed stability.

Five datasets: mechanism-oriented observations and possible follow-ups

LOG: a specialized relationship can be invisible to generic scores

LOG was the most interesting case precisely because a low general-purpose score and a strong particular signal could coexist. On the held-out seed 42 file, maximum absolute z-score, independent two-component density, shrunk covariance, Isolation Forest, and LOF all scored near ROC-AUC 0.5. This does not mean the generator is unlearnable or that other methods will fail; only that these defaults did not separate the labeled rows in this representation.

An exploratory follow-up found the relation

feat_1 approximately equals -(2/3) * feat_0
r(x) = abs(feat_1 + (2/3) * feat_0)

For anomalies in both seeds, r(x) was near machine precision; most normal rows were not that close. Median normal-row residuals were 0.83 (seed 11) and 0.86 (seed 42). Here small, not large, residuals indicated the anomaly class; a conventional “large violation residual” rule would miss this particular signature.

A subsequent local program searched 105 feature pairs without labels in its scoring step and identified the repeated ratio; on seed 42 it separated the labeled anomalies. Crucially, however, the search design was inspired by earlier label-aware inspection. The result is exploratory, not independent evidence for a preselected unsupervised detector, and it is deliberately excluded from the baseline table.

If this direction is interesting, a clean next stage would freeze the rule family before testing genuinely fresh generator configurations: possible pairs, acceptable ratios, support requirements, numeric tolerance, a multiple-testing rule, and whether unusually small or large residuals count as suspicious. One could then introduce controlled jitter. Detection based on machine-precision equality differs from recovering approximate constraints under measurement noise. Both can be worthwhile targets if distinguished explicitly.

It would also help to know what the 15 numeric columns mean relative to the card’s five named fields. Perhaps some represent transformed quantities or distractors; perhaps they come from another layer of the generator. The mapping is unverified, and generic column names do not establish irrelevance. A documented informative-only / distractor-only / full-feature comparison would be meaningful after feature roles are fixed independently of held-out labels. Testing just the first five columns earlier did not establish noise as the cause of weak generic scores.

Whether the precise relation represents an inventory rule, a transformation, or a synthetic marker is still unknown. Generator notes could clarify it. The useful contrast is generic ranking versus structured search, with the origin of the searched rule disclosed.

NET: a cluster gap may already be visible in one feature

The NET description emphasizes clusters of normal traffic and attacks in narrow intervening gaps. The important statistical point is that a value can be near the global mean and still be rare under a multimodal marginal distribution. A global z-score sees the former; a mixture density may see the latter.

For the five named numeric columns, the held-out 1D two-component mixture ROC-AUC values were:

NET feature Held-out ROC-AUC
duration_sec 0.999556
packet_bytes 0.975789
error_rate 0.975267
dest_port_category 0.998744
tcp_flag_anomaly 0.996911

Their mean negative log-density score achieved held-out ROC-AUC/AP 1.000/1.000. The aggregation was fixed without choosing the best feature against test labels. Individual feature values are diagnostics, not five independently validated model selections.

Being inside the observed range is different from having high marginal density. These data show a strong distinction, not proof that dependencies are absent or the true marginals are Gaussian mixtures.

Two optional NET variants could separate these effects: preserve per-feature distributions while changing joint dependencies, or vary the width of a marginal density gap. They test different mechanisms, and I have not established that the existing generator implements both.

Because some feature names suggest categories, the choice of numeric distance is also worth documenting. Numeric CSV fields are enough for a quick baseline, but if dest_port_category or tcp_flag_anomaly are actually encoded categories, distances between code numbers may not have domain meaning. A metadata note and an optional categorical-aware control could clarify this; their current encodings are not, by themselves, evidence of a data bug.

FRD: different metrics can reward different uses of joint information

The FRD description focuses on transaction relationships rather than extreme amounts. On the fixed seed pair, the featurewise density control was near chance at ROC-AUC 0.510, while shrunk covariance reached 0.767 and LOF 0.828. This is consistent with a task where combinations or local structure matter more than independent marginal rarity, but it does not identify the actual transaction rule in the generator.

Shrunk covariance had AP 0.533 versus LOF 0.365, although LOF had higher ROC-AUC. This difference matters for a short review queue and supports reporting both metrics rather than declaring a universal winner.

An optional mechanism-specific test would vary the strength of a transaction inconsistency while keeping each individual field’s numeric range comparable. An explicit business-rule residual could be a helpful domain-informed reference, clearly separated from fully generic unsupervised methods. No generator-level perturbation or business-rule recovery was performed in my CPU check; those are proposals for future controlled variants.

Scaling and field semantics remain relevant: covariance scores and LOF test different structures, and a short generator/preprocessing note would help explain their disagreement without guessing from synthetic numbers.

MED: a good place to test dependence with marginal controls

The MED description explicitly discusses normal biomarker covariance and orientation changes. It is particularly suitable for explaining the difference between per-feature distributions and how the features co-vary. Two distributions can have similar univariate ranges and still differ in covariance structure.

On the held-out data, the independent featurewise GMM scored ROC-AUC/AP 0.709/0.303; shrunk covariance scored 0.873/0.695; LOF scored 0.898/0.614. Thus, for this tested setup, both joint/local approaches added ranking information relative to that particular independent-density reference. The better AUC belonged to LOF, but the higher AP belonged to covariance. Again, the results do not prove that the generator changed only covariance orientation, or that all univariate detectors would perform like this one.

A future controlled variant could preserve individual means, variances, and preferably marginal distributions while changing covariance orientation or dependence strength. That would give a cleaner demonstration of what the joint model detects that an independent model cannot. If the original generator already enforces that, a note documenting the invariant would be enough; otherwise it could be an optional extra scenario.

Global covariance is a linear, often unimodal approximation, not equivalent to a multivariate mixture, PCA reconstruction residual, or nonlinear model. These synthetic screening results concern tabular anomaly ranking, not clinical diagnostic validity.

IOT: the training population can change a local score dramatically

The IOT description refers to nonlinear harmonic patterns and phase shifts. In the seed 11 fit / seed 42 test experiment, Isolation Forest had ROC-AUC/AP 0.939/0.667, while the selected LOF novelty score trained on all 5,000 mixed unlabeled rows had 0.546/0.143. That is a contrast between particular settings, not proof that isolation methods are generally better for sensor anomalies.

A follow-up kept the test file and LOF neighbor count fixed while drawing different-sized, label-blind random subsets of the same 5,000-row mixed training population. Approximate ROC-AUC ranges were:

Mixed training rows LOF ROC-AUC Observed anomalous fraction of sampled training rows
400 0.927–0.970 9–11%
800 0.998–1.000 9.75–12%
1,600 0.9998–1.000 approximately 10.06–10.19%
3,200 0.854–0.868 approximately 9.81–10%
5,000 0.546 10%

Each smaller size had three random subset draws; the 5,000-row set has only one distinct sample. This is not an optimal-size estimate. It is a nonmonotonic effect at n_neighbors=25; similar positive fractions do not identify its cause.

Possible explanations include changing neighbors or reachability distances, coherent anomaly clusters in mixed fitting data, or a mismatch between neighborhood size and group geometry. These are hypotheses, not diagnosed causes. A useful next check would vary training size and n_neighbors independently and inspect distances; any label-assisted known-normal comparison should be identified as such.

Although the description uses harmonic phases, I evaluated tabular rows, not verified time sequences. Temporal baselines and chronology-preserving splits make sense if a documented time index or sequence contract exists; otherwise they would test a different task.

The shared lesson

These are diagnostic axes, not definitive generator labels. A model can exploit signals other than the intended mechanism.

Minimal reproducibility protocol and optional stress tests

For someone repeating the check, I would specify the evaluation contract before adding more models:

  • Pin the dataset revision and record file hashes, generator seed, row count, feature columns, label convention, and positive fraction.
  • Keep fitting and evaluation on distinct generator seeds. Fit scaling, imputation, encoding, or dimensionality reduction only on the training split.
  • State whether fit data are mixed unlabeled or known normal. Avoid training-label selection or test-label parameter tuning without reporting it as a different regime.
  • Define each method’s raw score and higher-is-more-anomalous transformation before seeing held-out labels. Record parameter values, especially LOF neighborhood size and the GMM component/aggregation rules.
  • Compute both ROC-AUC and AP on the same held-out scores. If thresholded metrics are needed, choose thresholds on independent validation data or by a fixed review budget.

A tiny example of the core separation is enough to show the idea; it is illustrative code, not the exact code used to produce my result table:

import pandas as pd
import numpy as np
from sklearn.preprocessing import StandardScaler
from sklearn.mixture import GaussianMixture
from sklearn.metrics import roc_auc_score, average_precision_score

train = pd.read_csv("seed11.csv")
test = pd.read_csv("seed42.csv")
cols = list(train.columns[:-1])
assert cols == list(test.columns[:-1])
X_train = train[cols].to_numpy(dtype=float)
X_test = test[cols].to_numpy(dtype=float)
y_test = test.iloc[:, -1].to_numpy(dtype=int)
scale = StandardScaler().fit(X_train)
a, b = scale.transform(X_train), scale.transform(X_test)
models = [GaussianMixture(n_components=2, reg_covar=1e-4,
          n_init=2, random_state=123).fit(a[:, [j]])
          for j in range(a.shape[1])]
score = np.mean([-m.score_samples(b[:, [j]])
                 for j, m in enumerate(models)], axis=0)
print(roc_auc_score(y_test, score), average_precision_score(y_test, score))

This assumes numeric finite features and a final binary-label column, as in the checked CSVs. It does not handle every possible dataset schema. For LOF on a different held-out seed, use the documented novelty-detection route rather than a training-set fit_predict result. This is a marginal-density control, not a full multivariate GMM.

Optional tests could preserve NET/MED marginals while changing joint dependence, vary LOG distractors after documenting column roles, or sweep IOT training size and neighbors. ADBench provides useful design analogies, not equivalent generators. These extensions can wait until the small comparison is reproducible.

Closing interpretation

My main suggestion is a held-out-seed featurewise-versus-joint comparison, reporting both ROC-AUC and AP. It offers an inexpensive way to show why the five datasets behave differently. LOG could have an optional documented relation/noise branch, and IOT an optional training-population sensitivity branch; neither is required to use the existing datasets.

Useful implementation references include ADBench, PyOD, and scikit-learn’s mixture, covariance, and novelty/outlier guides. These fixed-seed observations are prompts for explaining why scores differ, not a benchmark verdict.