Questions, methods, evidence

Research

I work at the intersection of mobile computing, on-device AI, and computer vision. My current focus is non-invasive livestock biometric identification via deep metric learning, alongside prior work in legal information retrieval and deepfake detection.

Active research on Siamese deep metric learning for muzzle-based livestock identification, conducted at Plantsat in collaboration with the United Nations Development Programme (UNDP) in Nepal.

ongoing2024 – present

Muzzle-Based Livestock Identification via Siamese Deep Metric Learning

Broader goal

Can non-invasive, tamper-proof biometric identification — using only a photograph of an animal's muzzle — replace painful and invasive livestock marking techniques such as ear-tagging and hot-iron branding, at scale and under real-world agricultural conditions?

Current milestone

Can Siamese networks using shared-weight Convolutional (ResNet, VGG) and self-attention (Vision Transformer) encoders optimized via Contrastive Loss verify individual livestock identity reliably under varying lighting, environment, and post-mortem muzzle conditions?

Experiment plan

  1. Contributed to a Plantsat initiative in collaboration with the United Nations Development Programme (UNDP) in Nepal, aimed at scalable livestock identification for farmers and agricultural programs.

  2. Designed and compared Siamese Network architectures with VGG16, ResNet50, ResNet152, ViT-Base, and ViT-Large backbones; twin branches share weights to generate high-dimensional image embeddings for identity verification.

  3. Conducted multi-environment field testing across multiple farms in Nepal, discovering that single-condition muzzle datasets are insufficient — the model required images from diverse lighting, angles, and environmental contexts to generalize well.

  4. Collaborated with a slaughterhouse to collect muzzle images at controlled post-mortem intervals (12 hr before, 2 hr before, immediately before, immediately after, and 2 hr after slaughter), capturing how muzzle shape compresses and changes over time, enabling the model to adapt to deformation conditions.

  5. Built and deployed a dedicated mobile data-collection application to capture muzzle images across all farm sites and time intervals, enabling structured large-scale annotation.

  6. Optimized embedding representations in a 128-dimensional latent space via Contrastive Loss (margin = 2.0), minimizing distance for same-identity pairs and pushing different-identity pairs beyond threshold.

  7. Integrated Gradient-weighted Class Activation Mapping (Grad-CAM) to visually confirm that network attention focuses on anatomical muzzle groove patterns rather than background noise — a critical step for model trustworthiness and academic validity.

  8. Evaluated binary classification performance using accuracy, precision, recall, F1-score, and confusion matrices by tuning Euclidean distance decision boundaries.

Status and next stage

Multi-backbone training pipeline implemented and evaluated. Grad-CAM interpretability validated. Multi-environment and post-mortem dataset collection ongoing to improve model robustness and accuracy. Optimizing the best-performing backbone through model pruning, quantization, and knowledge distillation for real-time, edge inference on the mobile data-collection app — eliminating the need for server-side inference in low-connectivity farm environments.

Work in Nepali legal information retrieval and AI-assisted legal analysis, in a low-resource language setting.

The ICAIL 2025 and ICAIL 2026 papers examine retrieval-augmented legal analysis and embedding model performance for Nepali legal documents. Additional solo work at NCCI 2025 focuses on comparative deep learning architectures for image forgery and deepfake detection on a custom-curated dataset.

2026
conference
ICAIL 2026
Short paper – presented 9 June 2026

An Empirical Comparison of Embedding Models for Nepali Legal Document Retrieval

Abhiyan Dhakal, Kausik Paudel, Pranish Kafle, Sugat Sujakhu, Prakash Poudyal, Anita Jadhari

An empirical study of embedding choices for retrieving Nepali legal documents in a low-resource setting.

Study contribution: Compares retrieval behavior rather than treating embedding choice as an implementation detail, with attention to the constraints of Nepali legal text.

2025
conference
NCCI 2025, Dhulikhel, Nepal
Published

Detecting Image Forgeries and Deepfakes: A Comparative Study of CNN and Transformer Models with a Custom-Curated Dataset

Pranish Kafle

A comparative study of Convolutional Neural Networks and Transformer models on a custom-curated dataset for deepfake detection.

Study contribution: Created a custom-curated dataset and evaluated CNN versus Transformer architecture performance on image forgery and deepfake detection.

2025
conference
Proceedings of ICAIL 2025, pp. 498–499
Published

Feasibility of Artificial Intelligence Driven Analysis in the Context of Nepalese Legal System

Abhiyan Dhakal, Sugat Sujakhu, Pranish Kafle, Kausik Paudel, Prakash Poudyal

A retrieval-augmented legal analysis pipeline designed for access to information in the Nepalese legal context.

Study contribution: Processes legal documents for retrieval, expands user queries, and evaluates rule-recall, rhetorical-understanding, and interpretation-oriented questions.