Multi-layer and multi-modal temporal knowledge graph construction and learning for data-driven decision support

The multi-layer and multi-modal temporal knowledge graph construction method addresses the challenge of combining static and dynamic data by encoding event layer nodes as geospatial coordinates, reducing biases and improving predictive accuracy in applications like automated public safety and resource management.

WO2024201125A1PCT designated stage expired Publication Date: 2024-10-03NEC LAB EURO GMBH
View PDF 0 Cites 9 Cited by

Patent Information

Application Number
PCT/IB2023/056558
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-06-26
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Existing machine learning approaches fail to effectively combine and capture static and dynamic data dimensions in a suitable manner, leading to data and system biases in knowledge graph applications, particularly in predictive policing and resource management tasks.

Method used

A multi-layer and multi-modal temporal knowledge graph construction method that fuses static and dynamic knowledge graphs by encoding event layer nodes as geospatial coordinates, using a transformer model for positional encoding and an encoder-decoder model for learning node representations, thereby reducing bias and improving data integration.

Benefits of technology

This approach enables accurate prediction of connections and future developments, reducing data and system biases, and enhancing decision-making in fields like automated public safety and resource allocation by effectively modeling spatial and temporal information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure IB2023056558_03102024_PF_FP_ABST
    Figure IB2023056558_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A computer-implemented method of generating a spatially-aware, multi-modal knowledge graph for a machine learning task includes generating or receiving a static knowledge graph using static data, and generating or receiving a dynamic knowledge graph using dynamic data. The dynamic knowledge graph includes an event layer and at least one of an object layer and / or a user layer. The static and dynamic knowledge graphs are data structures stored in computer memory. The static knowledge graph and the dynamic knowledge graph are fused to generate the spatially-aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.
Need to check novelty before this filing date? Find Prior Art

Description

MULTI-LAYER AND MULTI-MODAL TEMPORAL KNOWLEDGE GRAPH CONSTRUCTION AND LEARNING FOR DATA-DRIVEN DECISION SUPPORTCROSS-REFERENCE TO PRIOR APPLICATIONS

[0001] Priority is claimed to U.S. Provisional Application No. 63 / 454,331 filed on March 24, 2023, the entire contents of which is hereby incorporated by reference herein.FIELD

[0002] The present invention relates to artificial intelligence (Al) and machine learning, and in particular to a method, system and computer-readable medium for multi-layer and multimodal temporal knowledge graph construction and learning for data-driven decision support. BACKGROUND

[0003] There are a number of Al and machine learning tasks for which relevant data is multi-modal, for example, including both static and dynamic data. However, existing machine learning-based approaches are not able to capture the dimensions and combination of static and dynamic data in a suitable way. Dynamic data refers to information which changes frequently over time, while static data refers to information that is rather stable and does not change over a long period of time.SUMMARY

[0004] In an embodiment, the present invention provides a computer-implemented method of generating a spatially-aware, multi-modal knowledge graph for a machine learning task. The method includes generating or receiving a static knowledge graph using static data, and generating or receiving a dynamic knowledge graph using dynamic data. The dynamic knowledge graph includes an event layer and at least one of an object layer and / or a user layer. The static and dynamic knowledge graphs are data structures stored in computer memory. The static knowledge graph and the dynamic knowledge graph are fused to generate the spatially- aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.BRIEF DESCRIPTION OF THE DRAWINGS

[0005] Embodiments of the present invention will be described in even greater detail below based on the exemplary figures. The present invention is not limited to the exemplary embodiments. All features described and / or illustrated herein can be used alone or combined in different combinations in embodiments of the present invention. The features and advantages of various embodiments of the present invention will become apparent by reading the following detailed description with reference to the attached drawings which illustrate the following:

[0006] FIG. 1 schematically illustrates a dynamic graph structure and a static graph structure with dynamic and static graph data, respectively, in an exemplary application of an embodiment of the present invention;

[0007] FIG. 2 schematically illustrates a method and system for generating knowledge graphs in accordance with an embodiment of the present invention;

[0008] FIG. 3 illustrates a street network;

[0009] FIG. 4 schematically illustrates a multi-layer hierarchical crime knowledge graph (dynamic) according to an embodiment of the present invention;

[0010] FIG. 5 schematically illustrates a dynamic temporal aggregator according to an embodiment of the present invention;

[0011] FIG. 6 illustrates a node level aggregation according to an embodiment of the present invention;

[0012] FIG. 7 schematically illustrates a graph embedding module according to an embodiment of the present invention; and

[0013] FIG. 8 is a block diagram of an exemplary processing system, which can be configured to perform any and all operations disclosed herein.DETAILED DESCRIPTION

[0014] Embodiments of the present invention provide a multi-layer and multi-model Al system, as well as a method implemented by the Al system and a computer-readable medium containing instructions providing for execution of the method, that is not only able to predict connections to historical events and relevant objects, but also future development. Embodiments of the present invention also provide to overcome the technical problem of combining static and dynamic information in a knowledge graph setting, which in turn provides for further technical improvements including overcoming both data bias and system bias. The predictions can then provide further improvements to various technical fields to which embodiments of the present invention can be practically applied, for example for automated or semi-automated decision making, e.g., in the field of automated public safety or law enforcement to decide how to distribute resources, or to automatically allocate and assign resources, e.g., scouting or observing certain areas.

