DEV Community

Alec
Alec

Posted on

๐Ÿ” FraudLens: Building an Agentic Fraud Investigation System with TigerGraph

From detecting suspicious transactions to investigating them, resolving uncertainty, and determining the next best action.

Fraud detection is often treated as a classification problem:

โ€œIs this transaction fraudulent?โ€

But real-world fraud investigation is much more complicated.

An investigator needs to understand:

  • Why is the transaction suspicious?
  • What entities are connected to it?
  • What evidence supports or contradicts the suspicion?
  • Have similar cases appeared before?
  • Is there enough evidence to take action?
  • What additional evidence should be collected?
  • What should happen next?
  • Can the entire decision be explained and audited?

For the TigerGraph ร— Hacker House Goa 2026 Hackathon, we built FraudLens to address this investigation problem.

FraudLens is an agentic fraud investigation system powered by TigerGraph that combines graph-based evidence, historical case memory, uncertainty assessment, controlled evidence collection, and policy-constrained Next Best Action recommendations.


๐ŸŽฏ The Problem

A suspicious transaction rarely exists in isolation.

Consider a simple investigation:

Transaction
     โ”‚
     โ–ผ
    Card
     โ”‚
     โ–ผ
  Customer
     โ”‚
     โ–ผ
   Device
   /    \
Card A  Card B
Enter fullscreen mode Exit fullscreen mode

The transaction itself may not provide enough information.

However, the relationships around that transaction can reveal:

  • shared devices
  • connected cards
  • unusual transaction velocity
  • related accounts
  • repeated behavioral patterns
  • previous investigations

This creates a fundamental problem with transaction-only analysis:

Fraud is often a network problem, not just a transaction problem.

We therefore designed FraudLens around a knowledge graph so that the investigation agent can move beyond a single transaction and explore its surrounding entity network.


๐Ÿง  Our Approach

FraudLens follows an investigation loop rather than producing a single prediction.

Trigger
   โ†“
Investigate
   โ†“
Gather Evidence
   โ†“
Assess Risk & Uncertainty
   โ†“
Is Evidence Sufficient?
   โ”‚
   โ”œโ”€โ”€ No โ†’ Request Additional Evidence
   โ”‚             โ†“
   โ”‚        Reassess Investigation
   โ”‚             โ†“
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
   โ†“
Determine Next Best Action
   โ†“
Apply Policy & Approval
   โ†“
Explain Decision
   โ†“
Write Case Back to Graph
Enter fullscreen mode Exit fullscreen mode

This is the core idea behind FraudLens:

Detection starts the investigation; it doesn't finish it.


๐Ÿ—๏ธ System Architecture

FraudLens combines several layers rather than relying on a single AI model.

                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚     Fraud Signal     โ”‚
                    โ”‚  Transaction / Case  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚    Agentic Planner   โ”‚
                    โ”‚  Investigate / Plan  โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ–ผ                 โ–ผ                 โ–ผ
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ”‚ TigerGraph  โ”‚   โ”‚   GraphRAG  โ”‚   โ”‚   Evidence   โ”‚
      โ”‚ Knowledge   โ”‚   โ”‚ Case Memory โ”‚   โ”‚  Collection  โ”‚
      โ”‚    Graph    โ”‚   โ”‚             โ”‚   โ”‚              โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
             โ”‚                 โ”‚                 โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Risk & Uncertainty   โ”‚
                    โ”‚    Assessment        โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚    Policy Engine     โ”‚
                    โ”‚  Rules & Permissions โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚   Next Best Action   โ”‚
                    โ”‚ + Approval Route     โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               โ”‚
                               โ–ผ
                    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                    โ”‚ Case Writeback &     โ”‚
                    โ”‚ Verification         โ”‚
                    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
Enter fullscreen mode Exit fullscreen mode

The architecture deliberately separates AI reasoning from deterministic investigation controls.

The agent can reason over evidence and explain findings, while the policy layer constrains what actions are allowed.


๐Ÿฏ Why TigerGraph?

TigerGraph is at the center of FraudLens because relationships are fundamental to fraud investigation.

Instead of retrieving isolated records, we can traverse connected entities.

For example:

Transaction
     โ†“
Card
     โ†“
Customer
     โ†“
Device
     โ†“
Connected Cards
     โ†“
Related Transactions
Enter fullscreen mode Exit fullscreen mode

This enables the investigation agent to gather multi-hop evidence from the graph.

The graph therefore serves two purposes:

  1. Investigation data source
  2. Relationship intelligence layer

