Deteksi Anomali pada Citra X-ray Dada Menggunakan Variational Autoencoder dengan Skema Sequential Hyperparameter Optimization
Abstract
The limited availability of labeled medical images remains a major challenge in developing reliable deep learning-based disease detection systems. Conventional classification approaches generally require a large amount of abnormal data, whereas medical image annotation is time-consuming, costly, and highly dependent on radiological expertise. This study proposes an unsupervised anomaly detection model for chest X-ray images using a Variational Autoencoder (VAE), in which only normal images are utilized during the training process. The experiments were conducted on the COVID-19-Pneumonia-Normal Chest X-ray Images dataset, consisting of 5,228 images categorized into normal, pneumonia, and COVID-19 classes. The proposed framework includes image preprocessing, baseline VAE construction, sequential hyperparameter optimization, Beta-VAE implementation, and model evaluation using Accuracy, Precision, Recall, F1-Score, and the Area Under the Receiver Operating Characteristic Curve (AUROC). Experimental results demonstrate that the optimized model outperformed the baseline model, achieving an Accuracy of 97.50%, Precision of 96.32%, Recall of 100%, F1-Score of 98.12%, and an AUROC of 0.9999. These findings indicate that hyperparameter optimization and appropriate β coefficient selection improve latent representation learning, leading to more effective discrimination between normal and abnormal chest X-ray images. Therefore, the proposed approach has the potential to serve as an artificial intelligence-based early screening tool for chest radiograph analysis, particularly in scenarios where labeled medical data are limited.
Downloads
References
Choi, B., & Jeong, J. (2022). ViV-Ano: Anomaly Detection and Localization Combining Vision Transformer and Variational Autoencoder in the Manufacturing Process. Electronics (Switzerland), 11(15). https://doi.org/10.3390/electronics11152306
FAROOQ, Y., & SAVAŞ, S. (2024). Noise Removal from the Image Using Convolutional Neural Networks-Based Denoising Auto Encoder. Journal of Emerging Computer Technologies, 3(1), 21–28. https://doi.org/10.57020/ject.1390428
Fil, M., Mesinovic, M., Morris, M., & Wildberger, J. (2020). Β-vae reproducibility: challenges and extensions. Preprint ArXiv, 1, 1–14. https://doi.org/https://doi.org/10.48550/arXiv.2112.14278
Gao, Z., Nakayama, R., Hizukuri, A., & Kido, S. (2025). Anomaly detection scheme for lung CT images using vector quantized variational auto-encoder with support vector data description. Radiological Physics and Technology, 18(1), 17–26. https://doi.org/10.1007/s12194-024-00851-5
Georgescu, M. I. (2023). Masked Autoencoders for Unsupervised Anomaly Detection in Medical Images. Procedia Computer Science, 225, 969–978. https://doi.org/10.1016/j.procs.2023.10.084
Gunawan, D., & Setiawan, H. (2022). Convolutional Neural Network dalam Analisis Citra Medis. KONSTELASI: Konvergensi Teknologi Dan Sistem Informasi, 2(2), 376–390. https://doi.org/https://doi.org/10.24002/konstelasi.v2i2.5367
Horat, A., Oiegar, V. F., Buzea, G., Tepordei, T., Alice, S., Vicoleanu, P., & Dumitrescu, A. M. (2026). Multimodal Autoencoder – Based Anomaly Detection Reveals Clinical – Radiologic Heterogeneity in Pulmonary Fibrosis. Medical Sciences, 14(1), 1–26. https://doi.org/https://doi.org/10.3390/medsci14010076
Iglesias, G., Menendez, H., & Talavera, E. (2025). Improving explanations for medical X-ray diagnosis combining variational autoencoders and adversarial machine learning. Computers in Biology and Medicine, 188(January), 109857. https://doi.org/10.1016/j.compbiomed.2025.109857
Kalusivalingam, A. K., Singh, R., & Bose, M. (2024). Enhancing Anomaly Detection in Histopathological Images Using Convolutional Neural Networks and Variational Autoencoders. Emerging Advanced AI Journal, 1–24. http://www.eaaij.com/index.php/eaaij/article/view/52%0Ahttp://www.eaaij.com/index.php/eaaij/article/download/52/52
Kumar, S., Shastri, S., Mahajan, S., Singh, K., Gupta, S., Rani, R., Mohan, N., & Mansotra, V. (2022). LiteCovidNet: A lightweight deep neural network model for detection of COVID-19 using X-ray images. International Journal of Imaging Systems and Technology, 32(5), 1464–1480. https://doi.org/https://doi.org/10.1002/ima.22770
Lebaka, K. B., & Sithungu, S. P. (2025). Anomaly Detection in Retinal Imagery Using Variational Autoencoders. In CIIS 2024 - 2024 the 7th International Conference on Computational Intelligence and Intelligent Systems (Vol. 1, Issue 1). Association for Computing Machinery. https://doi.org/10.1145/3708778.3708786
Liu, B., Wang, D., Lin, K., Tan, P. N., & Zhou, J. (2021). RCA: A Deep Collaborative Autoencoder Approach for Anomaly Detection. IJCAI International Joint Conference on Artificial Intelligence, 1505–1511. https://doi.org/10.24963/ijcai.2021/208
Nakao, T., Hanaoka, S., Nomura, Y., Murata, M., Takenaga, T., Miki, S., Watadani, T., Yoshikawa, T., Hayashi, N., & Abe, O. (2021). Unsupervised Deep Anomaly Detection in Chest Radiographs. Journal of Digital Imaging, 34(2), 418–427. https://doi.org/10.1007/s10278-020-00413-2
Rais, K., Amroune, M., Benmachiche, A., & Haouam, M. Y. (2024). Exploring Variational Autoencoders for Medical Image Generation: A Comprehensive Study. Preprint ArXiv, 1–5. https://doi.org/https://doi.org/10.48550/arXiv.2411.07348
Rana, N., & Marwaha, H. (2024). Auto encoder-guided Feature Extraction for Pneumonia Identification from Chest X-ray Images. E3S Web of Conferences, 556(01011), 1–8. https://doi.org/10.1051/e3sconf/202455601011
Shastri, S., Kansal, I., Kumar, S., Singh, K., Popli, R., & Mansotra, V. (2022). CheXImageNet : a novel architecture for accurate classification of Covid ‑ 19 with chest x ‑ ray digital images using deep convolutional neural networks. Health and Technology, 12, 193–204. https://doi.org/10.1007/s12553-021-00630-x
Siddalingappa, R., & Kanagaraj, S. (2021). Anomaly Detection on Medical Images using Autoencoder and Convolutional Neural Network. International Journal of Advanced Computer Science and Applications, 12(7), 148–156. https://doi.org/10.14569/IJACSA.2021.0120717
Zhao, Y., Ding, Q., & Zhang, X. (2023). Ae-Flow: Autoencoders With Normalizing Flows for Medical Images Anomaly Detection. 11th International Conference on Learning Representations, ICLR 2023, 1–14. https://openreview.net/forum?id=9OmCr1q54Z
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Deteksi Anomali pada Citra X-ray Dada Menggunakan Variational Autoencoder dengan Skema Sequential Hyperparameter Optimization
Pages: 1595-1607
Copyright (c) 2026 Diki Aulio Fransisko, Febi Yanto, Benny Sukma Negara, Siti Ramadhani, Reski Mai Candra

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













