Fragmentation metrics: which to use and which to avoid
The number of patches rises when a forest breaks apart and also when new patches appear. We propose four metrics that read in a single direction, with real data from Tambopata.
In the protected areas of Tambopata, the number of forest patches rose by 44% between 1985 and 2025. Over the same period, edge density and the share of core forest barely changed. Read alone, the number of patches suggests a decline the other metrics do not show: it counts the pieces without saying whether the forest is being lost, split or regrowing in patches.1
Three criteria for choosing a metric
- It always moves in the same direction when the landscape degrades.
- It stays stable when the resolution or the minimum mapping unit changes.
- Someone who did not run the analysis can interpret it.
The minimum set we use
For the forest class we report four metrics: habitat proportion, effective mesh size, edge density and core area. Effective mesh size sums up in a single figure the area of continuous forest that an organism starting from a random point in the landscape finds, on average:
where At is the total landscape area and Ai the area of each forest patch.2 It drops every time the forest is split or lost, and it is expressed in hectares.
| Forest in Tambopata | Protected areas | Buffer zone | ||
|---|---|---|---|---|
| 1985 | 2025 | 1985 | 2025 | |
| Patches | 380 | 548 | 432 | 1 022 |
| Edge density (m/ha) | 4,7 | 4,7 | 9,1 | 21,2 |
| Core forest (%) | 96,8 | 96,8 | 94,0 | 85,3 |
How to calculate them
The landscapemetrics package implements the FRAGSTATS metrics in R.3 Set the neighbour rule and the edge depth and report them: with 8 neighbours, two pixels touching diagonally form one patch; with 4, they do not.
library(terra)
library(landscapemetrics)
cob <- rast("cobertura_2025.tif") # 1 = bosque; proyección en metros
check_landscape(cob) # resolución, unidades y clases
met <- calculate_lsm(cob,
what = c("lsm_c_pland", "lsm_c_mesh", "lsm_c_ed", "lsm_c_ca", "lsm_c_tca"),
directions = 8, # regla de vecindad
edge_depth = 3) # 3 celdas de 30 m = 90 m de borde
bosque <- subset(met, class == 1)
v <- setNames(bosque$value, bosque$metric)
100 * v["tca"] / v["ca"] # % del bosque que es núcleoThe effective mesh size returned by lsm_c_mesh matches equation 1 calculated by hand. In the Tambopata case, core area was calculated in Python with the Euclidean distance to the edge; landscapemetrics measures depth in cells, so values may differ by a few tenths.
What to always report
Pixel resolution, minimum mapping unit, neighbour rule, edge depth for core area and software version. With those five items, another team can repeat the calculation and compare its results with ours.
- Fahrig (2003) separates habitat loss from fragmentation per se and shows why they should be measured separately.
- Jaeger (2000) defines effective mesh size and its properties.
- Hesselbarth et al. (2019); McGarigal et al. (2012).
- Wu (2004) describes how each family of metrics responds to changes in scale.
References
- Fahrig, L. (2003). Effects of habitat fragmentation on biodiversity. Annual Review of Ecology, Evolution, and Systematics, 34, 487–515. doi:10.1146/annurev.ecolsys.34.011802.132419
- Hesselbarth, M. H. K., Sciaini, M., With, K. A., Wiegand, K. and Nowosad, J. (2019). landscapemetrics: an open-source R tool to calculate landscape metrics. Ecography, 42, 1648–1657. doi:10.1111/ecog.04617
- Jaeger, J. A. G. (2000). Landscape division, splitting index, and effective mesh size: new measures of landscape fragmentation. Landscape Ecology, 15, 115–130. doi:10.1023/A:1008129329289
- McGarigal, K., Cushman, S. A. and Ene, E. (2012). FRAGSTATS v4: Spatial Pattern Analysis Program for Categorical and Continuous Maps. University of Massachusetts, Amherst.
- Wu, J. (2004). Effects of changing scale on landscape pattern analysis: scaling relations. Landscape Ecology, 19, 125–138. doi:10.1023/B:LAND.0000021711.40074.ae