It is not simply a graph visualization added to the UI.

The graph actively contributes evidence to the investigation.


๐Ÿ”Ž Multi-Hop Investigation

One of the most important capabilities of FraudLens is multi-hop investigation.

Suppose a transaction is associated with a device.

Instead of stopping there, the agent can investigate:

Transaction
    โ†“
Card
    โ†“
Customer
    โ†“
Device
   โ†™   โ†˜
Card A  Card B
          โ†“
     Transactions
Enter fullscreen mode Exit fullscreen mode

These relationships can reveal patterns that may not be visible when analyzing individual records.

The FraudLens graph interface allows investigators to:

  • Expand entities
  • Explore connected relationships
  • Inspect entity details
  • Follow multi-hop paths
  • Identify suspicious relationship patterns
  • Understand how graph evidence contributes to the case

๐Ÿ“ธ Knowledge Graph

[INSERT SCREENSHOT: TigerGraph Multi-Hop Investigation Graph]


๐Ÿ“Š Risk Is Not the Same as Certainty

A major design decision was to avoid treating a fraud risk score as a final verdict.

FraudLens tracks multiple dimensions:

Signal Purpose
Risk Level Overall severity
Fraud Probability Estimate Current estimate of fraud likelihood
Confidence Confidence in the assessment
Evidence Sufficiency Whether there is enough evidence to act
Supporting Evidence Evidence strengthening the hypothesis
Contradicting Evidence Evidence weakening the hypothesis
Missing Evidence Evidence that is still required

This allows the system to distinguish between:

โ€œThis activity looks suspicious.โ€

and:

โ€œWe have enough evidence to take a defensible action.โ€

That distinction is essential for an investigation system.


๐Ÿงพ Evidence Explorer

FraudLens organizes evidence into three categories.

๐ŸŸข Supporting Evidence

Evidence that strengthens the current hypothesis.

Examples can include:

  • suspicious transaction behavior
  • abnormal velocity
  • connected suspicious entities
  • shared-device relationships
  • similar historical cases

๐Ÿ”ด Contradicting Evidence

Evidence that challenges the current hypothesis.

๐ŸŸก Missing Evidence

Information that could materially change the investigation but is not currently available.

This makes the investigation more transparent than a single AI-generated explanation.

The investigator can see not only what the system thinks, but also what the system knows and what it does not know.

๐Ÿ“ธ Evidence Explorer

[INSERT SCREENSHOT: Evidence Explorer]


๐Ÿง  GraphRAG & Historical Case Memory

Fraud investigations can benefit from organizational memory.

A new case may resemble investigations that have already been completed.

FraudLens therefore incorporates historical case retrieval into the investigation process.

Our retrieval layer combines:

Graph Retrieval + Semantic Retrieval + Graph-Aware Reranking

Historical investigations can provide context around:

  • similar fraud patterns
  • previous case outcomes
  • related entity structures
  • evidence combinations
  • investigation history

The retrieved cases are used as contextual evidence rather than automatically determining the outcome of the current case.

This distinction is important because every investigation still needs to be grounded in its own current evidence.


๐Ÿค– The Investigation Agent

The agent coordinates the investigation process.

Its responsibilities include:

  1. Creating and progressing the case
  2. Planning investigation steps
  3. Gathering graph evidence
  4. Retrieving relevant historical cases
  5. Assessing risk and uncertainty
  6. Determining whether evidence is sufficient
  7. Requesting additional evidence when required
  8. Reassessing after new evidence
  9. Generating the Next Best Action
  10. Explaining the decision
  11. Updating the investigation record

The agent therefore acts as an investigation orchestrator, rather than simply being a chatbot.


โ“ Knowing When More Evidence Is Needed

One of the most important agentic capabilities is knowing when to stop โ€” and when not to stop.

If the evidence is insufficient, FraudLens can request additional evidence through controlled investigation actions.

Examples include:

  • Customer validation
  • Step-up authentication
  • Additional analyst information
  • Other investigation-specific evidence

The important part is that the request is tied to the current uncertainty.

Instead of:

โ€œNeed more data.โ€

FraudLens aims to answer:

โ€œWhat is missing, and why could this information change the investigation?โ€

This turns evidence collection into an intentional investigation step.


๐Ÿ”„ Reassessment After Additional Evidence

Collecting additional evidence is only useful if the investigation actually reassesses the case.

FraudLens follows:

Initial Assessment
       โ†“
Identify Uncertainty
       โ†“
Request Evidence
       โ†“