[0015] According to a first aspect, the present disclosure provides a computer-implemented method of generating a spatially-aware, multi-modal knowledge graph for a machine learning task includes generating or receiving a static knowledge graph using static data, and generating or receiving a dynamic knowledge graph using dynamic data. The dynamic knowledge graph includes an event layer and at least one of an object layer and / or a user layer. The static and dynamic knowledge graphs are data structures stored in computer memory. The staticknowledge graph and the dynamic knowledge graph are fused to generate the spatially-aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.

[0016] According to a second aspect, the present disclosure provides the method according to the first aspect, The method according to claim 1, further comprising generating or receiving temporal snapshots for the dynamic knowledge graph and adding positional encoding to the temporal snapshots using a transformer model.

[0017] According to a third aspect, the present disclosure provides the method according to the first or second aspect, wherein the positional encoding indicates lengths of irregular time intervals between the temporal snapshots.

[0018] According to a fourth aspect, the present disclosure provides the method according to any of the first to third aspects, wherein the fusing the static knowledge graph further comprises overlaying the dynamic knowledge graph on the static knowledge graph on a spatial domain by generating at least one new entity-to-entity relationship between the one or more nodes of the event layer and one or more nodes in the static knowledge graph.

[0019] According to a fifth aspect, the present disclosure provides the method according to any of the first to fourth aspects, wherein the at least one new entity-to-entity relationship is generated based on the respective nodes meeting a connection condition and / or a distance threshold, the connection condition being that the one or more nodes of the event layer are located on an edge of the static knowledge graph, and the distance threshold being measured against a distance between the one or more nodes of the event layer from the one or more nodes in the static knowledge.

[0020] According to a sixth aspect, the present disclosure provides the method according to any of the first to fifth aspects, wherein the dynamic knowledge graph includes at least one object layer and at least one user layer.

[0021] According to a seventh aspect, the present disclosure provides the method according to any of the first to sixth aspects, further comprising adding attribute vectors as node properties to the spatially-aware, multi-modal knowledge graph, wherein the attribute vectors are learned using a recurrent neural network that takes as input and aggregates a sentiment vector for a previous number of temporal snapshots of the dynamic knowledge graph and a vector indicating environmental conditions.

[0022] According to an eighth aspect, the present disclosure provides the method according to any of the first to seventh aspects, further comprising learning node representations using an encoder-decoder model that takes as input the spatially-aware, multi-modal knowledge graph, wherein positional encodings of the one or more nodes in the event layer include temporalinformation computed from temporal snapshots of the dynamic knowledge graph, and outputs a multi-modal, spatial-temporal knowledge graph having a lower dimensional representation than the spatially-aware, multi-modal knowledge graph.

[0023] According to a ninth aspect, the present disclosure provides the method according to any of the first to eighth aspects, wherein the encoder-decoder model is trained to learn the node representations in a layer-wise manner for the event layer and the at least one of the object layer and / or the user layer to convert graph structures of the layers to continuous numerical vectors.

[0024] According to a tenth aspect, the present disclosure provides the method according to any of the first to ninth aspects, wherein parameters of a layer of the encoder-decoder model in which nodes are represented geographical coordinates are frozen during the training so as to preserve a spatial network topology and global neighborhood information of the spatially-aware, multi-modal knowledge graph.

[0025] According to an eleventh aspect, the present disclosure provides the method according to any of the first to tenth aspects, wherein nodes from a same layer are encoded to give a higher weight during a neighborhood aggregation process, and wherein the one or more nodes of the event layer are directly encoded with existing node properties.

[0026] According to a twelfth aspect, the present disclosure provides the method according to any of the first to eleventh aspects, wherein the spatially-aware, multi-modal knowledge graph or the multi-modal, spatial-temporal knowledge graph having the lower dimensional representation, which is a computer-implemented data structure, is used in a forensic tool for investigating crimes or for area monitoring to predict a location of an person, object, crime or incident.

[0027] According to a thirteenth aspect, the present disclosure provides the method according to any of the first to twelfth aspects, further comprising activating one or more cameras, area sensors, drones and / or monitoring devices based on the prediction.

[0028] According to a fourteenth aspect, the present disclosure provides a computer system for generating a spatially-aware, multi-modal knowledge graph for a machine learning task, the system comprising one or more hardware processors which, alone or in combination, provide for execution of the method according to any of the first to thirteenth aspects.

[0029] According to a fifteenth aspect, the present disclosure provides a tangible, non- transitory computer-readable medium having instructions thereon which, upon being executed by one or more processors, provides for execution of the method according to any of the first to thirteenth aspects.

[0030] Embodiments of the present invention provide a solution to the technical challenge of combining time series information with static information, which existing Al systems are notcapable of doing in a suitable way. Referring to FIG. 1, embodiments of the present invention provide a knowledge graph 100 that is a combination of a sequence of knowledge graphs 102 with a static knowledge graph 104. A naive approach to combine these knowledge graphs 102 and knowledge graph 104 would be to simply add the static information to each snapshot 106, 108, 110 of the sequence of knowledge graphs 102. However, this approach requires that the schema of the dynamic and static information is related. Further, it can be expected that the connections between the static and dynamic information will change over time. Effectively capturing this aspect is not technically possible when simply merging the static and dynamic information.

