Abstract
The assessment of urban residential segregation plays a crucial role in guiding equitable governance and fostering healthy urban development. Existing research evaluating residential segregation from the perspective of wealth disparity often struggles to obtain accurate population distribution data across different socio-economic strata, leading to potential biases in the assessment outcomes. However, residential compounds, as the living spaces for various social groups, can serve as a surrogate for the data representing different socio-economic levels in the evaluation of residential segregation. This paper explores a method that classifies residential compounds based on multi-source data to replace socio-economic strata and assess residential segregation. The experimental results demonstrate that this method can effectively and conveniently evaluate residential segregation, providing a new approach for research in this area.
Similar content being viewed by others
Data availability
The data and code that support the findings of this study are publicly available via Zenodo at https://zenodo.org/records/18321286.
References
Arfa A, Minaei M (2024) Utilizing multitemporal indices and spectral bands of Sentinel-2 to enhance land use and land cover classification with random forest and support vector machine. Adv Space Res 74(11):5580–5590. https://doi.org/10.1016/j.asr.2024.08.062
Bailey N, Gannon M, Kearns A, Livingston M, Leyland AH (2013) Living apart, losing sympathy? How neighbourhood context affects attitudes to redistribution and to welfare recipients. Environ Plan A Econ Space 45(9):2154–2175. https://doi.org/10.1068/a45641
Benassi F, Iglesias-Pascual R, Salvati L (2020) Residential segregation and social diversification: exploring spatial settlement patterns of foreign population in Southern European cities. Habitat Int 101: 102200. https://doi.org/10.1016/j.habitatint.2020.102200
Buck KD, Summers JK, Smith LM (2021) Investigating the relationship between environmental quality, socio-spatial segregation and the social dimension of sustainability in US urban areas. Sustain Cities Soc 67: 102732. https://doi.org/10.1016/j.scs.2021.102732
Caner G, Bolen F (2013) Implications for socio-spatial segregation in urban theories. J Plan 23(3):153–161. https://doi.org/10.5505/planlama.2013.94695
Cao K, Harris R, Liu S, Deng Y (2024) How does urban renewal affect residential segregation in Shenzhen, China? A multi-scale study. Sustain Cities Soc 102: 105228. https://doi.org/10.1016/j.scs.2024.105228
Du S, Zhang F, Zhang X (2015) Semantic classification of urban buildings combining VHR image and GIS data: an improved random forest approach. ISPRS J Photogramm Remote Sens 105:107–119. https://doi.org/10.1016/j.isprsjprs.2015.03.011
Duncan OD, Duncan B (1955) A methodological analysis of segregation indexes. Am Sociol Rev 20(2):210. https://doi.org/10.2307/2088328
Grauwin S, Goffette-Nagot F, Jensen P (2012) Dynamic models of residential segregation: an analytical solution. J Public Econ 96(1–2):124–141. https://doi.org/10.1016/j.jpubeco.2011.08.011
Hendrikx M, Wissink B (2017) Welcome to the club! An exploratory study of service accessibility in commodity housing estates in Guangzhou, China. Soc Cultural Geogr 18(3):371–394. https://doi.org/10.1080/14649365.2016.1181197
Hong S-Y, O’Sullivan D, Sadahiro Y (2014) Implementing spatial segregation measures in R. PLoS One 9(11):e113767. https://doi.org/10.1371/journal.pone.0113767
Konishi H (2025) Equilibrium land use with collective housing developments: voting with feet and entrepreneurship. Japanese Econ Rev. https://doi.org/10.1007/s42973-025-00213-9
Leal M, Carreiras M, Alves S (2025) Decoding the spatial dynamics of sales and rental prices in a high-pressure Portuguese housing market: a random forest approach for the Lisbon Metropolitan Area. Cities 158: 105631. https://doi.org/10.1016/j.cities.2024.105631
Lin RF-Y, Ou C, Tseng K-K, Bowen D, Yung KL, Ip WH (2021) The Spatial neural network model with disruptive technology for property appraisal in real estate industry. Technol Forecast Soc Change 173: 121067. https://doi.org/10.1016/j.techfore.2021.121067
Lippert RK, Mackinnon D, Treffers S (2024) The new private urban governance: vestiges, ventures and visibility. Urban Stud 61(14):2673–2685. https://doi.org/10.1177/00420980241286305
Luo M, Zhang S, Deng W (2024) Has urban expansion alleviated working-residential spaces segregation across inner-outer cities? A multi-scale study with location-based social bigdata. Habitat Int 153: 103183. https://doi.org/10.1016/j.habitatint.2024.103183
Martinez-Sanchez L, See L, Yordanov M, Verhegghen A, Elvekjaer N, Muraro D, d’Andrimont R, Van Der Velde M (2024) Automatic classification of land cover from LUCAS in-situ landscape photos using semantic segmentation and a Random Forest model. Environ Model Softw 172: 105931. https://doi.org/10.1016/j.envsoft.2023.105931
Matas MI (2024) Beyond residential segregation: mapping Chilean social housing project residents’ vulnerability. J Urban Manag 13(1):140–156. https://doi.org/10.1016/j.jum.2023.12.003
Momeni E, Antipova A (2022) A micro-level analysis of commuting and urban land using the Simpson’s index and socio-demographic factors. Appl Geogr 145: 102755. https://doi.org/10.1016/j.apgeog.2022.102755
Moya-Gómez B, StÄ™pniak M, GarcÃa-Palomares JC, FrÃas-MartÃnez E, Gutiérrez J (2021) Exploring night and day socio-spatial segregation based on mobile phone data: the case of Medellin (Colombia). Comput Environ Urban Syst 89: 101675. https://doi.org/10.1016/j.compenvurbsys.2021.101675
Niu T, Chen Y, Yuan Y (2020) Measuring urban poverty using multi-source data and a random forest algorithm: a case study in Guangzhou. Sustain Cities Soc 54: 102014. https://doi.org/10.1016/j.scs.2020.102014
Omer I, Goldblatt R (2012) Urban spatial configuration and socio-economic residential differentiation: the case of Tel Aviv. Comput Environ Urban Syst 36(2):177–185. https://doi.org/10.1016/j.compenvurbsys.2011.09.003
Orr AM, Stewart JL, Jackson C, White JT (2023) Not quite the ‘death of the high street’ in UK city centres: rising vacancy rates and the shift in property use richness and diversity. Cities 133: 104124. https://doi.org/10.1016/j.cities.2022.104124
Pan J, Dong L (2021) Spatial identification of housing vacancy in China. Chin Geographical Sci 31(2):359–375. https://doi.org/10.1007/s11769-020-1171-7
Poku-Boansi M, Amoako C, Owusu-Ansah JK, Cobbinah PB (2020) The geography of urban poverty in Kumasi, Ghana. Habitat Int 103: 102220. https://doi.org/10.1016/j.habitatint.2020.102220
Reardon SF, O’Sullivan D (2004) Measures of spatial segregation. Sociol Methodol 34(1):121–162. https://doi.org/10.1111/j.0081-1750.2004.00150.x
Schaeffer Y, Tivadar M (2019) Measuring environmental inequalities: insights from the residential segregation literature. Ecol Econ 164: 106329. https://doi.org/10.1016/j.ecolecon.2019.05.009
Shi K, Chang Z, Chen Z, Wu J, Yu B (2020) Identifying and evaluating poverty using multisource remote sensing and point of interest (POI) data: a case study of Chongqing, China. J Clean Prod 255: 120245. https://doi.org/10.1016/j.jclepro.2020.120245
Shi L, Wurm M, Huang X, Zhong T, Leichtle T, Taubenböck H (2022) Estimating housing vacancy rates at block level: the example of Guiyang, China. Landsc Urban Plan 224: 104431. https://doi.org/10.1016/j.landurbplan.2022.104431
Song W, Huang Q, Gu Y, He G (2021) Unraveling the multi-scalar residential segregation and socio-spatial differentiation in China: a comparative study based on Nanjing and Hangzhou. J Geographical Sci 31(12):1757–1774. https://doi.org/10.1007/s11442-021-1921-1
Väisänen T, Järv O, Toivonen T, Hiippala T (2022) Mapping urban linguistic diversity with social media and population register data. Comput Environ Urban Syst 97: 101857. https://doi.org/10.1016/j.compenvurbsys.2022.101857
Wong DWS (2008) A local multidimensional approach to evaluate changes in segregation. Urban Geogr 29(5):455–472. https://doi.org/10.2747/0272-3638.29.5.455
Wu Q, Cheng J, Chen G, Hammel DJ, Wu X (2014) Socio-spatial differentiation and residential segregation in the Chinese city based on the 2000 community-level census data: a case study of the inner city of Nanjing. Cities 39:109–119. https://doi.org/10.1016/j.cities.2014.02.011
Xie Y, Zhou X (2014) Income inequality in today’s China. Proc Natl Acad Sci 111(19):6928–6933. https://doi.org/10.1073/pnas.1403158111
Yao J, Wong DWS, Bailey N, Minton J (2019) Spatial segregation measures: a methodological review. Tijdschr Voor Economische En Soc Geografie 110(3):235–250. https://doi.org/10.1111/tesg.12305
Yeh I-C, Hsu T-K (2018) Building real estate valuation models with comparative approach through case-based reasoning. Appl Soft Comput 65:260–271. https://doi.org/10.1016/j.asoc.2018.01.029
Zandi R, Zanganeh M, Akbari E (2019) Zoning and spatial analysis of poverty in urban areas (Case Study: Sabzevar City-Iran). J Urban Manag 8(3):342–354. https://doi.org/10.1016/j.jum.2019.09.002
Zeng Q, Wu H, Zhou L, Gao X, Fei N, Dewancker BJ (2025) Unraveling nonlinear relationship of built environment on pre-sale and second-hand housing prices using multi-source big data and machine learning. Front Architectural Res, S209526352500086X. https://doi.org/10.1016/j.foar.2025.06.006
Zhang M, Qiao S, Yeh AG-O (2022) Disamenity effects of displaced villagers’ resettlement community on housing price in China and implication for socio-spatial segregation. Appl Geogr 142: 102681. https://doi.org/10.1016/j.apgeog.2022.102681
Zhang T, Duan X, Wong DWS, Lu Y (2021) Discovering income-economic segregation patterns: a residential-mobility embedding approach. Comput Environ Urban Syst 90: 101709. https://doi.org/10.1016/j.compenvurbsys.2021.101709
Zhang Y, Song Y, Zhang W, Wang X (2024) Working and residential segregation of migrants in Longgang City, China: a mobile phone data-based analysis. Cities 144: 104625. https://doi.org/10.1016/j.cities.2023.104625
Zhu A-X, Lv G, Zhou C, Qin C (2020) Geographic similarity: third law of geography?. J Geo Inf Sci 22(4):4. https://doi.org/10.12082/dqxxkx.2020.200069
Zhu A-X, Turner M (2022) How is the third law of geography different?. Ann GIS 28(1):57–67. https://doi.org/10.1080/19475683.2022.2026467
Acknowledgements
This research was supported by the National Natural Science Foundation of China (42471453).
Author information
Authors and Affiliations
Contributions
YPZ was responsible for data curation, project administration, funding acquisition, validation, and writing review & editing; YS was responsible for conceptualization, methodology, validation, writing the original draft, and writing review & editing; AXZ contributed to project administration, conceptualization, and methodology; TG contributed to data curation, investigation, and methodology.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Ethical approval
This article does not contain any studies with human participants performed by any of the authors.
Informed consent
This article does not contain any studies with human participants performed by any of the authors.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Zhang, Y., Sun, Y., Zhu, AX. et al. Residential segregation assessment based on multi-source data and random forest method: a case study of Nanjing. Humanit Soc Sci Commun (2026). https://doi.org/10.1057/s41599-026-06840-w
Received:
Accepted:
Published:
DOI: https://doi.org/10.1057/s41599-026-06840-w


