Mainul Hossain

Ph.D. Student · Computer Science · George Mason University

I am looking for a Summer 2027 internship in research, software engineering, or ML engineering.

I am a Ph.D. student in Computer Science at George Mason University, where I am advised by Prof. Thomas D. LaToza and work as a Graduate Teaching Assistant. I research how to make AI coding agents reliable and trustworthy: giving LLM agents the project context they need to repair code, and helping developers oversee what agents produce. Working at the intersection of software engineering, human–computer interaction, and LLMs, I design agents, benchmark them at scale, and run user studies. My publications include a first-author paper at ASE 2026.

I have interned twice at MetroStar’s Innovation Lab, most recently building a retrieval-augmented generation (RAG) pipeline for the company’s in-house AI assistant. Before George Mason, I was a research assistant at the Next Generation Computing (NeC) Lab at Bangladesh University of Engineering and Technology (BUET), where I co-authored papers on survey data integrity, vehicle detection, and rail-track monitoring. I then worked as a software developer at BANBEIS (Bangladesh Bureau of Educational Information and Statistics). I hold an M.Sc. in Computer Science from George Mason University and a B.Sc. in Computer Science and Engineering from BUET.

Outside research, I have an active interest in sports, drama, and travel. I have acted in some short films. I am an amateur cricket and football player and a big basketball fan. I love discovering new places, meeting people from all walks of life, and hearing and collecting their stories: stories of life, success, and failure.

Email: mhossa6@gmu.edu yaadmainul@gmail.com

Recent News
  • Oct 2026: Presented DesignFix in the ASE 2026 Research Papers track in Munich, Germany!
  • Oct 2026: Our paper DesignFix: Context-Augmented Repair of Design Rule Violations (with Thomas D. LaToza) was published in the Proceedings of ASE 2026!
  • Summer 2026: Returned to MetroStar’s Innovation Lab as a Software Engineering Intern, building a knowledge-base-first RAG pipeline for Sapphire, the company’s in-house AI assistant!
  • Jul 2026: Released the DesignFix replication package and study data on Zenodo (open access)!
  • May 2026: Earned my M.Sc. in Computer Science from George Mason University and received the Distinguished Academic Achievement Award!
  • Nov 2025: Our paper on quantitative currency evaluation to assist visually impaired users (with Md Sultanul Islam Ovi and Md Badsha Biswas) appeared at the RDM 2025 workshop at IEEE ICDM 2025 in Washington, DC!
  • Aug 2025: Our paper on a cost-effective real-time rail-track monitoring system using multi-sensor fusion and multi-objective optimization was published in Scientific Reports!
  • Summer 2025: Joined MetroStar’s Innovation Lab as a Software Engineering Intern and built Falcon, a full-stack MVP for drone mission planning and monitoring!
  • Summer 2024: Received the 2024 Summer PhD Research Award for the DesignFix project!
  • Aug 2023: Started my Ph.D. in Computer Science at George Mason University and joined the Department of Computer Science as a Graduate Teaching Assistant!
  • May 2023: Our paper associating Hajj pilgrims’ negative experiences with their recommendations (a mass-scale survey of 988 pilgrims) was published in Heliyon!
  • Sep 2022: Joined BANBEIS (Bangladesh Bureau of Educational Information and Statistics) as a Software Developer!
  • Jun 2022: Our paper on long-range, low-cost networking for real-time rail-track monitoring in developing countries appeared at ACM ICTD 2022 in Seattle!
  • Dec 2021: Our poster on an economical long-range sensing system for real-time rail-track monitoring was named runner-up in the poster presentation at NSysS 2021 in Cox’s Bazar!
  • Dec 2021: DhakaNet, our deep learning architecture for detecting vehicles in unstructured traffic with limited computational resources, was published at IEEE ICDM 2021!
  • Aug 2021: Our Human-Survey Interaction (HSI) paper on the integrity of human data collectors in a mass-scale Hajj survey was published in IEEE Access!
  • Feb 2021: Earned my B.Sc. in Computer Science and Engineering from BUET!
  • Feb 2019: Started as a Research Assistant at BUET’s Next Generation Computing (NeC) Lab!

Publications

2026

2025

2023

2022

