import torch, cv2, numpy as np, torch.nn as nn
from ultralytics import YOLO
from torchvision.models import resnet50
model = YOLO("yolov9.pt") # load pretrained detection weights
results = model.predict(source=img, conf=0.25, iou=0.45)
for r in results:
boxes = r.boxes.xyxy # bounding box coordinates
scores = r.boxes.conf # confidence scores per detection
classes = r.boxes.cls # predicted class indices
def preprocess(image, size=(640, 640)):
image = cv2.resize(image, size)
tensor = torch.from_numpy(image).float()
return tensor.permute(2, 0, 1) / 255.0
class VisionModel(nn.Module):
def __init__(self, num_classes=80):
super().__init__()
self.backbone = resnet50(pretrained=True)
self.head = nn.Linear(2048, num_classes)
def forward(self, x):
features = self.backbone(x)
return self.head(features)
optimizer = torch.optim.Adam(model.parameters(), lr=1e-4, weight_decay=1e-5)
loss_fn = nn.CrossEntropyLoss()
for epoch in range(epochs):
loss = train_step(model, loader, optimizer, loss_fn)
print(f"epoch={epoch:03d} loss={loss:.4f} lr={optimizer.param_groups[0]['lr']:.6f}")
def evaluate(model, val_loader):
model.eval()
correct, total = 0, 0
for images, labels in val_loader:
outputs = model(images)
preds = outputs.argmax(dim=1)
correct += (preds == labels).sum().item()
total += labels.size(0)
return correct / total # returns overall validation accuracy
model.save("checkpoints/best.pt")
print("training complete. accuracy:", evaluate(model, val_loader))
About Me
A quick introduction to my background and focus areas.
Iβm Azeem Aslam, an AI Engineer and Data Scientist with 6+ years of experience developing enterprise AI solutions, machine learning models, computer vision applications, predictive analytics systems, and decision support platforms.
I have built scalable production systems for government, healthcare, manufacturing, and commercial sectors using Python, SQL, FastAPI, PostgreSQL, ClickHouse, MongoDB, Redis, PyTorch, TensorFlow, and modern AI frameworks.
My core strength is turning large-scale structured and unstructured data into actionable intelligence with AI, computer vision, NLP, and automated data engineering workflows.
Download CVWhat I Do
Enterprise AI, computer vision, and data engineering for production-ready solutions.
Computer Vision Systems
Building YOLO-powered detection and segmentation pipelines for defect detection, medical imaging, and industrial automation.
AI API & Deployment
Delivering scalable REST APIs and containerized services using FastAPI, Docker, Docker Compose, and cloud-ready architectures.
Data Engineering & Automation
Designing ETL pipelines, data ingestion, and automated analytics workflows with PostgreSQL, ClickHouse, MongoDB, Redis, RabbitMQ, and n8n.
Workflow Automation
Building n8n-powered automation pipelines that connect APIs, databases, and business tools to eliminate manual, repetitive work.
Data Scraping & Collection
Developing scalable web scraping and structured data extraction pipelines to collect large datasets from diverse online sources.
Social Media Analysis
Multilingual sentiment analysis and social media intelligence pipelines that turn public conversations into actionable insights.
Skill Stack
A showcase of my technical capabilities.
Python (95%)
SQL & Databases (92%)
Machine Learning (93%)
Computer Vision (92%)
NLP & Generative AI (88%)
FastAPI & Deployment (90%)
PostgreSQL & ClickHouse (88%)
Docker & Containers (85%)
Data Engineering (87%)
Workflow Automation (86%)
Analytics & BI (84%)
Git & Collaboration (90%)
My Work
A selection of production AI, computer vision, and data engineering systems I've designed, built, and deployed for government, healthcare, and commercial clients.
AI-Powered Sentiment Intelligence
Enterprise platform monitoring 211+ verified government accounts and delivering multilingual sentiment, anomaly detection, executive insights, and alerts.
OvaPredict AI
YOLOv8s-seg solution for automated oocyte maturation prediction using 720 expert-annotated microscopy images, achieving 67.1% mAP50 and 79.2% recall.
Vehicle Damage Detection
Full-stack system with YOLOv8-seg, FastAPI, Docker, and PDF-based damage reporting for automated repair estimation.
Healthcare Pose & Gait Analysis
Developed pose estimation and gait analysis models for healthcare monitoring using PyTorch, TensorFlow, MediaPipe, and OpenPose.
Industrial Object Detection
Designed AI systems for industrial object detection and segmentation with robust data augmentation and small-object performance improvements.
Crime Analytics Dashboard
Built dashboards for crime trends, KPI monitoring, and decision support leveraging Python, SQL, and interactive analytics.
From My Blog Post
Notes and write-ups on computer vision, deployment, and building production AI systems.
Azeem Aslam β’ 15 August, 2025
A Deep Dive into YOLOv9 for Real-Time Object Detection
Azeem Aslam β’ 01 August, 2025
Deploying CV Models with Docker and FastAPI: A Beginner's Guide
Azeem Aslam β’ 20 July, 2025