Skip to content

About

Built an AI-driven root-cause analysis system to identify drivers behind unexpected metric changes, combining anomaly detection, statistical hypothesis testing, and LLM reasoning; achieved 95% root-cause identification accuracy across 900+ benchmark scenarios.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

DataSherlock

Automated root-cause analysis for complex datasets.

Dashboards tell you what changed. DataSherlock investigates why.


The problem

Revenue dropped 18% last month.

A human analyst spends hours slicing the data: which region, which product, which segment, which channel, which weeks — and whether any of it is statistically real.

DataSherlock does that investigation automatically and returns evidence-backed hypotheses, each with a confidence score.

Example

Input

Dataset:  e-commerce transactions
Question: "Why did revenue decrease in March?"

Output

Root Cause #1                                    Confidence: 92%
------------------------------------------------------------------
Hypothesis
  Repeat purchases in Region X declined.

Evidence
  Revenue contribution      -14.2%
  Repeat purchase rate      -31%
  Significance              p < 0.01
  Effect size               0.74 (Cohen's d)

Supporting segments
  Category A, Category B, Category C

Every claim is traceable to a statistic. The LLM never invents evidence.

How it works

                User Question
                     │
              Data Profiler
                     │
           Metric Decomposition
                     │
        ┌────────────┼────────────┐
        │            │            │
      Time        Region       Product
        │            │            │
        └────────────┼────────────┘
                     │
             Anomaly Detection
                     │
           Hypothesis Generation
                     │
          Statistical Verification
                     │
              Evidence Ranking
                     │
              LLM Explanation

The statistics are deterministic. The LLM only reads the findings and phrases the explanation — that separation is the whole design.

Pipeline

Stage What it does
Ingestion CSV, Parquet, SQL tables
Profiling Types, distributions, cardinality, missingness, correlations
Decomposition Splits the metric across every dimension, ranks contribution to the change
Anomaly detection z-score, IQR, rolling stats, seasonal decomposition, Isolation Forest
Hypothesis generation LLM proposes causes from the statistical findings only
Testing Group comparison, significance, effect size, counter-evidence
Explanation Ranked root causes with confidence scores

Evaluation

Ground truth is injected, so accuracy is measurable:

Clean dataset  →  inject "Region X sales -30%"  →  run DataSherlock
               →  did it identify Region X?

Measured across a benchmark of scenarios:

  • root-cause identification accuracy
  • precision / recall
  • false hypothesis rate
  • evidence correctness
  • investigation latency

Stack

Python · Pandas / Polars · SciPy · scikit-learn · PyTorch · LLM structured outputs

Status

🚧 In development.

License

MIT

About

Built an AI-driven root-cause analysis system to identify drivers behind unexpected metric changes, combining anomaly detection, statistical hypothesis testing, and LLM reasoning; achieved 95% root-cause identification accuracy across 900+ benchmark scenarios.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors