فصلنامه علمی توسعه پایدار محیط جغرافیایی

فصلنامه علمی توسعه پایدار محیط جغرافیایی

تحلیل احساسات داده‌های تصویری فضاهای شهری تهران با بهره‌گیری از شبکه‌ی عصبی کانولوشنی

نوع مقاله : علمی - پژوهشی

نویسندگان
گروه طراحی شهری، دانشگاه هنر ایران، تهران، ایران.
10.48308/sdge.2026.245976.1337
چکیده
مقدمه: تحلیل احساسات شهری به شناخت تجربه‌ها و ترجیحات شهروندان کمک می‌کند. پیشرفت هوش مصنوعی و یادگیری عمیق، پردازش داده‌های تصویری متنوع را امکان‌پذیر کرده است. بررسی مطالعات نشان می‌دهد که بخش قابل‌توجهی از پژوهش‌های تحلیل احساسات شهری بر داده‌های متنی متمرکز بوده و داده‌های تصویری کمتر مورد توجه قرار گرفته‌اند؛ درحالی‌که تصاویر اطلاعات متنوعی درباره ویژگی‌های بصری و کالبدی محیط شهری ارائه می‌کنند. با گردآوری تصاویر و آموزش مدل بر اساس برچسب‌های مشخص، می‌توان تصاویر فضاهای شهری را از نظر طبقات احساسی تعریف‌شده بررسی و طبقه‌بندی کرد. پژوهش حاضر با هدف تحلیل و پیش‌بینی احساسات از داده‌های تصویری فضاهای شهری تهران، مدلی مبتنی بر شبکه‌ی عصبی کانولوشنی عمیق طراحی و ارزیابی می‌کند و ارتباط برخی ویژگی‌های بصری را با امتیاز پیش‌بینی‌شده احساسات می‌سنجد.
مواد و روش‌ها: پژوهش حاضر کاربردی، توصیفی و کمی است. داده‌ها شامل ۱۲۵۲ تصویر از فضاهای شهری تهران، شامل معابر، پارک‌ها و فضاهای تجاری است که به‌صورت دستی و هدفمند و با استفاده از گوشی هوشمند، در بازهی آبان ۱۴۰۲ تا بهمن ۱۴۰۲ گردآوری شدند. تصاویر بر اساس ویژگی‌های بصری، توسط سه نفر و در سه طبقه مثبت، خنثی و منفی برچسب‌گذاری شدند. پس از پیش‌پردازش، نرمال‌سازی و داده‌افزایی، تصاویر به سه مجموعه مجزای آموزش، اعتبارسنجی و آزمون تقسیم و پنج مدل یادگیری انتقالی شامل شامل وی.جی.جی.16، وی جی. جی.19، دنس.نت.121، افیشنت.نت.بی.صفر و اینسپشن. وی.3 به‌کار رفتند. همچنین، شبکه‌ای عصبی کانولوشنی عمیق نیز توسعه یافت. برای کاهش پیچیدگی، طبقه‌بندی و کنترل تعداد پارامترها، لایه‌های کاملاً متصل گسترده با ساختاری شامل میانگین‌گیری سراسری، یک لایه متصل با ۵۱۲ نورون و خروجی طبقه‌بندی جایگزین شدند. آموزش با بهینه‌ساز آدام و نرخ یادگیری اولیه ۰٫۰۰۰۱ انجام و عملکرد پس از ۲۰ دوره ارزیابی شد. هشت ویژگی بصری شامل روشنایی، کنتراست، نسبت پوشش گیاهی، نسبت آسمان، نسبت سطوح خاکستری ساخته‌شده، تراکم لبه‌ها، رنگ‌مندی و آنتروپی استخراج شدند. تفاوت ویژگی‌ها میان طبقات با آزمون کروسکال–والیس و ارتباط آن‌ها با امتیاز پیش‌بینی‌شده با همبستگی رتبه‌ای اسپیرمن بررسی شد. نقشه‌های گراد-کَم نیز برای بررسی نواحی مؤثر استخراج و تحلیل شد.
نتایج و بحث: دقت اولیه وی.جی.جی.16، وی جی. جی.19، دنس.نت.121، افیشنت.نت.بی.صفر و اینسپشن. وی.3 برابر با ۶۱٫۷۹، ۴۶٫۴۴، ۶۵٫۳۶، ۶۰٫۲۱ و ۶۸٫۵۵ درصد بود. پس از بهینه‌سازی، این مقادیر به ۶۳٫۹۲، ۵۲٫۸۷، ۷۹٫۳۴، ۷۲٫۲۵ و ۷۸٫۳۶ درصد رسید و دنس‌نت ۱۲۱ بهترین عملکرد را میان مدل‌های انتقالی ثبت کرد. دقت مدل پیشنهادی در مجموعه آزمون ۵۹٫۵۶ درصد بود. مدل در تشخیص طبقات مثبت و خنثی بهتر از طبقه منفی عمل کرد. آزمون کروسکال–والیس تفاوت معنادار کنتراست، نسبت پوشش گیاهی و نسبت آسمان را بین طبقات نشان داد. همبستگی اسپیرمن نیز رابطه معنادار امتیاز پیش‌بینی‌شده را با نسبت پوشش گیاهی، نسبت آسمان، نسبت سطوح خاکستری ساخته‌شده و تراکم لبه‌ها نشان داد. این روابط برای پوشش گیاهی، سطوح خاکستری ساخته‌شده و تراکم لبه‌ها مثبت و برای نسبت آسمان منفی بود؛ تراکم لبه‌ها بیشترین همبستگی مثبت را داشت. نقشه‌های توجه (گراد-کم) نیز بررسی شدند. این نتایج بیانگر ارتباط آماری ویژگی‌ها با خروجی مدل‌ هستند و رابطه علی میان ویژگی‌های محیطی و احساسات کاربران را اثبات نمی‌کنند. همچنین، برچسب‌های مثبت، خنثی و منفی معادل سنجش مستقیم احساس واقعی شهروندان نیستند.
نتیجه‌گیری: تصاویر شهری می‌توانند داده‌ای مکمل برای بررسی ویژگی‌های بصری و ادراک بازنمایی‌شده از فضاهای شهری باشند. گردآوری هدفمند تصاویر از فضاهای متنوع تهران، مقایسه مدل‌های یادگیری انتقالی با شبکه پیشنهادی و بررسی ارتباط ویژگی‌های بصری با خروجی مدل، از موارد مورد تاکید پژوهش بود. برتری دنس‌نت ۱۲۱ در میان مدل‌های انتقالی و دقت ۵۹٫۵۶ درصدی مدل پیشنهادی، ضرورت تفسیر نتایج با توجه به محدودیت‌های طبقه‌بندی را نشان می‌دهد. تحلیل ویژگی‌ها و نقشه‌های توجه، پیوند محتوای تصویری و پیش‌بینی مدل را نشان داد؛ اما نتیجه‌گیری درباره احساس واقعی شهروندان به داده‌های مستقل و ارزیابی تکمیلی نیاز دارد. این پژوهش گامی اکتشافی در کاربرد یادگیری عمیق برای تحلیل تصاویر فضاهای شهری و پشتیبانی از مطالعات کیفیت محیط شهری است. در پژوهش‌های آتی، ارزیابی مستقل برچسب‌ها و استفاده از سنجه‌های مستقیم ادراک شهروندان می‌تواند اعتبار نتایج را افزایش دهد.
کلیدواژه‌ها
موضوعات

