Naresh logo
naresh.dev_
  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Resume
  • Contact
Naresh B A logo

Naresh B A

AI Systems Engineer

Building intelligent software on reliable systems.

Navigation

  • Home
  • Projects
  • Certifications
  • Blogs
  • Services
  • Contact

Quick Links

  • Resume
  • X
  • GitHub
  • LinkedIn
  • Kaggle
  • LeetCode
  • Email

Currently

  • Open to opportunities
  • Chennai, India
  • 1.5+ Years Experience
  • B.Tech IT
World map illustration with Turn ideas into real-world impact message

© 2026 Naresh B A. Built with care.

    Back to Projects
    AI EngineeringBackend EngineeringSoftware ArchitectureMachine Learning

    VIGILANT

    Featured
    DEPLOYED

    A distributed fraud-risk intelligence platform combining source-specific ONNX models, real-time velocity/rule evaluation, streaming audit pipelines, and AI-assisted investigation.

    2026
    Independent Software Engineer — Architecture, Backend and ML Engineering
    Independent project
    Applied AI & Distributed Systems
    View Case Study
    Screenshot 1
    Screenshot 1(1/6)

    Executive Summary

    Project Overview

    VIGILANT is a distributed fraud-risk intelligence platform built to evaluate transactions from different financial and commerce environments. It combines a transaction-ingestion API, specialist machine-learning models, a rules engine, behavior-based velocity signals, and an operations console for investigators, ML engineers, and platform operators. The system is deliberately polyglot: Go handles the event-processing and risk-coordination services, Java powers several enterprise-facing and governance components, and Python handles feature processing, model inference, and AI-assisted investigation. The platform originated from a modeling problem I encountered while experimenting with two different fraud datasets. Their schemas carried different kinds of evidence; training on only the columns they shared discarded signals useful to each domain. I therefore moved to source-aware model selection: incoming transactions are classified by payload shape, and the inference runtime chooses a specialist ONNX model using per-tenant champion pointers. A third, synthetic e-commerce dataset represents events and device relationships not available from the public datasets and supports the graph-analysis and simulation workflows. Underneath the scoring logic, VIGILANT uses Redpanda, PostgreSQL, Debezium, Valkey, and independently owned services to move accepted events through enrichment, risk evaluation, audit storage, graph analysis, and analytics. An investigator assistant built with LangGraph can query transaction, velocity, and relationship information through tools. The project emphasizes the intersection of applied ML, streaming backend engineering, and operational visibility, with dedicated testing and model-evaluation artifacts.

    Project Objectives

    • Evaluate heterogeneous credit-card, IEEE-CIS and synthetic e-commerce transaction schemas without discarding source-specific information.
    • Decouple transaction acceptance from downstream ML inference, rule evaluation, audit, graph processing and analytics.
    • Combine specialist ONNX models, streaming behavioral velocity signals and deterministic risk rules.
    • Provide evidence-rich transaction investigation and human feedback through operational interfaces.

    The Problem

    Legacy fraud systems rely on static rules that miss evolving fraud rings, while modern ML models often introduce unacceptable latency (>500ms) or act as black boxes that fail catastrophically during traffic bursts. Furthermore, forcing heterogeneous transaction streams into a single database schema causes 'Information Starvation' (dropping key features) or extreme feature sparsity (95% null matrices), destroying predictive signal.

    Approach & Solution

    Engineered VIGILANT as a distributed, real-time fraud intelligence platform guaranteeing sub-100ms risk decisions with sub-20ms ONNX inference. Combines a Content-Based Router that dispatches heterogeneous streams to source-specific specialist models, a 3-layer Saga orchestrator with rules-based fallback degradation, and an event-driven polyglot backend across 18 microservices monitored via Grafana with 96% automated test coverage.

    Outcomes

    Engineered real-time fraud intelligence architecture processing multi-source transaction streams with an ML inference P99 < 20ms and end-to-end latency < 100ms. Achieved 0.8051 PR-AUC on credit-card benchmarks and 0.6090 on IEEE-CIS under leak-free chronological splits, monitored across 18 microservices in Grafana with zero 5xx errors and 96% test coverage.

    Target Personas

    Fraud Investigator
    Active PersonaCore User

    Fraud Investigator

    Maya reviews suspicious transactions but struggles with unclear risk explanations, fragmented case histories, and delayed feedback processing. She needs a centralized investigation console with explainable risk scores, transaction context, and streamlined fraud labeling to make accurate decisions efficiently.

    System Architecture

    Asynchronous Multi-Tenant Risk Evaluation and Investigation
    Click to View Full Blueprint

    Architecture Blueprint

    Asynchronous Multi-Tenant Risk Evaluation and Investigation

    Asynchronous Multi-Tenant Risk Evaluation and Investigation

    Transaction sources pass through a Spring gateway to a Go ingestion service, which tags payload families and acknowledges Redpanda acceptance. A Go risk orchestrator consumes raw events, enriches them with feature/velocity state, invokes ONNX scoring and deterministic rules, then writes PostgreSQL outbox records. Debezium streams changes into the downstream audit, graph and analytics path; a Next.js console and LangGraph investigation service support human analysis. The submitted Excalidraw diagram is a design reference; the exported image should match these deployed interfaces.

    Investigation and Operations Console
    Next.js front end for fraud investigators, ML model operators, and platform operations; consumes risk/audit APIs rather than performing inference in the browser.
    Ingress and Identity
    Java gateway routes requests to a Go ingestion service; transactions are classified by payload and acknowledged once accepted by the event broker.
    Risk Evaluation and Feature State
    A Kafka-consuming Go orchestrator combines feature-service lookups, Lua-backed velocity calculations, ONNX model scoring and deterministic rule evaluation.
    Model Training and Inference Lifecycle
    Domain-specific classification artifacts, preprocessing contracts and active champion pointers avoid forcing heterogeneous payload schemas into one model.
    Event Persistence and Downstream Analysis
    PostgreSQL outbox rows feed Debezium change streams; audit/search, graph relationships and ClickHouse aggregates are maintained for investigation and analysis.
    AI-Assisted Investigation and Telemetry
    A LangGraph investigator workflow retrieves transaction and relationship context through tools; services expose traces and metrics for operational inspection.

    Technologies & Stack

    GoGo
    JavaJava
    PythonPython
    TypeScriptTypeScript
    ReactReact
    Next.jsNext.js
    Tailwind CSSTailwind CSS
    Zustand
    AG Grid
    Spring BootSpring Boot
    Spring Cloud GatewaySpring Cloud Gateway
    Spring SecuritySpring Security
    FastAPIFastAPI
    Gin
    gRPC
    Protocol Buffers
    Redpanda
    Debezium
    PostgreSQLPostgreSQL
    Valkey
    Lua
    Neo4j
    ElasticsearchElasticsearch
    ClickHouse
    ONNX Runtime
    XGBoost
    scikit-learnscikit-learn
    PyTorchPyTorch
    NetworkX
    Optuna
    LangChain
    LangGraph
    DVC
    DockerDocker
    KubernetesKubernetes
    PrometheusPrometheus
    GrafanaGrafana
    OpenTelemetry
    Zipkin
    pytest
    JUnit 5
    Mockito
    Testify
    k6

    Engineering Deep Dive

    Production architecture, telemetry evidence, quality verification, and governance.

    Testing Strategy & Quality Assurance

    Comprehensive automated test suite with unit, integration, and end-to-end regression prevention.

    Verified
    VIGILANT - Testing & Quality Assurance Architecture
    View Full Image
    Click to Enlarge

    Automated test suite execution, coverage breakdown, and verification pipelines.

    Unit Coverage
    96%
    Integration Coverage
    92%
    Tests Passed
    640passed
    Perf Scenarios
    5suites

    Comprehensive polyglot test suite spanning 17 microservices across Go, Java, and Python. Features JaCoCo-verified coverage averaging 96% instruction coverage (100% on Ingestion, Feedback, Alert, Stream Aggregator; 99% Audit; 98% Feature/MLOps; 96% API Gateway; 92% ML Inference). End-to-end integration verified using Testcontainers across Kafka, Redis, and PostgreSQL, backed by k6 load and chaos test profiles.

    Performance, Benchmarks & Latency

    Latency profiling, concurrency stress bounds, and optimization under peak traffic.

    Verified
    VIGILANT - Performance & Latency Benchmarks
    View Full Image
    Click to Enlarge

    Latency distribution, throughput curves, and runtime benchmark profiling.

    Latency (P99)
    < 20 ms
    Benchmark / SLO
    0.8051 / 0.6190 PR-AUC

    Offline specialist models recorded PR-AUC 0.8051 on the credit-card benchmark and a leak-free 0.6090 (0.6190) on IEEE-CIS under chronological validation. Real-time inference via ONNX Runtime guarantees sub-20ms single-row scoring (7.09ms health, 25.6ms metrics), with end-to-end decision orchestration meeting a strict P99 < 100ms SLO.

    Observability & Metrics

    Full-stack observability with OpenTelemetry, Prometheus exporters, and incident telemetry.

    Verified
    VIGILANT - Observability & Distributed Tracing
    View Full Image
    Click to Enlarge

    Grafana dashboards, distributed tracing waterfall, and real-time service metrics.

    Throughput
    7,200 req/min
    18 Active Services
    Error Rate
    0.0%
    0% 5xx

    Enterprise Grafana and Prometheus observability stack monitoring 18 active polyglot microservices. Tracks real-time JVM heap sawtooth behavior (100-250MB), Go runtime memory (Risk Orchestrator reserved ~18MB), FastAPI inference durations (7.09ms /health, 25.6ms /metrics), and OpenTelemetry traces visualized in Zipkin with zero 5xx errors.

    Deployment & Infrastructure

    Containerized workloads, cloud resource isolation, and automated GitOps release stages.

    Verified

    Docker Compose defines the local polyglot services and their data dependencies. Kubernetes deployment manifests document container orchestration, networking and service configuration for the platform.

    Security, Auth & Data Governance

    Least-privilege authorization, token lifecycle governance, and auditable event logging.

    Verified
    VIGILANT - Security & Auth Governance
    View Full Image
    Click to Enlarge

    Security architecture, role-based authority boundaries, and data encryption topology.

    The system models separate operational roles for investigators, ML practitioners and administrators. User identity is managed in a dedicated Java service; the AI investigator service includes API-key encryption and selected PII redaction before model calls. These controls are described by their actual implementation scope.

    Health Checks & System Monitoring

    Proactive synthetic probes, health check endpoints, and SLA availability tracking.

    Verified
    VIGILANT - System Monitoring & Health Checks
    View Full Image
    Click to Enlarge

    Synthetic heartbeat checks, automated failover triggers, and alert routing policies.

    Separate interfaces and instrumentation focus on transaction acceptance, risk-processing health, audit visibility, model evaluations and service-level telemetry.

    Project Timeline

    01
    April 01 – April 07, 2026

    Streaming Ingestion & Velocity Foundation

    Engineered Go Ingestion Service with Redpanda/Kafka event streaming and Redis/Valkey sorted-set velocity sliding windows. Defined strict event schemas and async 202 acceptance contracts.

    02
    April 08 – April 21, 2026

    Fraud Model Training & Latent Breakthroughes

    Two-week deep modeling sprint: engineered kinematic UIDs, stationary detrended D-columns, NetworkX bipartite graph PageRank, and PyTorch autoencoder reconstruction error, achieving a 0.609 leak-free PR-AUC ceiling.

    03
    April 22 – April 28, 2026

    Content-Based Routing & Specialist Models

    Overcame 'Information Starvation' (intersection dropped 400 features) and 'Feature Sparsity' (union created 95% nulls). Built an API Gateway Schema Sniffer that dynamically routes incoming payloads to source-specific specialist models.

    04
    April 29 – May 07, 2026

    Streaming Risk Orchestration & Saga Fallbacks

    Constructed Go Risk Orchestrator with a 3-layer Saga risk decision pipeline: Layer 1 rules/velocity (<5ms), Layer 2 ONNX inference (<20ms), and Layer 3 safety net aggregator with automatic rules fallback.

    05
    May 08 – May 18, 2026

    CDC Outbox Pipeline & Polyglot Stores

    Deployed Debezium CDC over PostgreSQL for zero-loss outbox event streaming. Configured purpose-built cold paths: Elasticsearch for immutable audit trails, Neo4j for fraud ring graph traversal, and ClickHouse for analytics.

    06
    May 19 – May 28, 2026

    Full-Stack SRE Observability & 96% Testing

    Constructed Grafana dashboards tracking 18 active services (JVM heap sawtooth, Go runtime memory, FastAPI latencies). Built LangGraph investigator tool calling and verified 17 polyglot microservices at 96% JaCoCo/pytest instruction coverage.

    >_

    Build better. Reuse smarter.

    A collection of reusable blocks that accelerate development.

    Project AI Explorer

    Grounded • vigilant

    Interactive system architecture, trade-offs & production metrics assistant

    Explore VIGILANT with AI

    Select a technical question below or ask anything about this project's codebase, database models, or performance bottlenecks.