bk. Software & machine learning

Bazal
Khan.

Real world data.
Considered systems.

I build machine learning systems that make sense of messy operational data.

From noise to structure
Drag through the points to scatter them.

Drag with your mouse or finger. Keyboard: focus the field and use the arrow keys. Illustrative, not model output.

Software & machine learning
New York · Graduating Dec 2026

Scroll to the evidence

Built for the
real world.

Two machine learning systems built for real courier operations during my PostEx internship.

Which shipments
come back?

Shipment return risk predictor

Machine learning · PostEx

A return is more than a failed delivery. I built a LightGBM system with two stages to predict shipment returns at checkout and after ordering.

Customer history, merchant return rates, address quality, and order channel inform a risk score for each shipment, grouped into actionable tiers.

  • 0.92ROC-AUC
  • 0.91PR-AUC
  • 0.02Calibration error
  • 93%Precision at 50% recall

Stage 2 results on a separate test set. Launch thresholds cleared.

Inside the system

Model at checkout: 17 features. Model after ordering: 47 features. Both use isotonic calibration. Stage 1 reached 0.90 ROC-AUC and 0.85 PR-AUC.

Engineered five feature layers: order, customer, H3 geospatial, network/graph, and temporal. Added Optuna tuning, SHAP reason codes, and promotion gates that compare retrained candidates with the current model.

Served both models through a Flask REST API with Docker and pytest. Audited explanations and fixed SHAP wording that contradicted feature values in 26% of reasons.

Python / LightGBM / Optuna / SHAP / Flask / Docker / pytest

A thousand names.
One taxonomy.

Hierarchical product category classifier

Natural language processing · PostEx

Merchants describe the same product in different ways. This system finds a shared category, then identifies how to handle the shipment.

Training & evaluation

Fine-tuned a multilingual MiniLM encoder with PyTorch and Hugging Face to predict parent, child, and eight operational flags against a taxonomy of 97 categories.

Labeled approximately 26,000 listings with an LLM pipeline using majority voting and outputs constrained to a schema. Balanced to 12,198 rows across 46 child categories and excluded a contaminated field that leaked labels.

Selected models on child macro-F1. Balancing improved it from 0.72 to 0.86. Calibrated confidence with temperature scaling. Served via Flask with train, retrain, batch predict, and a model registry for staging and production.

  • 96.2%Parent accuracy
  • 87.7%Child accuracy
  • 0.86Child macro-F1
  • 97.5%Child top-3 accuracy

Validation on 1,647 products kept separate from training.

Python / PyTorch / Hugging Face / MiniLM / Flask / scikit-learn / Docker

Give it a title.

Synthetic demo

Explore the output structure using sample rules. This is not the live PostEx model.

Try:
Parent categoryWaiting for input
Child categoryNot classified

Handling flagsNone yet

Choose a sample or enter a title to see the hierarchy.

In practice.

PostEx

June to August 2026

AI/ML Intern

Built and served two ML systems on real courier data: a shipment return risk predictor and a product category classifier. From labeling and feature engineering to calibration, explanations, and API deployment.

Curiosity,
put to work.

I’m Bazal, a computer science student at Farmingdale State College (SUNY), based in New York. I’m interested in the point where machine learning becomes useful software.

Graduating December 2026. Looking toward software engineering roles with a backend and AI/ML focus.

B.S. Computer Science3.7 / 4.0 GPA

Dean’s List, seven semesters (Spring 2023 to Spring 2026). President’s List, Summer 2025.

Languages
Python, Java, TypeScript, SQL, C++, COBOL
ML & data
PyTorch, Hugging Face Transformers, LightGBM, scikit-learn, MiniLM fine-tuning, LLMs & prompt engineering, SHAP, Optuna, evaluation & calibration
Build & ship
React, Flask, REST APIs, Docker, pytest, JUnit 5, Spring Boot, Git, Figma
Data stores
SQLite, MySQL, MongoDB, Firebase Firestore