عنوان مقاله English

Sentiment Analysis of Urban Space Images in Tehran Using Convolutional Neural Networks

نویسندگان English

Maryam Mohammadi
Niloufar Moradi
Department of Urban Design, Iran University of Art, Tehran, Iran.
چکیده English

Introduction: Urban sentiment analysis can improve understanding of citizens’ experiences, needs, and preferences and thereby inform the quality of public spaces. Advances in artificial intelligence, computer vision, and deep learning have enabled the processing of large volumes of textual, visual, and multimodal data. Many studies of urban sentiment analysis have focused on textual data, while images of urban environments have received comparatively less attention. However, urban images convey visual information about the physical characteristics and appearance of places. Models trained on annotated images can classify urban scenes into sentiment categories and help explore perceptual dimensions associated with those classifications. Accordingly, this study develops and evaluates a deep convolutional neural network to classify images of urban spaces in Tehran as positive, neutral, or negative, and examines associations between selected visual features and the sentiment scores generated by the model.
Materials and Methods: This applied study uses a descriptive, quantitative approach. The dataset comprises 1,252 photographs of urban spaces in Tehran, including streets, squares, parks, commercial areas, and green spaces. The images were purposefully collected through manual photography using a high-quality smartphone camera between November 2023 and February 2024. Three annotators manually assigned the images to positive, neutral, or negative categories based on their visual characteristics. After preprocessing, normalization, and data augmentation, the images were divided into training, validation, and test sets. Five transfer learning architectures were evaluated for comparison: VGG16, VGG19, DenseNet121, EfficientNet-B0, and InceptionV3. A deep convolutional neural network with a proposed architecture was also developed. To reduce classification complexity and control the number of parameters, the extensive fully connected layers were replaced with a global average pooling layer, a dense layer containing 512 units, and a three-class output layer. The model was trained using the Adam optimizer with an initial learning rate of 0.0001 for 20 epochs. Its performance was then evaluated on the test set. Exploratory analyses also examined selected visual features and model attention maps.
Results and Discussion: Initial accuracies for VGG16, VGG19, DenseNet121, EfficientNet-B0, and InceptionV3 were 61.79%, 46.44%, 65.36%, 60.21%, and 68.55%, respectively. After optimization, the corresponding accuracies were 63.92%, 52.87%, 79.34%, 72.25%, and 78.36%. DenseNet121 achieved the highest accuracy among the transfer learning models. The proposed network attained 59.56% accuracy on the test set. The evaluation indicated better identification of positive and neutral images than negative images. Analyses of eight visual features and attention maps explored associations between image characteristics and model predictions. Spearman correlation analysis showed statistically significant associations between the predicted sentiment score and vegetation ratio, sky ratio, built-grey ratio, and edge density. Vegetation ratio, built-grey ratio, and edge density were positively associated with the score, whereas sky ratio showed a negative association. These findings indicate statistical relationships with model-generated scores; they do not establish causal effects of environmental characteristics on users’ feelings or demonstrate that the predictions directly measure citizens’ actual emotional experiences.
Conclusion: Urban images may serve as complementary data for examining the visual characteristics and perceptual representation of urban spaces. This study contributes through the purposeful collection of photographs from diverse urban settings in Tehran, the development and evaluation of a CNN-based classification model, and the exploratory analysis of relationships between selected visual features and model outputs. The comparative results show that DenseNet121 outperformed the proposed model in the reported experiments. The proposed model’s test accuracy and weaker identification of negative images nevertheless indicate limitations in its predictive capacity. The visual-feature analyses offer an additional perspective on patterns associated with model predictions, although these relationships should be interpreted cautiously. Overall, the study represents an exploratory step toward applying deep learning to image-based analysis of urban environments and may support further research combining visual data with other evidence to investigate urban perception and environmental quality, to support evidence-based planning decisions.