[0031] The technical problem of combining static and dynamic information in knowledge graphs such as knowledge graph 100 goes along with the technical problem of a natural bias being present in the training data. Hence, the models are often constrained to specific targets such as locations or persons available. As a running example, an embodiment of the present invention can be practically applied to provide improvements to the technical field of automated public safety crime cases, for example operating on crime data including crime type, location, time stamp information, event histories, and others. Existing graph-based predictive policing algorithms use historical data to either map out “problem areas” (decision support for resource management) or monitor offenders’ activities to profile them with a crime likelihood score (decision support for prevention measurements). Those existing approaches use only the recorded criminal events to compute fixed sized grids (headmaps) or to analyze activities of people to prevent their recidivism. Thus, the output of the existing Al systems is naturally biased.

[0032] Embodiments of the present invention overcome these technical problems by providing an effective way of combining static and dynamic information, as well as significantly reducing the bias in the data, thereby providing an Al system that is more accurate. In particular, embodiments of the present invention provide a multi-layer and multi-modal temporal knowledge graph to effectively learn a unified feature interaction from different modalities by modeling different dimensions (e.g., spatial information) as different graphs (layers) and connecting them time -dependently.

[0033] Referring to FIG. 2, a system architecture 200 according to an embodiment of the present invention includes four modules to construct a multi-layer and multi-modal temporal knowledge graph: 1) a spatio-temporal graph constructor 202; 2) a risk factors aggregator 204; 3) a multi-modal graph generator 206; and 4) a graph embedding module 208. In the following, each of these modules are described in detail and refer to crime cases as a running example of one practical application of the knowledge graphs.

[0034] The spatio-temporal graph constructor presents is designed to construct a spatiotemporal knowledge graph 210 having a structure modelled as follows: a. Static graph (e.g., a street network graph 212): A static network graph ‘S’, e.g., street network graph 212, is constructed from a street network database 214 to include geospatial features like amenities (e.g., buildings, point of interests, bars, public places, police stations, etc..), a street network 300 (see FIG. 3), rivers, and terrain. The amenities are nodes in the street network graph 212 and typically have fixed locations. The next step is to subset this information based on importance to model amenities as nodes and the street network as weighted edges with properties such as distance, commute time, drive speed, etc. Importance can be determined based on the particular use case. For example, if the task is related to a public transport network, a building amenity might not be of interest and can be excluded. Geographical coordinates can be encoded in the street network graph. Properties are stored as (key, value) pairs both for nodes and edges, are applied to nodes and edges and can be seen as a way to inject some additional information about a node or an edge. The values present help in providing a better representation. b. Dynamic knowledge graph (e.g., a crime knowledge graph 220): Existing technology is not able to explicitly model tabular data as a fixed feature interaction graph, where each feature is converted to a node type and edge triples are derived based on the domain knowledge. In contrast, embodiments of the present invention create a dynamic multi-layer knowledge graph 400 including at least an event layer 402, an object layer 404, and a user layer 406, along with intra layer edges 408 and inter layer edges 410, e.g., from criminal event histories as shown in FIG. 4. In this embodiment, the user layer contains nodes representing persons and their attribute information (e.g., demographic, age, gender, etc.), and the object layer contains nodes representing physical objects and their attribute information. In other embodiments, other entities of interest can be represented as nodes in different layers. For example, in some use cases, the nodes of the user layer could represent patients, molecules, chemical structures, etc. The intra layer edges 408 can be created manually based on domain information, or existing connections in a data set can be reused. Alternatively, an ontology (schema description) could be used to determine which node types should be connected to each other. The nodes in the object layer 404 and the user layer can have different representations (such as age, gender, type of object, etc.). The victim / offender profile 218 records are translated as entities on the user layer, e.g., user layer 406, and similarly with part-of-speech tagging for a tabular feature of a crime description 216, and objects in a crime scene are identified to later be represented as entities on the object layer. Such a layer-wise entity-to-entity relationship creates a hierarchical (tree-like) graph structure (e.g., such as knowledge graph 220, see also FIG. 4), that supports learning aweighted node representation based on the inter-layer and intra-layer interactions. Next, the crime identifier is represented as a unique crime node on the event layer 402, but its encoding is restricted with the reported crime coordinate values (i.e., longitude and latitude). In this embodiment, all nodes in the event layer 402 represent a location that can be found on a map (e.g., location of a criminal incident, police stations, bars, etc.). In FIG. 4, such an example is shown where the dots represent points of interest from the static graph component and the pins represent a unique crime location and police officers or a police station from the dynamic graph component. This fixes the event (crime) nodes on the spatial domain and their representations do not change during the training of the graph embedding module, which means that similar crimes would still be distant apart. An advantage of the step can be seen as preserving the network topology / global structure of the crime graph on both the low-dimensional arbitrary space and the spatial domain. c. Temporal aggregator 222: The dynamic (crime) knowledge graph 220 has information about (crime) events occurring at different time intervals. A naive approach to capture this temporal aspect would be to simply create segments of a fixed window size ‘d’ and subsequently to create knowledge graph snapshots, such as snapshots 106, 108, 110. For instance, if ‘d’ is 6 hours, all the reported events between 00:00 - 06:00 gets the snapshot ID ‘ 1 ’ and are modeled as the first graph snapshot. However, finding an appropriate window size is difficult due to varying patterns of (criminal) behavior in, e.g., cities and could also lead to a sparsity problem. To overcome these problems, as depicted in FIG. 5, an embodiment of the present invention creates knowledge graph snapshots, e.g., snapshots 502, 504, 506, 508, of dynamic time length with positional encoding (e.g., using a transformer model) based on a minimum threshold condition (e.g., fix two parameters: increment window size ‘d’ = 1 hour and mean / median number of crimes in a day, when distributed hourly). Thus, the window size is increased in terms of 1 hour until a condition is satisfied. The condition ensures the generated graph snapshot is of good quality and is not sparse. The window size of 1 hour, however, is just an example and different time lengths can be computed with experimental results depending on the generated graph or underlying dataset quality. The end time stamp value gets incremented by ‘d’ hours until the threshold condition is met. In the end, the temporal aggregator 222 outputs a vector of indices that represents the crime distribution in the specific snapshot and the positional encoding values in the temporal crime knowledge graph 224. The distribution observed is used to create the relative index vector and combined with positional encodings to achieve the dynamic aggregation of knowledge graphs into a simple snapshot. d. Spatio-temporal knowledge graph 210: The next step is to overlay the dynamic temporal knowledge graph 224 on the base static network graph (e.g., a street network graph 212) bycombining the static and dynamic parts (nodes in each graph). This can be done, e.g., on the spatial domain by creating new entity-to-entity relationships for specific nodes (e.g., crime nodes) on the event layer with the nearby geographical amenities (object layer), but only if there exists a connection on the base static graph structure which meets a distance threshold condition. Thus, the new relationships are between the static knowledge graph and the nodes from the event layer of the dynamic knowledge graph. The new relationship is weighted by the Manhattan distance between the two nodes from different modalities. This helps in identifying crime clusters, e.g., crime clusters 602, 604, 606, around a specific point of interest, e.g., point of interest 608, 610, 612, in an area 600 (see FIG. 6). Such an aggregated graph structure captures both the local structure via layer-wise hierarchical relationships to the neighborhood entities (non-Euclidean metric space) and the global structure via entities’ geospatial position and distance (Euclidean metric space). The constructed graph is hierarchical by keeping nodes of same class restricted to the same layer.

