Safwat Ali Khan

Ph.D. Candidate in Computer Science · George Mason University
Advised by Dr. Kevin Moran

I build intelligent automation for software testing. My research applies multimodal machine learning and large language models to help automated tools explore mobile apps more deeply, judge whether testing was meaningful, and repair accessibility issues. Before my Ph.D., I spent five years as a software quality assurance engineer in industry.

On the 2026–27 job market · seeking faculty positions starting Fall 2027
Portrait of Safwat Ali Khan

Research

My work moves automated testing from mechanical to context-aware: tools that understand what is on the screen, reach deeper into an app, and help developers fix what they find. I see these tools as aids that amplify human judgment, not replacements for it.

Mobile UI testing

Getting automated testing past difficult screens

Automated input generation tools often get stuck on "UI tarpits" such as login forms, permission dialogs, and advertisement overlays, and never reach the rest of the app. AURORA pairs a multimodal screen classifier with navigation heuristics so existing tools can recognize and get past these screens. Across 17 popular Android apps it raised code coverage by 19.6%.

ICST 2024 (first author)

AI agents & accessibility

Can AI coding agents fix real accessibility issues?

I lead a study of how well current AI coding agents repair accessibility issues in real web applications. With a team of eight annotators, we open-coded accessibility fixes mined from GitHub pull requests and built a classification of issue types. I then built a reproducible benchmark that runs each application at the exact version where its issue arose, plus a framework that tests proposed fixes automatically, and compared fixes from Claude, Codex, and Qwen agents for correctness and robustness.

Under review Lead author

Empirical software engineering

How open-source IoT platforms are tested

Smart home platforms combine many devices, protocols, mobile apps, and cloud services, which makes them hard to test. We mined openHAB and Home Assistant and surveyed 80 IoT developers. openHAB has a test ratio of just 0.04 (about 4K test methods for 76K functional methods), and developers rely heavily on unit tests with little integration or manual testing. The study reports 10 findings that point to clear gaps for testing research.

ICST 2025

Collaborations

Usage-based test generation and bug localization

I have also contributed to Avgust, which generates usage-based tests from videos of app executions (FSE 2022, ICSE 2023 tool demo), and to work showing that GUI interaction data improves text-retrieval-based bug localization (ICSE 2024).

Early-stage work

Accessibility in software engineering: a systematic literature review In progress

A review of both developer-facing and end-user-facing research that makes traditional web, mobile, and desktop software accessible to people with disabilities. It asks what this research focuses on (automating developer tasks, improving existing software, or providing guidelines), which SE tasks, lifecycle stages, and software domains it targets, and which user populations it serves, including how studies distinguish needs such as full blindness, low vision, and color blindness. It also examines the data studies rely on and how the field evaluates its tools, from methodologies to metrics.

Use-case-aware testing Concept stage

Code coverage does not show whether testing exercised what users actually do. This project analyzes execution traces (screenshots, interaction logs, and metadata) with information retrieval and LLMs to infer which real use cases an automated tool exercised. The idea was presented at the ICST 2025 Doctoral Symposium; I plan to extend it to regression testing and continuous integration.

Publications

Peer-reviewed papers, newest first. Full list on Google Scholar.

  1. ICST 2025

    Testing Practices, Challenges, and Developer Perspectives in Open-Source IoT Platforms

    Daniel Rodriguez-Cardenas, Safwat Ali Khan, Prianka Mandal, Adwait Nadkarni, Kevin Moran, Denys Poshyvanyk

  2. ICST 2025
    Doctoral Symposium
  3. ICST 2024

    AURORA: Navigating UI Tarpits via Automated Neural Screen Understanding

    Safwat Ali Khan, Wenyu Wang, Yiran Ren, Bin Zhu, Jiangfan Shi, Alyssa McGowan, Wing Lam, Kevin Moran

  4. ICSE 2024

    On Using GUI Interaction Data to Improve Text Retrieval-Based Bug Localization

    Junayed Mahmud, Nadeeshan De Silva, Safwat Ali Khan, Seyed Hooman Mostafavi, S M Hasan Mansur, Oscar Chaparro, Andrian Marcus, Kevin Moran

  5. ICSE 2023
    Tool Demo

    Avgust: A Tool for Generating Usage-Based Tests from Videos of App Executions

    Saghar Talebipour, Hyojae Park, Kesina Baral, Leon Yee, Safwat Ali Khan, Kevin Moran, Yuriy Brun, Nenad Medvidovic, Yixue Zhao

  6. ESEC/FSE 2022

    Avgust: Automating Usage-Based Test Generation from Videos of App Executions

    Yixue Zhao, Saghar Talebipour, Kesina Baral, Hyojae Park, Leon Yee, Safwat Ali Khan, Yuriy Brun, Nenad Medvidovic, Kevin Moran