کلیدواژه‌ها English

Urban sentiment analysis
Image data
Deep learning
Deep convolutional neural network
Urban spaces in Tehran
Abreu-Dias, R., Santos-Gago, J.M., Martín-Rodríguez, F., & Álvarez-Sabucedo, L. M. (2025). Advances in the automated identification of individual tree species: A systematic review of drone- and AI-based methods in forest environments. Technologies, 13(5), 187. https://doi.org/10.3390/technologies13050187
Azad Ahmadi, M., Karimi Moshaver, M., & Ali Tajer, S. (2020). Explaining the relational model of urban views and the desirability of citizens’ emotional responses in Sanandaj with a contextual approach. Journal of Urban Studies, 10(37), 85–94. https://journals.uok.ac.ir/article_61346.html [In Persian]
Baltrusaitis, T., Ahuja, C., & Morency, L.-P. (2019). Multimodal machine learning: A survey and taxonomy. IEEE Transactions on Pattern Analysis and Machine Intelligence, 41(2), 423–443. https://ieeexplore.ieee.org/document/8269806
Barrett, L. F. (2017). How emotions are made: The secret life of the brain. New York: Houghton Mifflin Harcourt.
Cambria, E., & Hussain, A. (2015). Sentic computing: A common-sense-based framework for concept-level sentiment analysis. Cham: Springer.
Cambria, E., Poria, S., Gelbukh, A., & Thelwall, M. (2017). Sentiment analysis is a big suitcase. IEEE Intelligent Systems, 32(6), 74–80. https://doi.org/10.1109/MIS.2017.4531228
Carvalho, G. B., & Damasio, A. (2021). Interoception and the origin of feelings: A new synthesis. BioEssays, 43(6), Article e2000261. https://doi.org/10.1002/bies.202000261
Chen, C., Li, H., Luo, W., Xie, J., Yao, J., Wu, L., & Xia, Y. (2022). Predicting the effect of street environment on residents’ mood states in large urban areas using machine learning and street view images. Science of the Total Environment, 816, Article 151605. https://doi.org/10.1016/j.scitotenv.2021.151605
Cohen, S., & Wills, T. A. (1985). Stress, social support, and the buffering hypothesis. Psychological Bulletin, 98(2), 310–357. https://pubmed.ncbi.nlm.nih.gov/3901065/
Damasio, A. (2004). Looking for Spinoza: Joy, sorrow, and the feeling brain. Vintage.
Damasio, A., & Carvalho, G. B. (2013). The nature of feelings: Evolutionary and neurobiological origins. Nature Reviews Neuroscience, 14(2), 143–152. https://doi.org/10.1038/nrn3403
Darban Rezaei, E., Rezazadeh, R., Ostadi, M., & Akbari, H. (2019). An Operational Definition of Affects in Urban Space in the Light of a Methodological Approach. GeoRes,  34 (1), 73-85
http://georesearch.ir/article-1-555-fa.html [In Persian]
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. https://doi.org/10.1007/978-3-319-46448-0_12
Ekman, P. (1992). An argument for basic emotions. Cognition & Emotion, 6(3–4), 169–200. https://doi.org/10.1080/02699939208411068
Gunnar, M. R., & Quevedo, K. (2007). The neurobiology of stress and development. Annual Review of Psychology, 58, 145–173. https://doi.org/10.1146/annurev.psych.58.110405.085605
Herzog, T. R., & Bryce, A. G. (2007). Mystery and preference in within‐forest settings. Environment and Behavior, 39(6), 779–796. https://journals.sagepub.com/doi/10.1177/0013916506298796
Hochschild, A. R. (1979). Emotion work, feeling rules, and social structure. American Journal of Sociology, 85(3), 551–575. https://doi.org/10.1086/227049
Hoseini, F., Tabibzade Lamar, E. and Mirkazemi Niarag, S. M. (2024). Face recognition with incomplete data by deep convolutional neural network. Soft Computing Journal, 13(1), 158-171. https://scj.kashanu.ac.ir/article_114254.html [In Persian]
Huang, G., Liu, Z., Van Der Maaten, L., & Weinberger, K. Q. (2017). Densely connected convolutional networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 4700-4708. https://doi.org/10.1109/CVPR.2017.243
Izard, C. E. (1977). Human emotions. New York: Springer. https://doi.org/10.1007/978-1-4899-2209-0
Jagannathan, J., Thanjai Vadivel, M. & Divya, C.. (2025). Land use classification using multi-year Sentinel-2 images with deep learning models ensemble network. Scientific Reports, 15, 29047. https://doi.org/10.1038/s41598-025-12512-7
Jain, A. K. (1989). Fundamentals of Digital Image Processing. Prentice-Hall.
Ji, H., Qing, L., Han, L., Wang, Z., Cheng, Y., & Peng, Y. (2021). A new data-enabled intelligence framework for evaluating urban space perception. ISPRS International Journal of Geo-Information, 10(6), Article 400. https://doi.org/10.3390/ijgi10060400
Khalsa, S. S., Adolphs, R., Cameron, O. G., Critchley, H. D., Davenport, P. W., Feinstein, J. S., Feusner, J. D., Garfinkel, S. N., Lane, R. D., Mehling, W. E., Meuret, A. E., Nemeroff, C. B., Oppenheimer, S., Petzschner, F. H., Pollatos, O., Rhudy, J. L., Schramm, L. P., Simmons, W. K., Stein, M. B., ... von Leupoldt, A. (2018). Interoception and mental health: A roadmap. Biological Psychiatry: Cognitive Neuroscience and Neuroimaging, 3(6), 501–513. https://doi.org/10.1016/j.bpsc.2017.12.004
Kreibig, S. D. (2010). Autonomic nervous system activity in emotion: A review. Biological Psychology, 84(3), 394–421. https://doi.org/10.1016/j.biopsycho.2010.03.010
Krizhevsky, A., Sutskever, I. and Hinton, G.E. (2012) ImageNet Classification with Deep Convolutional Neural Networks. In: Pereira, F., Burges, C.J.C., Bottou, L. and Weinberger, K.Q., (Eds.), Advances in Neural Information Processing Systems, Vol. 25, Curran Associates, Inc., Red Hook, NY, 1097-1105.
Larkin, A., Gu, X., Chen, L., & Hystad, P. (2021). Predicting perceptions of the built environment using GIS, satellite and street view image approaches. Landscape and Urban Planning, 216, Article 104257. https://doi.org/10.1016/j.landurbplan.2021.104257
Lazarus, R. S. (1991). Emotion and adaptation. Oxford University Press. https://doi.org/10.1093/oso/9780195069945.001.0001
LeDoux, J. (2000). Emotion circuits in the brain. Annual Review of Neuroscience, 23(1), 155–184. https://doi.org/10.1146/annurev.neuro.23.1.155
Luo, J., Liu, P., Kong, X., Shen, J., Wu, Q., Xu, Da. (2025). Urban digital twins for citizen-centric planning: A systematic review of built environment perception and public participation. International Journal of Applied Earth Observation and Geoinformation, 143, 104746. https://doi.org/10.1016/j.jag.2025.104746.
Lutz, C., & White, G. M. (1986). The anthropology of emotions. Annual Review of Anthropology, 15, 405–436. https://doi.org/10.1146/annurev.an.15.100186.002201
Markus, H. R., & Kitayama, S. (1991). Culture and the self: Implications for cognition, emotion, and motivation. Psychological Review, 98(2), 224–253. https://doi.org/10.1037/0033-295X.98.2.224
Minaee, S., Kalchbrenner, N., Cambria, E., Nikzad, N., Chenaghlu, M., & Gao, J. (2021). Deep learning–based text classification: A comprehensive review. ACM Computing Surveys, 54(3), Article 62. https://doi.org/10.1145/3439726
Murphy, K. P. (2012). Machine learning: A probabilistic perspective. Cambridge: MIT Press.
Mushkani, R., & Koseki, S. (2026). Street Review: A Participatory AI-Based Framework for Assessing Streetscape Inclusivity. Cities, 170. https://doi.org/10.48550/arXiv.2508.11708
Naik, N., Philipoom, J., Raskar, R., & Hidalgo, C. A. (2014). Streetscore—Predicting the perceived safety of one million streetscapes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (pp. 793–799)
Paikan, E. & Pourjafar, M . (2020). The Importance and Application of "Urban Emotions" in Urban Design and Planning. Journal of Iranian Architecture & Urbanism(JIAU), 10(2), 39-60. https://doi.org/10.30475/isau.2020.103676?utm_source=chatgpt.com [In Persian]
Pang, B., & Lee, L. (2008). Opinion mining and sentiment analysis. Foundations and Trends in Information Retrieval, 2(1–2), 1–135. https://doi.org/10.1561/1500000011
Porzi, L., Bulo, S. R., Lepri, B., & Ricci, E. (2015). Predicting and understanding urban perception with convolutional neural networks. In Proceedings of the 23rd ACM International Conference on Multimedia (pp. 139–148). Association for Computing Machinery.
Rahmani Jami, F. and Mohammadi, M. (2023). Measuring the Emotional Response of Users in Urban Spaces using Physiological-Perceptual Method. Motaleate Shahri, 12(47), 3-18. https://urbstudies.uok.ac.ir/article_62453.html?lang=fa [In Persian]
Salesses, P., Schechtner, K., & Hidalgo, C. A. (2013). The collaborative image of the city: Mapping the inequality of urban perception. PLOS ONE, 8(7), Article e68400. https://doi.org/10.1371/journal.pone.0068400
Scherer, K. R. (2005). What are emotions? And how can they be measured? Social Science Information, 44(4), 695–729. https://doi.org/10.1177/0539018405058216
Simonyan, K., & Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition. Proceedings of the International Conference on Learning Representations (ICLR). https://doi.org/10.48550/arXiv.1409.1556
Song, M., & Xiao, Y. (2025). Does streetscape color matter for urban perceptions? A deep learning approach to street view images. Land Use Policy, 155, Article 107581. https://doi.org/10.1016/j.landusepol.2025.107581
Sun, H., Xu, H., He, H., Wei, Q., Yan, Y., Chen, Z., Li, X., Zheng, J., & Li, T. (2023). A spatial analysis of urban streets under deep learning based on street view imagery: Quantifying perceptual and elemental perceptual relationships. Sustainability, 15(20), Article 14798. https://doi.org/10.3390/su152014798
Szegedy, C., Ioffe, S., Vanhoucke, V., & Alemi, A. A. (2016). Inception-v4, inception-ResNet and the impact of residual connections on learning. Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence (AAAI), 4278–4284. https://doi.org/10.48550/arXiv.1602.07261
Szeliski, R. (2010). Computer vision: Algorithms and applications. London: Springer. https://link.springer.com/book/10.1007/978-1-84882-935-0
Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning (ICML), 6105–6114. https://doi.org/10.48550/arXiv.1905.11946
Thibaud, J. P. (2011). The sensory fabric of urban ambiances. The Senses and Society, 6(2), 203–215. https://hal.science/hal-00978343/document
You, L. and Tuncer, B (2016). Exploring public sentiments for livable places based on a crowd-calibrated sentiment analysis mechanism. IEEE/ACM international conference on advances in social networks analysis and mining (ASONAM). Auguest 18-21, USA: San Francisco.
Yu, M., Zheng, X., Qin, P., Cui, W., & Ji, Q. (2024). Urban color perception and sentiment analysis based on deep learning and street view big data. Applied Sciences, 14(20), Article 9521. https://doi.org/10.3390/app14209521
Zeile, P., Resch, B., Dörrzapf, L., Exner, J. P., Sagl, G., Summa, A., & Sudmanns, M. (2015). Urban Emotions - Tools of Integrating People's Perception into Urban Planning. In REAL CORP 2015 (pp. 907-914). http://berndresch.com/download/work/publications/zeile-et-al_urban-emotions_corp-2015.pdf
Zhang, L., Wang, S., & Liu, B. (2018). Deep learning for sentiment analysis: A survey. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery, 8(4), e1253. https://doi.org/10.48550/arXiv.1801.07883

مقالات آماده انتشار، اصلاح شده برای چاپ
انتشار آنلاین از 14 آذر 1405