CRTSC: Channel-Wise Recalibration and Texture-Structural Consistency Constraint for Anomaly Detection in Medical Chest Images
Abstract
1. Introduction
- This study proposes a novel and effective framework called channel-wise recalibration along with the texture–structural consistency constraint (CRTSC), which includes a channel-wise recalibration module (CRM) and a texture–structural consistency constraint (TSCC) for unsupervised medical image anomaly detection.
- The proposed CRM and TSCC modules establish spatial relationships between abnormal objects and enhance their definiteness to preserve the uniqueness of individual samples, respectively.
- Extensive experiments and ablation studies have been conducted on the UMIAD public large-scale datasets, including the ZhangLab Chest X-ray and Stanford CheXpert, proving the promising results of our method against SOTA approaches.
2. Related Works
2.1. Anomaly Detection
2.2. Unsupervised Medical Image Anomaly Detection
3. Proposed CRTSC Method
3.1. Channel-Wise Recalibration Module
3.2. Texture–Structural Consistency Constraint
3.3. Anomaly Discrimination
3.4. Framework Optimization and Loss Function
4. Experimental Results and Analysis
4.1. Experimental Setup
4.2. Comparisons with State-of-the-Art Methods
4.3. Ablation Studies
5. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Chandola, V.; Banerjee, A.; Kumar, V. Anomaly detection: A survey. ACM Comput. Surv. 2009, 41, 1–58. [Google Scholar] [CrossRef]
- Puder, A.; Zink, M.; Seidel, L.; Sax, E. Hybrid anomaly detection in time series by combining Kalman filters and machine learning models. Sensors 2024, 24, 2895. [Google Scholar] [CrossRef] [PubMed]
- Xiang, T.; Zhang, Y.; Lu, Y.; Yuille, A.L.; Zhang, C.; Cai, W.; Zhou, Z. Squid: Deep feature in-painting for unsupervised anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 23890–23901. [Google Scholar]
- Tian, Y.; Pang, G.; Liu, Y.; Wang, C.; Chen, Y.; Liu, F.; Singh, R.; Verjans, J.W.; Wang, M.; Carneiro, G. Unsupervised anomaly detection in medical images with a memory-augmented multi-level cross-attentional masked autoencoder. In International Workshop on Machine Learning in Medical Imaging; Springer: Cham, Switzerland, 2023; pp. 11–21. [Google Scholar]
- Brunese, L.; Mercaldo, F.; Reginelli, A.; Santone, A. Explainable deep learning for pulmonary disease and coronavirus COVID-19 detection from X-rays. Comput. Methods Programs Biomed. 2020, 196, 105608. [Google Scholar] [CrossRef] [PubMed]
- Reiss, T.; Cohen, N.; Bergman, L.; Hoshen, Y. Panda: Adapting pretrained features for anomaly detection and segmentation. In Proceedings of the Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 2806–2814. [Google Scholar]
- Brunese, L.; Mercaldo, F.; Reginelli, A.; Santone, A. An ensemble learning approach for brain cancer detection exploiting radiomic features. Comput. Methods Programs Biomed. 2020, 185, 105134. [Google Scholar] [CrossRef] [PubMed]
- Qiao, S.; Guo, Q.; Shi, F.; Wang, M.; Zhu, H.; Khan, F.; Rodrigues, J.J.P.C.; Lyu, Z. SIBW: A Swarm Intelligence-Based Network Flow Watermarking Approach for Privacy Leakage Detection in Digital Healthcare Systems. IEEE J. Biomed. Health Inform. 2025, 1–12. [Google Scholar] [CrossRef]
- Kocon, M.; Malesa, M.; Rapcewicz, J. Ultra-lightweight fast anomaly detectors for industrial applications. Sensors 2023, 24, 161. [Google Scholar] [CrossRef]
- Wu, C.; Chen, J.; Zhu, S.; Feng, W.; He, K.; Du, R.; Xiang, Y. Wafbooster: Automatic boosting of waf security against mutated malicious payloads. IEEE Trans. Dependable Secur. Comput. 2025, 22, 1118–1131. [Google Scholar] [CrossRef]
- Vaghasiya, S.; Ramoliya, F.; Gupta, R.; Tanwar, S.; Rodrigues, J.J.; Woungang, I. XSH-ParK: XAI-based Parkinson Disease Diagnosis Framework For Smart Healthcare Using MRI Images. In Proceedings of the GLOBECOM 2024—2024 IEEE Global Communications Conference, Cape Town, South Africa, 8–12 December 2024; pp. 3521–3526. [Google Scholar]
- Tschuchnig, M.E.; Gadermayr, M. Anomaly detection in medical imaging—A mini review. In International Data Science Conference; Springer: Wiesbaden, Germany, 2022; pp. 33–38. [Google Scholar]
- Tiger, M.; Heintz, F. Gaussian process based motion pattern recognition with sequential local models. In Proceedings of the 2018 IEEE Intelligent Vehicles Symposium (IV), Suzhou, China, 26–30 June 2018; pp. 1143–1149. [Google Scholar]
- Aboah, A. A vision-based system for traffic anomaly detection using deep learning and decision trees. In Proceedings of the Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 4207–4212. [Google Scholar]
- Abdelaty, M.; Doriguzzi-Corin, R.; Siracusa, D. DAICS: A deep learning solution for anomaly detection in industrial control systems. IEEE Trans. Emerg. Top. Comput. 2021, 10, 1117–1129. [Google Scholar] [CrossRef]
- Wu, C.; Chen, J.; Li, J.; Xu, J.; Jia, J.; Hu, Y.; Feng, Y.; Liu, Y.; Xiang, Y. Profit or Deceit? Mitigating Pump and Dump in DeFi via Graph and Contrastive Learning. IEEE Trans. Inf. Forensics Secur. 2025, 20, 8994–9008. [Google Scholar] [CrossRef]
- Defard, T.; Setkov, A.; Loesch, A.; Audigier, R. Padim: A patch distribution modeling framework for anomaly detection and localization. In International Conference on Pattern Recognition; Springer: Cham, Switzerland, 2021; pp. 475–489. [Google Scholar]
- Wu, C.; Sun, J.; Chen, J.; Alazab, M.; Liu, Y.; Xiang, Y. TCG-IDS: Robust network intrusion detection via temporal contrastive graph learning. IEEE Trans. Inf. Forensics Secur. 2025, 20, 1475–1486. [Google Scholar] [CrossRef]
- Kermany, D.S.; Goldbaum, M.; Cai, W.; Valentim, C.C.; Liang, H.; Baxter, S.L.; McKeown, A.; Yang, G.; Wu, X.; Yan, F.; et al. Identifying medical diagnoses and treatable diseases by image-based deep learning. Cell 2018, 172, 1122–1131. [Google Scholar] [CrossRef] [PubMed]
- Irvin, J.; Rajpurkar, P.; Ko, M.; Yu, Y.; Ciurea-Ilcus, S.; Chute, C.; Marklund, H.; Haghgoo, B.; Ball, R.; Shpanskaya, K.; et al. CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 590–597. [Google Scholar]
- Chen, Y.; Tian, Y.; Pang, G.; Carneiro, G. Deep one-class classification via interpolated gaussian descriptor. In Proceedings of the AAAI Conference on Artificial Intelligence, online, 22 February–1 March 2022; Volume 36, pp. 383–392. [Google Scholar]
- Tang, Y.; Tang, Y.; Zhu, Y.; Xiao, J.; Summers, R.M. A disentangled generative model for disease decomposition in chest X-rays via normal image synthesis. Med. Image Anal. 2021, 67, 101839. [Google Scholar] [CrossRef] [PubMed]
- Zavrtanik, V.; Kristan, M.; Skočaj, D. Reconstruction by inpainting for visual anomaly detection. Pattern Recognit. 2021, 112, 107706. [Google Scholar] [CrossRef]
- Abe, N.; Zadrozny, B.; Langford, J. Outlier detection by active learning. In Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, 20–23 August 2006; pp. 504–509. [Google Scholar]
- Naval Marimont, S.; Tarroni, G. Implicit field learning for unsupervised anomaly detection in medical images. In Proceedings of the International Conference on Medical Image Computing and Computer Assisted Intervention (MICCAI 2021), Strasbourg, France, 27 September–1 October 2021; pp. 189–198. [Google Scholar]
- Xiaoyu, T.; Jinbo, H.; Jiewen, F.; Xihe, C. Image segmentation and defect detection of insulators based on U-net and YOLOv4. J. South China Norm. Univ. 2020, 52, 15–21. [Google Scholar]
- Liu, Y.; Tsang, K.F.; Wu, C.K.; Wei, Y.; Wang, H.; Zhu, H. IEEE P2668-compliant multi-layer IoT-DDoS defense system using deep reinforcement learning. IEEE Trans. Consum. Electron. 2022, 69, 49–64. [Google Scholar] [CrossRef]
- Wu, C.; Chen, J.; Fang, Q.; He, K.; Zhao, Z.; Ren, H.; Xu, G.; Liu, Y.; Xiang, Y. Rethinking membership inference attacks against transfer learning. IEEE Trans. Inf. Forensics Secur. 2024, 19, 6441–6454. [Google Scholar] [CrossRef]
- Li, C.L.; Sohn, K.; Yoon, J.; Pfister, T. Cutpaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 9664–9674. [Google Scholar]
- Xiang, T.; Zhang, Y.; Lu, Y.; Yuille, A.; Zhang, C.; Cai, W.; Zhou, Z. Exploiting Structural Consistency of Chest Anatomy for Unsupervised Anomaly Detection in Radiography Images. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 6070–6081. [Google Scholar] [CrossRef]
- Pawlowski, N.; Lee, M.C.; Rajchl, M.; McDonagh, S.; Ferrante, E.; Kamnitsas, K.; Cooke, S.; Stevenson, S.; Khetani, A.; Newman, T.; et al. Unsupervised lesion detection in brain CT using bayesian convolutional autoencoders. In Proceedings of the Medical Imaging with Deep Learning, Amsterdam, The Netherlands, 4–6 July 2018. [Google Scholar]
- Zhao, H.; Li, Y.; He, N.; Ma, K.; Fang, L.; Li, H.; Zheng, Y. Anomaly detection for medical images using self-supervised and translation-consistent features. IEEE Trans. Med. Imaging 2021, 40, 3641–3651. [Google Scholar] [CrossRef]
- Zhou, K.; Li, J.; Luo, W.; Li, Z.; Yang, J.; Fu, H.; Cheng, J.; Liu, J.; Gao, S. Proxy-bridged image reconstruction network for anomaly detection in medical images. IEEE Trans. Med. Imaging 2021, 41, 582–594. [Google Scholar] [CrossRef]
- Liu, Y.; Zhang, J.; Zhao, T.; Wang, Z.; Wang, Z. Reconstruction of the meso-scale concrete model using a deep convolutional generative adversarial network (DCGAN). Constr. Build. Mater. 2023, 370, 130704. [Google Scholar] [CrossRef]
- Akcay, S.; Atapour-Abarghouei, A.; Breckon, T.P. GANomaly: Semi-supervised anomaly detection via adversarial training. In Proceedings of the Asian Conference on Computer Vision (ACCV), Perth, Australia, 2–6 December 2019; pp. 622–637. [Google Scholar]
- Schlegl, T.; Seeböck, P.; Waldstein, S.M.; Langs, G.; Schmidt-Erfurth, U. f-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks. Med. Image Anal. 2019, 54, 30–44. [Google Scholar] [CrossRef]
- Han, K.; Wang, Y.; Chen, H.; Chen, X.; Guo, J.; Liu, Z.; Tang, Y.; Xiao, A.; Xu, C.; Xu, Y.; et al. A survey on vision transformer. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 45, 87–110. [Google Scholar] [CrossRef]
- Wei, X.; Yu, X.; Liu, B.; Zhi, L. Convolutional neural networks and local binary patterns for hyperspectral image classification. Eur. J. Remote Sens. 2019, 52, 448–462. [Google Scholar] [CrossRef]
- Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Process. 2004, 13, 600–612. [Google Scholar] [CrossRef] [PubMed]
- Liu, Z.; Zhou, Y.; Xu, Y.; Wang, Z. Simplenet: A simple network for image anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Vancouver, BC, Canada, 17–24 June 2023; pp. 20402–20411. [Google Scholar]
- Schafer, F.; Katzfuss, M.; Owhadi, H. Sparse Cholesky Factorization by Kullback–Leibler Minimization. SIAM J. Sci. Comput. 2021, 43, 2019–2046. [Google Scholar] [CrossRef]
- Hassan, E.; Shams, M.Y.; Hikal, N.A.; Elmougy, S. The effect of choosing optimizer algorithms to improve computer vision tasks: A comparative study. Multimed. Tools Appl. 2023, 82, 16591–16633. [Google Scholar] [CrossRef]
- Salehi, M.; Sadjadi, N.; Baselizadeh, S.; Rohban, M.H.; Rabiee, H.R. Multiresolution knowledge distillation for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 20–25 June 2021; pp. 14902–14912. [Google Scholar]
- Brady, A.P. Error and discrepancy in radiology: Inevitable or avoidable? Insights Imaging 2017, 8, 171–182. [Google Scholar] [CrossRef] [PubMed]
- Park, H.; Noh, J.; Ham, B. Learning memory-guided normality for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 13–19 June 2020; pp. 14372–14381. [Google Scholar]
- Liu, Q.; Zheng, H.; Jia, Z.; Shi, Z. Tumor detection on bronchoscopic images by unsupervised learning. Sci. Rep. 2025, 15, 245. [Google Scholar] [CrossRef]
- Ihler, S.; Kuhnke, F.; Kuhlgatz, T.; Seel, T. Distribution-Aware Multi-Label FixMatch for Semi-Supervised Learning on CheXpert. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA, 16–22 June 2024; pp. 2295–2304. [Google Scholar]





