Senior AI Engineer Lalitpur, Nepal · Remote Collaboration

Engineering AI Systems That Work in the Real World.

I'm a Senior AI Engineer focused on building production-grade computer vision, machine learning, and agentic AI systems — from model development and evaluation to optimized deployment.

91% F1 Structured extraction across 16+ attributes
<20 ms Reported edge inference for forehead detection (0.62 mAP)
70% Reported reduction in legacy COBOL documentation time
5+ yrs Applied ML, computer vision & enterprise AI leadership
01 / About

Applied AI, built around system constraints.

Nabin Rai, Senior AI Engineer
Nabin Rai Lalitpur, Nepal · B.E. Electronics & Communication

Over the past five years, I have progressed from building OpenCV and PaddleOCR pipelines to leading a five-engineer AI team and delivering remote computer vision, LLM evaluation, and agentic systems.

I treat models as components inside deterministic engineering loops—defined by strict input contracts, repeatable benchmarks, runtime latency budgets, and clear failure recovery.

01

Applied Machine Learning & Computer Vision

Model training, fine-tuning, and active-learning dataset curation across object detection, biometric verification, face liveness, anti-spoofing, OCR, and sequential video analytics—optimized for edge and browser runtimes.

02

LLM & Agentic AI Engineering

Domain fine-tuning with DAPT and LoRA, RAG pipelines, strict structured outputs via Pydantic, framework-free ReAct tool calling with error-feedback recovery, and automated multi-metric evaluation.

03

Production AI Systems

Model serving and FastAPI microservice design, containerized AWS and Docker deployment, real-time webhook receivers, Weights & Biases experiment tracking, and LangFuse observability.

02 / Experience

Five years from ML engineer to technical lead.

  1. Self-Employed · Remote

    Senior Freelance AI & Computer Vision Engineer

    Delivering independent production engineering across LLM evaluation services, low-latency biometric computer vision, sequential sports video analytics, and custom agentic workflows.

    • LLM Evaluation Frameworks: Engineered a FastAPI microservice using RAGAS and LangChain to benchmark RAG pipelines (accuracy, relevance, groundedness) alongside a hybrid Semantic Similarity + TheFuzz extraction evaluator reporting 91% F1 across 16+ structured attributes.
    • Real-Time Edge Vision (ValiditAI): Fine-tuned ResNet-34 (liveness) and EfficientNet-B0 (face-swap) via Weights & Biases sweeps; optimized forehead detection across ONNX, TFLite, and TensorFlow.js, reporting 0.62 mAP and <20 ms inference latency.
    • Sports Analytics Workflows (KickAI): Architected sequential computer vision pipelines for Top 5 European football leagues integrating YOLO ball detection, ByteTrack tracking, ResNet-50 marked-frame quadrant classification, and ROI-based scoreboard OCR.
    • FastAPI
    • RAGAS
    • LangChain
    • PyTorch
    • YOLO
    • ONNX
    • TFLite
    • TF.js
    • W&B
  2. TAI Inc. Pvt Ltd · On-Site

    Team Lead — AI Engineering

    Led technical direction, training architecture, and cloud delivery for a five-engineer enterprise AI team.

    • Led 5 AI engineers shipping enterprise automation solutions and scaling AWS/Docker deployment infrastructure.
    • Fine-tuned 7B/16B parameter LLMs (StarCoder, StarChat) using DAPT and LoRA, cutting legacy COBOL documentation time by 70%.
    • Architected real-time webhook receivers on AWS/Docker to process conversational triggers with <5s response times.
    • StarCoder
    • StarChat
    • DAPT
    • LoRA
    • AWS
    • Docker
    • Python
  3. TAI Inc. Pvt Ltd · On-Site

    Mid-Level ML Engineer

    Built multi-task vision and gait-based surveillance recognition models for real-world camera environments.

    • Developed multi-task MobileViT models achieving ±5-year MAE for age estimation and 92% gender accuracy.
    • Implemented SMPL Gait for person re-identification without 3D modeling, reporting 95% surveillance precision.
    • PyTorch
    • MobileViT
    • SMPL Gait
    • Computer Vision
  4. TAI Inc. Pvt Ltd · On-Site

    Associate ML Engineer

    Engineered document OCR pipelines, image preprocessing workflows, and active-learning curation systems.

    • Built OCR pipelines using PaddleOCR and OpenVINO, improving text extraction accuracy by 12% (CER/WER).
    • Implemented an active learning pipeline to prioritize hard examples and streamline manual annotation.
    • Engineered OpenCV preprocessing stages (dewarping, deskewing, denoising) to stabilize OCR input quality.
    • PaddleOCR
    • OpenVINO
    • OpenCV
    • Active Learning