Receive Evidence
       โ†“
Re-run Investigation
       โ†“
Updated Risk
       โ†“
Updated Confidence
       โ†“
Updated Next Best Action
Enter fullscreen mode Exit fullscreen mode

This creates a visible before-and-after investigation state.

Before

Risk / Confidence
        โ†“
Remaining Uncertainty
        โ†“
Initial Recommendation
Enter fullscreen mode Exit fullscreen mode

After

Additional Evidence
        โ†“
Reassessment
        โ†“
Updated Risk / Confidence
        โ†“
Updated Recommendation
Enter fullscreen mode Exit fullscreen mode

This allows an investigator to understand what changed and why.

๐Ÿ“ธ Before/After Reassessment

[INSERT SCREENSHOT: Initial vs Final Assessment]


โšก Next Best Action

Once sufficient evidence is available, FraudLens determines the Next Best Action (NBA).

Depending on the investigation and policy, possible actions include:

  • Allow transaction
  • Block transaction
  • Monitor account
  • Warn customer
  • Request additional evidence
  • Create or escalate a case
  • Require human approval
  • File a report when required

The system also records the approval route.

This creates an important separation:

AI Recommendation โ‰  Automatic Authorization

The recommended action must still operate within the defined policy and permission model.


๐Ÿ›ก๏ธ Policy-Constrained AI

Another core design principle was:

The LLM should reason over and explain the investigation, but it should not bypass the control layer.

FraudLens uses deterministic fraud policies to constrain actions.

The AI layer focuses on:

  • reasoning over evidence
  • planning investigation steps
  • synthesizing findings
  • explaining uncertainty
  • explaining recommendations

The policy layer controls:

  • available actions
  • escalation requirements
  • approval routes
  • policy-specific constraints

This gives FraudLens a hybrid architecture:

AI Reasoning
     +
Graph Intelligence
     +
Historical Memory
     +
Deterministic Policies
     =
Controlled Agentic Investigation
Enter fullscreen mode Exit fullscreen mode

๐Ÿ“ Explainability & Investigation Timeline

A fraud investigation needs to be auditable.

FraudLens maintains a structured case progression such as:

Triggered
   โ†“
Investigating
   โ†“
Evidence Gathered
   โ†“
Uncertainty Assessed
   โ†“
Additional Evidence
   โ†“
Reassessment
   โ†“
Action Recommended
   โ†“
Approval
   โ†“
Resolution
Enter fullscreen mode Exit fullscreen mode

The case records important investigation information including:

  • findings
  • evidence
  • risk
  • confidence
  • evidence requests
  • recommendations
  • approval route
  • final outcome
  • investigation timeline

This allows an investigator to reconstruct how the case evolved.


๐Ÿ’พ Writing the Investigation Back to TigerGraph

TigerGraph is not only used to retrieve investigation evidence.

FraudLens can also write the completed investigation back into the graph.

After writing, the system performs read-after-write verification so that the stored case can be checked rather than assuming that a successful write operation means the case was correctly persisted.

The resulting loop is:

Investigate
     โ†“
Decide
     โ†“
Resolve
     โ†“
Write Back
     โ†“
Verify
     โ†“
Future Case Memory
Enter fullscreen mode Exit fullscreen mode

This closes the investigation lifecycle.


๐Ÿ–ฅ๏ธ The FraudLens Command Center

We designed the UI around the investigator's workflow.

The major sections include:

Investigations

Search and manage fraud investigation cases.

Evidence Explorer

Review supporting, contradicting, and missing evidence.

Knowledge Graph

Explore the TigerGraph entity network.

AI Audit

Review investigation reasoning, uncertainty, and agent activity.

Decisions

Review Next Best Action recommendations and approval requirements.

Case Memory

Explore historical investigations.

Policies

Understand the rules controlling available actions.

The objective was to make the system feel like an investigation command center, rather than a generic AI chat interface.

๐Ÿ“ธ FraudLens Dashboard

[INSERT SCREENSHOT: Main Dashboard]


๐Ÿงช Evaluation

For the hackathon benchmark, FraudLens is evaluated against the provided investigation cases.

The evaluation focuses on the core outcomes of the investigation workflow:

  • Investigation accuracy
  • Fraud pattern identification
  • Risk assessment
  • Evidence quality
  • Next Best Action
  • Explainability
  • Case progression
  • Additional evidence handling

The benchmark cases provide a controlled environment for evaluating whether the agent can move from a fraud signal to a defensible investigation outcome.

๐Ÿ“Š Benchmark Results

