Main

Wildfires, fungi, insects and droughts cause considerable tree mortality in forests and other forested ecosystems1. Anthropogenic climate change, human appropriation and mismanagement are further aggravating tree die-offs, which have reached alarming levels in recent years2,3. These events are well documented, and the public awareness is high because operational monitoring systems based on satellites are able to locate and quantify forest diebacks and deforestation1. However, only little is known on potential widespread diebacks and human appropriation of trees outside forests, such as in drylands or trees on farms. Agroforestry is a land-use practice that integrates multifunctional trees in agricultural land to maximize socioecological benefits from trees4. Agroforestry trees have drawn a lot of interest in relation to tree planting and restoration as an underexplored pathway towards climate mitigation, but little attention is paid to the protection of existing on-farm trees in mature agroforestry systems and how they are being affected by the mentioned threats.

According to a recent state-of-the-art land-cover map5, 56% of India is covered by farmland, and only 20% is covered by forest. While the separation of forests and tree plantations is not always clear, it is unequivocal that these classifications exclude a large part of India’s trees, which are scattered within farmlands, in urban areas or grown as hedgerows6,7. These multipurpose trees, such as Prosopis cineraria, Azadirachta indica, Madhuca longifolia, Acacia nilotica, Dalbergia sissoo, Syzygium cumini, Sesbania grandiflora, Albizia procera, Artocarpus heterophyllus and Cocos nucifera, provide a variety of ecosystem services related to environmental conservation (for example, soil fertilization, shade) and products used for consumption (for example, fruits, fuelwood, fibre, mulch, medicine, fodder) or the generation of income (for example, wood, sap, medicine, fibre)7,8,9,10. Agroforestry trees in India consist of remnant trees from forests (for example, Madhuca longifolia) that were left when land was cleared for agriculture but also include cultivated species (for example, Cocos nucifera). India is well known as a globally leading nation regarding the large-scale implementation of agroforestry and even urban systems7. However, the systematic quantification of tree resources within these systems is challenging at a national scale11, and current mapping approaches capture mainly block plantations but fewer individual trees on farms11. India has the largest agricultural area cover in the world, which makes tree cover and count in India uncertain and possibly one of the most overlooked woody elements globally.

Agroforestry trees can experience substantial temporal dynamics in their populations as they grow in highly managed ecosystems where some trees may be planted and others removed. The monitoring of these trees has become fundamental over the past decade, not only to quantify available resources but also to identify possible climate-related diebacks, as observed in forests1. A prominent example of a tree grown on farms is the Neem tree (Azadirachta indica), which can grow tall, with canopies of up to 20 m in diameter, and live up to several hundred years12. Recent newspaper reports indicate that thousands of Neem trees in India have been infected by fungi over the past years, possibly leading to diebacks, which had already been identified as a potential problem several decades ago13,14. Fungi, such as Phomopsis azadirachtae, attack old trees in particular while younger trees are stronger and survive the fungal infections. Pathogens/diseases are among the risks to trees intensified by global change, and fuelled by the synergistic effects of climate change and shifts in agricultural practices, among other social–environmental factors15. Due to the large number of trees at the national scale, it is a challenge to inventory them for a single year or repeated on an annual basis, and the extent of mortality from diseases, climate or human disturbances remains largely unknown.

Previously it has not been possible to study changes in scattered non-forest trees over time at a large scale. Individual trees that grow scattered in farmlands can be mapped from sub-metre-resolution satellite imagery, but these are not available as time series over larger areas, such as the country of India, and thus cannot be used for quantifying dynamics at the level of individual trees in agricultural fields16. Satellite systems with a spatial resolution coarser than 10 m (for example, Sentinel 2) can detect groups of trees but not support detection of individual trees. The RapidEye archive is an often overlooked resource of satellite imagery, providing global coverage from micro-satellites back to August 2008. Together with PlanetScope (starting 2017), these satellite constellations provide a unique opportunity of repeated global coverage with images at a spatial resolution of 3–5 m, which allows the identification of individual trees17,18. We have developed a heatmap-based tree-detection approach19,20 and deployed the RapidEye and PlanetScope satellite constellations to study changes in farmland trees at the individual tree level in India between 2010 and 2022.

Results

