Abstract & Overview
The Internet of Medical Things (IoMT) is growing fast. It helps doctors monitor patients all the time. It also supports personalized care. But this connectivity brings new risks. Attackers are getting smarter. Older intrusion detection systems can't catch zero‑day attacks threats that don't have known signatures. Retraining them costs too much and takes too long. This paper proposes SAF-LQC, a self-adaptive framework that integrates quantum computing with hierarchical Q-Learning for zero-day attack detection in IoMT. The framework comprises four layers: data preprocessing converting raw packets into 20-dimensional feature vectors; quantum-enhanced state encoding projecting features into an 8-qubit Hilbert space using a variational quantum circuit; hierarchical Q-Learning with per-device local agents and a global agent; and online adaptation with prioritized experience replay for continuous policy updates without offline retraining. We tested SAF‑LQC on four IoMT datasets. The datasets are CICIoMT2024, Edge‑IIoTset, MedTLS, and a combined benchmark. The results show strong performance. Average Precision reached 99.85%. Accuracy was 99.55%. Recall came in at 99.78%. F1‑Score was 99.81%. The system also caught zero‑day attacks well. Detection rates stayed above 98.70%. It adapted to new attack patterns in 298 to 389 time steps. That is about 5 to 6.5 minutes. Inference time was fast. Each sample took only 2.87 milliseconds on average. This confirms the system works in real time. Ablation studies confirm that online adaptation contributes the largest performance gain, with its removal causing 9.69% degradation. Comparisons against state-of-the-art methods including Transformer-IDS, DeepFedIDS, and Quantum Federated Learning demonstrate that SAF-LQC outperforms these approaches by 2.26% to 4.08% in F1-Score while achieving lower inference latency.