2021

  • DhakaNet: Unstructured Vehicle Detection using Limited Computational Resources.
    Tarik Reza Toha, Masfiqur Rahaman, Saiful Islam Salim, Mainul Hossain, Arif Mohaimin Sadri, and A. B. M. Alim Al Islam. 2021 IEEE International Conference on Data Mining (ICDM), Auckland, New Zealand, pp. 1367–1372, 2021.
  • Human-Survey Interaction (HSI): A Study on Integrity of Human Data Collectors in a Mass-Scale Hajj Pilgrimage Survey.
    Saiful Islam Salim, Najla Abdulrahman Al-Nabhan, Masfiqur Rahaman, Nafisa Islam, Tarik Reza Toha, Jannatun Noor, Adnan Quaium, Aaiyeesha Mostak, Mainul Hossain, Md. Masum Mushfiq, and A. B. M. Alim Al Islam. IEEE Access, vol. 9, pp. 112528–112551, 2021. [PDF]
  • An Economical Long-Range Sensing System for Real-Time Monitoring of Rail Tracks.
    Saiful Islam Salim, Uday Kamal, Adnan Quaium, Mainul Hossain Yaad, Masfiqur Rahaman, Nazmul Hasan Sakib, and A. B. M. Alim Al Islam. Poster, NSysS 2021, Cox’s Bazar, Bangladesh, December 21–23, 2021.
    Runner-Up, Poster Presentation

Under Review

  • AgentFlake: An Agentic Framework for Repairing Flaky Tests.
    Mainul Hossain (co-lead author) et al. Full paper under review.

Research

My current research has three themes: reliable AI coding agents, human oversight of AI-generated code, and LLM-based program repair.

Appointments

Ph.D. Student

Department of Computer Science, George Mason University

Advisor: Prof. Thomas D. LaToza

Aug 2023 – Present

Research Assistant

Next Generation Computing (NeC) Lab, BUET

NeC is a research group led by Dr. A. B. M. Alim Al Islam that works on diverse topics such as computer networking, security and privacy, quantum computation, and transportation. I worked on a mass-scale survey of Hajj pilgrims, low-cost sensing and networking for real-time rail-track monitoring, and vehicle detection in unstructured traffic, work that led to papers in IEEE Access, Heliyon, ACM ICTD, IEEE ICDM, and Scientific Reports.

Feb 2019 – Sep 2022

Recent Research

DesignFix: Context-Augmented Repair of Design Rule Violations

2024 – 2025 · First author · ASE 2026

2024 Summer PhD Research Award

Design rules make a project’s design decisions explicit and checkable; for example, a rule can require every DTO class to have a no-argument constructor. A checker can flag a violation, but developers still have to interpret the rule, find the code that must change, and write a fix that fits the project’s conventions, which is hard in an unfamiliar codebase. I built DesignFix to close that gap inside the IDE. For each violation, it gives an LLM the rule’s description, an example from the same project that already follows the rule, and focused structural context around the violation. A two-step LLM pipeline first reasons about the repair and then extracts a structured edit, and every fix arrives with an explanation and a side-by-side diff, so nothing changes until the developer accepts it.

In 9,450 repair trials comparing seven prompt configurations, the full DesignFix workflow reached up to 90% repair success, 26 percentage points above a baseline prompt. In a controlled study I ran with 14 developers who were new to the codebase, DesignFix cut mean task time by 36% and raised correct repairs from 43% to 93%, compared with a control condition that allowed browser-based LLMs. Developers also reported significantly lower workload with DesignFix. Given the same tasks, the autonomous coding agent Cline inspected the relevant code in every task yet repaired only 3 of the 6 task types, while averaging 12.1× DesignFix’s token use. The results suggest that project-specific design intent has to be supplied to the model; it cannot be derived from the code alone.

Publication: ASE 2026
Artifacts: Replication package · Client code · VS Code extension

Diagram of the DesignFix pipeline in four panels: Detect, Scope context, Two-step LLM, and Review and apply.
How DesignFix works: the checker detects a violation, DesignFix scopes the context, a two-step LLM pipeline reasons and then formats the fix, and the developer reviews it side by side in VS Code. Tap the diagram to open it full size.

AgentFlake: An Agentic Framework for Repairing Flaky Tests

2026 – Present · Co-lead · Full paper under review

Flaky tests pass or fail on the same code without any change, so a failing test may signal a real regression or just a false alarm, and developers lose time chasing faults that do not exist. Earlier LLM-based repair tools, such as FlakyDoctor and FlakyGuard, run the same fixed pipeline to collect context for every test. AgentFlake, which I co-lead, is the first agentic framework for repairing flaky tests: an LLM agent decides, test by test, what to inspect (test code, production code, error logs, or a repair example for the test’s flakiness category) using read-only tools, checks whether it has enough context, and only then writes a patch. Each patch is compiled and validated with a strategy specific to its flakiness category, and it is accepted only if it passes all 100 validation runs; failures go back to the agent.