Education
Bachelor of Electronics & Communication Engineering Tribhuvan University · Lalitpur, Nepal · 2016–2021 · Engineering Mathematics, C++, Probability & Statistics
03 / Featured Projects

Engineering case studies.

Architecture, engineering decisions, technical constraints, and verified project outcomes. Proprietary client codebases are explicitly distinguished from public repositories.

01 Identity Verification & Trust Infrastructure System Architecture · Active Development

TrustVision

Modular AI identity verification and trust infrastructure unifying face verification, liveness detection, face matching, anti-spoofing, and deepfake detection behind deterministic verification APIs with an extensible agentic review layer.

Architecture Scope Multi-Modal Trust API Liveness · Anti-Spoof · Deepfake · Matching

Problem Statement

Modern digital onboarding faces simultaneous threats from presentation attacks (print/replay) and generative face-swap streams. Isolated single-model classifiers struggle to coordinate multi-signal verification decisions or route borderline edge cases reliably.

Engineering Approach

Designed a staged FastAPI verification gateway orchestrating face alignment, anti-spoofing/liveness scoring, deepfake detection, and embedding-based face matching behind typed Pydantic response contracts, structured to support future agentic triage on low-confidence sessions.

Architecture schematic, challenges & implementation details
TrustVision — Modular Verification & Future Agentic Escalation Architecture
TrustVision pipeline: FastAPI Gateway routes frames to Face Matching, Liveness and Anti-Spoofing, and Deepfake Detection models, outputting typed risk verdicts with planned agentic triage for ambiguous cases FastAPI Gateway Capture & Face Align Liveness & Anti-Spoofing Deepfake / Face-Swap Check Face Embedding Matching Decision & Schema Gate Calibrated Thresholds Typed Pydantic Output Agentic Escalation Planned Risk Review & Audit Trace Integration

Technical Challenges

Balancing low false-reject rates against emerging synthetic face-swap attacks, keeping multi-model latency bounded behind a single API contract, and isolating model inference runtimes cleanly for reproducible updates.

Scope & Evidence Note

TrustVision synthesizes my biometric computer vision and FastAPI systems work into an extensible trust infrastructure architecture. Production accuracy benchmarks are intentionally omitted until evaluated on public standardized datasets.

02 Real-Time Edge Computer Vision Client Delivery · Code Not Public

ValiditAI — Real-Time Edge Computer Vision

Production-oriented biometric vision models covering ResNet-34 liveness detection, EfficientNet-B0 face-swap detection, and forehead localization exported across ONNX, TensorFlow Lite, and TensorFlow.js.

Reported Benchmark <20 ms · 0.62 mAP Forehead detection across ONNX / TFLite / TF.js

Problem Statement

Real-time digital identity checks cannot rely on heavy server-side GPUs for every client frame. Models must stay accurate under real camera compression while fitting strict memory and sub-20 ms latency budgets across mobile and browser environments.

Engineering Approach

Fine-tuned compact CNN backbones—ResNet-34 for presentation-attack liveness and EfficientNet-B0 for face-swap artifacts—tracked systematically via Weights & Biases sweeps, and exported forehead detection models across ONNX, TFLite, and TensorFlow.js.

