An uncertainty traceable multi-scale geographic knowledge graph reasoning method and system
By constructing a multi-scale geographic knowledge graph and graph neural network, and explicitly modeling the scale as a semantic unit, the problems of information loss and uncertainty tracking in cross-scale reasoning are solved, and the reliability and transparency of geospatial prediction are achieved. This approach is suitable for tasks such as risk assessment and environmental monitoring.
Patent Information
- Application Number
- CN202611352604.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to avoid information simplification, distortion, or loss during cross-scale reasoning, and lack the ability to track and explain the sources of uncertainty, resulting in unreliable results that cannot be effectively applied in high-risk decision-making.
A multi-scale geographic knowledge graph is constructed, using an H3 grid with strict hierarchical nesting as the spatial skeleton, explicit modeling scale as the semantic unit, and a graph neural network to realize message passing and perturbation estimation for uncertainty perception, quantifying and tracking the sources of scale uncertainty.
It enables transparent and interpretable reasoning across scales, quantifies and explains sources of uncertainty, ensures the reliability and transparency of prediction results, and is suitable for tasks such as risk assessment and environmental monitoring.
Smart Images

Figure CN123140231A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the interdisciplinary field of computer science and geographic information, and in particular relates to a method and system for reasoning about multi-scale geographic knowledge graphs with traceable uncertainty. Background Technology
[0002] Geographical phenomena generally exhibit multi-scale characteristics, and their mechanisms and external manifestations undergo systematic changes with the scale of observation, a phenomenon known as the scale effect. Taking forest fire susceptibility as an example: at the local scale, it is mainly influenced by combustible materials and topography, while at the regional scale, it becomes dominated by meteorology and macro-vegetation patterns. The fundamental changes in dominant factors and even the entire mechanism at different scales make cross-scale reasoning a challenging process of information re-representation. Therefore, how to construct models that can robustly handle multi-scale information and support cross-scale reasoning has become a fundamental challenge in key tasks such as disaster risk assessment, urban environmental monitoring, and resource distribution prediction.
[0003] Previous techniques attempted to establish mathematical connections between different spatial resolutions through explicit scale mapping, thereby achieving information aggregation and pushdown within a unified framework. Typical techniques include: multi-resolution Gaussian process models—characterizing cross-scale spatial correlation structures by introducing scale parameterization into the covariance function; and hierarchical Bayesian models based on stochastic partial differential equations (SPDEs)—achieving a unified description of multi-scale spatial processes through explicit mapping from continuous to discrete fields. In the field of geostatistics, multi-scale geographic weighted regression further attempts to characterize local scale heterogeneity in a data-driven manner; while statistical correction methods based on MAUP attempt to mitigate systematic errors caused by aggregation boundaries.
[0004] These methods provide a rigorous theoretical foundation for scale parameter modeling, but they often rely on assumptions such as stationarity, spatial homogeneity, or linear additivity, which limits their application in real, complex geographical environments. Furthermore, the inherent information loss and uncertainty during scale transformation are often difficult to fully characterize, and there is often a lack of mechanisms to propagate these losses to downstream inference processes.
[0005] Existing research uses a data-driven approach to directly learn multi-scale structures from observations, avoiding the construction of explicit transformation functions. For example, traditional wavelet transform and spectral analysis can reveal scale dependencies through frequency domain decomposition. With the development of deep learning, models can adaptively learn or construct multi-scale graph structure representations from data, thus explicitly modeling multi-scale patterns. For example, multi-scale graph neural networks can learn long-range connections from raw signals to construct multi-scale graphs, or explicitly capture and utilize multi-scale feature representations by building multiple input graphs with different neighborhood scales. Diffusion models and neural operators have also made progress in multi-scale remote sensing applications. For example, EHC-DMSR uses diffusion models for super-resolution reconstruction of remote sensing images, effectively improving the detail recovery capability of low-resolution images at higher scales through feature-condition guidance and high-frequency constraints. Geo-FNO, by mapping irregular spatial domains to a potential uniform grid, enables Fourier neural operators to solve PDE-controlled processes on arbitrary geometries, thus exhibiting efficient and generalizable operator learning capabilities when modeling continuous fields that vary across spatial scales.
[0006] Existing cross-scale reasoning mechanisms are often implicit and lack interpretability. While multi-scale structures are captured by network architectures, they are not transformed into scale semantic units and relationships with clear geographical meaning that can be independently manipulated and reasoned about. In other words, existing technologies typically struggle to treat "scale" as an explicit, computable semantic unit and lack mechanisms to track information loss and error propagation during scale transformation. This leads to the implicit accumulation of errors in the reasoning chain, irretrievably compromising the reliability of the results. Furthermore, the lack of a unified framework for incorporating multi-scale uncertainty into the reasoning loop and attributing its sources prevents domain decision-makers from distinguishing the geographical causes of uncertainty—for example, whether uncertainty stems from information loss due to aggregation or spatial variations due to heterogeneity. This limits the application of technology in high-risk decision-making. Summary of the Invention
[0007] To address the above technical problems, this invention proposes a multi-scale geographic knowledge graph reasoning method and system with traceable uncertainty. Its core objective is to construct a multi-scale semantic representation with embedded uncertainty metrics, modeling "scale" itself as a computable and traceable explicit semantic unit, and realizing the quantification, propagation, and attribution of uncertainty in cross-scale information transformation, thereby providing a reasoning paradigm for geospatial prediction that combines accuracy and interpretability.
[0008] The technical problem this invention aims to solve is that in cross-scale reasoning, any cross-scale reasoning inevitably suffers from simplification, distortion, or loss of information. This is a fundamental limitation caused by the scale effect. Therefore, constructing an ideal cross-scale model requires not only the ability to integrate multi-scale information but also the ability to proactively explain how the scale effect leads to information shifts and uncertainty diffusion, elucidating its internal mechanisms and degree of influence, thereby ensuring the transparency of the reasoning process and the reliability of the conclusions.
[0009] The specific technical solution is as follows:
[0010] An uncertainty-traceable multi-scale geographic knowledge graph reasoning method includes the following steps:
[0011] Constructing a multi-scale geographic knowledge graph includes: selecting a spatial grid as a spatial skeleton, the spatial grid including multi-scale levels and nodes; mapping multi-source geospatial data to the corresponding spatial grid levels; and assigning environmental attributes, task context attributes, and uncertainty attributes to each node; quantifying the environmental attributes, task context attributes, and uncertainty attributes into numerical feature vectors, and concatenating the vectors to form the initial representation of the node.
[0012] The process of constructing and training an embedding model for cross-scale reasoning includes: mapping the initial representation of each node to a unified latent space as the initial representation for message passing; during message aggregation, explicitly incorporating the scale uncertainty attributes of the sending and receiving nodes into the attention weight calculation, and performing uncertainty-aware attention weighting on messages from neighboring nodes; after multi-layer aggregation, obtaining the final representation of the target node for downstream prediction tasks, and then outputting the prediction probability.
[0013] Uncertainty estimation and scale attribution include: after model training, constructing a perturbation distribution of input features based on the scale uncertainty of nodes, performing multiple random samplings of input features and executing a complete forward propagation, constructing confidence intervals based on the predicted probability set, realizing the overall quantification of the uncertainty of model output, and decomposing the sources of error at different scales to achieve prediction credibility evaluation and uncertainty source tracking.
[0014] An uncertainty-traceable multi-scale geographic knowledge graph reasoning system includes the following modules:
[0015] The knowledge graph construction module is used to construct a multi-scale geographic knowledge graph, including: selecting a spatial grid as a spatial skeleton, the spatial grid including multi-scale levels and nodes, mapping multi-source geospatial data to the corresponding spatial grid levels, and assigning environmental attributes, task context attributes and uncertainty attributes to each node; quantifying the environmental attributes, task context attributes and uncertainty attributes into numerical feature vectors, and forming the initial representation of the node by concatenating the vectors.
[0016] The model building module is used to build and train an embedded model for cross-scale reasoning, including: mapping the initial representation of each node to a unified latent space as the initial representation for message passing; during message aggregation, explicitly incorporating the scale uncertainty attributes of the sending and receiving nodes into the attention weight calculation, and performing uncertainty-aware attention weighting on messages from neighboring nodes; after multi-layer aggregation, the final representation of the target node for downstream prediction tasks is obtained, and then the prediction probability is output.
[0017] The estimation and attribution module is used for uncertainty estimation and scale attribution. It includes: after the model training is completed, constructing the perturbation distribution of the input features based on the scale uncertainty of the nodes, performing multiple random samplings of the input features and performing a complete forward propagation, constructing confidence intervals based on the predicted probability set, realizing the overall quantification of the uncertainty of the model output, and decomposing the sources of error at different scales to realize the evaluation of prediction credibility and the tracking of uncertainty sources.
[0018] An electronic device includes: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method.
[0019] A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to implement the method described thereon.
[0020] The present invention has the following beneficial effects:
[0021] 1. Explicit Multi-Scale Semantic Modeling: A multi-resolution H3 grid with strict hierarchical nesting is used as a unified spatial skeleton. At least three scale levels (coarse, medium, and fine) are explicitly retained in the same knowledge graph. Cross-scale parent-child relationships (PARENT_OF) and same-scale adjacency relationships (ADJACENT) are defined, making "scale" itself a computable and queryable explicit semantic unit, rather than an implicit parameter encoded in the network architecture.
[0022] 2. Definition and Node Embedding of Three Types of Scale Uncertainty Attributes: The system introduces aggregation uncertainty (differences in results from different aggregation operators), pushdown uncertainty (differences in estimations from different allocation strategies), and spatial consistency uncertainty (statistical dispersion of sub-units) into the node attributes. This makes the biases that were originally implicit in the data preprocessing process explicit and computable, and combines them with environmental features and task features to form the node initialization representation, making uncertainty a core feature that can participate in subsequent reasoning.
[0023] 3. Uncertainty-aware message passing mechanism: During message aggregation in the graph neural network, the scale uncertainty attributes of the sending and receiving nodes are explicitly incorporated into the attention weight calculation, achieving: (a) automatic suppression of message contributions from nodes with high uncertainty; and (b) adaptive weakening of messages with scale conflicts or structural inconsistencies. This mechanism enables the model to maintain its cross-scale information fusion capability while dynamically adjusting message credibility.
[0024] 4. Posterior uncertainty estimation based on input perturbation: After training, a perturbation distribution is constructed based on the three types of scale uncertainty built into the node. The input features are randomly sampled multiple times and a complete forward propagation is performed. A confidence interval is constructed based on the predicted probability set to achieve overall quantification of the uncertainty of the model output.
[0025] 5. Scale Attribution Method for Component Perturbations: A conditional perturbation strategy is adopted, which applies noise only to a certain type of scale uncertainty while keeping the other components deterministic. The prediction variance under each single-source perturbation is calculated and normalized to form the scale contribution ratio. The total prediction uncertainty is decomposed into sources with clear geographical significance, such as "aggregation bias", "pushing down bias" and "spatial heterogeneity", so as to achieve interpretable attribution of uncertainty.
[0026] 6. Cross-task applicability of the unified framework: The above methods constitute a general reasoning framework that can be adapted to various geospatial prediction tasks such as risk assessment, environmental monitoring, and resource distribution prediction, ensuring the consistency of the cross-task reasoning process and the transparency of the interpretation approach.
[0027] 7. This invention constructs an explicit multi-scale knowledge graph, turning the "scale" itself into a queryable and traceable semantic unit, making the transmission path of information between parent and child scales clearly visible, and the error propagation process traceable and controllable.
[0028] 8. This invention transforms uncertainty from a "general numerical value" into an "explainable cause." Existing models, even if they can provide confidence intervals for predictions, cannot tell users the exact source of this uncertainty. This invention not only quantifies the overall uncertainty but also further breaks it down: How much comes from information loss during data aggregation? How much from assumption biases in the pushdown process? How much from spatial differences within the region? This makes the model truly applicable to demanding decision-making scenarios such as risk assessment and precise planning. Attached Figure Description
[0029] Figure 1 This is an overall flowchart of the method of the present invention;
[0030] Figure 2 This is a schematic diagram of a multi-scale H3 grid. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other. To achieve the above objectives, this invention adopts the following technical solution.
[0032] This invention provides a method for reasoning about multi-scale geographic knowledge graphs with traceable uncertainty. The overall framework is as follows:
[0033] First, all multi-source data, including remote sensing imagery, land use / land cover data, topographic data, meteorological and environmental data, socioeconomic data, and historical event records, are mapped to multiple spatial grid levels (such as coarse-grained, medium-grained, and fine-grained H3 hexagonal grid levels, including res9, res11, and res13) at their native resolution, and constructed into a multi-scale geographic knowledge graph. Cross-scale parent-child relationships include cross-scale edges PARENT_OF and same-scale proximity edges ADJACENT. Each node carries three types of attributes: environmental attributes, task context attributes, and uncertain attributes constructed based on the scale inconsistency of the native data. All three types of attributes are further quantified into numerical feature vectors, and these vectors are concatenated to form the initial representation of the node before model inference, providing structured input for subsequent relationship-sensitive message passing.
[0034] During the model inference phase, the input to each node is composed of environmental features, task context features, and uncertainty features, and is mapped to a unified latent space through a relation-type sensitive linear transformation, serving as the initial representation for message passing. Subsequently, the model applies uncertainty-aware attention weighting to messages from neighboring nodes: when a neighboring node itself or its cross-scale mapping has higher uncertainty, its corresponding attention weight is automatically suppressed during the aggregation phase; similarly, this mechanism reduces the impact of unreliable messages on the target node when structural inconsistencies or resolution conflicts occur between cross-scale and same-scale neighbors. This process enables the model to adaptively adjust message credibility while maintaining cross-scale information fusion capabilities. After multi-layer aggregation, the target node obtains the final representation for downstream prediction tasks, thus outputting the prediction probability.
[0035] To explicitly characterize the impact of input scale inconsistency on prediction results, a prediction uncertainty estimation mechanism based on input perturbation is introduced after the model is trained. A node-level perturbation distribution is constructed based on three types of scale uncertainty, and multiple random samplings are performed on the input features, with each sampling undergoing a complete forward propagation, thereby obtaining the prediction probability set of the target node. Confidence intervals are constructed based on its quantiles, and the extent of the probability distribution's expansion is visualized. Furthermore, to further explain the relative contributions of different scale sources to the prediction variance, this invention employs a component perturbation strategy, adding noise only to a certain type of scale uncertainty and calculating the resulting single-source prediction variance after multiple forward propagations. The different component variances are normalized to form a scale contribution ratio, which can be used to analyze the dominant source of prediction uncertainty.
[0036] This general framework is applicable to a wide range of geospatial prediction tasks (such as risk assessment, environmental monitoring, and resource distribution prediction) and ensures consistency in reasoning processes across tasks as well as transparency in interpretation approaches.
[0037] like Figure 1 As shown, the specific steps include:
[0038] Step 1: Construction of a multi-scale geographic knowledge graph, which is used to map multi-source heterogeneous geospatial data to a unified multi-scale spatial system, and to build a knowledge representation foundation that supports cross-scale information dissemination, uncertainty quantification and traceable reasoning by explicitly expressing spatial hierarchical relationships, environmental attributes, uncertainty attributes and task context information.
[0039] Multi-scale spatial representation:
[0040] In geospatial modeling, the definition of spatial units not only affects the accuracy of element statistics but also determines whether multi-source data can be integrated under a consistent scale system. Traditional administrative divisions or regular grids have limitations in terms of scale consistency, spatial continuity, and cross-scale mapping, making it difficult to support unified modeling and scale effect analysis of multi-scale data. To construct an integrated spatial representation system with hierarchical logic, this invention selects the H3 grid developed by Uber as a unified spatial partitioning method. The advantages of H3 are mainly reflected in the equilateral characteristics and low directional bias of its hexagonal units, making the expression of spatial continuity more natural; its built-in multi-level indexing system provides complete parent-child mapping relationships, enabling strict nesting of units at different scales; its hierarchical coding structure supports efficient neighborhood retrieval and cross-scale spatial queries, facilitating the construction of graph structures and large-scale spatial computations.
[0041] Spatial scale characteristics of three example H3 resolution (res9, res11, res13), including average area, side length, and typical corresponding real-world features;
[0042]
[0043] Multiple H3 levels should be preserved in the knowledge graph. If only a single scale is used (e.g., all converted to "res11"), environmental data of different resolutions need to be forcibly aggregated or pushed down to the same scale. The model can only learn the feature distribution at this single scale, and cannot compare the differences in prediction results at different scales, nor can it characterize the impact of scale changes on model behavior.
[0044] In contrast, retaining three scale levels constitutes the minimum system architecture for characterizing scale effects. Fine-scale units provide information on local spatial heterogeneity, mid-scale units are the most typical modeling scale and the main carrier for model training and prediction, while coarse-scale units reflect the smoothing trend of features at large scales. This hierarchical structure consisting of fine → mid → coarse explicitly expresses the scale propagation path, making it possible to calculate and verify cross-scale prediction differences. Spatial units at different scales can be aligned through parent-child relationships (PARENT_OF edges) in the knowledge graph, enabling the model to explicitly learn the dependencies between scales: fine-scale features can be propagated upwards to supplement the background information of the coarse scale, and the coarse-scale structure can also provide regional constraints downwards.
[0045] This multi-level design offers excellent scalability. For higher-resolution remote sensing data, the knowledge graph can be extended downwards to finer-scale levels, such as "res14" or "res15"; for regional-scale studies, it can be extended upwards to coarser-scale levels, such as "res7" or "res8". During the mapping of environmental variables, each data point is first projected to the nearest H3 level based on its original resolution, and then, as needed, is derived to other levels through aggregation or pushdown methods. Simultaneously, the uncertainty of method dependencies is recorded, thus forming a multi-level spatial representation that is comparable across scales.
[0046] Schema layer construction:
[0047] In multi-scale spatial modeling, the topological relationships, attribute consistency, and spatial semantics between different scale levels cannot be uniformly expressed in traditional data structures. Therefore, a multi-scale geographic knowledge graph is constructed, with a multi-scale H3 grid as the structural framework and explicit attributes and relationships as the core semantic units. The schema layer structure is as follows: Figure 2 As shown, its design principle is to present three scale levels—coarse, medium, and fine—in the same graph structure, and to enable spatial features, uncertainties, and task-related information to be systematically organized and transmitted across layers, thereby providing structured support for the quantification of scale uncertainty and the interpretation of results.
[0048] In the schema layer of the multi-scale geographic knowledge graph, the H3 grid is divided into three scale levels: coarse-scale (e.g., res9), meso-scale (e.g., res11), and fine-scale (e.g., res13), each represented by an independent node type. These nodes exhibit a strict hierarchical structure, reflecting a nested relationship from coarse to fine spatial scales. Each node contains three types of attributes: environmental attributes, which describe the environmental conditions of the spatial unit at its scale, such as topography and land cover; uncertainty attributes, which record the deviations caused by scale transformation and spatial heterogeneity, including aggregation uncertainty, pushdown uncertainty, and spatial consistency uncertainty caused by intra-scale variations; and task context attributes, which reflect the state related to downstream modeling, such as event records, task labels, or prediction outputs. These three types of attributes together constitute the multi-source representation of the node in spatial, semantic, and task dimensions, providing a rich information foundation for subsequent graph learning models.
[0049] The parent-child relationships between different scale levels are explicitly described by PARENT_OF edges, forming a nested scale path from coarse to fine scales. This hierarchical relationship not only ensures the consistency of spatial mapping between scales but also provides a clear graph structure foundation for push-up aggregation, push-down interpolation, and scale sensitivity analysis. Within each scale level, spatial adjacency relationships are represented by ADJACENT edges, used to model spatial continuity and local interactions between units of the same scale, supporting graph embedding models in capturing local spatial features within the same layer.
[0050] Through the combined effects of nodes, attributes, and relationships, the schema layer of a knowledge graph can express multi-scale spatial information in a structured manner, enabling data at different scale levels to be organized within a physically consistent and semantically clear framework. The transformation of environmental features between parent and child scales, the sources and propagation paths of uncertainty, and the dependencies of downstream tasks on different scales can all be tracked and explained within this structure. The resulting multi-scale GeoKG not only provides a unified data input structure for scale-aware graph learning models but also allows the analysis, verification, and attribution of scale effects to unfold naturally within the graph space.
[0051] Detailed explanation of uncertainty properties:
[0052] In multi-scale geographic modeling, scale uncertainty refers to numerical biases or instabilities introduced by factors such as spatial scale transformation, information aggregation methods, and local spatial differences. Explicitly characterizing these uncertainties helps to make the biases, originally implicit in data processing and scale transformation, explicit, thus making the modeling process more interpretable. For example, when analyzing why a prediction result behaves inconsistently at different scale levels, these uncertainty attributes can provide direct evidence for tracing the source and attribution. Based on this objective, this invention introduces three types of uncertainty attributes at each scale node, each corresponding to a different source of error and possessing explicit semantics.
[0053] First, aggregation uncertainty refers to the statistical bias introduced by differences in aggregation operators. When environmental characteristics of fine-scale units are aggregated to a coarser scale, different aggregation methods (such as mean, maximum, or quantiles) may extract different statistical features from the same set of data. The mean tends to reflect the overall trend, while the maximum or certain quantiles emphasize extreme conditions. If the difference between the two is large, it indicates that some driving information may have been lost during the scaling process. Since this bias originates from the choice of statistical operators, it is essentially a type of uncertainty characterized by "method dependence."
[0054] Secondly, pushdown uncertainty refers to the estimation discrepancies caused by the pushdown strategy. When inferring local values from coarse to fine scales, common strategies include simple uniform allocation and weighted allocations based on environmental variables. These two methods are based on different spatial assumptions: the former assumes spatial homogeneity within parent cells, while the latter assumes that environmental factors influence local distribution. If the two strategies produce significantly different fine-scale estimates, it means that the pushdown process is highly sensitive to assumptions about spatial structure. This type of uncertainty reflects the impact of the "spatial allocation rule" on the estimation process.
[0055] Finally, spatial consistency uncertainty caused by intra-scale variations—specifically, the local heterogeneity within a parent-scale unit composed of finer-scale units—is also an independent source of uncertainty. Even within the same parent unit, finer-scale sub-units may exhibit considerable environmental differences. High levels of this internal variability mean that aggregating them into the parent unit's features inevitably compresses local information. This type of uncertainty reflects the "spatial variability of the data itself," distinct from the first two types of biases caused by processing method selection.
[0056] In the design of a geographic knowledge graph, each node at each scale not only records the final environmental attribute values, but also retains the processing methods used to generate these values and the necessary candidate statistics, so that the three types of uncertainty can be uniformly expressed in the node attributes. The advantages of doing so are: (1) the graph model can explicitly perceive potential biases when propagating information across scales; (2) if the prediction results are unstable or inconsistent, they can be traced back to the specific source of uncertainty, so as to achieve scale attribution and explanation with evidence support.
[0057] Step 2: Construct an embedding model for cross-scale reasoning. Utilize spatial relationships, scale relationships, and node attribute information in the multi-scale geographic knowledge graph to achieve information transfer and feature fusion between spatial units of different scales, and obtain scale-aware feature representations for geospatial prediction tasks.
[0058] Embedded model structure:
[0059] To enable downstream task-oriented reasoning on multi-scale geographic knowledge graphs, this invention constructs a multi-scale uncertainty-aware graph neural network model. For unified notation, let be the scale... The node is The model's input features originate from three types of node attributes in the geographic knowledge graph: environmental attribute vectors. Scale uncertainty attribute vector Context attribute vector associated with the task Each node The initial input representation is defined as:
[0060] ;
[0061] in, This represents the vector concatenation operation. These three types of attributes together constitute the model's input feature space, enabling the model to simultaneously acquire scale-level information, spatial structure information, and task semantic information during message passing.
[0062] The model consists of three parts: an input feature encoding layer, a multi-layer uncertainty-aware message passing layer, and an output prediction layer. The input feature encoding layer first maps node features from different scale levels to the same latent space, enabling them to participate in inference together through a shared propagation mechanism—that is, unified feature encoding. Next, the model performs multi-layer message passing through cross-scale and same-scale edge structures to achieve spatial semantic fusion and modeling of inter-scale structural relationships—that is, uncertainty-aware message passing. After L layers of propagation, each node… The final representation is fed into the output layer to complete the node-level prediction for downstream tasks, i.e., the decoded output:
[0063] ;
[0064] in, It is the Sigmoid activation function. and These are learnable parameters. This structure ensures that the model can generate node representations with scale consistency and cross-scale semantic fusion capabilities within a unified framework. Unified feature encoding, uncertainty-aware message passing, and decoding output together constitute the model's cross-scale inference process. Through this process, the model outputs specific task prediction probabilities and provides a structural basis for uncertainty estimation and scale attribution.
[0065] Uncertainty-aware message passing mechanism:
[0066] In multi-scale spatial scenarios, the contributions of neighboring nodes from different scales or spatial locations to the central node may have varying degrees of reliability due to scale differences and spatial heterogeneity. To enable the model to dynamically perceive and adjust the credibility of messages, this invention explicitly introduces the scale uncertainty attribute of nodes during message transmission. .
[0067] In the In layer propagation, nodes From the neighborhood The received messages are first distinguished based on the edge type. Each edge Type Mapped to edge embedding vector And generate type-sensitive message representations using the corresponding transformation matrix:
[0068] ;
[0069] in, Indicates the first Scale index in layered graph neural networks is neighboring nodes The hidden feature representation, Indicates the first The feature transformation function for neighbor node messages in the layer is used to map node information at different scales and with different relationship types to a unified feature space. In the initial propagation layer, this representation is determined by the initial node feature vector composed of the node's environmental attributes, uncertainty attributes, and task context attributes, and is updated layer by layer through neighbor information aggregation during subsequent propagation. For the first Learnable parameters for layer-edge type matching. This represents the scale index of neighboring nodes.
[0070] Subsequently, the uncertainty-aware message-passing attention mechanism calculates neighbor contribution weights based on node characteristics and their uncertainty. The attention weights are defined as follows:
[0071] ;
[0072] in, Indicates the first During layer propagation, neighboring nodes For the target node Attention weights are used to measure the relative contribution of the neighbor node's message to the target node's update process. , They represent the first Neighbor nodes in the layer and target node The hidden feature representation; and These represent the scale uncertainty attribute vectors corresponding to neighboring nodes and the target node, respectively, which are used to describe the degree of uncertainty generated by nodes in scale transformation, spatial heterogeneity, and data processing. Represents a node The set of neighboring nodes includes spatially adjacent nodes at the same scale and cross-scale related nodes; These are learnable vectors used to evaluate the combined impact of node feature similarity and scale uncertainty on message quality.
[0073] The weighted neighborhood message aggregation is as follows:
[0074] ;
[0075] in, Indicates the first Nodes during layer propagation A comprehensive message representation received from neighboring nodes; Representing neighboring nodes For nodes Attention weights; Represents a node With nodes Embedded vectors of edge relationships between them are used to encode spatial adjacency relationships or cross-scale hierarchical relationships; Represents a node The neighborhood set; node updates are achieved by fusing their own historical representation with aggregated messages:
[0076] ;
[0077] in, Represents a node exist The hidden feature representation after layer update; Represents a node exist The historical characteristics of the layers are represented; Indicates the first The layer obtains the message representation from the neighborhood aggregation; Indicates the first The learnable weight matrix during the layer node update process is used to perform linear transformation on the fused features; For the first The bias vector corresponding to the layer; This is the activation function.
[0078] Through the above mechanism, the model can adaptively adjust the influence of messages in cross-scale neighborhoods, so that messages from high uncertainty regions or levels are appropriately weakened during propagation, thereby obtaining structurally consistent, scale-sensitive and interpretable node representations.
[0079] Step 3, uncertainty estimation and scale attribution, is used to probabilistically evaluate the model prediction results based on the node scale uncertainty attributes and input perturbation mechanisms, and decompose the sources of error at different scales to achieve prediction credibility evaluation and uncertainty source tracking.
[0080] Multiscale uncertainty quantification:
[0081] For the three types of scale uncertainty attributes in the model layer (aggregation uncertainty, pushdown uncertainty, and spatial consistency uncertainty caused by intra-scale variations), a unified calculation method that can be directly used in the graph construction and model inference process needs to be provided. Let the scale be... The spatial unit (node) is , This indicates that the spatial unit is at the next finer granular scale. The corresponding sub-unit set, Representing spatial units The environmental feature values stored at the current scale level This represents the set of environmental characteristic values corresponding to all its sub-units. Furthermore, all uncertainties... All calculations are performed and stored at the scale level corresponding to the map.
[0082] When from the scale Aggregation to scale At the same time, different aggregation operators (Such as mean, extreme values, median, etc.) may provide differentiated feature representations. To characterize this impact on feature stability, for A set of aggregation operators :
[0083] ;
[0084] Each operator acts on the set of sub-units. It outputs a scalar. Therefore, the aggregation uncertainty can be defined as the average of the differences between all pairwise operator results:
[0085] ;
[0086] in, Representing spatial units The aggregation uncertainty generated during the aggregation process from fine-scale to coarse-scale is used to measure the consistency of different statistical aggregation methods in representing the final scale features; when feature values change from scale... To scale During pushdown, different spatial allocation strategies will produce a different set of estimates at the fine-grained spatial level. Let's assume... The set of pushdown strategies consists of:
[0087] ;
[0088] in, This represents the set of candidate spatial allocation strategies used for scale pushdown; Indicates the first Seed pushdown strategy, used to determine the parent space unit The environmental feature values are used to estimate the feature distribution at the sub-unit scale. Each strategy is based on the parent spatial unit. Environmental characteristic values In each sub-unit The above gives an estimated value. Therefore, the pushdown uncertainty can be defined as the average of the output differences of different strategies across all sub-units:
[0089] ;
[0090] in, Representing spatial units Downscaling uncertainty in the process of inferring from coarse to fine scale; Indicates the number of candidate pushdown strategies; Represents the set of pushdown strategies; and They represent the first and the Various space allocation strategies; express The corresponding set of sub-scale spatial units; This indicates the number of sub-units contained in the set; Indicates the use of the first After planting the pushdown strategy, in the sub-unit The estimated eigenvalues obtained from the above.
[0091] The statistical dispersion within a fine-scale unit reflects the potential information loss or shift that may occur when these fine-scale features are aggregated to a parent scale. This invention defines this dispersion as spatial consistency uncertainty and uses variance as the primary metric:
[0092] ;
[0093] in, Representing spatial units The spatial consistency uncertainty arises due to the spatial heterogeneity of the sub-units; This represents the variance calculation function, used to measure the degree of dispersion of the set of feature values of a sub-unit; Represents a node This corresponds to the set of environmental features for all sub-units. The three uncertainty measures mentioned above correspond to different sources of bias in the scaling transformation process and are stored in the unit attributes at each scale level for subsequent scale sensitivity analysis, prediction uncertainty inference, scale source attribution, and interpretation conclusion generation in the model.
[0094] Composite uncertainty estimation:
[0095] After model training is completed, to evaluate the impact of multi-scale uncertainty on inference results during the prediction phase, a perturbation distribution in the input form is constructed based on the three types of scale uncertainty in node attributes, i.e., perturbation distribution construction. The statistical distribution of node predictions is then obtained through multiple forward propagations, thereby inferring the range of uncertainty in the output.
[0096] Based on three uncertainties , and First, the components are standardized and then combined according to their weights to form a total scale uncertainty measure at the node level:
[0097] ;
[0098] in This refers to quantities that have comparable dimensions after standardization. And satisfy .
[0099] Subsequently, based on the input feature representation Assume the input perturbation follows a multivariate Gaussian distribution with diagonal covariance:
[0100] ;
[0101] in, Indicates the first Nodes during the second sampling process The initial input feature representation after perturbation; The initial feature representation of an undisturbed node is composed of node environment attributes, uncertainty attributes, and task context attributes. Indicates the random perturbation sampling number; This is the disturbance amplitude scaling factor. It is the identity matrix. This diagonal covariance assumption corresponds to independent and identically distributed input noise, which simplifies the estimation process while maintaining interpretability.
[0102] The full-image perturbation input obtained from each sampling To perform a complete forward propagation, first obtain the prediction results of all nodes in the graph, and then extract the target node. The corresponding predicted values yield node-level predictions:
[0103] ;
[0104] in, Indicates the first Under the condition of secondary input perturbation, the model for nodes The output prediction results; Indicates the first Initial feature representation of nodes in the entire graph obtained by perturbation sampling; This represents a multi-scale graph inference model after training, whose input is the perturbed full graph features, and whose output is the prediction result of the corresponding node; This indicates the number of random perturbation samplings.
[0105] Depend on The node is obtained through random perturbation propagation. Multiple prediction results are obtained, and the uncertainty of the model output is characterized based on the statistical characteristics of these prediction results. The median is used as a point estimate, and the prediction uncertainty interval is constructed based on the quantiles:
[0106] ;
[0107] ;
[0108] in, Represents a node exist The set of prediction results obtained after propagation of random perturbations. Represents a node The final predicted value is obtained by using the prediction set. The median is used as a point estimate; Represents a node The range of prediction uncertainty; Represents the prediction set The corresponding number Quantile estimates; and The values represent the quantile probability values (e.g., 0.05 and 0.95) used to construct the uncertainty interval for prediction, with the upper and lower limits of the interval estimated from the corresponding quantiles. Based on this, the impact of multi-scale uncertainty on node prediction can be quantified, providing a basis for subsequent analysis of the contribution of different scale sources to the prediction results and for forming explanatory conclusions supported by the sources of uncertainty.
[0109] Attribution of scale source:
[0110] To further differentiate the contributions of uncertainty sources at different scales to the prediction variance, this invention focuses on the prediction distribution. Based on this, a conditional perturbation strategy is introduced. This strategy, while maintaining the consistency of the overall perturbation framework, only adds noise to the uncertainty component at a certain scale, while keeping the other components as deterministic inputs, thereby achieving separable estimation of component sensitivity.
[0111] For any scale uncertainty component (in , Representing the three sources of uncertainty—aggregation uncertainty, pushdown uncertainty, and spatial consistency uncertainty—construct their corresponding perturbation input distributions:
[0112] ;
[0113] in, This indicates the result obtained after perturbing only for the m-th type of scale uncertainty. The secondary node inputs feature representations; This indicates the number after standardization. Scale-like uncertainty; Indicates the disturbance amplitude scaling factor; only the individual terms are retained. Enter the covariance structure, with the remaining components fixed in a noise-free form. Execute based on this input. The second forward propagation yields the prediction set:
[0114] ;
[0115] in, This indicates that only the first [number] is considered. A set of prediction results obtained under scale-like uncertainty perturbations; Indicates the first Node prediction results corresponding to the propagation of a single-source disturbance; This indicates the category of uncertainty source being analyzed. The prediction variance under the overall disturbance is denoted as:
[0116] ;
[0117] in, This represents the overall variance of the node prediction results under the combined three types of scale uncertainty perturbations; This indicates that the statistical variance is calculated for the set of predicted results. The prediction variance under a single-scale component perturbation is:
[0118] ;
[0119] in, Indicates only by the first The variance of prediction results caused by scale-based uncertainties. Based on the variance of three types of single-source perturbations, the node-level scale contribution ratio is defined as:
[0120] ;
[0121] in, And the sum of the three terms is It can be directly used to compare the relative importance of sources at different scales.
[0122] It should be pointed out that, The definition is a sensitivity measure based on the assumption of independent perturbations, rather than a strict variance decomposition. Under complex spatial scale relationships, this method avoids the high computational cost and instability of estimating the covariance structure, while maintaining interpretability and reproducibility. The resulting contribution ratio can be used to analyze the effect of scale inconsistencies on model predictions in different regions, and further form interpretable conclusions including the sources, degree of influence, and spatial location of uncertainty.
[0123] This invention selects the H3 hexagonal grid as the multi-scale spatial skeleton. Alternative solutions can be other spatial indexing methods, such as Mercator projection grid coordinates, A5 pentagonal discrete global grid system, S2 spherical geometric grid, etc.
[0124] In another aspect, this invention provides an uncertainty-traceable multi-scale geographic knowledge graph reasoning system, comprising the following modules:
[0125] The knowledge graph construction module is used to construct a multi-scale geographic knowledge graph, including: selecting a spatial grid as a spatial skeleton, the spatial grid including multi-scale levels and nodes, mapping multi-source geospatial data to the corresponding spatial grid levels, and assigning environmental attributes, task context attributes and uncertainty attributes to each node; quantifying the environmental attributes, task context attributes and uncertainty attributes into numerical feature vectors, and forming the initial representation of the node by concatenating the vectors.
[0126] The model building module is used to build and train an embedded model for cross-scale reasoning, including: mapping the initial representation of each node to a unified latent space as the initial representation for message passing; during message aggregation, explicitly incorporating the scale uncertainty attributes of the sending and receiving nodes into the attention weight calculation, and performing uncertainty-aware attention weighting on messages from neighboring nodes; after multi-layer aggregation, the final representation of the target node for downstream prediction tasks is obtained, and then the prediction probability is output.
[0127] The estimation and attribution module is used for uncertainty estimation and scale attribution. It includes: after the model training is completed, constructing the perturbation distribution of the input features based on the scale uncertainty of the nodes, performing multiple random samplings of the input features and performing a complete forward propagation, constructing confidence intervals based on the predicted probability set, realizing the overall quantification of the uncertainty of the model output, and decomposing the sources of error at different scales to realize the evaluation of prediction credibility and the tracking of uncertainty sources.
[0128] In another aspect, the present invention provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the method.
[0129] In another aspect, the present invention provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to implement the method described thereon.
[0130] In summary, the above are merely preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for reasoning about multi-scale geographical knowledge graphs with traceable uncertainty, characterized in that, Includes the following steps: Constructing a multi-scale geographic knowledge graph includes: selecting a spatial grid as a spatial skeleton, the spatial grid including multi-scale levels and nodes; mapping multi-source geospatial data to the corresponding spatial grid levels; and assigning environmental attributes, task context attributes, and uncertainty attributes to each node; quantifying the environmental attributes, task context attributes, and uncertainty attributes into numerical feature vectors, and concatenating the vectors to form the initial representation of the node. The process of constructing and training an embedding model for cross-scale reasoning includes: mapping the initial representation of each node to a unified latent space as the initial representation for message passing; during message aggregation, explicitly incorporating the scale uncertainty attributes of the sending and receiving nodes into the attention weight calculation, and performing uncertainty-aware attention weighting on messages from neighboring nodes; after multi-layer aggregation, obtaining the final representation of the target node for downstream prediction tasks, and then outputting the prediction probability. Uncertainty estimation and scale attribution include: after model training, constructing a perturbation distribution of input features based on the scale uncertainty of nodes, performing multiple random samplings of input features and executing a complete forward propagation, constructing confidence intervals based on the predicted probability set, realizing the overall quantification of the uncertainty of model output, and decomposing the sources of error at different scales to achieve prediction credibility evaluation and uncertainty source tracking.
2. The method for reasoning about uncertain, traceable, multi-scale geographical knowledge graphs according to claim 1, characterized in that, The spatial grid adopts an H3 hexagonal grid, and its multi-resolution levels include three scale levels: res9, res11, and res13, which correspond to coarse, medium, and fine scales, respectively; parent-child relationship edges are PARENT_OF edges, and adjacency relationship edges are ADJACENT edges.
3. The method for reasoning about uncertain, traceable, multi-scale geographical knowledge graphs according to claim 1, characterized in that, The uncertainty attributes include three categories: aggregation uncertainty, which refers to the difference in results when different aggregation operators summarize the features of fine-scale units; Pushdown uncertainty refers to the estimation discrepancies that arise when different spatial allocation strategies are inferred from coarse to fine scales; Spatial consistency uncertainty refers to the statistical dispersion of the eigenvalues of child units within a parent-scale unit.
4. The method for reasoning about uncertain, traceable, multi-scale geographical knowledge graphs according to claim 1, characterized in that, The attention weighting for uncertainty perception is implemented as follows: the attention weights are obtained by comprehensively evaluating the hidden features of the sending node, the hidden features of the receiving node, the uncertainty attribute vector of the sending node, and the uncertainty attribute vector of the receiving node using learnable vectors, and then normalizing them using softmax; the weighted neighborhood messages are fused with the node's own historical representation, and the node's hidden features are updated through linear transformation and activation function.
5. The method for reasoning about uncertain, traceable, multi-scale geographical knowledge graphs according to claim 1, characterized in that, The overall quantification of model output uncertainty specifically involves: standardizing the three types of scale uncertainty components and combining them by weight into a total scale uncertainty measure at the node level; constructing a multivariate Gaussian perturbation distribution with diagonal covariance based on this total scale uncertainty measure; performing K random samplings on the initial features of all nodes in the graph and performing a complete forward propagation; using the median of the K prediction results as the point estimate, and constructing a prediction uncertainty interval based on the quantiles.
6. The method for reasoning about an uncertain, traceable, multi-scale geographical knowledge graph according to claim 1, characterized in that, In the uncertainty estimation and scale attribution steps, a conditional perturbation strategy is adopted, which applies noise only to a certain type of scale uncertainty while keeping the other components deterministic inputs. The prediction variance under each single-source perturbation is calculated, and after normalization, the scale contribution ratio is formed. The total prediction uncertainty is decomposed into sources with clear geographical significance, thus achieving interpretable attribution of uncertainty.
7. The method for reasoning about uncertain, traceable, multi-scale geographical knowledge graphs according to claim 6, characterized in that, The scale contribution ratio is obtained as follows: perturbations are applied separately to the three categories of sub-items: aggregation uncertainty, pushdown uncertainty, and spatial consistency uncertainty, while the remaining sub-items retain deterministic inputs, and each sub-item is subjected to K forward propagation cycles to obtain a set of single-source prediction results; The variance of each single-source prediction is calculated, and the proportion of each type of single-source variance to the sum of the three types of variances is used as the node-level scale contribution ratio to identify the dominant source of prediction uncertainty in different regions.
8. A multi-scale geographic knowledge graph reasoning system with traceable uncertainty, characterized in that, Includes the following modules: The knowledge graph construction module is used to construct a multi-scale geographic knowledge graph, including: selecting a spatial grid as a spatial skeleton, the spatial grid including multi-scale levels and nodes, mapping multi-source geospatial data to the corresponding spatial grid levels, and assigning environmental attributes, task context attributes and uncertainty attributes to each node; quantifying the environmental attributes, task context attributes and uncertainty attributes into numerical feature vectors, and forming the initial representation of the node by concatenating the vectors. The model building module is used to build and train an embedded model for cross-scale reasoning, including: mapping the initial representation of each node to a unified latent space as the initial representation for message passing; during message aggregation, explicitly incorporating the scale uncertainty attributes of the sending and receiving nodes into the attention weight calculation, and performing uncertainty-aware attention weighting on messages from neighboring nodes; after multi-layer aggregation, the final representation of the target node for downstream prediction tasks is obtained, and then the prediction probability is output. The estimation and attribution module is used for uncertainty estimation and scale attribution. It includes: after the model training is completed, constructing the perturbation distribution of the input features based on the scale uncertainty of the nodes, performing multiple random samplings of the input features and performing a complete forward propagation, constructing confidence intervals based on the predicted probability set, realizing the overall quantification of the uncertainty of the model output, and decomposing the sources of error at different scales to realize the evaluation of prediction credibility and the tracking of uncertainty sources.
9. An electronic device, characterized in that, include: One or more processors; A memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the uncertainty-traceable multi-scale geographic knowledge graph reasoning method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, It stores executable instructions that, when executed by a processor, cause the processor to implement the uncertainty-traceable multi-scale geographic knowledge graph reasoning method as described in any one of claims 1 to 6.