We evaluated AgentFlake on 164 flaky tests from 53 open-source Java projects, spanning four flakiness categories: order-dependent, implementation-dependent, non-idempotent-outcome, and timing-dependent. It repaired 158 (96.3%), ahead of FlakyGuard (74.4%), FlakyDoctor (50.0%), and the general-purpose coding agents Claude Code (90.2%) and Codex (79.9%), at 30% lower cost and in 72% less time than FlakyGuard. The 164 tests included 20 previously unrepaired ones with no developer-written fix, and AgentFlake repaired 18 of them, which indicates that it can produce effective patches without a developer fix it could have learned from.

Diagram of the AgentFlake workflow in five steps: failure reproduction, tool-assisted planning and context collection, sufficiency check, patch generation and application, and validation and final acceptance.
How AgentFlake works: it reproduces the failure, gathers context with read-only tools until the context is sufficient, generates and applies a patch, and accepts it only after its category-specific validation runs all pass; patch, compile, and test failures go back to the agent. Tap the diagram to open it full size.

Developer Metacognition, Trust Calibration, and Oversight in LLM-Assisted Software Testing

2026 – Present · Study lead · Ongoing

How well do developers judge the tests that AI assistants write for them? In this mixed-methods study, which I designed and lead, 19 developers used LLM coding assistants (Cursor, Claude Code, and Amazon Q) to write tests and reflected on how confident they were in them. To measure the tests’ real strength, I built a mutation-testing pipeline (StrykerJS and Vitest) and ran it across all 19 participant codebases and their 3,269 test cases. Coverage turned out to be a poor guide to that strength: developers who reported 85–100% branch coverage had suites that caught only 44–82% of the injected faults (mutants), a trust-calibration gap of up to 56 points.

A reflexive thematic analysis produced seven themes on human–AI collaboration, among them that LLM-generated tests can look structurally complete while lacking logical depth, and that a coverage number can act as a psychological signal that the work is done. Automated test-smell detection (2,613 smells of 16 types) added another result: the kinds of smells in a suite predicted its mutation effectiveness better than how many smells it had. The study also produced a taxonomy of six oversight strategies, traced how they shift with task complexity, and found that developers who checked their tests in several ways calibrated their trust better, while those who relied on a single metric, such as coverage, were systematically overconfident.

Quantitative Currency Evaluation for Visually Impaired Users

2025 · Second author · RDM Workshop @ IEEE ICDM 2025

Currency-recognition tools usually stop at the denomination; they ignore whether a note is too damaged to use or forged, which matters for visually impaired people in low-resource settings, where notes are often checked offline. We built a framework that handles all three questions: lightweight CNNs classify the denomination, a new Unified Currency Damage Index (UCDI) scores a note’s usability from mask loss, color distortion, and structural feature loss, and feature-based template matching detects counterfeits. Our dataset holds more than 82,000 annotated images of Bangladeshi banknotes, and the framework supports real-time, on-device inference. Its 287K-parameter CNN reached an F1 score of 0.9342, and the counterfeit detector achieved 0.99 accuracy.

Publication: RDM Workshop @ IEEE ICDM 2025 · arXiv
Links: Code · Dataset

Earlier Research

Real-Time Rail-Track Monitoring

Derailments are frequent in several developing countries, and preventing them requires detecting uprooted or faulty rail blocks early enough to stop an approaching train. We developed a low-cost, long-range, and highly reliable mobile multi-hop networking scheme that carries data sensed from the rail track to a train about 2,000 m away. By accounting for Fresnel’s region when placing the networking modules, we achieved a delivery ratio above 99% in experiments on a real testbed.

Publications: ACM ICTD 2022 · NSysS 2021 poster (runner-up)
Related: Scientific Reports 2025

Analyzing Negative Experiences in Hajj Pilgrimage

Mass gatherings such as Hajj and Umrah are often riddled with crowd-related problems, so we ran a mass-scale survey of 988 pilgrims, a substantial part of it through paid human data collectors. We studied the integrity of those data collectors through iterative focus-group discussions, then combined clustering with thematic analysis of the responses to identify 21 types of negative experiences, 20 types of recommendations, and the themes that connect them.

Publications: IEEE Access 2021 · Heliyon 2023

