Comparison of Fine-tuned and Frozen BiomedCLIP Encoders for Image Captioning of Cervical VIA Images with LSTM and BiLSTM Decoders

Authors

  • Tengku Kevin Juldianto Department of Computer Science, Faculty of Computer Science, Sriwijaya University, Palembang, South Sumatra, Indonesia
  • Siti Nurmaini Intelligent System Research Group, Sriwijaya University, Palembang, South Sumatra, Indonesia , Artificial Intelligence Medical Center of Excellence, Sriwijaya University, Palembang, South Sumatra, Indonesia
  • Firdaus Intelligent System Research Group, Sriwijaya University, Palembang, South Sumatra, Indonesia , Artificial Intelligence Medical Center of Excellence, Sriwijaya University, Palembang, South Sumatra, Indonesia

DOI:

https://doi.org/10.34148/teknika.v15i3.1593

Keywords:

BiLSTM, BiomedCLIP, Cervical Cancer, Image Captioning, Visual Inspection with Acetic Acid

Abstract

Visual Inspection with Acetic Acid (VIA) is a low-cost cervical cancer screening method, but its interpretation depends on the examiner and is often subjective. Existing artificial intelligence models for VIA images mostly output class labels or lesion areas without stating the visual findings behind the decision. This study applies image captioning to describe the findings in a VIA image as a sentence and examines which component most affects caption quality. Four configurations were built by combining two encoder treatments, a fine-tuned and a frozen BiomedCLIP encoder, with two decoders, Long Short-Term Memory (LSTM) and Bidirectional LSTM (BiLSTM). The dataset consists of 185 image–caption pairs from the IARC Image Bank VIA, split by stratification into 166 training and 19 test pairs. Caption quality was measured with BLEU, METEOR, ROUGE-L, and CIDEr, supported by the cosine similarity between test image features and the conclusion accuracy against a majority-class baseline. The fine-tuned encoder with the BiLSTM decoder achieved the highest scores, with a BLEU-4 of 74.98, METEOR of 83.77, ROUGE-L of 80.70, and CIDEr of 7.0212. The frozen encoder produced nearly uniform features, with a cosine similarity of 0.7634 compared with 0.2192 after fine-tuning, and generated only one or two distinct sentences across 19 test images. Its conclusion accuracy was 47.06%, below the baseline of 52.94%, whereas the fine-tuned encoder reached 70.59%. These results indicate that encoder fine-tuning is the main factor in captioning VIA images, while the choice between LSTM and BiLSTM has a smaller effect.

Downloads

Download data is not yet available.

References

[1] F. Bray et al., “Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries,” CA Cancer J. Clin., vol. 74, no. 3, pp. 229–263, 2024, doi: 10.3322/caac.21834.

[2] D. Singh et al., “Global estimates of incidence and mortality of cervical cancer in 2020: a baseline analysis of the WHO Global Cervical Cancer Elimination Initiative,” Lancet Glob. Health, vol. 11, no. 2, pp. e197–e206, 2023, doi: 10.1016/S2214-109X(22)00501-0.

[3] S. Mittal and P. Basu, Atlas of Visual Inspection of the Cervix with Acetic Acid for Screening, Triage, and Assessment for Treatment (IARC CancerBase No. 16). Lyon, France: International Agency for Research on Cancer, 2020. [Online]. Available: https://screening.iarc.fr/atlasvia.php

[4] IARC Working Group on the Evaluation of Cancer-Preventive Interventions, Cervical Cancer Screening (IARC Handbooks of Cancer Prevention, vol. 18). Lyon, France: International Agency for Research on Cancer, 2022.

[5] S. Nurmaini et al., “Robust assessment of cervical precancerous lesions from pre- and post-acetic acid cervicography by combining deep learning and medical guidelines,” Inform. Med. Unlocked, vol. 52, Art. no. 101609, 2025, doi: 10.1016/j.imu.2024.101609.

[6] S. R. Ahmed et al., “Assessing generalizability of an AI-based visual test for cervical cancer screening,” PLOS Digit. Health, vol. 3, no. 10, Art. no. e0000364, 2024, doi: 10.1371/journal.pdig.0000364.

