Skip to main content
. 2026 Sep 17;26(18):5888. doi: 10.3390/s26185888
Algorithm 1 Modulation Context Memory Module
Input: fused tokens Z0∈RB×T×D.
Output: refined tokens Zm∈RB×T×Dm.
Channel–temporal recalibration:
    Switch fused tokens to the channel-first layout: U=Z0⊤.
    Enhance energy-related modulation responses: E=U⊙U.
    Encode channel–temporal dependency: Ha=GRUa(E⊤).
    Generate the recalibration gate: G=σ(WaHa+ba)⊤.
Preserve residual evidence: Ua=U⊙G+U.
Bidirectional temporal memory:
    Aggregate past and future context: (H→t,H←t)=BiLSTM(Ua⊤).
    Form the refined token sequence: Zm=[H→t;H←t].
return Zm.