Architecture schematic, challenges & benchmark qualification
ValiditAI — Model Suite & Multi-Runtime Edge Export
ValiditAI computer vision models: ResNet-34 liveness detection, EfficientNet-B0 face-swap detection, and forehead detection reporting 0.62 mAP and sub-20ms inference exported to ONNX, TFLite, and TF.js Liveness Detection Fine-tuned ResNet-34 Weights & Biases Sweeps Face-Swap Detection Fine-tuned EfficientNet-B0 Weights & Biases Sweeps Forehead Detection 0.62 mAP · <20 ms reported ONNX · TFLite · TensorFlow.js

Technical Challenges

Maintaining consistent preprocessing and numerical output parity across three distinct inference runtimes (ONNX, TFLite, TF.js WebGL), while handling device thermal throttling and lighting variance.

Outcome Qualification

Forehead detection reported 0.62 mAP and <20 ms latency in controlled project benchmarks. Actual end-device latency varies by NPU/WebGL backend; client datasets and source code remain confidential.

  • PyTorch
  • ResNet-34
  • EfficientNet-B0
  • ONNX
  • TensorFlow Lite
  • TensorFlow.js
  • Weights & Biases
03 RAG & Structured Extraction Evaluation Client Delivery · Supporting Public Repos

LLM Evaluation Framework

Standalone FastAPI evaluation service combining RAGAS and LangChain metrics for RAG reliability with a custom Semantic Similarity + TheFuzz scoring framework for multi-attribute structured extraction.

Reported Outcome 91% F1-Score Across 16+ structured CV attributes

Problem Statement

Iterating on RAG prompts, chunking strategies, or extraction models without automated evaluation creates silent quality regressions. Naive exact-string matching penalizes valid formatting variants, while LLM-only judges introduce cost and variance.

Engineering Approach

Decoupled evaluation into a FastAPI microservice running RAGAS (accuracy, retrieval relevance, groundedness) alongside a hybrid structured-extraction evaluator pairing dense semantic similarity with deterministic TheFuzz lexical scoring across 16+ fields.

Architecture schematic, challenges & public repositories
LLM Evaluation Microservice — Dual-Track RAGAS & Hybrid Attribute Scoring
FastAPI evaluation service processing evaluation inputs into Track A RAGAS with LangChain and Track B hybrid semantic similarity plus TheFuzz structured extraction scoring reporting 91 percent F1 across 16 plus attributes Eval Inputs RAG Pairs & 16+ Reference Attributes FastAPI Service Decoupled Eval API RAGAS + LangChain Relevance · Groundedness Hybrid Attribute Scorer Semantic Sim + TheFuzz RAG Report Pipeline Diagnostics 91% F1 Reported 16+ Structured Fields

Technical Challenges

Calibrating field-specific similarity thresholds so semantically equivalent job titles or degrees pass without false positives, while managing LLM-as-a-Judge latency and evaluation token cost.

Outcome Qualification

Reported 91% F1-score across 16+ structured attributes on the client evaluation set. Supporting open-source implementations are published in response-evaluation and llm-cv-extraction-benchmark.

04 Sequential Broadcast Video Analytics Client Delivery · Code Not Public

KickAI — Sports Analytics Vision Pipeline

Multi-stage computer vision pipeline for Top 5 European football leagues combining YOLO ball detection, ByteTrack continuity, marked-frame ResNet-50 field quadrant classification, and ROI-based scoreboard OCR.

Coverage 5 European Leagues Spatial Ball Tracking + Clock/Score Sync

Problem Statement

Broadcast football feeds vary across camera angles, lighting, motion blur, and league-specific graphic overlays. Extracting structured match timelines requires coordinating ball position, active field quadrant, and match clock/score continuously across frames.

Engineering Approach

Composed a sequential vision pipeline where YOLO ball detections and ByteTrack trajectories feed marked-frame inputs into a ResNet-50 quadrant classifier, synchronized with ROI-cropped OCR focused strictly on broadcast scoreboards.

