Contrastive Learning for Aligning Human Perception and Computer Vision Representations of Urban Environments
Keywords:
contrastive learning; urban perception; street view imagery; representation alignment; computer vision; calibrationAbstract
Urban environments are represented in at least two incompatible ways: computer vision systems encode geometry, texture, objects, and scene semantics, whereas people encode streetscapes through judgments such as perceived safety, beauty, interest, enclosure, and legibility. The resulting representations are individually useful but poorly aligned, so a vision model may retrieve visually similar places while missing the perceptual qualities that make those places socially or experientially distinct. This paper develops a methodological framework for aligning human perceptual judgments with computer vision representations through stratified contrastive learning. The framework couples a street-image encoder with a perceptual-profile encoder, defines positive pairs by both matched observations and graded perceptual similarity, and constructs hard negatives from scenes that are semantically similar but perceptually divergent. A composite objective combines supervised contrastive separation, explicit cross-modal alignment, and uniformity regularization to prevent representation collapse while preserving continuous perceptual structure. The paper also specifies an evaluation logic based on centered kernel alignment, retrieval consistency, linear probing of perceptual dimensions, calibration, and selective risk, and it analyzes failure modes including rater noise, shortcut visual cues, spatial confounding, and domain shift across cities. The contribution is a technically explicit alignment design that treats human perception as a structured relational target rather than a set of independent labels. Its significance lies in providing a defensible basis for vision systems whose representations are not only visually discriminative but also interpretable with respect to how urban places are perceived.
References
1. LeCun, Y., Bengio, Y., & Hinton, G. (2015). Deep learning. Nature, 521(7553), 436–444. https://doi.org/10.1038/nature14539
2. Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., & Sutskever, I. (2021). Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning (pp. 8748–8763). PMLR.
3. Chen, T., Kornblith, S., Norouzi, M., & Hinton, G. (2020). A simple framework for contrastive learning of visual representations. In Proceedings of the 37th International Conference on Machine Learning (pp. 1597–1607). PMLR.
4. He, K., Fan, H., Wu, Y., Xie, S., & Girshick, R. (2020). Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (pp. 9729–9738). IEEE.
5. Khosla, P., Teterwak, P., Wang, C., Sarna, A., Tian, Y., Isola, P., Maschinot, A., Liu, C., & Krishnan, D. (2020). Supervised contrastive learning. In Advances in Neural Information Processing Systems (Vol. 33, pp. 18661–18673). Curran Associates.
6. Wang, T., & Isola, P. (2020). Understanding contrastive representation learning through alignment and uniformity on the hypersphere. In Proceedings of the 37th International Conference on Machine Learning (pp. 9929–9939). PMLR.
7. Salesses, P., Schechtner, K., & Hidalgo, C. A. (2013). The collaborative image of the city: Mapping the inequality of urban perception. PLoS ONE, 8(7), e68400. https://doi.org/10.1371/journal.pone.0068400
8. Naik, N., Philipoom, J., Raskar, R., & Hidalgo, C. (2014). Streetscore: Predicting the perceived safety of one million streetscapes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (pp. 779–785). IEEE.
9. Dubey, A., Naik, N., Parikh, D., Raskar, R., & Hidalgo, C. A. (2016). Deep learning the city: Quantifying urban perception at a global scale. In Computer Vision – ECCV 2016 (pp. 196–212). Springer.
10. Zhang, F., Zhou, B., Liu, L., Liu, Y., Fung, H. H., Lin, H., & Ratti, C. (2018). Measuring human perceptions of a large-scale urban region using machine learning. Landscape and Urban Planning, 180, 148–160. https://doi.org/10.1016/j.landurbplan.2018.08.020
11. Ewing, R., & Handy, S. (2009). Measuring the unmeasurable: Urban design qualities related to walkability. Journal of Urban Design, 14(1), 65–84. https://doi.org/10.1080/13574800802451155
12. Lynch, K. (1960). The image of the city. MIT Press.
13. Kaplan, R., & Kaplan, S. (1989). The experience of nature: A psychological perspective. Cambridge University Press.
14. Gehl, J. (2011). Life between buildings: Using public space. Island Press.
15. Arandjelovic, R., Gronat, P., Torii, A., Pajdla, T., & Sivic, J. (2016). NetVLAD: CNN architecture for weakly supervised place recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 5297–5307). IEEE.
16. Zhou, B., Lapedriza, A., Khosla, A., Oliva, A., & Torralba, A. (2017). Places: A 10 million image database for scene recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6), 1452–1464. https://doi.org/10.1109/TPAMI.2017.2723009
17. Aman, J., Matisziw, T. C., Kim, J. B., & Luo, D. (2022, April). Sensing the city: Leveraging geotagged social media posts and street view imagery to model urban streetscapes using deep neural networks. In Proceedings of the International Conference on Computer-Aided Architectural Design Research in Asia (pp. 595-604). Association for Computer-Aided Architectural Design Research in Asia.
18. Doersch, C., Singh, S., Gupta, A., Sivic, J., & Efros, A. A. (2012). What makes Paris look like Paris? ACM Transactions on Graphics, 31(4), Article 101. https://doi.org/10.1145/2185520.2185597
19. Cordts, M., Omran, M., Ramos, S., Rehfeld, T., Enzweiler, M., Benenson, R., Franke, U., Roth, S., & Schiele, B. (2016). The Cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (pp. 3213–3223). IEEE.
20. Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., Daumé III, H., & Crawford, K. (2021). Datasheets for datasets. Communications of the ACM, 64(12), 86–92. https://doi.org/10.1145/3458723
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Journal of Engineering Systems and Digital Innovation

This work is licensed under a Creative Commons Attribution 4.0 International License.