CV

Download the PDF for the full CV.

Contact Information

Name Ali Hussain
Position Undergraduate Researcher
Email ahussain.bscs23seecs@seecs.edu.pk
Location Islamabad, Pakistan

Research Interests

Foundation models: pre-training, post-training and reinforcement learning. What representations models acquire in pre-training, how post-training and RL reshape them, and how that knowledge transfers through distillation; with a focus on shortcuts, robustness and efficiency in vision and multimodal models.

Publications

  • 2026
    Online Urdu Text-Line Recognition by Bridging Stroke Dynamics and Offline Representations
    Ali Hussain, Rafay Ahmad, Momina Moetesum, Adnan Ul-Hasan, and Faisal Shafait
    ICDAR 2026
    DOI · PDF · Code · Dataset
  • 2026
    Mistaking Periodicity for Manipulation: JPEG-Induced Structural Bias in Document Tampering Detection
    Nauman Riaz*, Ali Hussain*, Saifullah Saifullah*, Muhammad Imran Malik, Stefan Agne, Andreas Dengel, and Sheraz Ahmed
    BMVC 2026 (Oral), to appear. * Equal contribution.
    PDF
  • InkBridge: Cross-Script Handwriting Trajectory Recovery with Warm Adaptation and Label-Free Order Selection
    Ali Hussain, Eshal Fatima, Anna Scius-Bertrand, Momina Moetesum, Adnan Ul-Hasan, Christian Weis, and Faisal Shafait
    Under review, IJDAR.

Research Experience

  • Jun 2024 –
    Present

    Islamabad, Pakistan

    Undergraduate Researcher, Handwriting Recognition
    TUKL-NUST R&D Center, NUST
    • Led the end-to-end research and manuscript preparation for a first-author ICDAR 2026 paper under Prof. Faisal Shafait and the supervisory team, owning problem formulation, dataset development, model design, implementation, experiments and analysis.
    • Built OUHD-L, the first publicly available online Urdu text-line dataset: 2,403 lines from 311 writers, recording coordinates, pressure, tilt and timing at 500 Hz.
    • Encoded pen dynamics (velocity, direction, curvature, pressure, tilt, stroke order) as 11 spatially aligned image channels, combined through learned per-channel weighting and fused with the ink image by a learned per-position gate, reusing a pretrained offline recognizer without architectural change.
    • Reduced character error rate from 4.21% (ink-only fine-tuning) to 3.66%, significant across five runs; the method also outperformed QLoRA-fine-tuned Qwen3-VL on the same data.
  • Jun 2026 –
    Sep 2026

    Kaiserslautern, Germany

    Research Intern, Efficient Vision & Edge AI (DAAD-funded)
    RPTU Kaiserslautern-Landau
    Final-year project co-supervised by Prof. Faisal Shafait (NUST).
    • Conducted final-year project research under Dr. Christian Weis, establishing experimental baselines for foundation-model distillation and edge deployment.
    • Benchmarked 21 trained detectors on a Raspberry Pi 5 for latency, memory, power and energy; the fastest ran at 2.77 FPS and 2.23 J/frame, setting the gap distillation must close.
    • Probed two frozen teachers (DINOv2, Insect-Foundation) with linear probes for pest discriminability and scene-identity leakage on a group-safe split, to choose a teacher that will not pass background shortcuts to the student.
  • Jun 2025 –
    Aug 2025

    Kaiserslautern, Germany

    Research Intern, Document Image Forensics (DAAD-funded)
    German Research Center for Artificial Intelligence (DFKI)
    • Co-developed the controlled setup isolating JPEG-grid alignment as the cause of detector failures: paired forgeries differing only in grid alignment, and a fixed half-block grid shift. With Prof. Andreas Dengel and Dr. Sheraz Ahmed.
    • Built the benchmark, sourced the datasets and ran the evaluations across six detectors, two benchmarks and JPEG settings (PyTorch, OpenCV).
    • Results showed that many state-of-the-art RGB+DCT detectors rely on JPEG 8×8 grid statistics: grid-aligned forgeries go undetected, and a fixed 4-pixel grid shift triggers widespread false positives (DTD F1 0.73 to 0.11).

Education

  • 2023 - 2027

    Islamabad, Pakistan

    B.S. (expected 2027)
    National University of Sciences and Technology (NUST)
    Computer Science
    • Coursework: Data Structures & Algorithms, Artificial Intelligence, Machine Learning, Deep Learning, Reinforcement Learning (current semester).
    • Mathematics: Calculus & Analytical Geometry, Multivariable Calculus, Linear Algebra, Discrete Mathematics, Probability & Statistics.
  • 2021 - 2023

    Multan, Pakistan

    GCE A-Levels
    Beaconhouse College Program

Ongoing Research

  • Foundation-Model Distillation for Edge Inference (final-year project). Can a compact student keep what a large vision encoder learned when the device fixes the compute and energy budget? Completed YOLO baselines, linear-probe evaluation of teacher encoders, and on-device latency and power measurements on Raspberry Pi; now designing the student architecture and distillation objective, with pest detection and classification as the testbed. With Prof. Faisal Shafait (NUST) and Dr. Christian Weis (RPTU).
  • RL-Adapted Generative Models for Document Forgery. The BMVC work showed that detectors can rely on JPEG-grid artifacts rather than the edit itself; what other shortcuts are they taking? Designing the reward model for a reinforcement-learning approach that adapts image-generation foundation models into forgery generators that stress-test tampering detectors and supply harder training data for robust ones. With Prof. Andreas Dengel and Dr. Sheraz Ahmed (DFKI).

Presentations

  • Accepted for oral presentation, BMVC 2026. Mistaking Periodicity for Manipulation.
  • Poster presentation, ICDAR 2026, Vienna, Austria. Online Urdu Text-Line Recognition by Bridging Stroke Dynamics and Offline Representations.

Industry Experience

  • 2023 - Present

    Remote

    Automation Engineer, E-Commerce Systems
    BloxPlaza.com
    • Designed and built GUI-automation bots that read the game screen and deliver purchased in-game items to customers automatically, running unattended for hours in production.
    • Platform: a shared bot core with game-specific trading bots, a Node.js trade server coordinating bots and customers through explicit state machines, and a web backend for claims; about 15,700 lines across 6 repositories (Python, JavaScript/Node.js, Lua).
    • Traced a recurring production crash to a race on the Windows screenshot API and redesigned the system so shared state is touched only under explicit locks.
  • Apr 2026 –
    Jun 2026

    Remote

    Computer Vision Engineer
    Neuralogic
    • Built and deployed computer vision pipelines (detection, recognition, tracking) for client applications and optimized inference for resource-constrained environments.

Awards & Leadership

  • Oral Presentation, BMVC 2026. Selected for oral presentation.
  • DAAD Funding, Research Visits to Germany, awarded twice: RPTU Kaiserslautern-Landau (2026) and DFKI (2025).
  • Selected Research Intern, TUKL-NUST R&D Center, 2024. About 10% acceptance rate, multi-round technical selection.
  • Chapter Lead, Google Developer Groups on Campus – NUST, 2025–2026 and 2026–2027. Selected by Google.
  • High School Gold Medalist and 100% Scholarship Holder, Beaconhouse College Program.

Technical Skills

Programming: Python, C/C++, JavaScript
ML Frameworks: PyTorch, Hugging Face Transformers, scikit-learn; knowledge distillation
Vision & Multimodal: OpenCV, object detection, tracking, OCR, handwriting recognition, diffusion models
Systems: Linux, Git, Slurm, Docker, REST APIs, GPU/HPC environments; Raspberry Pi inference and power measurement