1. Introduction
Biodiversity, as defined by the Convention on Biological Diversity adopted at the United Nations Earth Summit in Rio de Janeiro in 1992, refers to the vast array of living organisms found across different environments, including land, marine, and freshwater ecosystems, along with their associated ecological systems [
1]. This diversity manifests at multiple levels within species, among species, and across ecosystems. The primary categories of biodiversity, genetic, species, ecosystem, and landscape diversity, are interconnected, though they can also be studied independently.
Genetic diversity represents the variation in traits among individuals of the same species and their ability to adapt to environmental shifts [
2]. This type of diversity plays a fundamental role in species survival and evolutionary processes, particularly in response to ecological changes and external pressures [
3]. For example, maintaining genetic variation in agricultural crops is vital for breeding efforts aimed at enhancing disease resistance and resilience to climate fluctuations [
4].
Species diversity, the most commonly referenced level, describes the number and significance of species (their abundance and richness) within a particular area [
5,
6,
7]. At the ecosystem level, biodiversity characterises the interactions among different species living in the same environmental conditions. At the landscape level, understanding biodiversity is the most complex because it may encompass multiple ecosystems and their interactions, depending on the specific area. High species diversity often indicates a healthy and resilient ecosystem. For instance, tropical rainforests and coral reefs are known for their exceptional species diversity and are critical for global biodiversity [
8,
9]. These ecosystems support a vast array of species that perform essential ecological roles and provide valuable resources for humans.
At the ecosystem level, biodiversity characterises the interactions among different species living in the same environmental conditions. This involves understanding the roles species play within ecosystems, particularly keystone species, which are crucial for maintaining ecological balance [
10]. Ecosystem diversity is vital for the provision of ecosystem services that humans rely on, such as food, feed, fibre, water purification, nutrient cycling, and climate regulation [
11,
12,
13].
At the landscape level, understanding biodiversity is the most complex because it may encompass multiple ecosystems and their interactions, depending on the specific area [
14]. Landscape diversity considers the arrangement and connectivity of different habitats and their influence on ecological processes and species distributions [
15]. For instance, a landscape that includes forests, wetlands, and grasslands will support a wider variety of species and ecological functions than a homogenous landscape [
16].
Understanding and preserving biodiversity at all these levels is essential for maintaining the health and stability of the biosphere. However, evaluating biodiversity across genetic, species, ecosystem, and landscape levels is challenging due to the complexity, time, and extensive data required. There is a growing need for efficient, spatially explicit methods that can integrate land use and ecological data to support biodiversity monitoring and planning.
In response to this challenge, numerous recent studies across Europe have employed landscape-scale or nation-wide modelling approaches to link biodiversity with land use and habitat structure. For instance, Dou et al. (2021) developed a continental-scale land systems typology for Europe that integrates landscape characteristics and land use intensity, offering valuable insights into spatial heterogeneity [
17]. However, the system does not directly capture local species composition or habitat quality and may oversimplify ecological differences within classes [
17]. Similarly, Virkkala et al. (2022) mapped forest biodiversity potential in Finland using indicator bird species, providing a strong example of species-based modelling at the national scale [
18]. Still, the approach requires high-quality species data and may not be easily transferable to contexts with limited monitoring capacity [
18]. Auffret et al. (2018) demonstrated that land use intensification has led to large-scale declines in grassland specialist flora across southern Sweden [
19]. While this highlights the urgency of integrating land use change in biodiversity assessments, the study focuses on floristic data and does not address broader habitat quality indicators [
19]. Andersson et al. (2022) further confirmed that mosaic forest-farmland landscapes with grazed semi-natural pastures support high levels of biodiversity in northern Europe, particularly for plants, bumblebees, and butterflies [
20]. However, their study is based on intensive fieldwork in selected landscapes and may not scale easily to national-level planning frameworks [
20].
Together, these studies highlight the critical role of land cover composition, landscape configuration, and land use intensity in shaping biodiversity outcomes at broad spatial scales. However, they also reveal key methodological challenges, such as limited taxonomic scope, the need for detailed and high-resolution species data, and difficulties in applying results across different geographic or ecological contexts. These constraints limit the scalability and operational use of such approaches in regions where monitoring data are sparse or fragmented.
To address the growing need for proxy-based frameworks that balance ecological relevance with practical applicability, this study adopts habitat quality as a proxy indicator. Habitat quality reflects the capacity of a landscape to support diverse and viable species populations and is increasingly used in spatial conservation planning [
21,
22]. Importantly, this method provides a relative indicator of biodiversity potential rather than a direct measure of species richness. This approach enables the evaluation of biodiversity potential using available land use data at broad spatial scales. Latvia was selected as a national case study to apply and demonstrate this approach. The country presents a relevant context due to its ecological heterogeneity, high proportion of natural and semi-natural habitats, and active engagement in EU biodiversity policy implementation. While species monitoring efforts are ongoing in Latvia, for taxa such as birds, butterflies, moths, dragonflies, amphibians, and mammals, they are taxon-specific, spatially limited, and not explicitly designed to link species occurrences with land use types at the polygon level. For example, bird monitoring is conducted along fixed 4 km transects selected to ensure representative coverage across the country, based on a 50 × 50 km national grid, within which observations are carried out in four selected 5 × 5 km cells. However, detailed information on land use or management practices is not systematically recorded alongside these observations, limiting their integration into spatial biodiversity modelling. Invertebrate monitoring includes basic land use classification within a 100 m radius around survey transects, but these surveys are only conducted in areas with suitable habitats, thereby introducing spatial bias. Furthermore, monitoring intensity and expert capacity vary over time, and improvements in detection methods or observer expertise can affect data comparability across years, potentially inflating perceived biodiversity trends [
23,
24]. To overcome the lack of comprehensive species occurrence data, particularly for large-scale applications, this study applies a spatially explicit habitat quality index. In addition to establishing a baseline of habitat quality, the approach supports scenario analysis. By applying it to alternative land use futures, including policy-driven changes, we assess how different targets may influence biodiversity. This scenario-based approach supports proactive decision-making by enabling stakeholders to explore potential outcomes and develop strategies tailored to specific ecological and geographical contexts. The Latvian case study not only demonstrates the practicality of the method but also highlights the importance of spatial prioritisation and context-specific conservation planning.
2. Materials and Methods
2.1. Case Study
Latvia is a Northern European country covering approximately 64,600 km
2, situated in the Boreal biogeographic region [
25]. Its landscape is composed of forests (more than 50% of the land area), agricultural land, wetlands, grasslands, inland waters, and coastal habitats. Latvia is recognized for its relatively high proportion of natural and semi-natural habitats, including extensive peat bogs and species-rich grasslands. This ecological diversity, together with ongoing land use changes and policy commitments under the EU Biodiversity Strategy, makes Latvia a suitable case study for assessing habitat quality and modelling conservation scenarios at the national scale.
2.2. Agricultural Land
The evaluation of habitat quality in agricultural landscapes in this study is based on the ecosystem quality framework developed by Reidsma et al. (2006) [
26], which defines ecosystem quality as the capacity of a system to sustain biodiversity under natural conditions. In this framework, values range from 0%, indicating a fully degraded ecosystem with no wild species, to 100% representing a natural, undisturbed state. This approach has been applied in previous landscape-scale assessments as a relative indicator of biodiversity, not an absolute measure, as it simplifies complex ecological processes into a conceptual scoring system suitable for spatial modelling [
13].
Given the well-documented link between agricultural land use intensity and biodiversity loss [
10,
27,
28,
29], habitat quality values are assigned based on dominant land use types and typical management practices in Latvia, such as conventional versus organic farming, arable land versus grasslands, and areas under protection. These assignments draw on published empirical studies, including Katayama et al. (2019), which show that orchard systems under low-input or organic management support higher species richness across multiple taxa [
30], and Horak et al. (2013), who found that traditional fruit orchards contribute significantly to structural habitat diversity and serve as biodiversity reservoirs in rural landscapes [
31].
Meta-analyses consistently show that organic and low-intensity systems support higher biodiversity than conventional farming. Tuck et al. (2014) reported that organic management increases species richness by about 30% across multiple taxa, with the strongest effects in intensively managed arable landscapes [
32], while Sanders et al. (2025) highlighted broader environmental and resource-conservation benefits across temperate climates [
33]. Grassland systems in particular are recognised as biodiversity hotspots: extensively managed meadows and pastures host diverse plant and pollinator communities [
34,
35]. This evidence underpins the higher values assigned in
Table 1 to semi-natural grasslands and other extensively managed farmland. Semi-natural grasslands maintain high biodiversity under both conventional and organic systems when grazing or mowing remains extensive, while perennial plantations can enhance heterogeneity in arable-dominated settings but may reduce diversity if they replace semi-natural habitats in mosaic landscapes [
30]. Uncultivated patches can provide habitat opportunities in intensively farmed arable systems but are often degraded or hold limited ecological value in forest-dominated or mosaic landscapes [
36]. Grassland overgrowth by shrubs typically reduces open-habitat specialists [
37], peat extraction fields represent highly degraded conditions [
38], and protected bogs achieve maximum values due to their status as internationally recognised biodiversity hotspots [
39].
At the same time, biodiversity responses are context-dependent and vary among taxonomic groups. Some studies find stronger benefits of organic farming in homogeneous arable landscapes compared with structurally complex mosaic ones [
27,
36]. To reflect this, landscape heterogeneity was incorporated as a modifying factor in the modelling framework. Consequently, the fixed values in
Table 1 should be understood as relative proxies that capture the comparative ecological potential of land use types, rather than precise measures of species richness. Their limitations, including the lack of taxon-specific calibration, are addressed in
Section 4.2.
To refine the spatial allocation of high-quality habitats, additional geospatial layers from the Nature Data Management System “Ozols” were integrated, including the boundaries of specially protected nature territories, their functional zones, and habitat types [
40]. Polygons where no economic activity is permitted, such as strict nature reserves or core zones of protected areas, are assigned the maximum habitat quality index (10 points), reflecting near-natural conditions with minimal human disturbance. This modelling assumption is consistent with findings by Geldmann et al. (2013), who demonstrated that areas with stricter protection levels are generally more effective in maintaining biodiversity [
41]. Conversely, for land polygons classified as ecologically valuable but lacking explicit information on restrictions related to economic activities, the habitat quality index is interpolated following the approach used by Valujeva et al. (2020) [
13].
Another factor affecting habitat quality is landscape diversity or heterogeneity [
36,
42,
43,
44]. Accordingly, the landscape is classified into three groups: a heterogeneous (mosaic) landscape, a homogeneous landscape dominated by arable land, and a homogeneous landscape dominated by forests. To determine whether a landscape is homogeneous or heterogeneous, the entire territory of Latvia is divided into 100-hectare grids. If the area of arable land within a grid exceeds 70%, the territory is considered homogeneous with an arable land dominance. Conversely, if the forest area within a grid exceeds 70%, the territory is classified as homogeneous with a forest dominance. Areas that do not meet these criteria are considered as heterogeneous landscapes. This classification approach follows the methodology applied by Dou et al. (2021), who used a comparable 70% threshold to distinguish dominant land systems at the 1 km
2 scale across Europe [
17]. Applying this threshold allows for a consistent and ecologically meaningful delineation of landscape types in biodiversity assessments.
The habitat quality index values assigned to different agricultural systems, based on land use type, farming system, and landscape diversity, are presented in
Table 1.
2.3. Forest Land
The evaluation of biodiversity at the polygon level in forested areas is constrained by a lack of comprehensive biodiversity data. Bird habitat quality is, therefore, selected as a proxy indicator, as birds are widely recognised as reliable bioindicators of forest biodiversity due to their sensitivity to stand structure, their relatively well-studied ecology, and the availability of long-term monitoring data [
18,
45]. This quality is assessed based on key forest characteristics, including economic activities within the forest stand, stand age, and the dominant tree species (
Table 2). Based on the dominant tree species, forests are grouped into seven categories: pine, spruce, birch, black alder, grey alder, aspen, and other species. Forest stands are further classified into six age categories: clear-cut area, young stand, middle-aged stand, maturing stand, mature stand, and over-mature stand. Each tree species has a specific age range corresponding to each age category. This classification system enables a more precise evaluation of bird habitat quality and its correlation with forest management practices, providing valuable insights into biodiversity conservation within different forest types.
The assessment of habitat quality for forest birds in this study is carried out with input from the leading ornithologists representing the main institutions involved in bird studies in Latvia: the University of Latvia and JSC “Latvian State Forests”. Based on expert knowledge and field experience, correlations are established between bird species richness and forest stand age classes for each dominant tree species. These relationships reflect how attractive different forest stands are to bird communities.
In forests, habitat quality is assumed to increase progressively as the stand matures and transitions through successive age classes. This assumption reflects the general trend that older forests develop structural complexity, such as deadwood, cavities, and multi-layered canopies, that provides habitats for a wider range of bird species [
46,
47]. The rate of improvement varies among dominant tree species, depending on their ecological characteristics. For example, aspen and alder are assigned higher maximum scores because they typically support greater cavity-nesting and insectivorous bird diversity compared with spruce or birch [
48]. Over-mature stands are generally assigned the highest habitat quality scores, although the maximum possible score differs by tree species to reflect their varying biodiversity contributions (
Table 3). It is acknowledged, however, that some bird species benefit from young or early-successional stands, while others depend on mature or old-growth forests [
49,
50]. The progressive increase presented in
Table 3, therefore, represents a simplified proxy for average biodiversity potential rather than a species-specific response.
The habitat quality scores presented in
Table 3 were not developed within this study but are compiled based on pre-existing expert evaluations. These expert-derived values are used as input data for spatial modelling and reflect prior knowledge about the relationships between forest structure and bird diversity in Latvia. Their limitations, including the oversimplification of non-linear and taxon-specific responses, are further discussed in
Section 4.2.
2.4. Data Sources
This study is based on spatially explicit land use data obtained from official national sources. Agricultural land use information is sourced from the Rural Support Service of Latvia, where most farmers submit spatial data on their cultivated crops through annual declarations required by the Common Agricultural Policy regulations [
51]. This dataset provides detailed spatial information on cultivated crops and distinguishes between conventionally and organically managed fields, which is essential for scenario analysis.
Forestry data are sourced from the State Forest Service of Latvia, which manages the State Forest Register and ensures the quality and accuracy of forest inventory information [
52]. All spatial datasets used in this study reflect land use conditions as of the year 2024 and include approximately 1.2 million agricultural land polygons and 4.0 million forest land polygons.
In addition, data from the national Nature Data Management System “Ozols” are integrated to identify whether specific land polygons fall within designated protected areas. This database includes the spatial boundaries of specially protected nature territories, their functional zones, and habitat classifications.
All datasets used in this study are publicly available through the Latvian Open Data Portal [
53].
2.5. Scenarios Description
To evaluate the potential impact of future land use and management policies on biodiversity, two scenario-based simulations are developed: (1) Scenario 1: Expansion of protected areas; and (2) Scenario 2: Increase in organic farming. These scenarios are derived from the targets set by the EU Biodiversity Strategy for 2030, which outlines commitments for the expansion of protected areas and the promotion of sustainable agricultural practices, particularly organic farming. Both scenarios are implemented within the same spatial framework used in the baseline assessment.
Scenario 1 simulates an increase in the extent of protected areas in Latvia, aligning with the EU Biodiversity Strategy for 2030, which sets a target of protecting at least 30% of the total land area of the EU, including 10% under strict protection. In this scenario, additional protected territories are designated on agricultural land to reflect this objective. The selection of new areas for protection is based on current habitat quality assessments and focuses on regions already recognised as ecologically valuable or located near existing protected sites [
40]. Specifically, areas with high habitat quality indices and regions surrounding current protected zones are prioritised for inclusion. In the context of this study, all newly designated protected areas under Scenario 1 are treated as strictly protected, where economic activities are either entirely excluded or significantly limited. Under such management, these areas are expected to maintain minimal human disturbance and high ecological integrity. For modelling purposes, they are, therefore, assigned the maximum habitat quality index value (10 points), reflecting conditions characteristic of undisturbed or near-natural habitats. This approach reflects the objective of maximizing biodiversity potential in areas selected for formal protection and is consistent with the ecological role such areas are intended to fulfil within conservation networks. Protected areas with higher levels of legal restriction and effective management have been shown to better maintain biodiversity and prevent habitat loss, reinforcing the rationale for modelling newly protected areas under strict conservation regimes [
41].
Scenario 2 models the transition from conventional to organic farming, aiming to meet the EU Biodiversity Strategy target of having at least 25% of EU agricultural land under organic farming by 2030. In Latvia, the share of organic agricultural land was 15.97% in 2022 and decreased slightly to 15.65% in 2024 [
54]. While various socio-economic and institutional drivers, such as market demand, policy incentives, advisory support, and farmer attitudes, can influence farmers’ decisions to adopt organic farming [
55], the aim of this study is not to explore these drivers in detail or prescribe where such transitions should occur. Rather, the modelling approach focuses on evaluating potential biodiversity gains under a scenario where the national organic farming target is met.
To operationalise this, the scenario simulates organic conversion within cereal-dominated areas, as cereals represent a major share of conventional agricultural production in Latvia. This approach aligns with findings by Flick et al. (2012), who suggest that the positive impact of organic farming on biodiversity is strongest in landscapes where intensive agriculture is the main land use [
27]. Spatial data from the Rural Support Service is used to identify conventional cereal fields. From this data, randomly selected cereal field polygons currently under conventional management are converted to organic systems until the target increase of +9.35% of agricultural land is reached. This approach reflects a realistic and unbiased distribution of potential conversions, without assuming specific policy mechanisms or location-based interventions. Converted fields are assigned a higher habitat quality index, as outlined in
Table 1, according to their landscape context (homogeneous or heterogeneous), thereby enabling assessment of spatial impacts on biodiversity potential.
2.6. Technical Implementation
Habitat quality modelling and spatial data processing are conducted using a combination of R 4.5.1, Python 3.14, and a PostgreSQL 17 database with the PostGIS 3.5.3 extension. Initial data manipulation and spatial operations are carried out in R, within the RStudio environment, using packages such as dplyr (data processing), sf and lwgeom (spatial data handling), and data.table (efficient large-table operations).
For performance optimisation, especially with large datasets, data are imported into a PostgreSQL/PostGIS environment. Here, Python scripts, using the psycopg2 library, are used to run SQL queries, monitor progress, and manage memory more effectively. This setup allows for faster processing and parallel execution where applicable.
2.7. Modelling Approach
The modelling process starts with the baseline habitat quality assessment. Each land polygon in Latvia is assigned a habitat quality index based on its land use and management characteristics, using values from
Table 1 for agricultural systems and
Table 3 for forest stands. This index is then multiplied by the area of the respective polygon to calculate its total habitat quality score in points. These point values are spatially aggregated within a 100-hectare grid, primarily for visualisation purposes, by summing all scores of polygons located within each grid cell to create a national-scale baseline habitat quality map.
For each scenario, a set of polygons is then selected for modification. In Scenario 1, areas adjacent to existing protected sites and with high habitat quality were chosen for simulated designation as new strictly protected areas. In Scenario 2, randomly selected conventionally managed cereal fields are converted to organic management. For the selected polygons, updated habitat quality indices are applied, again following the classifications in
Table 1 and
Table 3. These new scores are multiplied by polygon area and aggregated within the same 100-hectare grid framework to generate habitat quality maps after scenario implementation.
The effect of each scenario is calculated by subtracting the post-scenario habitat quality value from the baseline value for each grid cell. The relative impact is then expressed as a percentage change.
A simple sensitivity test is performed for the baseline scenario by adjusting habitat quality indices by ±1 point for selected key forest classes. These included middle-aged birch stands, maturing pine stands, mature pine and birch stands, and over-mature aspen stands. The key forest classes are identified by multiplying the habitat quality index values from
Table 3 with the corresponding forest area from
Table A1 and selecting the five classes contributing the highest total habitat quality points. To assess spatial sensitivity in Scenario 2, the baseline random allocation of organic conversion is compared to an alternative clustered allocation, where conversions are concentrated in homogeneous arable landscapes. In addition, to evaluate uncertainty and test the robustness of both scenarios, a Monte Carlo simulation with 200 iterations is conducted. In each iteration, different combinations of land parcels, based on each scenario’s assumption, are randomly selected for conversion to either protected areas or organic farming. Habitat quality is recalculated accordingly. From these simulations, the mean, standard deviation, and 95% confidence intervals are computed to quantify the uncertainty and consistency of the modelled outcomes.
5. Conclusions
This study presents a spatially explicit approach for modelling habitat quality as a proxy for biodiversity at the national level. The results demonstrate that different policy measures have markedly different impacts on habitat quality. Scenario analysis revealed that targeted expansion of protected areas, especially near existing sites, provides stronger benefits for biodiversity than widespread but diffuse changes in land management.
Moreover, while habitat quality alone cannot capture all dimensions of biodiversity at the field or stand level, it offers a practical and comparative measure of how favourable various land use types are for supporting biodiversity across landscapes. Even modest national-level improvements can enhance ecological connectivity and landscape resilience, highlighting the importance of spatial configuration in addition to total area.
The inclusion of sensitivity testing and Monte Carlo simulations strengthens the robustness of the results and supports the credibility of the main findings. This approach enables the prediction of biodiversity outcomes under alternative land use scenarios and supports evidence-based policy planning. As such, it contributes to national and EU-level biodiversity goals by helping to identify priority areas for conservation and informing strategies that integrate ecological, spatial, and land use considerations. Future research should incorporate species-level data, connectivity metrics, and non-linear biodiversity responses to further enhance sensitivity and policy relevance.