{"id":{"repo_id":"clemson","oai_identifier":"oai:open.clemson.edu:all_theses-5666"},"canonical_url":"https://search.ndltd.org/etd/clemson/oai:open.clemson.edu:all_theses-5666","repository":{"repo_id":"clemson","name":"Clemson University","base_url":"https://open.clemson.edu/do/oai/"},"display":{"title":"Cross-Modal Prompting for Multi-Class Visual Anomaly Localization","abstract":"Visual anomaly detection is a technology that uses computer vision to automatically identify defects or irregularities in images, such as cracks, scratches, or discolorations on manufactured products. Unsupervised visual anomaly detection does this without needing examples of those defects during the training process. This \"unsupervised\" approach is crucial in industries like manufacturing, automotive, electronics, and pharmaceuticals, where ensuring product quality is essential for safety, reliability, and cost efficiency. For instance, it helps spot flaws in circuit boards, fabrics, or medical pills during production lines, preventing faulty items from reaching consumers. By reducing manual inspections, it saves time and resources, benefiting companies by minimizing waste and recalls, workers by automating tedious tasks, and end-users through higher-quality products. This field is growing in importance as factories adopt AI-driven automation to handle diverse items at scale, but it faces hurdles in accurately detecting subtle defects that blend into normal appearances. In multi-class settings, where a single system must inspect various product types, as seen in bench- marks like MVTec-AD (15 categories of objects and textures) and VisA (12 classes with multiple defects per image), challenges include extreme imbalance between normal and defective areas (normal pixels often exceed 95%), defects that camouflage within textures, and difficulty generalizing across categories without losing precision. This thesis advances a prompt-based image reconstruction system by introducing three key innovations: (1) an enhanced refiner architecture with multi-scale convolutional processing to capture anomalies at different sizes, Transformer attention mechanisms to focus computation on suspicious regions, and diffusion- inspired iterative refinement for progressively sharper boundary detection; (2) Focal Loss integration that dynamically emphasizes sparse hard-to-detect anomalous pixels while downweighting the overwhelming majority of easy normal pixels, addressing extreme pixel-level class imbalance; and (3) cross-modal CLIP prompt enhancement that combines visual examples with textual semantic descriptions to provide class-specific understanding of normal characteristics and common defect types, helping distinguish legitimate variations ii from actual anomalies. Evaluation on MVTec-AD demonstrates substantial improvements in pixel-level localization precision, with particularly strong gains on texture classes and objects requiring sharp boundary detection. The enhancements prove effective for clean single-defect scenarios while revealing fundamental challenges in multi-instance detection and distribution shift robustness that define important future research directions. This work advances practical anomaly detection capabilities for diverse manufacturing applications. Quality control systems in electronics manufacturing can benefit from improved detection of subtle PCB defects and component damage. Textile and material inspection gains from better discrimination between natural variations and actual defects in wood, leather, and fabric surfaces. Food processing quality assurance can leverage enhanced localization for detecting contamination and packaging defects. Pharmaceutical manufacturing benefits from precise identification of pill surface anomalies and capsule deformities. More broadly, any high-throughput visual inspection scenario requiring automated defect detection with minimal false positives stands to gain from the systematic integration of architectural refinement, imbalance-aware training, and semantic guidance demonstrated in this work.","abstract_html":"Visual anomaly detection is a technology that uses computer vision to automatically identify defects or irregularities in images, such as cracks, scratches, or discolorations on manufactured products. Unsupervised visual anomaly detection does this without needing examples of those defects during the training process. This &quot;unsupervised&quot; approach is crucial in industries like manufacturing, automotive, electronics, and pharmaceuticals, where ensuring product quality is essential for safety, reliability, and cost efficiency. For instance, it helps spot flaws in circuit boards, fabrics, or medical pills during production lines, preventing faulty items from reaching consumers. By reducing manual inspections, it saves time and resources, benefiting companies by minimizing waste and recalls, workers by automating tedious tasks, and end-users through higher-quality products. This field is growing in importance as factories adopt AI-driven automation to handle diverse items at scale, but it faces hurdles in accurately detecting subtle defects that blend into normal appearances. In multi-class settings, where a single system must inspect various product types, as seen in bench- marks like MVTec-AD (15 categories of objects and textures) and VisA (12 classes with multiple defects per image), challenges include extreme imbalance between normal and defective areas (normal pixels often exceed 95%), defects that camouflage within textures, and difficulty generalizing across categories without losing precision. This thesis advances a prompt-based image reconstruction system by introducing three key innovations: (1) an enhanced refiner architecture with multi-scale convolutional processing to capture anomalies at different sizes, Transformer attention mechanisms to focus computation on suspicious regions, and diffusion- inspired iterative refinement for progressively sharper boundary detection; (2) Focal Loss integration that dynamically emphasizes sparse hard-to-detect anomalous pixels while downweighting the overwhelming majority of easy normal pixels, addressing extreme pixel-level class imbalance; and (3) cross-modal CLIP prompt enhancement that combines visual examples with textual semantic descriptions to provide class-specific understanding of normal characteristics and common defect types, helping distinguish legitimate variations ii from actual anomalies. Evaluation on MVTec-AD demonstrates substantial improvements in pixel-level localization precision, with particularly strong gains on texture classes and objects requiring sharp boundary detection. The enhancements prove effective for clean single-defect scenarios while revealing fundamental challenges in multi-instance detection and distribution shift robustness that define important future research directions. This work advances practical anomaly detection capabilities for diverse manufacturing applications. Quality control systems in electronics manufacturing can benefit from improved detection of subtle PCB defects and component damage. Textile and material inspection gains from better discrimination between natural variations and actual defects in wood, leather, and fabric surfaces. Food processing quality assurance can leverage enhanced localization for detecting contamination and packaging defects. Pharmaceutical manufacturing benefits from precise identification of pill surface anomalies and capsule deformities. More broadly, any high-throughput visual inspection scenario requiring automated defect detection with minimal false positives stands to gain from the systematic integration of architectural refinement, imbalance-aware training, and semantic guidance demonstrated in this work.","abstract_has_math":false,"creators":["McCain, Duncan F"],"institution":null,"degree_name":"Master of Science (MS)","degree_level":"Thesis","degree_discipline":"Computer Engineering","degree_department":null,"school":null,"contributors":["Dr. Fatemeh Afghah","Dr. Yongkai Wu","Dr. Tao Wei"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-19T07:33:56Z","subjects":["Visual anomaly detection","vision-language models","cross-modal prompts","unsupervised reconstruction","diffusion models","Artificial Intelligence and Robotics"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://open.clemson.edu/all_theses/4641","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://open.clemson.edu/all_theses/4641","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://open.clemson.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Aopen.clemson.edu%3Aall_theses-5666","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Dr. Fatemeh Afghah","Dr. Yongkai Wu","Dr. Tao Wei"]},{"key":"dc:creator","label":"Author","values":["McCain, Duncan F"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.available","label":"Dc Date Available","values":["2025-11-14T08:00:00Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2025-12-01T08:00:00Z"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Engineering"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Thesis"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science (MS)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Visual anomaly detection","vision-language models","cross-modal prompts","unsupervised reconstruction","diffusion models","Artificial Intelligence and Robotics"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://open.clemson.edu/all_theses/4641"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Visual anomaly detection is a technology that uses computer vision to automatically identify defects or irregularities in images, such as cracks, scratches, or discolorations on manufactured products. Unsupervised visual anomaly detection does this without needing examples of those defects during the training process. This \"unsupervised\" approach is crucial in industries like manufacturing, automotive, electronics, and pharmaceuticals, where ensuring product quality is essential for safety, reliability, and cost efficiency. For instance, it helps spot flaws in circuit boards, fabrics, or medical pills during production lines, preventing faulty items from reaching consumers. By reducing manual inspections, it saves time and resources, benefiting companies by minimizing waste and recalls, workers by automating tedious tasks, and end-users through higher-quality products. This field is growing in importance as factories adopt AI-driven automation to handle diverse items at scale, but it faces hurdles in accurately detecting subtle defects that blend into normal appearances. In multi-class settings, where a single system must inspect various product types, as seen in bench- marks like MVTec-AD (15 categories of objects and textures) and VisA (12 classes with multiple defects per image), challenges include extreme imbalance between normal and defective areas (normal pixels often exceed 95%), defects that camouflage within textures, and difficulty generalizing across categories without losing precision. This thesis advances a prompt-based image reconstruction system by introducing three key innovations: (1) an enhanced refiner architecture with multi-scale convolutional processing to capture anomalies at different sizes, Transformer attention mechanisms to focus computation on suspicious regions, and diffusion- inspired iterative refinement for progressively sharper boundary detection; (2) Focal Loss integration that dynamically emphasizes sparse hard-to-detect anomalous pixels while downweighting the overwhelming majority of easy normal pixels, addressing extreme pixel-level class imbalance; and (3) cross-modal CLIP prompt enhancement that combines visual examples with textual semantic descriptions to provide class-specific understanding of normal characteristics and common defect types, helping distinguish legitimate variations ii from actual anomalies. Evaluation on MVTec-AD demonstrates substantial improvements in pixel-level localization precision, with particularly strong gains on texture classes and objects requiring sharp boundary detection. The enhancements prove effective for clean single-defect scenarios while revealing fundamental challenges in multi-instance detection and distribution shift robustness that define important future research directions. This work advances practical anomaly detection capabilities for diverse manufacturing applications. Quality control systems in electronics manufacturing can benefit from improved detection of subtle PCB defects and component damage. Textile and material inspection gains from better discrimination between natural variations and actual defects in wood, leather, and fabric surfaces. Food processing quality assurance can leverage enhanced localization for detecting contamination and packaging defects. Pharmaceutical manufacturing benefits from precise identification of pill surface anomalies and capsule deformities. More broadly, any high-throughput visual inspection scenario requiring automated defect detection with minimal false positives stands to gain from the systematic integration of architectural refinement, imbalance-aware training, and semantic guidance demonstrated in this work."]},{"key":"dc:title","label":"Title","values":["Cross-Modal Prompting for Multi-Class Visual Anomaly Localization"]}]}],"canonical_facts":{"dc:contributor":["Dr. Fatemeh Afghah","Dr. Yongkai Wu","Dr. Tao Wei"],"dc:creator":["McCain, Duncan F"],"dc:date.available":["2025-11-14T08:00:00Z"],"dc:date.created":["2025-12-01T08:00:00Z"],"dc:description.abstract":["Visual anomaly detection is a technology that uses computer vision to automatically identify defects or irregularities in images, such as cracks, scratches, or discolorations on manufactured products. Unsupervised visual anomaly detection does this without needing examples of those defects during the training process. This \"unsupervised\" approach is crucial in industries like manufacturing, automotive, electronics, and pharmaceuticals, where ensuring product quality is essential for safety, reliability, and cost efficiency. For instance, it helps spot flaws in circuit boards, fabrics, or medical pills during production lines, preventing faulty items from reaching consumers. By reducing manual inspections, it saves time and resources, benefiting companies by minimizing waste and recalls, workers by automating tedious tasks, and end-users through higher-quality products. This field is growing in importance as factories adopt AI-driven automation to handle diverse items at scale, but it faces hurdles in accurately detecting subtle defects that blend into normal appearances. In multi-class settings, where a single system must inspect various product types, as seen in bench- marks like MVTec-AD (15 categories of objects and textures) and VisA (12 classes with multiple defects per image), challenges include extreme imbalance between normal and defective areas (normal pixels often exceed 95%), defects that camouflage within textures, and difficulty generalizing across categories without losing precision. This thesis advances a prompt-based image reconstruction system by introducing three key innovations: (1) an enhanced refiner architecture with multi-scale convolutional processing to capture anomalies at different sizes, Transformer attention mechanisms to focus computation on suspicious regions, and diffusion- inspired iterative refinement for progressively sharper boundary detection; (2) Focal Loss integration that dynamically emphasizes sparse hard-to-detect anomalous pixels while downweighting the overwhelming majority of easy normal pixels, addressing extreme pixel-level class imbalance; and (3) cross-modal CLIP prompt enhancement that combines visual examples with textual semantic descriptions to provide class-specific understanding of normal characteristics and common defect types, helping distinguish legitimate variations ii from actual anomalies. Evaluation on MVTec-AD demonstrates substantial improvements in pixel-level localization precision, with particularly strong gains on texture classes and objects requiring sharp boundary detection. The enhancements prove effective for clean single-defect scenarios while revealing fundamental challenges in multi-instance detection and distribution shift robustness that define important future research directions. This work advances practical anomaly detection capabilities for diverse manufacturing applications. Quality control systems in electronics manufacturing can benefit from improved detection of subtle PCB defects and component damage. Textile and material inspection gains from better discrimination between natural variations and actual defects in wood, leather, and fabric surfaces. Food processing quality assurance can leverage enhanced localization for detecting contamination and packaging defects. Pharmaceutical manufacturing benefits from precise identification of pill surface anomalies and capsule deformities. More broadly, any high-throughput visual inspection scenario requiring automated defect detection with minimal false positives stands to gain from the systematic integration of architectural refinement, imbalance-aware training, and semantic guidance demonstrated in this work."],"dc:identifier":["https://open.clemson.edu/all_theses/4641"],"dc:subject":["Visual anomaly detection","vision-language models","cross-modal prompts","unsupervised reconstruction","diffusion models","Artificial Intelligence and Robotics"],"dc:title":["Cross-Modal Prompting for Multi-Class Visual Anomaly Localization"],"thesis:degree_discipline":["Computer Engineering"],"thesis:degree_level":["Thesis"],"thesis:degree_name":["Master of Science (MS)"]},"updated_at":"2026-11-19T07:33:56Z"}