Abstract
Urban trees are crucial for enhancing the social and ecological qualities of urban environments, but their distribution and correlates in informal settlements across African cities remain unclear. Here we map out 53 million individual trees across 54 African cities and investigate their relationship with neighborhood environments along a gradient of urban informality. Our findings reveal the shortage of green infrastructure per capita in the most informal neighborhoods of African cities. Under the assumptions of continued urban expansion, 28 cities are projected to lose tree cover beyond current urban boundaries by 2050. This underscores the urgent need to upgrade informal settlements, although such efforts are often constrained by current socioeconomic conditions. Our study underscores the importance of fine-grained spatial data in informing tree retention strategies during urban upgrading and expansion and emphasizes that trees and green spaces must be recognized as integral components of sustainable urban development in Africa.
This is a preview of subscription content, access via your institution
Access options
Subscribe to this journal
Receive 12 digital issues and online access to articles
$119.00 per year
only $9.92 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to the full article PDF.
USD 39.95
Prices may be subject to local taxes which are calculated during checkout




Similar content being viewed by others
Data availability
GUB data can be downloaded from https://data-starcloud.pcl.ac.cn/. Informal settlements data (that is, BSA) are available at https://www.millionneighborhoods.org/. Population data are derived from WorldPop 2020, and datasets of the building area are derived from OpenStreetMap. Datasets of population and building area at the street-block level are openly available in Million Neighborhoods Map at https://www.millionneighborhoods.org/. Future gridded population data can be downloaded from Figshare at https://doi.org/10.6084/m9.figshare.19608594.v2 (ref. 53). Future land cover dataset data are available via Figshare at https://doi.org/10.6084/m9.figshare.23542860 (ref. 49). Open buildings 2.5D temporal dataset are available at https://sites.research.google/gr/open-buildings/temporal/. Köppen–Geiger climate classification can be downloaded from https://www.gloh2o.org/koppen/. Tree cover maps are available via Zenodo at https://zenodo.org/records/7764460 (ref. 59). The geospatial data of the administrative boundaries were obtained from the Global Administrative Areas (https://gadm.org/). Google satellite imagery used in this study can not be provided due to copyright issues, but is available to download through the Google Static Map API and our shared code. The identified results for individual trees in the 40 sampled cities in this study are available at https://doi.org/10.5061/dryad.jwstqjqn5 (ref. 60). Source data are provided with this paper.
Code availability
The code for the Google imagery download was constructed using the open-source Python packages ‘GeoPandas’, ‘rasterio’ and ‘PIL’. Detecting tree locations is based on the HR-SFANet model (ref. 28), with an updated implementation available. Additionally, a standalone executable for segmentation curve has been made publicly accessible. All related code repositories are publicly accessible at https://doi.org/10.5061/dryad.jwstqjqn5 (ref. 60).
References
Huang, K. N. Urban forests facing climate risks. Nat. Clim. Change 12, 893–894 (2022).
Zhao, Q. et al. Global, regional, and national burden of mortality associated with non-optimal ambient temperatures from 2000 to 2019: a three-stage modelling study. Lancet Planet. Health 5, E415–E425 (2021).
Esperon-Rodriguez, M. et al. Climate change increases global risk to urban forests. Nat. Clim. Chang 12, 950–955 (2022).
Borelli, S., Conigliaro, M. & Di Cagno, F. Urban Forests: A Global Perspective (FAO, 2023).
Willis, K. J. & Petrokofsky, G. The natural capital of city trees. Science 356, 374–376 (2017).
Eisenman, T. S. et al. Urban trees, air quality, and asthma: an interdisciplinary review. Landsc. Urban Plan. 187, 47–59 (2019).
United Nations Human Settlements Programme. Rescuing SDG 11 for a Resilient Urban Planet (United Nations, 2023).
Jennings, V. & Bamkole, O. The relationship between social cohesion and urban green space: an avenue for health promotion. Int. J. Env. Res. Public Health 16, 452 (2019).
World Population Prospects 2024: Summary of Results. Report No. UN DESA/POP/2024/TR/NO. 9 (United Nations, 2024).
United Nations Human Settlements Programme. World Cities Report 2024 (United Nations, 2024); https://doi.org/10.18356/9789211065602
UN-Habitat. Policy Recommendations Paper: Urban Development in Africa and the Role of Participatory City-Wide Slum Upgrading for Urban Sustainability and the Prevention of New Slums (2020).
Garekae, H. & Shackleton, C. M. Urban foraging of wild plants in two medium-sized South African towns: people, perceptions and practices. Urban For. Urban Green. 49, 126581 (2020).
Wolch, J. R., Byrne, J. & Newell, J. P. Urban green space, public health, and environmental justice: The challenge of making cities ‘just green enough’. Landsc. Urban Plan. 125, 234–244 (2014).
Venter, Z. S., Shackleton, C. M., Van Staden, F., Selomane, O. & Masterson, V. A. Green apartheid: urban green infrastructure remains unequally distributed across income and race geographies in South Africa. Landsc. Urban Plan. 203, 103889 (2020).
Escobedo, F. J., Clerici, N., Staudhammer, C. L. & Corzo, G. T. Socio-ecological dynamics and inequality in Bogota, Colombia’s public urban forests and their ecosystem services. Urban For. Urban Green. 14, 1040–1053 (2015).
Ossola, A. et al. The global urban tree inventory: a database of the diverse tree flora that inhabits the world’s cities. Global Ecol. Biogeogr. 29, 1907–1914 (2020).
Chen, B. et al. Contrasting inequality in human exposure to greenspace between cities of Global North and Global South. Nat. Commun. 13, 4636 (2022).
de Foresta, H. et al. Towards the Assessment of Trees Outside Forests: A Thematic Report Prepared in the Framework of the Global Forest Resources Assessment. Forest Resources Assessment Working Paper 183 (FAO, 2013).
Branson, S. et al. From Google Maps to a fine-grained catalog of street trees. ISPRS J. Photogramm. Remote Sens. 135, 13–30 (2018).
Brandt, M. et al. An unexpectedly large count of trees in the West African Sahara and Sahel. Nature 587, 78–82 (2020).
Weinstein, B. et al. DeepForest: a Python package for RGB deep learning tree crown delineation. Methods Ecol. Evol. 11, 1743–1751 (2020).
Gomes, M. F., Maillard, P. & Deng, H. W. Individual tree crown detection in sub-meter satellite imagery using marked point processes and a geometrical-optical model. Remote Sens. Environ. 211, 184–195 (2018).
Reiner, F. et al. More than one quarter of Africa’s tree cover is found outside areas previously classified as forest. Nat. Commun. 14, 2258 (2023).
Mugabowindekwe, M. et al. Nation-wide mapping of tree-level aboveground carbon stocks in Rwanda. Nat. Clim. Chang 13, 91–97 (2023).
Tucker, C. et al. Sub-continental-scale carbon stocks of individual trees in African drylands. Nature 615, 80–86 (2023).
Brandt, M. et al. Severe decline in large farmland trees in India over the past decade. Nat. Sustain. 7, 860–868 (2024).
Ekamby, E. S. H. L. & Mudu, P. How many trees are planted in African cities? Expectations of and challenges to planning considering current tree planting projects. Urban Sci. 6, 59 (2022).
Ventura, J. et al. Individual tree detection in large-scale urban environments using high-resolution multispectral imagery. Int. J. Appl. Earth Obs. Geoinf. 130, 103848 (2024).
Clark, C., Ordóñez, C. & Livesley, S. J. Private tree removal, public loss: valuing and enforcing existing tree protection mechanisms is the key to retaining urban trees on private land. Landsc. Urban Plan. 203, 103899 (2020).
Li, X. et al. Mapping global urban boundaries from the global artificial impervious area (GAIA) data. Environ. Res. Lett. 15, 094044 (2020).
Beck, H. E. et al. Present and future Köppen-Geiger climate classification maps at 1-km resolution. Sci. Data 5, 180214 (2018).
United Nations Statistics Division. Geographic regions; https://unstats.un.org/unsd/methodology/m49/
Chiwele, D., Lamson-Hall, P. & Wani, S. Informal Settlements in Lusaka (International Growth Centre, 2022).
Gwedla, N. & Shackleton, C. M. Perceptions and preferences for urban trees across multiple socio-economic contexts in the Eastern Cape, South Africa. Landsc. Urban Plan. 189, 225–234 (2019).
Shackleton, S., Chinyimba, A., Hebinck, P., Shackleton, C. & Kaoma, H. Multiple benefits and values of trees in urban landscapes in two towns in northern South Africa. Landsc. Urban Plan. 136, 76–86 (2015).
Furukawa, T., Fujiwara, K., Kiboi, S. K. & Mutiso, P. B. C. Can stumps tell what people want: pattern and preference of informal wood extraction in an urban forest of Nairobi, Kenya. Biol. Conserv. 144, 3047–3054 (2011).
Doffana, Z. D. Sacred sites and ancestor veneration in Sidama, southwest Ethiopia: a socio-ecological perspective. Cogent Soc. Sci. 5, 1704600 (2019).
Ormsby, A. A. Diverse values and benefits of urban sacred natural sites. Trees For. People 6, 100136 (2021).
Foeken, D. W. J. & Owuor, S. O. Farming as a livelihood source for the urban poor of Nakuru, Kenya. Geoforum 39, 1978–1990 (2008).
Shackleton, C. M. et al. How compatible are urban livestock and urban green spaces and trees? An assessment in a medium-sized South African town. Int. J. Urban Sustain. Dev. 9, 243–252 (2017).
Wolff, E., Rauf, H. A. & Hamel, P. Nature-based solutions in informal settlements: a systematic review of projects in Southeast Asian and Pacific countries. Environ. Sci. Pol. 145, 275–285 (2023).
Quaye, I., Amponsah, O., Azunre, G. A., Takyi, S. A. & Braimah, I. A review of experimental informal urbanism initiatives and their implications for sub-Saharan Africa’s sustainable cities’ agenda. Sustain. Cities Soc. 83, 103938 (2022).
Tjia, D. & Coetzee, S. Geospatial information needs for informal settlement upgrading—a review. Habitat Int. 122, 102531 (2022).
Seburanga, J. L., Kaplin, B. A., Zhang, Q. X. & Gatesire, T. Amenity trees and green space structure in urban settlements of Kigali, Rwanda. Urban For. Urban Green. 13, 84–93 (2014).
Lesiv, M. et al. Characterizing the spatial and temporal availability of very high resolution satellite imagery in Google Earth and Microsoft Bing Maps as a source of reference data. Land 7, 118 (2018).
Soman, S., Beukes, A., Nederhood, C., Marchio, N. & Bettencourt, L. M. A. Worldwide detection of informal settlements via topological analysis of crowdsourced digital maps. ISPRS Int. J. Geo-Inform. 9, 685 (2020).
Brelsford, C., Martin, T., Hand, J. & Bettencourt, L. M. A. Toward cities without slums: topology and the spatial evolution of neighborhoods. Sci. Adv. 4, eaar4644 (2018).
Ozturk, U. et al. How climate change and unplanned urban sprawl bring more landslides. Nature 608, 262–265 (2022).
Zhang, T. Y., Cheng, C. X. & Wu, X. D. Mapping the spatial heterogeneity of global land use and land cover from 2020 to 2100 at a 1 km resolution. Sci. Data 10, 748 (2023).
Copernicus Climate Change Service. Land cover classification gridded maps from 1992 to present derived from satellite observation. Copernicus Climate Change Service (C3S) Climate Data Store (CDS) https://doi.org/10.24381/cds.006f2c9a (2019).
Dobson, J. E., Bright, E. A., Coleman, P. R., Durfee, R. C. & Worley, B. A. LandScan: a global population database for estimating populations at risk. Photogramm. Eng. Remote Sens. 66, 849–857 (2000).
Tatem, A. J. Comment: WorldPop, open data for spatial demography. Sci. Data 4, 170004 (2017).
Wang, X. Y., Meng, X. F. & Long, Y. Projecting 1 km-grid population distributions from 2020 to 2100 globally under shared socioeconomic pathways. Sci. Data 9, 563 (2022).
Simonyan, K. & Zisserman, A. Very deep convolutional networks for large-scale image recognition. In Proc. 3rd International Conference on Learning Representations 1–14 (2015).
Osco, L. P. et al. A convolutional neural network approach for counting and geolocating citrus-trees in UAV multispectral imagery. ISPRS J. Photogramm. Remote Sens. 160, 97–106 (2020).
Abadi, M. et al. TensorFlow: a system for large-scale machine learning. In Proc. 12th USENIX Conference on Operating Systems Design and Implementation 265–283 (USENIX Association, 2016).
Tobler, W. R. A computer movie simulating urban growth in the Detroit region. Econ. Geogr. 46, 234–240 (1970).
Olofsson, P. et al. Good practices for estimating area and assessing accuracy of land change. Remote Sens. Environ. 148, 42–57 (2014).
Reiner, F. et al. Africa tree cover map. Zenodo https://doi.org/10.5281/zenodo.7764460 (2023).
Lian, X. & Jiao, L. Data for: mapping of individual urban trees and relationships within informal settlements in Africa. Dryad https://doi.org/10.5061/dryad.jwstqjqn5 (2025).
Acknowledgements
This work was supported by the National Natural Science Foundation of China (grant no. 42371423; to L.J.) and the Fundamental Research Funds for the Central Universities (grant no. 2042023kfyq04; to L.J.). C.M.S. was supported by the SARChI Chairs programme of the Department of Science and Innovation and the National Research Foundation (grant no. 84379). Any opinion, finding, conclusions or recommendation expressed in this material is that of the authors and the National Research Foundation does not accept liability in this regard. We thank K. Armstrong and Y. Qiao for their help.
Author information
Authors and Affiliations
Contributions
X.L. and L.J. designed the research. X.L., W.L., Z.L., B.L., J.Z., R.Y., M.F., H.Z. and N.S.S. contributed to data collection and processing. X.L. and W.L. developed the code and conducted the experiments. X.L. drafted the paper. L.J., C.M.S. and Y.L. reviewed and edited the paper. All authors contributed to the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Cities thanks Olumuyiwa Adegun, Jianhua Guo and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Extended data
Extended Data Fig. 1 A flowchart mapping individual urban trees in African cities.
A confidence map generated by the HR-SFANet model (ref. 28), is used to identify tree locations. Segmentation curve module is used to automatically segment the tree crowns based on confidence maps and predicted tree locations.
Extended Data Fig. 2 Schematic of the potential effects of future urban expansion on tree cover.
a, the loss of tree cover caused by the external expansion (First assumption). b, densification of buildings within neighborhoods (Second assumption). c, the increase in population density at the neighborhood scale (Third assumption). d, neighborhood upgrading (Fourth assumption).
Supplementary information
Supplementary Information (download PDF )
Supplementary Texts 1–4, Figs. 1–9, Tables 1–4 and References.
Supplementary Table 1 (download XLSX )
Fifty-four cities chosen for individual tree identification.
Source data
Source Data Fig. 1 (download XLSX )
Statistical source data.
Source Data Fig. 2 (download XLSX )
Statistical source data.
Source Data Fig. 3 (download XLSX )
Statistical source data.
Source Data Fig. 4 (download XLSX )
Statistical source data.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Lian, X., Liu, W., Liu, Z. et al. Tree shortages in informal settlements across African cities. Nat Cities 2, 1049–1059 (2025). https://doi.org/10.1038/s44284-025-00284-0
Received:
Accepted:
Published:
Version of record:
Issue date:
DOI: https://doi.org/10.1038/s44284-025-00284-0