[0035] Thus, in this embodiment, the distribution of crime nodes can be observed in the spatio-temporal knowledge graph 210 (obtained by combining the static and dynamic components) under a window size (time length). In forming the temporal crime graph 224, a binning operation is performed in a dynamic fashion such that each bin (a graph snapshot) is of good quality and not sparse. The positional encoding helps to decide or predict the length of a snapshot to be predicted in the future.

[0036] As shown in FIG. 2, the second step of the method uses a risk factors aggregator 204 that adds multi-modal data as attributes to the spatio-temporal knowledge graph 210, which in this exemplary embodiment is a spatially-aware temporal crime knowledge graph. The risk factors aggregator 204 includes a natural language processing pipeline which takes as input the textual datasets 226, e.g., from news and social networks, to compute sentiment vectors 228 based on the distribution of crime events. The distribution is described by the spatial coordinates for point entities and the temporal index vector returned by the temporal aggregator 222. The sentiment vector 228 is passed through a recurrent neural network 230 to aggregate the demographic sentiment for previous ‘K’ snapshots and is further aggregated with meteorological information 232 (e.g., a weather vector or a vector or data indicating environmental conditions) and socio-economic information 234. The attribute generator 236 outputs a vector of multimodal information 238 in the form of numerical values for each point entity on the spatial domain. The positional encoding values give an output as a vector of times of when to use other application processing interfaces (APIs) that compute sentiments of the demographic from social media, news, etc. The values present in the vector are decided based on the distribution of crimes that occurred. Thus, it is possible to collect some more information about thedemographics to include multi-modal information. Once it is known which timestamps to look for at a specific set of coordinates, they are converted as numerical vectors and added as (key, value) pairs to the properties of nodes of the combined knowledge graph (final output from multi-modal graph generator 206).

[0037] The ability to construct multi-modal knowledge graphs as provided by embodiments of the present invention improves existing technology by being able to capture the hidden structures and high variance. The multi-modal graph generator 206 according to an embodiment of the present invention takes as input the constructed spatially-aware spatio-temporal knowledge graph 210 and adds attribute vectors 238 from the risk factor aggregator 204 as node properties (e.g., (key, value) pairs) for each point entity. These node properties contain information about the demographics, real-time sentiment indicated by the sentiment vector 228, and meteorological information 232 for each recorded point entity on a temporal dimension (time aspect incorporated in the temporal aggregator 222). Such a unified data structure helps to develop a rich knowledge base to overcome both data bias and system bias (e.g., specific communities are targeted repetitively based on criminal history).

[0038] The last step uses the graph embedding module 208 for graph representation learning to create mappings for each node in the network into a low-dimensional space. The mapping creates a unique representation of the final graph as a numerical matrix for the underlying machine learning functions to understand the graph structure. The embedded graph can then be implemented in Al and machine learning systems for downstream tasks 240, such as node classification or link prediction, to make predictions or to take automated decisions or actions in various practical machine learning applications.

