SearcharxivSearch

arXiv subjects

Alireza Salehi

Publications and source records attributed to Alireza Salehi.

3 recordsLinked to original sources

Crane: Context-Guided Prompt Learning and Attention Refinement for Zero-Shot Anomaly Detection

Zero-shot anomaly detection and localization aims to learn from source-domain data and generalize to unseen target domains without target-domain samples. Recent CLIP-based methods perform inference by comparing visual features with normal and abnormal textual prototypes; however, dense localization remains substantially weaker than image-level detection, especially for small or subtle abnormal regions. We identify two key limitations behind this gap: CLIP's vision encoder is primarily optimized for global image-text alignment, which limits its ability to preserve fine-grained spatial details, and the learned normal/abnormal text representations are not sufficiently aligned with dense visual features. To address these limitations, we propose Crane (Context-Guided Prompt Learning and Attention Refinement), a CLIP-based framework that first adapts the vision encoder with a correlation-based attention module to better preserve local visual structure. Second, it conditions learnable normal and abnormal prompts on global image context during training, improving instance-aware text-vision alignment. Third, it incorporates anomaly-aware local-to-global fusion, which injects anomaly-relevant patch features into the global image representation for more sensitive image-level detection. Finally, we show that the same correlation-based attention design can exploit spatial correlations from DINOv2, yielding a boosted variant, Crane+, with stronger localization ability. Across seven industrial benchmarks, Crane improves mean image-level AP by 4.5% over the strongest compared baseline, while Crane+ improves mean pixel-level AUPRO by 9.0%. The code is available at https://github.com/Alireza99Salehi/Crane.

cs.CV

TIPS Over Tricks: Simple Prompts for Effective Zero-shot Anomaly Detection

Anomaly detection identifies departures from expected behavior in safety-critical settings. When target-domain normal data are unavailable, zero-shot anomaly detection (ZSAD) leverages vision-language models (VLMs). However, CLIP's coarse image-text alignment limits both localization and detection due to (i) spatial misalignment and (ii) weak sensitivity to fine-grained anomalies; prior works compensate with complex auxiliary modules yet largely overlook the choice of backbone. We revisit the backbone and use TIPS-a VLM trained with spatially aware objectives. While TIPS alleviates CLIP's issues, it exposes a distributional gap between global and local features. We address this with decoupled prompts-fixed for image-level detection and learnable for pixel-level localization-and by injecting local evidence into the global score. Without CLIP-specific tricks, our TIPS-based pipeline improves image-level performance by 1.1-3.9% and pixel-level by 1.5-6.9% across seven industrial datasets, delivering strong generalization with a lean architecture. Code is available at github.com/AlirezaSalehy/Tipsomaly.

cs.CV

Fabricating a dielectrophoretic microfluidic device using 3D-printed moulds and silver conductive paint

Dielectrophoresis is an electric field-based technique for moving neutral particles through a fluid. When used for particle separation, dielectrophoresis has many advantages compared to other methods, providing label-free operation with greater control of the separation forces. In this paper, we design, build, and test a low-voltage dielectrophoretic device using a 3D printing approach. This lab-on-a-chip device fits on a microscope glass slide and incorporates microfluidic channels for particle separation. First, we use multiphysics simulations to evaluate the separation efficiency of the prospective device and guide the design process. Second, we fabricate the device in PDMS (polydimethylsiloxane) by using 3D-printed moulds that contain patterns of the channels and electrodes. The imprint of the electrodes is then filled with silver conductive paint, making a 9 pole comb electrode. Lastly, we evaluate the separation efficiency of our device by introducing a mixture of 3 $μ$m and 10 $μ$m polystyrene particles and tracking their progression. Our device is able to efficiently separate these particles when the electrodes are energized with $\pm$12 V at 75 kHz. Overall, our method allows the fabrication of cheap and effective dielectrophoretic microfluidic devices using commercial off-the-shelf equipment.

physics.app-ph