Machine Learning Projects

Machine Learning

Invoice Document to Text

An end-to-end deep learning project that converts invoice images directly into structured JSON data.

Built a custom encoder-decoder architecture using a Swin Transformer for visual feature extraction and a BART Decoder for autoregressive text generation. Developed the complete pipeline including dataset preparation, image preprocessing, tokenizer development, model training, evaluation, and inference using PyTorch. Used MLflow for experiment tracking and Google Vertex AI for GPU-based training workflows. The trained model was published to Hugging Face Hub for deployment-oriented inference.

PyTorchPyTorchSwin TransformerBARTMLflowMLflowVertex AIVertex AIHugging FaceHugging Face

Product Price Prediction using Gradient Boosting

A machine learning solution for predicting e-commerce product prices using multiple tree-based and distance-based regression models.

Applied data cleaning, exploratory data analysis, ordinal encoding, Min-Max normalization, and log-transformed regression targets. Benchmarked XGBoost, LightGBM, CatBoost, Random Forest, Extra Trees, and KNN using MAE, RMSE, MAPE, and R². XGBoost achieved the strongest overall performance.

XGBoostLightGBMCatBoostRandom ForestFeature Engineering

EasyOCR Under the Hood: CRAFT and CTC Recognition Analysis

Explored the internal architecture of EasyOCR by decomposing its complete OCR pipeline into modular experiments.

Investigated CRAFT for text detection, the VGG-based english_g2 recognizer, and multiple image preprocessing techniques affecting OCR performance. Compared Greedy Search, Beam Search, and Word Beam Search for CTC decoding while analyzing prediction probabilities and recognition outputs.

OCRCRAFTCTCComputer VisionBeam Search

TinyStories-1M Indonesian Fine-Tuning Experiment

An experimental project exploring fine-tuning of the TinyStories-1M language model using an Indonesian corpus.

Demonstrates the end-to-end workflow of training, evaluating, and analyzing an Indonesian language model using the Lyon28/Corpus-Indonesia dataset.

LLMFine-tuningPyTorchPyTorchHugging FaceHugging FaceIndonesian NLP

Face Recognition

A deep learning project that learns discriminative face embeddings using a pretrained ResNet-18 and triplet loss for face verification.

Implemented a metric learning pipeline using the Labeled Faces in the Wild (LFW) dataset and a pretrained ResNet-18 backbone to generate L2-normalized face embeddings. Trained the network using triplet margin loss with anchor, positive, and negative image sampling, AdamW optimization, and cosine annealing learning rate scheduling. Evaluated face verification performance using cosine similarity, ROC curves, and AUC, and visualized embedding clusters with t-SNE.

PyTorchPyTorchResNet-18Metric LearningTriplet LossFace VerificationComputer Vision

OmniVoice ONNX

Exploring and converting the OmniVoice inference pipeline into modular ONNX models.

Separated OmniVoice components into individual ONNX models, including Qwen3, audio embeddings, audio generation heads, and Higgs Audio V2 tokenizer. Includes notebooks for model separation, ONNX export, tensor shape inspection, and inference validation. The exported models are intended for browser-based inference using ONNX Runtime Web.

PyTorchPyTorchONNXONNX RuntimeONNX Runtime WebQwen3Hugging FaceHugging FacePythonPythonTypeScript

Face Anti-Spoofing

A deep learning face anti-spoofing classification model built with Vision Transformer (ViT) and PyTorch to distinguish live faces from spoof attacks.

Implemented a ViT-based binary classification model using a pretrained backbone and custom MLP classifier. Trained and evaluated on the CelebA-Spoof dataset with 419,935 training samples and 10,000 randomly selected test samples. Includes dataset preprocessing, custom PyTorch Dataset and DataLoader, model training, evaluation metrics, confusion matrix, ROC curve, and prediction visualizations. Achieved 0.7513 ROC-AUC and 60.73% accuracy on the evaluation set.

PythonPythonPyTorchPyTorchVision TransformerViTtimmComputer VisionDeep LearningFace Anti-SpoofingBinary ClassificationCelebA-SpoofMachine Learning

ArcFace Face Recognition Training with ViT-S

Train a Vision Transformer Small (ViT-S) backbone using InsightFace's ArcFace pipeline to generate 512-dimensional face embeddings. Evaluate face verification performance across six standard benchmarks, including LFW, AgeDB-30, CFP-FP, CFP-FF, CALFW, and CPLFW.

An end-to-end face recognition training project covering dataset preparation, InsightFace ArcFace toolkit integration, data loading, model configuration, training deployment, and benchmark evaluation. Implements a ViT-S architecture with 512-dimensional embeddings and evaluates generalization across variations in age, facial pose, and appearance. Achieved 94.72% verification accuracy on LFW and 94.16% on CFP-FF, establishing a baseline for further face recognition experiments.

PythonPythonPyTorchPyTorchComputer VisionDeep LearningFace RecognitionVision TransformerViTArcFaceInsightFaceMetric LearningModel TrainingModel Evaluation