Inspiration

What if the answer you believe is correct is actually wrong?

In aviation safety investigations, identifying the wrong cause can lead to ineffective corrective actions and leave important safety risks unresolved.

Once investigators develop an initial hypothesis, they may unconsciously focus on evidence that supports it while overlooking alternative explanations. This is known as confirmation bias.

Most AI assistants are designed to help users find answers. We wanted to build an AI system that challenges the answers users already have.

Inspired by Sherlock Holmes and the Dr. House challenge, we created Sherlock AI.

What it does

Sherlock AI is an independent AI Red Team for aviation safety investigators.

It provides safety managers, investigators, and aviation operators with an independent second opinion before they finalize an investigation and decide on corrective actions.

The user provides two things:

  • A description of an aviation incident.
  • Their preliminary hypothesis about its cause.

Sherlock then conducts an independent investigation without revealing the user's hypothesis to its specialized investigators.

Our AI agents explore competing explanations, search historical incidents, analyze statistical relationships, and examine supporting and contradictory evidence.

Only after the independent findings have been reviewed does the Red Team compare them with the user's original hypothesis.

Sherlock can:

  • Support a well-founded hypothesis.
  • Challenge unsupported assumptions.
  • Discover overlooked contributing factors.
  • Refine or complement an existing explanation.
  • Propose alternative causal mechanisms.
  • Recommend what investigators should examine next.

The entire investigation is visualized through an interactive, real-time graph. Users can explore emerging hypotheses, historical counterexamples, evidence, statistical results, and the final Red Team assessment.

Sherlock does not aim to replace human investigators. It helps them challenge their assumptions and make better-informed decisions.

How we built it

We developed a multi-agent architecture consisting of six specialized AI agents:

  • Sherlock: coordinates the investigation and synthesizes the final assessment.
  • Mechanical Investigator: investigates technical failures and aircraft systems.
  • Human Factors Investigator: examines pilot actions, experience, and procedures.
  • Environmental Investigator: explores weather and external contributing factors.
  • Critic: verifies independent findings, challenges weak claims, and checks evidence.
  • Red Team: compares the reviewed findings with the user's original hypothesis.

A key architectural decision was to isolate the user's hypothesis from the independent investigation pipeline, reducing the risk of anchoring and confirmation bias.

Our agents have access to a PostgreSQL database containing 7,462 historical aviation accident and incident records from the NTSB.

Through dedicated analytical tools, agents can search incident records, examine historical investigation reports, filter relevant cases, and calculate statistics.

We use Python, FastAPI, Pydantic AI, and PERUN for agent orchestration, PostgreSQL for analytical data and investigation persistence, Redis for session management, and Docker Compose for deployment.

The interactive React and TypeScript frontend uses Server-Sent Events to visualize investigation progress, emerging hypotheses, evidence relationships, and agent activity in real time.

Challenges we ran into

One of our biggest challenges was ensuring that AI agents could generate creative and technically specific hypotheses without presenting speculation as established fact.

Our guiding principle became:

Be bold in hypothesis generation, but conservative in hypothesis validation.

We also had to address confirmation bias, misleading statistical correlations, incomplete evidence, structured output failures, execution limits, and partial agent failures.

Another major challenge was transforming complex multi-agent outputs into an intuitive visual experience rather than overwhelming investigators with lengthy textual reports.

Accomplishments that we're proud of

  • Building a functional six-agent investigation pipeline.
  • Isolating the user's hypothesis from independent investigators.
  • Integrating 7,462 real historical aviation incident records.
  • Enabling autonomous evidence retrieval and statistical analysis.
  • Implementing independent Critic verification and Red Team assessment.
  • Creating a dynamically evolving investigation graph.
  • Connecting hypotheses with supporting and contradictory evidence.
  • Preserving collected findings even when individual agents fail.
  • Supporting investigation history and persistent results.
  • Passing 176 automated backend tests and completing real end-to-end investigations using PERUN and PostgreSQL.

What we learned

We learned that a powerful AI system does not necessarily need to provide a definitive answer.

Sometimes its greatest value is discovering what humans have overlooked, challenging misleading assumptions, and identifying the evidence needed to resolve uncertainty.

We also learned that reducing AI bias requires more than carefully written prompts. It requires architectural decisions, independent investigation, evidence validation, and explicit uncertainty handling.

What's next for Sherlock AI

Our vision is to make Sherlock an independent quality-assurance layer for safety investigations.

Potential customers include aviation operators, safety management teams, maintenance organizations, and professional investigators.

Our next steps include:

  • Integrating Sherlock with existing Safety Management Systems.
  • Supporting follow-up conversations and continuous investigations.
  • Evaluating detection accuracy against historical incidents with hidden official conclusions.
  • Measuring robustness against misleading and incomplete information.
  • Expanding the available datasets and analytical capabilities.
  • Extending the Red Team approach to industrial incidents, cybersecurity, and IT root cause analysis.

We are not building an AI that always tells you what went wrong.

We are building an AI that challenges whether you have identified the right problem.

Built With

Share this project:

Updates

Submission history