| Models | Ref’Year | AUC (%) | ACC (%) | F1 (%) |
|---|---|---|---|---|
| MemAE [44] | ICCV’19 | 77.8 ± 1.4 | 56.5 ± 1.1 | 82.6 ± 0.9 |
| MNAD [45] | CVPR’20 | 77.3 ± 0.9 | 73.6 ± 0.7 | 79.3 ± 1.1 |
| SALAD [32] | TMI’21 | 82.7 ± 0.8 | 75.9 ± 0.9 | 82.1 ± 0.3 |
| CutPaste [29] | CVPR’21 | 73.6 ± 3.9 | 64.0 ± 6.5 | 72.3 ± 8.9 |
| PANDA [6] | CVPR’21 | 65.7 ± 1.3 | 65.4 ± 1.9 | 66.3 ± 1.2 |
| M-KD [43] | CVPR’21 | 74.1 ± 2.6 | 69.1 ± 0.2 | 62.3 ± 8.4 |
| IF-2D [25] | MICCAI’21 | 81.0 ± 2.8 | 76.4 ± 0.2 | 82.2 ± 2.7 |
| PaDiM [17] | ICPR’21 | 71.4 ± 3.4 | 72.9 ± 2.4 | 80.7 ± 1.2 |
| IGD [21] | AAAI’22 | 73.4 ± 1.9 | 74.0 ± 2.2 | 80.9 ± 1.3 |
| SQUID [3] | CVPR’23 | 87.6 ± 1.5 | 80.3 ± 1.3 | 84.7 ± 0.8 |
| SimSID [30] | TPAMI’24 | 91.1 ± 0.9 | 85.0 ± 1.0 | 88.0 ± 1.1 |
| KD-MFAD [46] | SR’25 | 89.4 ± 1.5 | 87.2 ± 1.3 | 86.1 ± 1.1 |
| CRTSC | Ours | 88.7 ± 1.5 | 85.4 ± 1.7 | 88.9 ± 0.6 |
| Models | Ref’Year | AUC (%) | ACC (%) | F1 (%) |
|---|---|---|---|---|
| Ganomaly [35] | ACCV’18 | 68.9 ± 1.4 | 65.7 ± 0.2 | 65.1 ± 1.9 |
| f-AnoGAN [36] | MIA’19 | 65.8 ± 3.3 | 63.7 ± 1.8 | 59.4 ± 3.8 |
| MemAE [44] | ICCV’19 | 54.3 ± 4.0 | 55.6 ± 1.4 | 53.3 ± 7.0 |
| CutPaste [29] | CVPR’21 | 65.5 ± 2.2 | 62.7 ± 2.0 | 60.3 ± 4.6 |
| PANDA [6] | CVPR’21 | 68.6 ± 0.9 | 66.4 ± 2.8 | 65.3 ± 1.5 |
| M-KD [43] | CVPR’21 | 69.8 ± 1.6 | 66.0 ± 2.5 | 63.6 ± 5.7 |
| SQUID [3] | CVPR’23 | 78.1 ± 5.1 | 71.9 ± 3.8 | 75.9 ± 5.7 |
| SSL [47] | CVPR’24 | 80.3 ± 1.2 | 56.2 ± 1.7 | 52.9 ± 0.7 |
| KD-MFAD [46] | SR’25 | 74.0 ± 3.9 | 69.6 ± 3.0 | 70.9 ± 4.1 |
| CRTSC | Ours | 78.3 ± 0.6 | 72.6 ± 1.2 | 70.2 ± 2.3 |
| Method | ZhangLab | CheXpert | |||||
|---|---|---|---|---|---|---|---|
| AUC (%) | ACC (%) | F1 (%) | AUC (%) | ACC (%) | F1 (%) | ||
| w/o KL loss | 87.66 | 82.53 | 86.59 | 78.21 | 71.90 | 75.97 | |
| w/o TSCC | 87.99 | 81.41 | 85.71 | 79.03 | 72.61 | 78.42 | |
| w/o CWR | 88.98 | 82.53 | 86.29 | 79.65 | 74.00 | 73.25 | |
| Baseline | 87.60 | 80.30 | 84.70 | 78.10 | 71.90 | 75.90 | |
| CRTSC | 90.19 | 85.42 | 88.91 | 78.26 | 72.60 | 70.20 | |
| ZhangLab | CheXpert | ||||||
|---|---|---|---|---|---|---|---|
| AUC (%) | ACC (%) | F1 (%) | AUC (%) | ACC (%) | F1 (%) | ||
| Baseline | 87.60 | 80.30 | 84.70 | 78.10 | 71.90 | 75.90 | |
| 0.001 | 84.54 | 79.65 | 84.34 | 78.26 | 70.60 | 66.97 | |
| 0.002 | 87.66 | 82.53 | 86.59 | 70.95 | 68.00 | 65.96 | |
| 0.003 | 83.10 | 76.44 | 81.08 | 64.94 | 61.80 | 62.77 | |
| Reduction | ZhangLab | CheXpert | |||||
|---|---|---|---|---|---|---|---|
| AUC (%) | ACC (%) | F1 (%) | AUC (%) | ACC (%) | F1 (%) | ||
| 24 | 79.73 | 74.04 | 79.70 | 69.26 | 65.40 | 66.79 | |
| 20 | 86.03 | 79.01 | 83.18 | 67.39 | 65.60 | 60.73 | |
| 16 | 79.73 | 82.53 | 86.29 | 76.04 | 72.50 | 68.97 | |
| 12 | 84.01 | 77.40 | 82.22 | 69.55 | 66.20 | 65.01 | |
| 8 | 88.98 | 82.53 | 86.29 | 70.47 | 65.60 | 66.27 | |
| ZhangLab | CheXpert | ||||||
|---|---|---|---|---|---|---|---|
| AUC (%) | ACC (%) | F1 (%) | AUC (%) | ACC (%) | F1 (%) | ||
| 0.01 | 86.11 | 79.81 | 84.67 | 72.62 | 68.60 | 71.67 | |
| 0.02 | 81.44 | 76.60 | 82.74 | 85.78 | 78.60 | 77.57 | |
| 0.03 | 87.93 | 80.99 | 84.41 | 75.96 | 70.05 | 68.21 | |
| 0.04 | 85.29 | 77.24 | 82.38 | 70.35 | 67.16 | 72.57 | |
| 0.05 | 81.51 | 76.28 | 82.25 | 76.59 | 70.60 | 66.97 | |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Xiong, M.; Wang, C.; Cai, H.; Alotaibi, A.; Anwar, S.; Saudagar, A.K.J.; Del Ser, J.; Muhammad, K. CRTSC: Channel-Wise Recalibration and Texture-Structural Consistency Constraint for Anomaly Detection in Medical Chest Images. Sensors 2025, 25, 6722. https://doi.org/10.3390/s25216722
Xiong M, Wang C, Cai H, Alotaibi A, Anwar S, Saudagar AKJ, Del Ser J, Muhammad K. CRTSC: Channel-Wise Recalibration and Texture-Structural Consistency Constraint for Anomaly Detection in Medical Chest Images. Sensors. 2025; 25(21):6722. https://doi.org/10.3390/s25216722
Chicago/Turabian StyleXiong, Mingfu, Chong Wang, Hao Cai, Aziz Alotaibi, Saeed Anwar, Abdul Khader Jilani Saudagar, Javier Del Ser, and Khan Muhammad. 2025. "CRTSC: Channel-Wise Recalibration and Texture-Structural Consistency Constraint for Anomaly Detection in Medical Chest Images" Sensors 25, no. 21: 6722. https://doi.org/10.3390/s25216722
APA StyleXiong, M., Wang, C., Cai, H., Alotaibi, A., Anwar, S., Saudagar, A. K. J., Del Ser, J., & Muhammad, K. (2025). CRTSC: Channel-Wise Recalibration and Texture-Structural Consistency Constraint for Anomaly Detection in Medical Chest Images. Sensors, 25(21), 6722. https://doi.org/10.3390/s25216722