[0039] The architecture of the multi-modal spatial temporal knowledge graph, e.g., the multi-modal spatial temporal knowledge graph generated by the graph embedding method and graph embedding module 700 of FIG. 7, advantageously preserves both the local graph structure (e.g., via the hierarchies present in the dynamic crime knowledge graph) and the global structure (e.g., via the weighted edges between the point entities in the static street network graph). A graph encoder-decoder-model is used to learn the continuous representations as a numerical vector to accurately capture the entity-to-entity relationship and network topology on different modalities. The encoder 702 takes as input the multi-layered hierarchical graph structure 701 including the user layer 704, object layer 706, and event and location layer 708, and encodes each layer uniquely (e.g., respective encoder layers 710, 712, 714) such that nodes from the same layer are given a higher importance during the neighborhood aggregation process.However, for the specific nodes (e.g., crime events) in the event and location layer 708, encoder layer N (e.g., encoder layer 714) does not update their representation, but directly encodes theexisting node properties such as coordinates, labels, etc., which can be in the form of attribute vectors. This can be achieved by freezing the parameter updates during the training process, which can be, for example back-propagation. Similarly, the decoder 703 is a module that attempts to reconstruct the original graph from the output of each encoder layer and a layer-wise similarity function is used to compute the total reconstruction loss. The encoder-decoder block undergoes a training process (e.g., back-propagation) to learn the parameters, with a goal to minimize the reconstruction loss and accurately translate a discrete graph structure into a continuous numerical vector. Transformation of such a complex graph architecture to a lowdimensional representation is considered successful if the core information such as the local structure (neighborhood positions) and the global structure (network topology) is captured. Thus, embodiments of the present invention exploit two embedding learning methods: 1) a hyperbolic knowledge graph embedding model 716 to capture the hierarchical and logical patterns (local structure); and 2) a geospatial embedding model 718 to capture the position of nodes based on its coordinates (global structure). In the end, the graph embedding module 700 outputs an output 720 of a reconstructed graph as the multi-modal spatial temporal knowledge graph (MM-STKG) 722 in the low-dimensional space and a trained weight matrix 724 to be used for other downstream machine learning tasks (e.g., link prediction or node classification) in a number of different practical application scenarios which can benefit from a multi-layer and multi-modal spatial temporal knowledge graph.

[0040] Freezing the parameters 726 of the last layer in the graph embedding module is particularly advantageous to ensure the representation of point entities (e.g., crime location and geographical amenities) do not change during the training process. Embodiments of the present invention provide to ensure entities of a specific type maintain the network topology such as to capture a global structure of the constructed graph snapshot. If the parameters are not frozen, similar crimes would end up having similar numerical vector representation in the arbitrary lowdimensional space and their representation as geospatial coordinates would no longer be useful.

[0041] In an embodiment, the present invention can be practically applied to effect further improvements in the field of automated public safety and / or criminal investigation. In particular, in such fields, special purpose computers are used for automated or semi-automated activities which saves resources and assists criminal investigations, and frees up more resources for other tasks or investigations. The automated and forensic tools improved using an embodiment of the present invention advantageously extend a limited budget in terms of resources and, e.g., enable that one police officer can do the work of two or more. Embedding an embodiment of the present invention in a forensic tool also enables to continuously evaluate a situation. For instance, the forensic tool could automatically determine: 1) which elements (i.e., nodes) aredecisive for the spread of crime; 2) how a certain crimes links to historical crime; and / or 3) parameters that are important for crime prevention. The output can be used to control other technical devices, e.g., sensors and devices that collect evidence in an automated fashion. In this application, the data sources include available sensor networks (e.g., camera, weather station, presence sensors, etc.), (smart) forensic tools, the database of the police force (e.g., past crime case records), socio-demographic information (e.g., characteristics of the social life in the district of interest). Application of the method according to an embodiment of the present invention predicts, e.g., through link prediction for the crime case of interest, which crimes might be related or which parameters (e.g., camera at a certain crossing) help in solving the crime. In particular, it provides measures and / or automated actions to prevent that the case stays unsolved. Those measures and / or automated actions can be used to control other devices like cameras and drones to look for additional specific evidence. Their findings are new input to the system. The output can be predictions linking to historical crimes or to locations (e.g., crossing) for decision support and / or the measures and / or automated actions based on the predictions. For example, the output of the system can directly be used to control (forensic) resources such as drones, androids, and / or (body-)cameras. These can be used for scouting or observing certain areas, or to redirect traffic, which itself could be a further automated result. In particular, the output of the system can control these resources and provide control instructions on which areas they need to focus. This is especially advantageous in scenarios with timely constraints.

[0042] In another embodiment, the present invention can be practically applied to effect further improvements in the field of risk management and / or area monitoring. For example, an embodiment of the present invention can be practically applied for an advanced hotspot identification model that allows remote surveillance (e.g., closed circuit television and drones) at street intersections, but also to observe and manage wide areas. In particular, the machine learning task can be forecasting the development of disaster-prone areas and the determination of locations where certain resources or monitoring units are required can increase the effectiveness and efficiency of post-disaster assistance. Further, predicting the potentially required resources depending on the sort of damage or situation, and the resource availability in that region supports resource management and decision makers. In this embodiment, the data sources include available sensor networks (e.g., camera, weather station, and presence sensors), the database of the respective institute (e.g., past case records), sociodemographic information (e.g., characteristics of the social life in the district or area of interest), and street networks. Application of the method according to an embodiment of the present invention predicts, e.g., through knowledge graph forecasting, for the case of interest, which resources (e.g., camera at a certain crossing) might be important or how certain parameters change (e.g., increasing risk)help in improving the situation. In particular, it provides a forecast how an area or situation will develop. That information can be used to control other devices like cameras and drones to look for additional specific evidence. An output can be a forecasted graph at a future timestamp to identify risky locations where a crime or incident could occur. The output of the system can be directly used to optimize the distribution and control of limited resources like drones, androids, or cameras, for example as automated control actions. These can be used for scouting or observing certain areas, but also for smart routing of traffic (e.g., to avoid certain areas by controlling lights or barriers). Further, an alarm light or siren could be automatically activated if the risk in an particular area increases suddenly (similar to the alarms close to the ocean which indicate that a storm is approaching).