[7] R. Viñals, M. Jonnalagedda, P. Petignat, J.-P. Thiran, and P. Vassilakos, “Artificial intelligence-based cervical cancer screening on images taken during visual inspection with acetic acid: A systematic review,” Diagnostics, vol. 13, no. 5, Art. no. 836, 2023, doi: 10.3390/diagnostics13050836.

[8] D. Egemen et al., “Artificial intelligence–based image analysis in clinical testing: lessons from cervical cancer screening,” J. Natl. Cancer Inst., vol. 116, no. 1, pp. 26–33, 2024, doi: 10.1093/jnci/djad202.

[9] S. Nurmaini et al., “AI-assisted diagnosis of cervical dysplasia from cervicography images,” Sci. Rep., vol. 16, Art. no. 9920, 2026, doi: 10.1038/s41598-026-39192-1.

[10] M. Ghassemi, L. Oakden-Rayner, and A. L. Beam, “The false hope of current approaches to explainable artificial intelligence in health care,” Lancet Digit. Health, vol. 3, no. 11, pp. e745–e750, 2021, doi: 10.1016/S2589-7500(21)00208-9.

[11] M. Stefanini, M. Cornia, L. Baraldi, S. Cascianelli, G. Fiameni, and R. Cucchiara, “From show to tell: A survey on deep learning-based image captioning,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 45, no. 1, pp. 539–559, Jan. 2023, doi: 10.1109/TPAMI.2022.3148210.

[12] P. Messina et al., “A survey on deep learning and explainability for automatic report generation from medical images,” ACM Comput. Surv., vol. 54, no. 10s, pp. 1–40, 2022, doi: 10.1145/3522747.

[13] A. Sabri, C. Zouitni, H. El Medhoune, and A. Aarab, “Automatic skin lesion diagnosis and medical report generation based on image captioning,” J. Comput. Sci., vol. 21, no. 5, pp. 1210–1216, 2025, doi: 10.3844/jcssp.2025.1210.1216.

[14] I. Hartsock and G. Rasool, “Vision-language models for medical report generation and visual question answering: a review,” Front. Artif. Intell., vol. 7, Art. no. 1430984, 2024, doi: 10.3389/frai.2024.1430984.

[15] J. Pavlopoulos, V. Kougia, I. Androutsopoulos, and D. Papamichail, “Diagnostic captioning: a survey,” Knowl. Inf. Syst., vol. 64, no. 7, pp. 1691–1722, 2022, doi: 10.1007/s10115-022-01684-7.

[16] D.-R. Beddiar, M. Oussalah, and T. Seppänen, “Automatic captioning for medical imaging (MIC): a rapid review of literature,” Artif. Intell. Rev., vol. 56, no. 5, pp. 4019–4076, 2023, doi: 10.1007/s10462-022-10270-w.

[17] M. Rifki, A. Bastian, and A. Mardiana, “Development of CNN-LSTM-based image captioning dataset to enhance visual accessibility for disabilities,” JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 10, no. 4, pp. 980–992, 2025, doi: 10.33480/jitk.v10i4.6657.

[18] O. Ondeng, H. Ouma, and P. Akuon, “A review of transformer-based approaches for image captioning,” Appl. Sci., vol. 13, no. 19, Art. no. 11103, 2023, doi: 10.3390/app131911103.

[19] O. Vinyals, A. Toshev, S. Bengio, and D. Erhan, “Show and tell: A neural image caption generator,” in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 2015, pp. 3156–3164, doi: 10.1109/CVPR.2015.7298935.

[20] A. Radford et al., “Learning transferable visual models from natural language supervision,” in Proc. 38th Int. Conf. Mach. Learn. (ICML), PMLR, vol. 139, 2021, pp. 8748–8763.

[21] Z. Zhao et al., “CLIP in medical imaging: A survey,” Med. Image Anal., vol. 102, Art. no. 103551, 2025, doi: 10.1016/j.media.2025.103551.

[22] S. Zhang et al., “A multimodal biomedical foundation model trained from fifteen million image–text pairs,” NEJM AI, vol. 2, no. 1, Art. no. AIoa2400640, 2025, doi: 10.1056/AIoa2400640.

[23] S. Hochreiter and J. Schmidhuber, “Long short-term memory,” Neural Comput., vol. 9, no. 8, pp. 1735–1780, 1997, doi: 10.1162/neco.1997.9.8.1735.