Architecture schematic & engineering challenges
KickAI — Sequential Multi-Model Sports Analytics Pipeline
KickAI sequential pipeline: Broadcast Stream feeds YOLO Ball Detection and ByteTrack, then ResNet-50 Field Quadrant Classification via marked frames, then ROI-based Broadcast OCR for score and match clock Broadcast Video Top 5 EU Leagues Stage 1 · Detection YOLO + ByteTrack Stage 2 · Quadrant ResNet-50 (Marked Frames) Stage 3 · Score/Clock ROI-Cropped OCR

Technical Challenges

Preventing upstream misses during fast ball clearances or player occlusions from cascading into downstream quadrant errors, while isolating scoreboard ROI regions across five distinct broadcast graphic standards.

Implementation Context

Delivered as a remote client engineering engagement. Using marked frames simplified spatial conditioning for ResNet-50 without requiring fragile stadium-specific homography calibration.

  • PyTorch
  • YOLO
  • ByteTrack
  • ResNet-50
  • OpenCV
  • ROI OCR

Additional Production & Research Systems

Enterprise LLM · TAI Inc. 70% Time Cut

Legacy COBOL Code Intelligence (7B/16B DAPT + LoRA)

Led five engineers fine-tuning StarCoder and StarChat models via domain-adaptive pretraining and LoRA for legacy COBOL documentation, deployed on AWS/Docker alongside sub-5s conversational webhooks.

StarCoder · StarChat · DAPT · LoRA · AWS · Docker
Agentic Systems & Tracing Related Repo

Custom ReAct Execution Loop & LangFuse POC

Built a framework-free ReAct loop over local Ollama/Hermes 3 with Pydantic tool contracts and Python stack-trace feedback for self-correction, plus a LangFuse tracing proof of concept. Related public work includes Medical Expert AI Chat.

Ollama · Hermes 3 · Pydantic · LangFuse · ReAct
04 / Technical Expertise

Core engineering stack by domain.

Machine Learning & Computer Vision

  • PyTorch
  • YOLO
  • ResNet & EfficientNet
  • MobileViT
  • ByteTrack
  • OpenCV
  • PaddleOCR
  • SMPL Gait Re-ID

LLM & Agentic AI

  • LLM Fine-Tuning (DAPT / LoRA)
  • RAG Pipelines
  • LangChain
  • Custom ReAct Loops
  • Tool Calling
  • Structured Outputs (Pydantic)
  • Task Decomposition
  • Local Inference (Ollama / vLLM)

AI Infrastructure & Deployment

  • FastAPI
  • Docker
  • AWS (SageMaker & Webhooks)
  • ONNX
  • TensorFlow Lite
  • TensorFlow.js
  • OpenVINO
  • API Architecture & Edge Deployment

Evaluation & Observability

  • RAGAS
  • LangFuse
  • Custom Evaluation Frameworks
  • LLM-as-a-Judge
  • Semantic Similarity & TheFuzz
  • Precision / Recall / F1
  • Weights & Biases Sweeps
  • Active Learning & Data Quality
05 / Engineering Philosophy

Principles for shipping reliable AI.

  1. 01

    Production over prototypes.

    A model only creates value when it survives real inputs, latency ceilings, and deployment constraints.

  2. 02

    Evaluation over assumptions.

    Prompt, retrieval, and architecture changes are validated against repeatable metrics before release.

  3. 03

    Reliability over impressive demos.

    Explicit schemas, bounded retries, and graceful fallbacks matter more than cherry-picked examples.

  4. 04

    Measurable performance over vague claims.

    Separate controlled benchmarks from production guarantees and document failure modes clearly.

  5. 05

    Systems thinking over isolated models.

    Data preparation, serving boundaries, observability, and error recovery define real-world quality.

06 / Contact

Let's build AI systems that make a difference.

Open to Senior AI Engineer, LLM Engineer, and Computer Vision roles—as well as focused consulting engagements on evaluation, agent workflows, fine-tuning, and edge deployment.