[0043] In an embodiment, the present invention provides a method for spatially-aware multimodal temporal knowledge graph construction and learning, the method comprising the steps of:1. Create static and dynamic (hierarchical) graph components from, e.g., criminal event histories and street network database (see FIG. 2, spatio-temporal graph constructor).2. Fuse both these static and dynamic graph structures on the spatial domain by encoding specific nodes, e.g., from an event layer of a crime knowledge graph as geospatial coordinates (see FIG. 2, spatio-temporal graph constructor).3. Create temporal snapshots for the dynamic (e.g., crime) knowledge graph and add positional encoding to each snapshot ID.4. Create for all pairs where the connection condition is met (e.g., has street connection and / or the distance is below a threshold), a new entity-to-entity relationship between the (crime) event node (dynamic graph) and the geographical amenity (static graph) (see FIG. 2, spatio-temporal graph constructor).5. Preferably, collect and process the textual dataset to compute sentiment vectors of demographics for a set of coordinates at specific time steps (see FIG. 2, risk factors aggregator). a. Aggregate the sentiment vectors in a recurrent neural network unit to find real-time demographic behavior for a fixed window length. b. Add meteorological and socio-economic factors to the sentiment vectors to create an attribute vector. c. Add the aggregated attribute vector node properties to complete the process of creating multi-modal knowledge graph.6. Graph embedding module: Train an encoder-decoder system to learn layer-wise graph representations from discrete graphs to continuous vectors, and vice versa. Then, freezethe parameters of the last (location and event) layer in the graph embedding module (see FIGS. 2 and 7). Alternatively or additionally, other layers can be frozen.

[0044] Embodiments of the present invention provide for the following improvements over existing technology:1. Modeling static and dynamic information as separate knowledge graphs and combining them as a single multi-layer hierarchical graph structure to learn dimension-sensitive node representations. a. Overlay the dynamic and static components by creating cross-component entity-to-entity relations derived from selected dimensions (e.g., geographically nearby) to learn weighted node representations based on the inter-layer and intra-layer interactions.2. Freezing selected dimensions of the node representation for certain modalities (e.g., the spatial domain) to preserve the (e.g., spatial) network topology. Since it is desired to use the geographical coordinates as they are, updating them would not allow to effectively capture the global neighborhood. a. Learn a unique node representation through a layered encoder-decoder model where the last layer of the encoder-decoder module is frozen during back- propagation.3. Capturing irregular time intervals between temporal knowledge graph snapshots by encoding the length through positional encoding values in a transformer model.

[0045] Transformer models, for example as known from natural language processing technology, are able to use sine and cosine functions that help understand the position of tokens with respect to other tokens around it. A token could be a word, node, numeric value or any property. Further details on positional encodings in transformer models can be found in Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin, “Attention Is All You Need,” arXiv: 1706.03672 (2017), which is hereby incorporated by reference herein.

[0046] Yubo Ma, Zehao Wang, Mukai Li, Yixin Cao, Meiqi Chen, Xinze Li, Wenqi Sun, Kunquan Deng, Kun Wang, Aixin Sun, and Jing Shao, “MMEKG: Multi-modal Event Knowledge Graph towards Universal Representation across Modalities,” In Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 231-239, Dublin, Ireland (2022), which is hereby incorporated by reference herein, adopt a large-scale event ontology to create a multi-modal event knowledge graph. As such, a schema is built to define literals, events, entities, and relations and later an ontology is initialized by merging datasets from different modalities. In contrast, embodiments of the present inventionconsider property label graphs to automatically create new relationships between nodes from two graph components of different modalities (dynamic and static) to be represented as a unified multi-layer hierarchical graph structure.

[0047] Xiangru Zhu, Zhixu Li, Xiaodan Wang, Xueyao Jiang, Penglei Sun, Xuwu Wang, Yanghua Xiao, and Nicholas Jing Yuan, “Multi-Modal Knowledge Graph Construction and Application: A Survey,” in IEEE Transactions on Knowledge and Data Engineering, doi: 10. 1109 / TKDE.2022.3224228 (2022), which is hereby incorporated by reference herein, describe methods to create multi-modal temporal knowledge graphs from texts and images by either adding the textual information as new entities or as properties to existing relationships. These structures are useful in labeling images or visual relation extraction, by learning embeddings for each node and relation. During graph representation learning, the structured knowledge graphs update their low-dimensional numerical representation. In contrast, embodiments of the present invention consider geospatial data as an extra dimension and freezes the representation of specific node types to its coordinates (latitude, longitude). This partial learning of embeddings for nodes and relations advantageously captures both the local structure and the global structure of a temporal knowledge graph.