Network Analysis of Hajj Pilgrims’ Experience of Problems

We surveyed nearly 1,000 pilgrims from diverse demographics about the problems they faced and found strong associations among those problems and the pilgrims’ demographics. A lack of hygienic washrooms, transportation difficulties, and getting lost were the most prevalent problems, and pilgrims with less education and limited English proficiency were the most affected.

Status: Under revision at the Journal of Hospitality and Tourism Management (as of December 2022)

Hajj Crowd Image Dataset and Vehicle Detection

While preparing a novel, diversified Hajj crowd image dataset for real-time crowd monitoring, I researched and reviewed image-similarity techniques for predicting crowd mobility from images alone instead of video streams. We carried these findings into transportation: detecting vehicles in unstructured road traffic with limited computational resources, published as DhakaNet.

Publication: IEEE ICDM 2021

Energy Scavenging for IoT in Harsh Environments

An affordable, lightweight energy-scavenging mechanism that combines solar and kinetic energy to power resource-constrained IoT devices in harsh environments, such as devices supervising rail tracks in long open areas or monitoring oil pipelines in dry deserts.

Publication: ENCON23, BUET 2023


Experience

Professional

Software Engineering Intern

Innovation Lab, MetroStar Inc. · Fairfax, VA

I worked on Sapphire, MetroStar’s in-house AI assistant. I built its retrieval-augmented generation (RAG) pipeline: Sapphire first searches MetroStar’s internal knowledge base and synthesizes what it finds, and only then draws on the model’s own reasoning and general knowledge. To keep Sapphire focused on targeted, relevant questions, I engineered its prompts and context for GPT as well as for open-weight Llama models that MetroStar runs on its own servers. I kept token use low and added guardrails so that Sapphire turns away questions that could expose sensitive company data, as well as off-topic requests such as planning a vacation.

Summer 2026

Software Engineering Intern

Innovation Lab, MetroStar Inc. · Fairfax, VA

Falcon is a full-stack MVP for planning and monitoring drone missions, and I built it end to end. With it, an operator selects a drone, starts from a mission template, plans waypoints on a map, and then runs the mission while following it live. On the front end, I designed modular, reusable form components for takeoff, landing, waypoint, and drone settings, with pop-up and modal dialogs for working through checklists and configuring actions. On the back end, I built the database and services that create and track missions and propagate mission data across components in real time. I also architected and refactored the component and service structure so the product can scale to new drone operations.

Summer 2025

Software Developer

BANBEIS Software Development Project · Dhaka, Bangladesh

The BANBEIS Software Development Project is a government-funded project of the Bangladesh Bureau of Educational Information and Statistics. Supervised by the Department of CSE at BUET, it develops and maintains software for the various phases of Bangladesh’s public examinations. I worked on its web-based examination processing system. In the OMR processing team, I used computer vision to detect handwritten digits on OMR sheets and helped build a system that finds and corrects anomalies caused by human error or natural factors, so that the result-processing team receives accurate data. I also migrated examination records to a centralized server.

Sep 2022 – Jul 2023

Teaching

Graduate Teaching Assistant

Department of Computer Science, George Mason University

I deliver lectures, lead lab sessions, hold office hours, and grade assignments across three courses. Two are undergraduate courses: CS 211 (Object-Oriented Programming), which covers classes, interfaces, inheritance, and polymorphism; and CS 262 (Introduction to Low-Level Programming), which introduces C and operating-system concepts in UNIX. The third, CS 550 (Database Systems), is a graduate course on data modeling, SQL, and database design.

Aug 2023 – Present

Skills

Languages
Python, Java, TypeScript/JavaScript, C++, SQL
LLMs
RAG, Prompt & Context Engineering, LLM Agents, Tool Calling, Guardrails, LLM Evaluation, SFT, DPO
ML/AI
PyTorch, TensorFlow, Hugging Face Transformers, LoRA/PEFT, Scikit-learn, NLP, Computer Vision
Web/Backend
React, Node.js, Django, FastAPI, Firebase, PostgreSQL, Redis, Celery
Tools
Docker, Git, AWS, OpenAI API, REST APIs, StrykerJS, Vitest
Data Analysis
Pandas, NumPy, Matplotlib, Jupyter, Statistical Analysis (paired t-test, Wilcoxon, McNemar)
Research
Mixed-Methods Study Design, Qualitative Coding, Thematic Analysis, Mutation Testing, User Studies

Projects

Recent

