Home | Help Center

Endless possibilities in academia

A metallic foreign object detection algorithm in pharmaceuticals based on phase rotation and smoothed pseudo-Wigner-Ville distribution

Lin Jiang, Piding Li


Department of Health Sciences and Engineering, University of Shanghai for Science and Technology, Shanghai 200093, China.


Address correspondence to: Piding Li, Department of Health Sciences and Engineering, University of Shanghai for Science and Technology, No. 334 Jungong Road, Yangpu District, Shang hai 200093, China. E-mail: lipiding_usst@qq.com.


DOI: https://doi.org/10.61189/447159fjktza


Received November 12, 2025; Accepted January 27, 2026; Published March 31, 2026

Abstract

Currently, the pharmaceutical manufacturing industry faces problems such as low accuracy in detecting metal foreign objects due to product effects. To address this issue, this paper proposes a metal detection algorithm based on phase rotation and time-frequency analysis. Phase rotation suppresses product effect interference, and smoothed pseudo Wigner-Ville distribution (SPWVD) is used to acquire time-frequency images, identifying significant differences representing metal foreign objects and achieving metal detection under strong product effect interference. To ensure computational efficiency meets industrial real-time requirements, an embedded software system with a dual-core CPU and CLA working in tandem is employed, improving algorithm efficiency through hardware improvements. Test results show that the system achieves a detection accuracy exceeding 98% for 0.8 mm ferromagnetic metals and 1.2 mm non-ferromagnetic metals, with a single detection cycle completed within 10 ms.

Keywords: Medicine, Metal detection, Time-frequency analysis

Cite

Jiang L, Li PD. A metallic foreign object detection algorithm in pharmaceuticals based on phase rotation and smoothed pseudo-Wigner-Ville distribution. Prog Med Devices. 2026 Mar; 4 (1): 68-75. doi: 10.61189/447159fjktza

[Copy]