[0048] Wei Chen, Huaiyu Wan, Shengnan Guo, Haoyu Huang, Shaojie Zheng, Jiamu Li, Shuohao Lin, and Youfang Lin, “Building and exploiting spatial -temporal knowledge graph for next POI recommendation” Knowledge-Based Systems, Volume 258, Issue C (2022), which is hereby incorporated by reference herein, describe a spatial-temporal knowledge graph constructed to capture users’ transition patterns to explicitly model long- and short-term preferences of a user. The historical trajectory encoding module uses an attention mechanism and a recurrent neural architecture to capture the temporal aspect. Such an approach can lead to a sparsity problems in other data domains, where crimes or suspicious patters are not very common. In contrast, embodiments of the present invention provide to overcome the sparsity problems and to build temporal snapshots of a graph, by creating graph snapshots of dynamic length with a positional encoding value. Another advantage of such an approach is a temporal knowledge graph with a high clustering coefficient that also defines the temporal length of the predicted graph snapshot.

[0049] Referring to FIG. 8, a processing system 800 can include one or more processors 802, memory 804, one or more input / output devices 806, one or more sensors 808, one or more user interfaces 810, and one or more actuators 812. Processing system 800 can be representative of each computing system disclosed herein.

[0050] Processors 802 can include one or more distinct processors, each having one or more cores. Each of the distinct processors can have the same or different structure. Processors 802can include one or more central processing units (CPUs), one or more graphics processing units (GPUs), circuitry (e.g., application specific integrated circuits (ASICs)), digital signal processors (DSPs), and the like. Processors 802 can be mounted to a common substrate or to multiple different substrates.

[0051] Processors 802 are configured to perform a certain function, method, or operation (e.g., are configured to provide for performance of a function, method, or operation) at least when one of the one or more of the distinct processors is capable of performing operations embodying the function, method, or operation. Processors 802 can perform operations embodying the function, method, or operation by, for example, executing code (e.g., interpreting scripts) stored on memory 804 and / or trafficking data through one or more ASICs. Processors 802, and thus processing system 800, can be configured to perform, automatically, any and all functions, methods, and operations disclosed herein. Therefore, processing system 800 can be configured to implement any of (e.g., all of) the protocols, devices, mechanisms, systems, and methods described herein.

[0052] For example, when the present disclosure states that a method or device performs task “X” (or that task “X” is performed), such a statement should be understood to disclose that processing system 800 can be configured to perform task “X”. Processing system 800 is configured to perform a function, method, or operation at least when processors 802 are configured to do the same.

[0053] Memory 804 can include volatile memory, non-volatile memory, and any other medium capable of storing data. Each of the volatile memory, non-volatile memory, and any other type of memory can include multiple different memory devices, located at multiple distinct locations and each having a different structure. Memory 804 can include remotely hosted (e.g., cloud) storage.

[0054] Examples of memory 804 include a non-transitory computer-readable media such as RAM, ROM, flash memory, EEPROM, any kind of optical storage disk such as a DVD, a Blu- Ray® disc, magnetic storage, holographic storage, a HDD, a SSD, any medium that can be used to store program code in the form of instructions or data structures, and the like. Any and all of the methods, functions, and operations described herein can be fully embodied in the form of tangible and / or non-transitory machine-readable code (e.g., interpretable scripts) saved in memory 804.

[0055] Input-output devices 806 can include any component for trafficking data such as ports, antennas (i.e., transceivers), printed conductive paths, and the like. Input-output devices 806 can enable wired communication via USB®, DisplayPort®, HDMI®, Ethernet, and the like. Input-output devices 806 can enable electronic, optical, magnetic, and holographic,communication with suitable memory 806. Input-output devices 806 can enable wireless communication via WiFi®, Bluetooth®, cellular (e.g., LTE®, CDMA®, GSM®, WiMax®, NFC®), GPS, and the like. Input-output devices 806 can include wired and / or wireless communication pathways.

[0056] Sensors 808 can capture physical measurements of environment and report the same to processors 802, and those sensors can include the above described available sensor networks (e.g., cameras (body cameras, cameras deployed on a drone, etc.), weather station, and presence sensors). User interface 810 can include displays, physical buttons, speakers, microphones, keyboards, and the like. Actuators 812 can enable processors 802 to control mechanical forces.

[0057] Processing system 800 can be distributed. For example, some components of processing system 800 can reside in a remote hosted network service (e.g., a cloud computing environment) while other components of processing system 800 can reside in a local computing system. Processing system 800 can have a modular design where certain modules include a plurality of the features / functions shown in FIG. 8. For example, I / O modules can include volatile memory and one or more processors. As another example, individual processor modules can include read-only-memory and / or local caches.

[0058] While embodiments of the invention have been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative or exemplary and not restrictive. It will be understood that changes and modifications may be made by those of ordinary skill within the scope of the following claims. In particular, the present invention covers further embodiments with any combination of features from different embodiments described above and below. Additionally, statements made herein characterizing the invention refer to an embodiment of the invention and not necessarily all embodiments.

[0059] The terms used in the claims should be construed to have the broadest reasonable interpretation consistent with the foregoing description. For example, the use of the article “a” or “the” in introducing an element should not be interpreted as being exclusive of a plurality of elements. Likewise, the recitation of “or” should be interpreted as being inclusive, such that the recitation of “A or B” is not exclusive of “A and B,” unless it is clear from the context or the foregoing description that only one of A and B is intended. Further, the recitation of “at least one of A, B and C” should be interpreted as one or more of a group of elements consisting of A, B and C, and should not be interpreted as requiring at least one of each of the listed elements A, B and C, regardless of whether A, B and C are related as categories or otherwise. Moreover, the recitation of “A, B and / or C” or “at least one of A, B or C” should be interpreted as includingany singular entity from the listed elements, e.g., A, any subset from the listed elements, e.g., A and B, or the entire list of elements A, B and C.

