cs.LGNov 14, 2026

Knowledge-Guided Local-to-Global Anomaly Learning for Longitudinal Medication Trajectories

Authors: Wendi Ji

Organizations: Department of Intelligent Science and Information Law, East China University of Political Science and Law, 555 Longyuan Road, Songjiang University Town, Shanghai, 201620, China

Abstract

Detecting suspicious deviations in longitudinal medication trajectories requires distinguishing knowledge-consistent treatment variations from anomalous changes and linking local deviations to account-level decisions. We propose a knowledge-guided local-to-global (L2G) anomaly learning framework that addresses both challenges. It constructs proxy supervision at three granularities: medication occurrences, treatment episodes, and contiguous visit segments. Knowledge-consistent medication and episode replacements provide plausible negatives, while cross-category and cross-account perturbations provide suspicious proxies. A medication-multiset encoder and causal visit-sequence encoder feed a shared scoring head that produces visit-level anomaly logits. Top-αα aggregation derives account-level scores from these logits, while account-level classification and class-balanced visit-localization objectives jointly optimize the same visit-level evidence. Experiments on two city cohorts compare L2G with native and proxy-adapted anomaly methods. On City-A, L2G outperforms the strongest comparators. Cross-city results show more consistent gains in localization than in account-level detection.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. INCLAIR: Inception-Based Longitudinal Clinical Anomaly Detection with Informed Reasoning

    Jul 29, 2026Maxx Richard Rahman, Wolfgang MaassU-StatisticsInterpretable Anomaly Detection

  2. TimeRLM: Recursive Language Models Enable Precise Anomaly Localization in Long-Context Time-Series

    Aug 4, 2026Nicolas Zumarraga, Lorenzo Steno, Ning Wang +9Language ModelingAnomaly Localization

  3. LACToS: Local Anomaly Detection via Conditional Typicality of Superpixels

    Oct 22, 2026Jihoon Hong, Alireza Kheirandish, Rohan Sanda +1Superpixel SegmentationAnomaly Detection