For this study, we map adult trees that can be identified as individuals within farmlands at a spatial resolution of 3–5 m. The spatial resolution of the imagery applied impedes the detection of small trees and limits the study to larger trees, typically with a crown size >10 m2. Farmlands were delineated by a previously published state-of-the-art land-cover map (10 m resolution)5. This includes trees in fallow fields, hedgerows and trees along rural roads and rivers but excludes recently planted trees, which are not detectable in our images (Methods). Groups of trees and perennial plantations that form larger closed canopies, such as palm and rubber trees, are typically classified as ‘tree cover’ in the baseline land-cover map and are masked out in our study. Dense tree plantations can be part of agroforestry systems but are highly managed and include a high temporal dynamic from harvest and replanting, which makes this type of land use less relevant for this study, which is aiming at detecting longer-term changes in old farmland trees related to disturbances rather than recurrent management practices.

We formed country-wide custom generated mosaics of high-quality satellite scenes for each year 2010–2011 (RapidEye) and 2018–2022 (PlanetScope) and trained two deep-learning tree-detection models: one for RapidEye and one for PlanetScope, respectively. We merged the results from 2010 and 2011, and from 2018–2022, to ensure robustness in particular towards variations in image quality (Methods). The tree crown centres of individual trees mapped in 2010 or 2011 were tracked, and equivalents were identified during 2018–2022 (Fig. 1a,b). We used a buffer area of 15 m around the tree centre to account for potential spatial shifts in satellite image pairs. If a tree centre mapped in 2010 or 2011 was not found in one of the annual images between 2018 and 2022, it was counted as disappeared (Fig. 1b). When developing the models, we aimed for a very low false positive rate from the 2010/2011 detections (3%), meaning that only very few misclassifications exist. This method is tailored towards accurately detecting the disappearance of large trees and consequently is not designed for a wall-to-wall mapping of all individual trees in 2010/2011 as it may miss small trees. Therefore, we did not attempt to quantify the gain of small trees and net changes over the full period of analysis. We use the crown size to determine the size of a tree, which includes a considerable uncertainty at tree level21.

Fig. 1: Severe losses in large agroforestry trees 2010–2018.
figure 1

