View full-text article in PMC Sensors (Basel). 2026 Jan 22;26(2):743. doi: 10.3390/s26020743 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license. PMC Copyright notice Algorithm 2 Spectrum Attention Mechanism (SAM) Input: Captured signal sequence xn Output: xsamn 1:Initialize: All-ones learnable array maskn 2:# Transform the input series into frequency domain spn←DFT(xn) 3:# Element-wise multiply spectrum by mask masked_spn←spn·maskn 4:# Transform the spectrum back into the time domain xsamn←IDFT(masked_spn)