Pengaruh Prompt Teks pada Model CLIP terhadap Akurasi Estimasi Kepadatan Kerumunan

Authors

  • Mas Nurul Achmadiah National Formosa University
  • Anindya Dwi Risdhayanti Politeknik Negeri Malang

DOI:

https://doi.org/10.52158/j4vg9n13

Keywords:

text prompt, CLIP, crowd counting, density estimation, cross-dataset evaluation

Abstract

The text prompt of a CLIP model is often regarded as an auxiliary setting, whereas in a counting architecture that uses the text embedding as the cross-attention context the prompt directly determines the quality of the spatial cues that reach the regression head. This study measures the accuracy gain contributed by the text prompt and examines whether that gain is consistent across datasets with different density characteristics. The gain is expressed as an error reduction relative to the prompt-free condition on ShanghaiTech Part A, then complemented by a comparison against language-based and non-language counting methods on four benchmarks, and by an analysis of the supervision weights required by each dataset. The results show the standard prompt reduces MAE by 11.72 percent and RMSE by 10.06 percent relative to the prompt-free condition, while a visual-only token achieves 6.08 percent and a random prompt only 2.37 percent. Against the language-based baseline CLIP-EBC, the evaluated model improves MAE from 52.5 to 51.39 on ShanghaiTech Part A and from 80.3 to 75.19 on UCF-QNRF. The supervision-weight analysis indicates that datasets with noisy annotations require the relative loss to be disabled, showing that the benefit of the language modality still depends on the quality of the spatial supervision that accompanies it.

References

[1] M. N. Achmadiah, N. Setyawan, A. A. Bryantono, C.-C. Sun, and W.-K. Kuo, “Fast Person Detection Using YOLOX With AI Accelerator For Train Station Safety,” in 2024 International Electronics Symposium (IES), IEEE, Aug. 2024, pp. 504–509. doi: 10.1109/IES63037.2024.10665874.

[2] Y. Zhang, D. Zhou, S. Chen, S. Gao, and Y. Ma, “Single-Image Crowd Counting via Multi-Column Convolutional Neural Network,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), IEEE, Jun. 2016, pp. 589–597. doi: 10.1109/CVPR.2016.70.

[3] Y. Li, X. Zhang, and D. Chen, “CSRNet: Dilated Convolutional Neural Networks for Understanding the Highly Congested Scenes,” in 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, IEEE, Jun. 2018, pp. 1091–1100. doi: 10.1109/CVPR.2018.00120.

[4] M. N. Achmadiah, C.-C. Sun, W.-K. Kuo, and J.-W. Hsieh, “RepSFNet : A Single Fusion Network with Structural Reparameterization for Crowd Counting,” in 2025 IEEE International Conference on Advanced Visual and Signal-Based Systems (AVSS), IEEE, Aug. 2025, pp. 1–6. doi: 10.1109/AVSS65446.2025.11149882.

[5] Boyu Wang, Huidong Liu, Dimitris Samaras, and Minh Hoai, “Distribution Matching for Crowd Counting,” in 34th Conference on Neural Information Processing Systems (NeurIPS 2020), Vancouver, Canada., 2020.

[6] Alec Radford * 1 Jong Wook Kim * 1 Chris Hallacy 1 Aditya Ramesh 1 Gabriel Goh 1 Sandhini Agarwal 1 Girish Sastry 1 Amanda Askell 1 Pamela Mishkin 1 Jack Clark 1 Gretchen Krueger 1 Ilya Sutskever 1, “Learning Transferable Visual Models From Natural Language Supervision,” in 38 th International Conference on Machine Learning, 2021.

[7] Y. Ma, V. Sanchez, and T. Guha, “CLIP-EBC: CLIP Can Count Accurately through Enhanced Blockwise Classification,” in 2025 IEEE International Conference on Multimedia and Expo (ICME), IEEE, Jun. 2025, pp. 1–6. doi: 10.1109/ICME59968.2025.11209839.

[8] N. Amini-Naieni, T. Han, and A. Zisserman, “CountGD: Multi-Modal Open-World Counting,” in Advances in Neural Information Processing Systems 37, San Diego, California, USA: Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2024, pp. 48810–48837. doi: 10.52202/079017-1547.

[9] Yihong wu, jinqiau wei, xionghui zhao, and yidi li, “DSGC-Net: A Dual-Stream Graph Convolutional Network for Crowd Counting via Feature Correlation Mining,”

[10] N. Setyawan, C.-C. Sun, M.-H. Hsu, W.-K. Kuo, and J.-W. Hsieh, “MicroViT: A Vision Transformer with Low Complexity Self Attention for Edge Device,” in 2025 IEEE International Symposium on Circuits and Systems (ISCAS), IEEE, May 2025, pp. 1–5. doi: 10.1109/ISCAS56072.2025.11043206.

[11] M. Nurul Achmadiah, A. Ahamad, C.-C. Sun, and W.-K. Kuo, “Energy-Efficient Fast Object Detection on Edge Devices for IoT Systems,” IEEE Internet Things J., vol. 12, no. 11, pp. 16681–16694, Jun. 2025, doi: 10.1109/JIOT.2025.3536526.

[12] G. Al Azhar, S. Sungkono, M. N. Achmadiyah, and S. Izza, “Peningkatan Kestabilan Sistem Kontrol UGV melalui Optimalisasi Manajemen Core dan Free-RTOS pada ESP32,” Jurnal Elektronika dan Otomasi Industri, vol. 10, no. 2, pp. 253–263, Jul. 2023, doi: 10.33795/elkolind.v10i2.3720.

[13] N. Setyawan, M. N. Achmadiah, C.-C. Sun, and W.-K. Kuo, “Multi-Stage Vision Transformer for Batik Classification,” in 2024 International Electronics Symposium (IES), IEEE, Aug. 2024, pp. 449–453. doi: 10.1109/IES63037.2024.10665807.

[14] Q. W. ⋆, H. R. and J. L. Xiaofei Hui, “Class-Agnostic Object Counting with Text-to-Image Diffusion Model,” in European Computer Vision Association (ECVA),

[15] Tianhang Pan and Xiuyi Jia, “Local Information Matters: A Rethink of Crowd Counting,”

Downloads

Published

2026-06-30

How to Cite

Pengaruh Prompt Teks pada Model CLIP terhadap Akurasi Estimasi Kepadatan Kerumunan. (2026). Journal of Applied Smart Electrical Network and Systems, 7(1), 40-44. https://doi.org/10.52158/j4vg9n13