Publication Date

Spring 2026

Degree Type

Master's Project

Degree Name

Master of Science in Computer Science (MSCS)

First Advisor

Mark Stamp

Second Advisor

Thomas Austin

Third Advisor

Navrati Saxena

Keywords

pharmaceutical labeling, FDA compliance, generative AI, structured product labeling (SPL), image quality assessment

Abstract

This work describes a framework for generating and evaluating FDA-compliant pharmaceutical labels using an SPL XML parser to extract drug metadata and label text through LOINC mappings, followed by rendering through Gemini models from Google. When a sample label is provided, Gemini 2.5 Pro extracts visual style features for brand consistency; otherwise, an FDA Q&A session pre-fills the template fields from the XML document. Using Gemini 3.1 Flash, label images are generated through a constraint prompt with required information including the NDC barcode. The FDA compliance validation module evaluates labels against 21 CFR Part 201 requirements by applying 12 pre-render field presence tests, and 3 post-render verifications (OCR text verification barcode scanning and minimum font size), resulting in a weighted compliance score. For assessing visual quality of the generated labels, we propose a multi-metric visual evaluation model based on LPIPS perceptual similarity, SSIM, MS- SSIM, color histogram intersection, layout similarity through edges, and semantic text embedding similarity. Experiments on actual DailyMed SPL labels show promising results for producing visually accurate pharmaceutical labels using a robust evaluation process.

Available for download on Saturday, May 22, 2027

Share

COinS