Teaching & Mentoring

I teach through three habits: open with why a problem matters, anchor every abstraction in a concrete example, and help students break hard problems into small, testable steps.

Teaching experience

Graduate Teaching Assistant

Sep 2019 – Dec 2021
Department of Computer Science, George Mason University
  • Led labs and recitations for undergraduate and graduate courses: CS 222 Computer Programming for Engineers, CS 262 Introduction to Low-Level Programming (C), Data Structures, and CS 550 Database Systems.
  • Held regular office hours, mentoring students on assignments, projects, and exam preparation.
  • Graded assignments and exams with detailed feedback, and worked with instructors to refine course materials.
Teaching interests
  • Software Engineering
  • Software Testing
  • Data Structures
  • Database Systems
  • Programming in C / Java
  • Mobile App Development
  • AI for Software Engineering
Research mentoring

Classification of UI Screens Based on Design Motif

Summer 2022
Aspiring Scientists Summer Internship Program (ASSIP), George Mason University · supervisor
  • Supervised a high school researcher from problem formulation through evaluation; the student became a co-author on AURORA (ICST 2024).

Editable AI: Mixed Human-AI Authoring of Visual Design Styles

Summer 2020
ASSIP, George Mason University · co-mentor with Prof. Thomas LaToza
  • Co-mentored two high school researchers on implementation, evaluation, and presenting their results.

Experience

Research

Graduate Research Assistant

Jan 2022 – Present
George Mason University · advisor: Dr. Kevin Moran
  • Automated mobile UI testing with learning-based and LLM-based techniques.
  • Evaluating agentic AI for detecting and repairing accessibility issues.
  • Analyzing execution traces and user interactions to make automated testing tools more interpretable.
Industry · Software Quality Assurance (5 years)

Tested healthcare software for people with developmental disabilities and central nervous system conditions, and mobile data-collection tools for underserved rural communities in Bangladesh. Built automated test suites with Selenium, JMeter, JUnit, and Xamarin Test Cloud.

SQA Engineer II

Jan 2018 – Jul 2019
  • Tested HIPAA-compliant web applications for healthcare and support services.
  • Developed automated tests for health-tracking modules.

SQA Engineer

May 2015 – Dec 2017
  • Functional and automated testing of enterprise applications.

Junior SQA Engineer

Aug 2014 – Apr 2015
  • Tested mobile applications used by field health workers.
Technical skills
Machine learning & NLP
LLM prompting (GPT, LLaMA), retrieval-augmented generation, information retrieval (TF-IDF, BM25, LSI), multimodal vision + text models, CLIP, Transformers
Testing & program analysis
Mobile UI testing, automated input generation, execution-trace analysis, use-case modeling
Testing tools
APE, Monkey, UIAutomator, Selenium WebDriver, Playwright, JMeter, JUnit
Computer vision
OpenCV, Tesseract OCR, vision-based UI analysis
Data & experimentation
Data pipelines, pandas, experiment design and analysis, web scraping (BeautifulSoup, requests)
Languages
Python, Java, JavaScript, C++, C

Service & Awards

Fellowships & awards
  • Provost Research Fellowship, George Mason University2026
  • Sustainability Summer Research Fellowship2024
  • CS Research Initiation Award2020
Professional service
  • Journal reviewer, IEEE Transactions on Software Engineering (TSE)2026
  • Reviewer, FSE2024
  • Student volunteer, ICST2024
  • Reviewer, ICSE2023
  • Reviewer, SANER2023
  • Reviewer, ASE2022

Education

Ph.D. in Computer Science

George Mason University, Fairfax, VA · advisor: Dr. Kevin Moran
May 2027 (expected)

M.S. in Computer Science

George Mason University, Fairfax, VA
2025

B.S. in Computer Science & Engineering

University of Dhaka, Bangladesh
2014

Contact

Email
Mail

Department of Computer Science
George Mason University
4400 University Drive
Fairfax, VA 22030, USA