[24] K. Greff, R. K. Srivastava, J. Koutník, B. R. Steunebrink, and J. Schmidhuber, “LSTM: A search space odyssey,” IEEE Trans. Neural Netw. Learn. Syst., vol. 28, no. 10, pp. 2222–2232, 2017, doi: 10.1109/TNNLS.2016.2582924.

[25] H. Fadhilah and N. P. Utama, “Systematic literature review on medical image captioning using CNN-LSTM and transformer-based models,” J. Masyarakat Informatika, vol. 16, no. 1, pp. 32–53, 2025, doi: 10.14710/jmasif.16.1.73127.

[26] M. Schuster and K. K. Paliwal, “Bidirectional recurrent neural networks,” IEEE Trans. Signal Process., vol. 45, no. 11, pp. 2673–2681, 1997, doi: 10.1109/78.650093.

[27] F. Hoseini and A. Y. Notash, “Image captioning using bidirectional LSTM neural network,” Discov. Artif. Intell., vol. 5, Art. no. 80, 2025, doi: 10.1007/s44163-025-00315-8.

[28] A. Graves and J. Schmidhuber, “Framewise phoneme classification with bidirectional LSTM and other neural network architectures,” Neural Netw., vol. 18, no. 5–6, pp. 602–610, 2005, doi: 10.1016/j.neunet.2005.06.042.

[29] H. E. Kim, A. Cosa-Linan, N. Santhanam, M. Jannesari, M. E. Maros, and T. Ganslandt, “Transfer learning for medical image classification: a literature review,” BMC Med. Imaging, vol. 22, no. 1, Art. no. 69, 2022, doi: 10.1186/s12880-022-00793-7.

[30] D. M. Wonohadidjojo and L. Handayani, “Classification of Gram-stained microscopy images of bacteria cultured on multiple media using frozen and fine-tuned ResNet-50 transfer learning: A comparative study,” Teknika, vol. 15, no. 2, pp. 357–369, 2026, doi: 10.34148/teknika.v15i2.1507.

[31] K. Papineni, S. Roukos, T. Ward, and W.-J. Zhu, “BLEU: A method for automatic evaluation of machine translation,” in Proc. 40th Annu. Meeting Assoc. Comput. Linguistics (ACL), 2002, pp. 311–318, doi: 10.3115/1073083.1073135.

[32] S. Banerjee and A. Lavie, “METEOR: An automatic metric for MT evaluation with improved correlation with human judgments,” in Proc. ACL Workshop Intrinsic and Extrinsic Evaluation Measures for Machine Translation and/or Summarization, 2005, pp. 65–72.

[33] C.-Y. Lin, “ROUGE: A package for automatic evaluation of summaries,” in Text Summarization Branches Out, 2004, pp. 74–81.

[34] R. Vedantam, C. L. Zitnick, and D. Parikh, “CIDEr: Consensus-based image description evaluation,” in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 2015, pp. 4566–4575, doi: 10.1109/CVPR.2015.7299087.

[35] Q. Wang and A. B. Chan, “Describing like humans: On diversity in image captioning,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), 2019, pp. 4190–4198, doi: 10.1109/CVPR.2019.00432.

[36] F. Yu et al., “Evaluating progress in automatic chest X-ray radiology report generation,” Patterns, vol. 4, no. 9, Art. no. 100802, 2023, doi: 10.1016/j.patter.2023.100802.

[37] G. Varoquaux and V. Cheplygina, “Machine learning for medical imaging: methodological failures and recommendations for the future,” npj Digit. Med., vol. 5, no. 1, Art. no. 48, 2022, doi: 10.1038/s41746-022-00592-y.

Comparison of Fine-tuned and Frozen BiomedCLIP Encoders for Image Captioning of Cervical VIA Images with LSTM and BiLSTM Decoders

Downloads

Published

2026-11-24

How to Cite

Comparison of Fine-tuned and Frozen BiomedCLIP Encoders for Image Captioning of Cervical VIA Images with LSTM and BiLSTM Decoders. (2026). Teknika, 15(3), 472-482. https://doi.org/10.34148/teknika.v15i3.1593