[INSERT YOUR FINAL VERIFIED 20-CASE BENCHMARK TABLE/CHART HERE]

We intentionally avoid presenting unverified performance numbers in this write-up. The final published numbers should come directly from the validated benchmark run used for submission.


๐Ÿงฉ Key Engineering Challenges

Building FraudLens required solving several interconnected engineering problems.

1. Multi-hop Graph Investigation

We needed the agent to move from a transaction to connected entities and use those relationships as investigation evidence.

2. Evidence & Uncertainty

Risk, probability, confidence, and evidence sufficiency needed to remain separate concepts.

3. Historical Case Retrieval

Previous investigations needed to provide useful context without becoming a substitute for current evidence.

4. Agentic Control

The agent needed to determine when additional investigation was necessary and when sufficient evidence existed.

5. Policy Enforcement

AI-generated reasoning needed to operate within deterministic fraud policies and approval requirements.

6. Auditability

The entire investigation needed to remain traceable from trigger to resolution.

7. Graph Writeback

The completed case needed to become part of the persistent investigation record and be verified after writing.


๐Ÿš€ What We Learned

One of the biggest lessons from building FraudLens was that an effective AI agent is not simply an LLM with tools.

A reliable investigation agent needs multiple layers working together:

             LLM
              โ”‚
       Reasoning & Planning
              โ”‚
      โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
      โ–ผ       โ–ผ        โ–ผ
    Graph   Memory   Evidence
      โ”‚       โ”‚        โ”‚
      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
              โ–ผ
       Risk & Uncertainty
              โ”‚
              โ–ผ
        Policy Engine
              โ”‚
              โ–ผ
      Next Best Action
              โ”‚
              โ–ผ
       Human Approval
              โ”‚
              โ–ผ
        Case Writeback
Enter fullscreen mode Exit fullscreen mode

The LLM provides reasoning and synthesis.

TigerGraph provides relationship intelligence.

GraphRAG provides historical context.

Evidence collection resolves uncertainty.

The policy engine constrains decisions.

And the case record provides an auditable investigation history.


๐Ÿ”ฎ What's Next?

FraudLens provides the foundation for a broader fraud investigation platform.

Potential future improvements include:

  • More advanced graph-based fraud pattern detection
  • Additional investigation signals
  • Improved semantic case retrieval
  • More sophisticated uncertainty estimation
  • Analyst feedback loops
  • Automated case prioritization
  • Expanded policy and approval workflows
  • Richer investigation analytics
  • Continuous learning from resolved cases

The long-term goal is to make fraud investigation increasingly evidence-driven, explainable, and operationally actionable.


๐Ÿ Conclusion

Fraud detection shouldn't end with a risk score.

A suspicious transaction should trigger an investigation.

That investigation should:

Explore the relationships โ†’ Gather evidence โ†’ Understand uncertainty โ†’ Request what is missing โ†’ Reassess โ†’ Determine the next best action โ†’ Apply policy โ†’ Explain the decision โ†’ Write the case back.

That is the idea behind FraudLens.

By combining TigerGraph, agentic AI, GraphRAG, historical case memory, controlled evidence collection, uncertainty assessment, and policy-constrained decision making, we built a system that treats fraud as an investigation problem rather than simply a classification problem.

FraudLens doesn't just detect suspicious transactions โ€” it investigates the evidence, resolves uncertainty, and determines the next best action.


๐Ÿ”— Project Resources

GitHub:

https://github.com/theanshukr/FRAUDLENS

Hackathon:

TigerGraph ร— Hacker House Goa 2026


๐Ÿ‘ฅ Team

Team: Blunder

Built by:

Anshu Kumar
Kanav Sharma
Manik Mehra


๐Ÿ› ๏ธ Tech Stack

  • TigerGraph โ€” Knowledge Graph & graph-based investigation
  • GSQL / TigerGraph Queries โ€” Graph retrieval and investigation
  • TigerGraph MCP โ€” Agent-to-graph tool integration
  • GraphRAG โ€” Historical case retrieval and contextual reasoning
  • LLM โ€” Investigation reasoning, synthesis and explanation
  • Python โ€” Agent and backend orchestration
  • FastAPI โ€” Backend API
  • Next.js โ€” Investigation interface
  • Policy Engine โ€” Deterministic fraud action controls

Tags

#TigerGraph #FraudDetection #FraudInvestigation #AI #AgenticAI #GraphRAG #GraphDatabase #GenerativeAI #Hackathon #Python

Top comments (0)