India has experienced massive losses of large farmland trees, illustrated here at the tree level tracked with RapidEye (2010/2011) and PlanetScope (2018–2022). a, Trees that have disappeared are shown here as a percentage in relation to the total number of mapped trees in 2010 aggregated to 5 × 5 km grids. b, A tree detected in either 2010 or 2011 but not during 2018–2022 was classified as disappeared. If a tree mapped in 2010/2011 was observed in any of the years between 2018 and 2022, it was classified as remained. c, Trees mapped with RapidEye have an average crown area of 96 m2 (confidence >0.8; Methods). Many regions have lost up to half of these large trees within farmlands during 2010–2018 (note that only trees in farmlands are considered, using WorldCover as a mask layer). The rectangle marks the area of the close-up, and the arrow shows the location within India. d, Trees mapped with RapidEye in 2010, shown here as a false colour composite. e, The same area in 2021 is illustrated here with Google Earth imagery, showing that only three of the large trees have remained. Remaining farmland trees: 22 million; disappeared: 2.5 million (confidence >0.8). Basemap in a from Natural Earth (https://www.naturalearthdata.com/). Credit: c,e, Google Earth; d, Planet Labs PBC.

For the 2010–2018 change, we focused on trees that were detected with a high confidence (>0.8) in the RapidEye period (Methods) as these are typically large trees that are clearly identifiable, such as the Neem tree. This means that the instances of detection and changes reported are reliable but conservative and implies that the real numbers are probably higher. As a result, we refrain here from reporting absolute numerical values of change in number of trees. Results show that 11 ± 2% of the high-confidence trees mapped in 2010 or 2011 were not detected in the 2018–2022 images (Fig. 1). The 2% uncertainty was quantified by a manual checking of 1,000 random samples. We found that trees detected by RapidEye with a confidence >0.8 have an average crown size of 96 m2 (Methods), which implies that the trees covered by this analysis were generally mature trees that have reached a later stage of development, and such a high loss rate of mature trees over less than a decade is unexpected. The disappearance of mature farmland trees was observed in many areas, but numbers rarely exceed 5–10%, except for areas in central India, in particular in the states Telangana and Maharashtra, where we document massive losses of large trees (Fig. 1). Here several hotspot areas have lost up to 50% of their large farmland trees, with up to 22 trees per square kilometre disappearing (Fig. 1c–e). Smaller hotspot areas of loss are also observed, such as in eastern Madhya Pradesh around Indore (Extended Data Fig. 1).

We then focused on the period 2018–2022, where higher-quality PlanetScope imagery was further used for annual wall-to-wall tree detections (Fig. 2), although the detection reliability for small trees with a crown area below 10–20 m2 is relatively low (Extended Data Table 1 and Methods). We mapped about 0.6 billion trees within the land-cover classes of cropland, urban and bare. The average number of trees per hectare is 0.6 (s.d. 1.6), and the highest densities are found in northwest (Rajasthan) and south-central India (Chhattisgarh), with up to 22 trees per hectare. We then tracked individual trees during 2018–2022. The condition was that a tree that was detected in either 2018 or 2019 with a high confidence and was not detected in the three consecutive years 2020–2022 was classified as disappeared, which ensures that the tree had actually disappeared and did not simply fail to be detected. We developed a metric termed ‘change confidence’, which quantifies the certainty to which a given tree actually disappeared (Methods). We focus exclusively on reporting tree losses accompanied by a high change confidence (>0.7). This approach acknowledges that the real figures may surpass those presented here, while intentionally omitting fluctuations of smaller trees and losses of trees characterized by considerable uncertainty in their reported numbers. We find that 5.3 million trees (2.7 trees per square kilometre) observed in 2018/2019 were not detected in 2020–2022. Trees with a change confidence above this threshold have an average crown size of 67 m2. The uncertainty in the number of disappeared trees was 21%, quantified by manually checking a random sample of 1,000 trees classified as disappeared. This number of disappeared trees, considered a conservative estimate due to the method applied, was still high considering that a majority of the losses must have occurred between 2018 and 2020. Several hotspot areas stand out. The example shown in Fig. 3b–d is not a local exception from the rule, as we observed similar situations all over Indian croplands, reflecting a considerable national-scale thinning of India’s large farmland trees over such a short period. Some regions have lost more than 50 trees per square kilometre.

Fig. 2: Presence of agroforestry trees during 2018–2022.
figure 2

a, Every tree within farmlands, urban areas and bare areas was mapped, and their density is shown here summed at the hectare scale. b, A demonstration of the framework to map the dynamics of individual trees in different agroforestry systems. Disappearance of trees can be caused by natural factors, part of management practices or related to disturbances, depending on the agroforestry type. The basemaps are from Google Earth, 2021. c, A tree that was detected in either 2018 or 2019 (or both) with a high confidence but was not found in three consecutive years (2020–2022) was mapped as disappeared, shown here as red points. Number of mapped trees: 597,638,431. See Extended Data Fig. 2 for an illustration of the workflow. Basemap in a from Natural Earth (https://www.naturalearthdata.com/). Credit: b, Google Earth.

Fig. 3: Disappearance of farmland trees 2018–2022.
figure 3

a, We estimate that 5.6 million trees have disappeared between 2018/2019 and 2020–2022, here shown per square kilometre. b, Zoom to a hotspot area in northwestern India where a substantial part of large farmland trees have disappeared over recent years. The arrow shows the location of the area within India. c, A PlanetScope scene captured in 2019, where trees classified as disappeared are still alive. The scene is shown as a false colour composite with near infrared as red colour, causing tree crowns to appear in reddish colours. The rectangle in b marks the location. d, A considerable number of the trees detected in 2019 are not present anymore in 2022, visualized here with a Google Earth basemap. The crown sizes of the disappeared trees here are >150 m2 (manually measured on the screen), which means trees were mature. Basemap in a from Natural Earth (https://www.naturalearthdata.com/). Credit: b,d, Google Earth; c, Planet Labs PBC.

A potential driver of tree losses is climate change, with rapid increases in temperature in central and southern India22 and unfavourable trends in rainfall and drought conditions over the past decade (Extended Data Fig. 3a–c). However, compared with the long-term mean precipitation, the past decade was above average for most areas23 (Extended Data Fig. 2d), and there is little evidence supporting climatic changes as the direct and main reason for the observed losses. We thus conducted qualitative interviews with villagers from the Telangana, Haryana, Kerala, Maharastra, Andrah Pradesh, Uttar Pradesh, Kashmir and Jammu provinces, all affected by the disappearance of trees in our maps (Fig. 1). All participants in the interviews verified the considerable reduction in the populations of mature trees within and along fields. These trees were removed owing predominantly to alterations in the cultivation practices. The establishment of new boreholes, which resulted in an augmented water supply, facilitated the expansion of paddy rice fields with the objective of boosting crop yields. The decision to remove trees within fields is often driven by the perception that their benefits are relatively low and concerns that their shading effect, in particular for trees with a very large crown such as Neem trees, may adversely affect crop yields. While all interviewees reported that native trees within fields have become rare, several report that block plantations have increased. Fungi and climate were not perceived to have had an impact on tree populations by the interviewees.

Discussion

The outcome of this study is twofold. First, we provide a tool that enables the monitoring of every individual large tree every year at a sub-continental scale (Extended Data Figs. 2 and 46). The imagery employed is not free of charge, but the cost is orders of magnitude lower than conventional sub-metre imagery17. We developed a deep-learning-based method that can be trained with simple point labels, which can be rapidly optimized for regional use19,20,24,25,26. The database not only provides a complete inventory of mature farmland trees, but also offers the opportunity to locate and quantify trees that have disappeared. The database includes detection confidence values for each year 2018–2022. If a tree that has been detected with a high confidence (above a given threshold) is not detected anymore over several consecutive years, there is a high probability that the tree has disappeared. By combining the confidence values of each year, a change confidence can be derived, quantifying the uncertainty of whether a tree has disappeared or not. In this study, we refrained from making statements on low or medium confidence changes to take a conservative approach to the reporting of losses, but the dataset will be open for various applications. The database can be updated on an annual basis and scaled to global scale, potentially being a tool to support scientists, agroforestry practitioners, land managers and policymakers. Potential applications beyond inventorying are the monitoring of illegal logging of trees and the monitoring of survival rates of restoration areas. As a potential for future research, the spectral information could be used to study changes in the health of trees.

Second, our study reveals a concerning trajectory, documenting a considerable depletion of large farmland trees over the past decade in parts of India. This finding is particularly unsettling given the current emphasis on agroforestry as an essential natural climate solution, playing a crucial role in both climate change adaptation and mitigation strategies, as well as for livelihoods and biodiversity27,28,29,30,31. A certain loss rate is natural, and the cutting of trees is also part of agroforestry management systems, and not every lost tree is related to climatic disturbances or human appropriation, just as not every mapped tree contributes to livelihoods of local communities. There are also large areas in India where observed losses do not exceed expected dynamics. Nonetheless, an observable trend is emerging in several areas where established agroforestry systems are replaced with paddy rice fields32, which are being expanded and intensified33, a development facilitated by the availability of newly established water supplies. Large and mature trees within these fields are removed, and trees are now being cultivated within separate block plantations typically with lower ecological value.

At a first glance, this may contradict official reports and recent studies stating that tree cover in India has increased considerably in recent years34,35. It is, however, important to note that we report only gross losses and did not consider tree gains as a separate class. We also masked out block plantations. We thus cannot provide information on net tree changes, and our results do not contradict reports concluding that there has been a net increase in planted trees outside forests as a result of tree planting being encouraged and actively carried out in India. However, newly planted trees do not always contribute to biodiversity36, and it can take a long time until they efficiently contribute to livelihoods. It is also unclear how newly planted trees survive in times of climate change. In light of the vast scale of global forest mortality caused by recent wildfires and droughts, the figures presented here may appear relatively modest, yet the substantial loss of particularly large farmland trees is disconcerting as virtually every large tree that has been lost may impact the ecosystem and, in the long term, the well-being and sustenance of communities.

The expansion and intensification of agriculture can lead to the simplification of natural and cultural landscapes37, resulting in the loss of biodiversity38, depletion of carbon reservoirs39 and disappearance of indigenous knowledge on the ecological functioning of agroforestry systems. However, and despite receiving limited attention, diverse and complex multifunctional landscapes are still maintained by indigenous peoples and smallholders40. According to the last census, more than 86% of the farmers in India are smallholder farmers with less than 2 hectares of land (and more than 67% of farmers less than 1 ha)41, in which trees may play an important role in their livelihoods42. Our results will be freely available, thereby inviting the research community to seize this opportunity for fieldwork and in-depth investigation to address existing uncertainties in agroforestry dynamics.

Methods

This study generates country-wide custom mosaics for RapidEye for 2010 and 2011 (5 m resolution) and for PlanetScope (3 m resolution) for 2018, 2019, 2020, 2021 and 2022. We trained deep-learning models to detect individual non-forest trees for each year and studied changes between years by tracking the tree crown centre over the years (Extended Data Figs. 2 and 46). We calculated a change confidence for each tree, which is composed of a multi-year detection confidence to be able to quantify the uncertainty of the detection and of the change. The 2010/2011 maps detected mostly larger trees, but differences in image quality impeded exhaustive wall-to-wall mapping. The newer maps available after 2018 provide a more spatially consistent mapping of all farmland trees; however, the mapping was designed to exclude dense plantations and small/young trees. We did not set a strict height or crown-size threshold for the Planet data analysis, but a previous study has shown that trees below 4 m in height and with a crown size below 10 m2 are likely not to be detected17 and that trees with crown sizes above 20 m2 can be mapped with a relatively high confidence. Hence, comparing the 2010 maps with the 2018–2022 maps gives an overview of the disappearance of large trees, while the tracking of trees during 2018–2022 includes all trees that have reached a certain crown size, excluding newly planted trees.

Monitoring trees at the level of individuals over time requires consistency in high-quality images and reliable tree-detection methods. While this would be easier to address by using sub-metre imagery, these data are not available as time series over large areas. Imagery from nano-satellites is available at 3–5 m resolution at a high temporal frequency, but the quality of the images captured from several hundred different satellites varies substantially. This concerns in particular the image sharpness, and smaller trees will not be visible in images that are blurred: a type of information that is not obvious from the scene metadata. Imagery at this spatial resolution is not suitable for pixel-wise stacking as image composites due to variations in the viewing angle. What is most important for the detection of trees is sharpness, and most other aspects, such as the number of spectral bands, can be neglected. Our solution to this issue was to filter each downloaded scene for sharpness using a blur kernel26, and if a certain threshold was not reached, the image was blacklisted and the area was filled with different images until the threshold was passed.

The method used for the tree detection in this study diverges from previous deep-learning-based approaches16,17. Studying changes at tree level at a continental scale requires a highly accurate and robust detection method that works over a variety of satellite images and landscapes. Here we developed a heatmap-based detection method19,20,43 that can be quickly trained with a large amount of point labels and is able to separate adjacent tree crowns reliably. The applied data are globally available, which makes our method widely applicable beyond the scope of farmland trees in India.

Image preparation

The RapidEye constellation was operational from 2009 to 2019 and consisted of five nano-satellites. The spatial resolution is 5 m, and the spectral bands are red, green, blue, red edge and near infrared. The PlanetScope constellation consists of 130+ nano-satellites with a resolution of 3–4 m and red, green, blue and near-infrared bands. We formed custom 1° x 1° mosaic tiles, each consisting of about 30 scenes for RapidEye and about 120 scenes (Dove Classic) or 60 scenes (Super Dove) for PlanetScope17. A histogram-matching algorithm with Landsat and Sentinel 2 scenes from the same period was applied for each tile to adjust differences in colours and form a homogeneous mosaic. The images were acquired following a phenological window derived from the Moderate Resolution Imaging Spectroradiometer phenology product (MOD09): For areas with deciduous trees, determined by the GlobCover map, images were acquired from the period between ‘senescence’ and ‘mid-greendown’. This particular period was selected as it represents the period after herbaceous vegetation has passed its productivity peak, whereas trees still have green leaves, facilitating the detection of tree crowns. For areas with evergreen trees, images were acquired between the mid-greendown and the ‘dormancy’, which is a period where herbaceous vegetation is not productive, but trees have full green leaves. If too few images were available meeting this criteria, we progressively extended the length of the time window until a maximum of 60 days was reached. If too few images were still to be found, we loosened the filtering criteria, allowing progressively lower ‘visible-confidence-percent’ values down to 60 to be included. We applied strict filtering criteria to use only images that are entirely free of clouds and have a low sun elevation (below 50), which facilitates the identification of trees by their shadow. The ground sample distance (GSD) of PlanetScope images varies between 3.1 and 4.7 m; we retained only images that have a GSD close to 3.1 m and never used imagery with a GSD above 4 m.

The identification of small trees is possible only in sharp images, and since there is a large variation in image sharpness between scenes that cannot be seen in the metadata, we applied a blur kernel to estimate the sharpness of the scene directly after download. The blur kernel is described in ref. 26, and we followed their recommendation to set a threshold of 0.23. We disregarded all scenes below this threshold and redownloaded the areas until the scene was classified as sharp. We applied the blur kernel only in images where the forest, shrubland, water, bare soil and wetland classes accounted for less than 50% of the scene coverage as the calculation of the blurriness score was found to be unreliable over these land-cover classes.

Since there is no reliable metadata on cloud cover in RapidEye images, we calculated the standard deviation for each downloaded scene and disregarded all scenes where the blue band had a very high standard deviation, which is typically the case in cloudy images. This did not guarantee fully cloud-free images but, together with the blur kernel, removed most of the contaminated scenes.

The entire framework was automated and the filling of a 1° x 1° tile required about 2–3 hours using a university connection, but it can be performed in a parallelized way so the downloading, filtering and processing of one year requires less than one week for all India. All processing was done locally, and the raw data for one year is about 2.5 terabytes. As a final step, we applied a contrast limited adaptive histogram equalization to each mosaic and normalized the bands to values between 0 and 255 (ref. 44).

Training data

We manually labelled trees with point labels at the tree crown centre, using separate models for PlanetScope (about 130,000 labels) and RapidEye (about 100,000 labels), including labels from all years. For each labelled tree, we used high-resolution images in Google Earth and Bing to verify whether the trees existed. A large number of sub-metre images around 2010 were available from Bing maps and were used to verify labels from RapidEye, while Google Earth images were from recent years and used to verify labels from PlanetScope images. The labels were generated as an iterative process. In the first round, labels were generated over a variety of landscapes and image conditions (different viewing angles, sharpness levels and so on), being spatially well distributed across India. Then a first model was trained and trees were predicted over the study area. Subsequently, labels were added in areas where the performance was not satisfying, according to a visual inspection, and this process was repeated until the result was visually satisfying.

Trees are more challenging to map in RapidEye images at 5 m (6.5 m ground sample distance) as compared with PlanetScope data. They become clearly visible if they cover four pixels, which would translate to a crown size of >100 m2. To reduce the number of false positives in our classification, we did not aim at a wall-to-wall mapping of trees in RapidEye images in 2010, but instead opted for a very low misclassification rate. Consequently, we labelled only clear examples, resulting in some heterogeneity in the tree maps (related to image quality, remaining cloud cover, sun elevation and visibility of the trees), generating a sample set of trees from 2010 with a certain randomness. By adding a second year, 2011, the combined results became more spatially consistent and homogeneous.

Tree detection

To produce the most reliable assessment of tree densities, we adapted a detection approach previously used to count dense objects, such as persons in a crowd. Our method is inspired by previous work19,20,43 and uses convolutional neural networks (CNNs) to produce a confidence map indicating the location of individual trees (Extended Data Fig. 6). The peak of the confidence map (‘heatmap’) is assumed to be the centre of a tree crown (Extended Data Figs. 2 and 5). The advantage of this method over previous methods16,17 is that it can be trained by point labels, which enables a rapid generalization and adjustment over large areas and different scene quality levels.

Heatmap-based detections typically transform discrete point labels into continuous Gaussian kernels, more suited to smooth optimization. It requires deciding on a fixed kernel scale, which is not straightforward here given the high level of variability in tree sizes, image quality and potential offsets between labelled and actual tree centres. A previous work24 proposed a solution with adaptive kernels, where the model is given a degree of freedom through a scale map that resizes the Gaussian kernels on the fly during training. They also weigh the regression loss to focus on misestimated pixels, similarly to the Focal loss25. Here we applied the same method, with two important modifications: we removed the linear approximation used originally and instead drew exact Gaussian kernels on the fly, and we allowed only scale factors >1, with a minimum standard deviation of 4.5 m for PlanetScope and 5 m for RapidEye. We found that these adjustments led to smoother heatmaps with fewer artefacts, which ultimately made it easier to tune the important hyperparameters of scale regularization and base Gaussian standard deviation (6 m for PlanetScope, 6.7 m for RapidEye).

We trained the models over 2,500 epochs, with a learning rate of 1 × 10–5 until epoch 2000, after which we used a linearly decreasing learning rate. The training process was monitored using 20% of the training data as validation data. We trained five models with different semi-random splits of the training data. After creating a list of possible random training and validation splits with an 80/20 proportion of the number of labelled areas, we selected splits that had a low Wasserstein distance between the distribution of trees per area in the training and validation sets. With a relatively high number of labelled areas (918 for PlanetScope, 791 for RapidEye), it ensures a diversity of training areas in the different models, while avoiding performance issues from unbalanced training and validation sets. The F1 scores on the heatmaps for all models ranged between 0.63 and 0.65 for a close radius of 20 m, and between 0.67 and 0.69 for a wider radius of 50 m (precision 0.83, recall 0.61 for 50 m), which is close to the values from ref. 19, although they used aerial images of higher spatial resolution. We then predicted on the mosaics using an ensemble over the five models and averaged the results of the heatmaps. The local maxima of the ensemble heatmap were converted to a point file, reflecting the centres of tree crowns. The peak confidence at the crown centre was saved as an attribute value associated with each centroid, reflecting the detection confidence. All peaks with a confidence equal to or above 0.35 were included in the following analyses. If the confidence was below 0.35, we considered this as no tree being detected.

A previously published tree crown segmentation model17 was updated with 52,000 manually drawn crown labels from India, and a tree crown segmentation was conducted for the year 2021 (Extended Data Fig. 4). Although this method is less reliable than the heatmap-based detection, it provides an overview of the crown-size distribution of the trees. Results showed that trees with a crown size below 20 m2 were under-detected (Extended Data Table 1). We further located 22.7 million large trees with a crown size >100 m2, which matches with the number of high-confidence trees detected by RapidEye in 2010/2011 (22 million; confidence >0.8). Note that trees with a crown size >50 m2 or >100 m2 represent only a small fraction of the woody populations, with proportions of about 20% and 4%, respectively (Extended Data Table 1).

We sampled trees from the heatmap predictions for the same area from both PlanetScope (n = 2.1 million) and RapidEye (n = 1.2 million) for 2019 (where RapidEye was still operational). We used the tree crown segmentation to determine the tree crown sizes of the point predictions from both PlanetScope and RapidEye by overlaying the tree crown segments with the point predictions and associating the crown area as an attribute to the points. We found that the average tree crown size of the samples was 55 m2 from PlanetScope and 62 m2 from RapidEye. Trees detected with a confidence >0.8 had an average crown size of 96 m2 for RapidEye. For PlanetScope, trees with a confidence >0.7 had a crown size of 67 m2; for <0.7, the crown size was on average 59 m2. This gives evidence that a higher confidence value also indicates a larger crown size.

Mapping tree changes

This study focuses on tree losses rather than gains as new trees are typically not growing large over a few years, and consequently they would not be detected in a reliable way. Moreover, the 2010 classification did not allow for wall-to-wall mapping.

We developed a framework that via crown centre detection can track individual trees over an arbitrary number of temporal steps. We defined a circular buffer area of 15 m around the centre of a detected tree and searched for centroid equivalents over the following images/years. If no tree was detected within the buffer area in the later years, the tree was counted a loss. If several trees were detected within the buffer, the closest tree was chosen.

For the long-term comparison between the early and late epoch, we combined the results from RapidEye (2010 and 2011) to reflect the early period and those of PlanetScope (2018–2022) to reflect the later period. Tree crown centres found in the early period were then compared with the later period, and a tree was classified either as disappeared, which means it was observed only in 2010/2011 but not during the later period, or as remaining, which means the tree was observed in both periods.

For the tracking of trees over the period 2018–2022, we developed a metric we named change confidence, which quantifies the confidence of our tree detection into the following three classes: disappeared, tree, and low-confidence tree/misclassification. A tree was marked as a low-confidence tree if it was detected in only one year with a low or medium confidence. The detection may be due to a misclassification or to the tree being too small to be reliably monitored over several years and was thus only detected in one year, so it was not included in the reported statistics. A centroid was marked as ‘tree’ if a tree was detected in one year with a very high confidence or in several years with a low or medium confidence. We marked a tree as disappeared if it was detected in either 2018 or 2019 with a high confidence, or in both years with a medium confidence, and then was not detected in three consecutive years (2020, 2021 and 2022). Mapping of disappearing trees and remaining trees with a low change confidence (<0.7) should be treated with caution. For example, if a tree mapped during 2018–2022 was mapped only in 2018 with a confidence of 0.5, it is likely that the tree is small or a false detection. If the tree is mapped only in 2018 with a confidence of 1.0, it is likely that the tree was then lost, as it was not mapped during 2019–2022. This assumes that a tree with a high confidence is a large tree that should be detected at least twice over 5 years. By contrast, if a tree was mapped with a lower confidence of 0.5 in 2018, but also in 2021 and 2022, the class is tree and the overall change confidence is higher as the tree was detected in 3 years, which reduces the risk of a misclassification.

Sources of uncertainties

Our change confidence metric quantifies uncertainty at tree level. Focusing only on trees with a high change confidence reduces the uncertainty of the change instances reported, but misses a number of cases of change that are real—but where the confidence is low due to image quality issues or the tree having a small crown. There are, however, a number of remaining sources of uncertainty that are challenging to quantify.

A tree was counted as disappeared during 2018–2022 only if the combined confidence of 2018 and 2019 was above 0.7 and the tree was not detected between 2020 and 2022. While this gives a certain robustness, we observed cases where the image quality was excellent in both 2018 and 2019 resulting in very high-confidence predictions, but the image quality was less ideal in all subsequent years 2020–2022, so some trees were missed in these three years, causing trees to be falsely classified as being disappeared. To account for this, we assumed that high-quality images in general generate higher confidence predictions compared with lower-quality images, so we calculated the average detection confidence of all trees within 1 × 1 km cells as a measure of image quality for each particular cell, which also accounts for quality variations within images. We then calculated a linear slope through the 1 × 1 km confidence grids, with time as the independent variable. A strong negative slope (<−0.05) implies that the average confidence in 2020–2022 was considerably lower than in 2018–2019, so we flagged this area as uncertain, and losses were not included in our reported numbers. The confidence slope map represents an additional layer (to the change confidence) that quantifies uncertainty that we provide with the database.

Some RapidEye scenes are spatially shifted, which leads to erroneous classifications of tree losses. When comparing the 2010/2011 results with the 2018–2022 results, we calculated the proportion of trees disappearing for each RapidEye scene footprint. If the proportion was above 40%, scenes were probably shifted and we masked them. We also manually masked scenes that were clearly shifted, visible by sharp edges along footprints.

A final source of uncertainty that cannot be quantified is the land-cover map included in our analysis. We used the WorldCover map from 2020 to retain only croplands for the 2010–2018 comparison, and cropland, urban and bare for the 2018–2022 comparison. The quality of the land-cover map impacts the results, and it happens that large farmland trees or groups of trees are masked out as forest or that the underlying classification is not correct. Future versions may include custom land-cover maps, which may lead to improved results. Using a land-cover map from 2020 to study changes over 10 years can include areas that have been cleared for cropping and have not previously been farmland, or were under fallow, or plantation forest. However, we observed that these areas rarely included large trees but rather shrubs and small trees, and by reporting mainly the loss of high-confidence trees, these are automatically excluded.

Evaluation of the tree detections and changes

We randomly selected 1,000 points mapped as disappeared trees between 2010/2011 and 2018–2022 to evaluate the uncertainty on the reported long-term losses. The same 1,000 points were used to evaluate whether trees were correctly mapped in 2010/2011 or whether it was a false detection. We further selected 1,000 random trees that had been mapped as disappeared trees over 2018–2022 to evaluate the uncertainty related to disappeared trees over the PlanetScope period. Each point was manually and visually checked on the images and in Google Earth, also using the historic images where available. For the losses, we considered only high-confidence changes, with values above 0.8 for RapidEye and 0.7 for PlanetScope. Uncertainties would be higher if different confidence thresholds were used. False detections of trees for 2010/2011 were found to be 3%. False losses for 2010–2018 were 2%. False losses for 2018–2022 were 21%.

We further conducted 12 qualitative interviews with villagers in the Telangana, Haryana, Kerala, Maharastra, Andrah Pradesh, Uttar Pradesh, Kashmir and Jammu provinces during August 2023. The interviews were about 20–60 minutes each, and we asked about soils, management systems, water resources, changes in the number of trees and possible reasons for changes. Participants were on average 59 years old. We explained our research briefly before conducting the interviews. We informed participants that we would use the information to understand the dynamics of large agroforestry trees. All interviewees accepted and provided answers to all questions.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.