Claims

CLAIMSWhat is claimed is:

1. A computer-implemented method of generating a spatially-aware, multi-modal knowledge graph for a machine learning task, the method comprising: generating or receiving a static knowledge graph using static data, the static knowledge graph being a first data structure stored in computer memory; generating or receiving a dynamic knowledge graph using dynamic data, the dynamic knowledge graph including an event layer and at least one of an object layer and / or a user layer, the dynamic knowledge graph being a second data structure stored in computer memory; and fusing the static knowledge graph and the dynamic knowledge graph to generate the spatially-aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.

2. The method according to claim 1, further comprising generating or receiving temporal snapshots for the dynamic knowledge graph and adding positional encoding to the temporal snapshots using a transformer model.

3. The method according to claim 2, wherein the positional encoding indicates lengths of irregular time intervals between the temporal snapshots.

4. The method according to any of the preceding claims, wherein the fusing the static knowledge graph further comprises overlaying the dynamic knowledge graph on the static knowledge graph on a spatial domain by generating at least one new entity-to-entity relationship between the one or more nodes of the event layer and one or more nodes in the static knowledge graph.

5. The method according to claim 4, wherein the at least one new entity-to-entity relationship is generated based on the respective nodes meeting a connection condition and / or a distance threshold, the connection condition being that the one or more nodes of the event layer are located on an edge of the static knowledge graph, and the distance threshold being measured against a distance between the one or more nodes of the event layer from the one or more nodes in the static knowledge.

6. The method according to any of the preceding claims, wherein the dynamic knowledge graph includes at least one object layer and at least one user layer.

7. The method according to any of the preceding claims, further comprising adding attribute vectors as node properties to the spatially-aware, multi-modal knowledge graph, wherein the attribute vectors are learned using a recurrent neural network that takes as input and aggregates a sentiment vector for a previous number of temporal snapshots of the dynamic knowledge graph and a vector indicating environmental conditions.

8. The method according to any of the preceding claims, further comprising learning node representations using an encoder-decoder model that takes as input the spatially-aware, multimodal knowledge graph, wherein positional encodings of the one or more nodes in the event layer include temporal information computed from temporal snapshots of the dynamic knowledge graph, and outputs a multi-modal, spatial-temporal knowledge graph having a lower dimensional representation than the spatially-aware, multi-modal knowledge graph.

9. The method according to claim 8, wherein the encoder-decoder model is trained to learn the node representations in a layer-wise manner for the event layer and the at least one of the object layer and / or the user layer to convert graph structures of the layers to continuous numerical vectors.

10. The method according to claim 8 or 9, wherein parameters of a layer of the encoderdecoder model in which nodes are represented geographical coordinates are frozen during the training so as to preserve a spatial network topology and global neighborhood information of the spatially-aware, multi-modal knowledge graph.

11. The method according to any of claims 8 to 10, wherein nodes from a same layer are encoded to give a higher weight during a neighborhood aggregation process, and wherein the one or more nodes of the event layer are directly encoded with existing node properties.

12. The method according to any of the preceding claims, wherein the spatially-aware, multi-modal knowledge graph or the multi-modal, spatial-temporal knowledge graph having the lower dimensional representation, which is a computer-implemented data structure, is used in a forensic tool for investigating crimes or for area monitoring to predict a location of an person, object, crime or incident.

13. The method according to claim 12, further comprising activating one or more cameras, area sensors, drones and / or monitoring devices based on the prediction.

14. A computer system for generating a spatially-aware, multi-modal knowledge graph for a machine learning task, the system comprising one or more hardware processors which, alone or in combination, provide for execution of the following steps: generating or receiving a static knowledge graph using static data, the static knowledge graph being a first data structure stored in computer memory; generating or receiving a dynamic knowledge graph using dynamic data, the dynamic knowledge graph including an event layer and at least one of an object layer and / or a user layer, the dynamic knowledge graph being a second data structure stored in computer memory ; and fusing the static knowledge graph and the dynamic knowledge graph to generate the spatially-aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.

15. A tangible, non-transitory computer-readable medium having instructions thereon which, upon being executed by one or more processors, provides for execution of the following steps: generating or receiving a static knowledge graph using static data, the static knowledge graph being a first data structure stored in computer memory; generating or receiving a dynamic knowledge graph using dynamic data, the dynamic knowledge graph including an event layer and at least one of an object layer and / or a user layer, the dynamic knowledge graph being a second data structure stored in computer memory; and fusing the static knowledge graph and the dynamic knowledge graph to generate the spatially-aware, multi-modal knowledge graph by encoding one or more nodes of the event layer as geospatial coordinates.

Citation Information

Cited By

  • Space-time diagram data processing method based on grid diagram database

    CN119760160A

  • GIS layer analysis method and system based on automatic image combination and analysis

    CN120407699A

  • GIS Layer Analysis Method and System Based on Automatic Map Combination and Parsing

    CN120407699B

  • Method for reducing large model illusion of question-answering system based on knowledge graph representation learning

    CN120632046A

  • Unmanned aerial vehicle GPS deception detection method based on federal learning

    CN120722393A