Bulk Invoice Download and Export (Stripe App)

A published Stripe Marketplace app that downloads and exports invoice PDFs and credit notes in bulk with one click.

Stack: React, Django, PostgreSQL, Celery, Redis, Docker Compose; deployed on AWS
Link: Stripe Marketplace

STRIP: Supervised Training with RL for Irrelevant Prompt Removal in Math Reasoning

A two-phase framework that trains an LLM to remove irrelevant sentences from noisy math word problems, producing a cleaned prompt in one inference call. Built on Llama 2 7B with LoRA adapters and 8-bit quantization, it was trained on GSM-IC with supervised fine-tuning (SFT) and then Direct Preference Optimization (DPO), reaching 0.9927 filtering F1 with SFT and 0.9894 with DPO. I designed its multi-component reward function with asymmetric penalties.

KeyNotter: A Teleprompter for People with Public Speaking Anxiety

A desktop teleprompter that lets people with public speaking anxiety present from their script instead of memorizing it. Built with Electron, it shows the script in an always-on-top overlay near the camera, loads .txt and .md files, and has hotkeys for play/pause, speed, and font size.

Link: Code

Earlier

  • EmblemBangladesh: A web application that creates Snapchat-like filters of Bangladeshi cricketers to generate a collage photo of the user and their favorite cricketer. HTML/CSS/JS, Bootstrap, PHP/MySQL. [Video] [Code]
  • TigerCam: An Android application hosting Snapchat-like filters of Bangladesh cricket team players to generate a collage photo of the user and their favorite player. [Video]
  • BUET Automobile Club: An interactive web application for the BUET Automobile Club. Members assign and receive task instructions, communicate with each other, and schedule events and meetings; non-members can write blogs and raise issues about club events. HTML/CSS/JS, Bootstrap, PHP/MySQL. [Code]
  • NerdTube: A video streaming platform built on the YouTube API that filters out non-educational videos. HTML/CSS/JS, Bootstrap. [Code]
  • GlobeeBD: An e-commerce website for buying and selling medical equipment and products. HTML/CSS/JS, Bootstrap, PHP/MySQL. [Code]
  • ComeFlyWithMe: An interactive web application where users upload pictures of their favorite places with descriptions for other users to see.
  • Project iSee: An automated door-lock system built with an Arduino, a weight sensor, a camera module, and a Wi-Fi module. When someone stands near the main gate, the owner’s phone receives a notification with their picture, and the owner can open the door or reject the visitor from the phone. [Video]
  • POSMaster: GUI-based point-of-sale software with standard security protocols, fault-tolerance schemes, and efficient database transaction algorithms.
  • Magic Hand: A glove built on an ATmega32 microcontroller with a flex sensor and a Bluetooth module that lets the wearer switch a room’s light or fan on and off with hand gestures.
  • 4-bit PC: A complete PC with 33 working instructions designed in Proteus 8 Professional, with an 8-bit address bus, a 4-bit data bus, and a microprogrammed control unit whose control words were stored in a series of 5 ROMs.

Education

Degrees

Ph.D. in Computer Science

George Mason University · Fairfax, VA

Advisor: Prof. Thomas D. LaToza

Concentration: HCI, Software Engineering

GPA: 3.95/4.00

Expected graduation: May 2028

Aug 2023 – Present

M.Sc. in Computer Science

George Mason University · Fairfax, VA

GPA: 3.95/4.00

Distinguished Academic Achievement Award

May 2026

B.Sc. in Computer Science and Engineering

Bangladesh University of Engineering and Technology (BUET) · Dhaka

GPA: 3.35/4.00

Major group: Artificial Intelligence

Thesis: Intrinsic Exploration of Diverse Vibration Signals Generated by a Train Over Railway Tracks for Detection of Missing Rail Blocks and An Approach to Harvest Energy Required

Supervisor: Dr. A. B. M. Alim Al Islam

Feb 2015 – Feb 2021

Higher Secondary Certificate (HSC)

Notre Dame College · Dhaka

GPA: 5.00/5.00

2014

Secondary School Certificate (SSC)

Ideal School and College · Motijheel, Dhaka

GPA: 5.00/5.00

2012

Honors & Awards

Distinguished Academic Achievement Award

M.Sc. in Computer Science, George Mason University
2026

2024 Summer PhD Research Award

For the DesignFix project
2024

Runner-Up, Poster Presentation

NSysS 2021 · Cox’s Bazar, Bangladesh
2021