Knowledge graph generation method and system applied to building operation data mining

By collecting multimodal data streams from building operations to generate time-series associated data sequences, and performing dynamic mining of entity attribute relationship triples and construction of time-varying relationship networks, the problem of knowledge graphs not being able to be dynamically updated in existing technologies is solved. This enables the timely reflection of entity association strength and accurate screening of core paths, thereby improving the adaptability and accuracy of knowledge graphs.

CN121233784BActive Publication Date: 2026-05-05CHINA CONSTR CARBON TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA CONSTR CARBON TECH CO LTD
Filing Date
2025-09-03
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing technologies fail to effectively reflect the temporal correlation and entity association strength changes in building operation data when constructing knowledge graphs. This results in a fixed knowledge graph structure that cannot be dynamically updated, affecting its real-time accuracy in building operation management.

Method used

By collecting multimodal data streams from building operations to generate time-series associated data sequences, dynamic mining of entity attribute relationship triples is performed to construct a time-varying relationship network. Furthermore, a dynamically enhanced path set is generated through an association strength decay mechanism and a path contribution evaluation model, and finally, a dynamically evolving knowledge graph is generated through fusion.

Benefits of technology

It enables real-time adjustment of entity association strength over time, improving the adaptability and accuracy of knowledge graphs to building operation data and ensuring the effectiveness of core influence path screening.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121233784B_ABST
    Figure CN121233784B_ABST
Patent Text Reader

Abstract

This invention provides a method and system for generating knowledge graphs applied to building operation data mining. It involves collecting multimodal data streams from building operations and generating time-series correlated data sequences; dynamically mining entity attribute relationship triples based on these sequences to obtain a dynamic triple set; constructing a time-varying relationship network through a correlation strength decay mechanism; and dynamically strengthening relationship paths based on a path contribution evaluation model to generate a dynamically strengthened path set. The path contribution evaluation model determines path contribution by calculating the ratio of the cumulative edge weight to the path length of all possible relationship paths between entity pairs, selecting relationship paths with contribution exceeding a preset threshold as strengthened paths. Finally, the time-varying relationship network and the dynamically strengthened path set are fused to generate a dynamically evolving knowledge graph. This invention effectively improves the adaptability and accuracy of knowledge graphs for building operation data mining.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of knowledge graphs, and more specifically, to a method and system for generating knowledge graphs for mining building operation data. Background Technology

[0002] In the field of building operation and management, data mining is often required to extract the potential value from operational data. Knowledge graphs, as a technical means to effectively represent the relationships between entities, play an important role in integrating building operation data and supporting decision analysis. Currently, existing methods do not adequately consider the temporal correlation of multi-source data when constructing knowledge graphs, resulting in the mining of entity relationships that lack the characteristics of dynamic changes over time. At the same time, the setting of the relationship strength between entities is often based on the initial analysis results and remains unchanged, failing to reflect the time-sensitive changes in entity relationships. The actual impact of relationships that have not been observed for a long time may have weakened. In addition, when identifying the core influence paths between entities, it often relies on the simple accumulation of relationship weights, ignoring the impact of path length on path effectiveness. This means that the selected paths may not be the most influential critical paths in actual operation. These problems together result in a relatively fixed overall structure of the generated knowledge graph, making it difficult to dynamically update the network structure and core path annotations as building operation data continues to accumulate. Therefore, it cannot provide real-time and accurate relationship references for building operation and management. Summary of the Invention

[0003] This invention provides a method and system for generating knowledge graphs for building operation data mining.

[0004] In a first aspect, embodiments of the present invention provide a knowledge graph generation method applied to building operation data mining, comprising: collecting multimodal data streams of building operations and generating time-series associated data sequences; performing dynamic mining of entity attribute relationship triples based on the time-series associated data sequences to obtain a dynamic triple set, wherein the dynamic triple set includes entity pairs, attribute association features of entity pairs, and relationship type labels of entity pairs; constructing a time-varying relationship network through an association strength decay mechanism, wherein the time-varying relationship network uses entity pairs in the dynamic triple set as nodes, relationship type labels as edges, and attribute association features as edge weights; performing dynamic reinforcement of relationship paths based on a path contribution evaluation model to generate a set of dynamically reinforced paths, wherein the path contribution evaluation model determines the path contribution by calculating the ratio of the cumulative edge weight to the path length of all possible relationship paths between entity pairs, and selects relationship paths with path contribution exceeding a preset threshold as reinforced paths; and fusing the time-varying relationship network and the set of dynamically reinforced paths to generate a dynamically evolving knowledge graph.

[0005] Secondly, embodiments of the present invention provide a computer system, including: a memory storing a computer program; and a processor for loading the computer program to implement the knowledge graph generation method for building operation data mining as described above.

[0006] The knowledge graph generation method for building operation data mining provided by this invention solves the problem that single-modal data processing or non-time-series data splicing cannot fully capture the inherent relationships in building operation data by collecting multimodal data streams of building operations and generating time-series associated data sequences, thus providing a more complete data foundation for entity association mining. Based on the time-series associated data sequences, dynamic mining of entity attribute relationship triples is performed to obtain a dynamic triple set containing entity pairs, dynamically fluctuating attribute association features, and relationship type labels. This allows the association strength between entities to be adjusted in real time as time changes, avoiding the limitation that static triples cannot reflect the time-varying characteristics of building operation data. A time-varying relationship network is constructed through an association strength decay mechanism, adjusting the edge weight decay rate according to the consecutive occurrence interval of entity pairs in the time-series associated data sequence, so that the edge weights of the relationship network can dynamically reflect the entity relationships. The timeliness of the association solves the problem that fixed weights cannot reflect the changes in the strength of associations over time; dynamic strengthening of relationship paths is carried out based on the path contribution evaluation model. The path contribution is determined by calculating the ratio of the cumulative edge weight of the relationship path between entity pairs to the path length, and strengthening paths with contribution exceeding a preset threshold are selected. The total weight and efficiency of the path are comprehensively considered, which improves the effectiveness of core influence path selection and avoids the one-sidedness of selecting paths based solely on the sum of weights; a dynamic evolution knowledge graph is generated by integrating time-varying relationship networks and dynamic strengthening path sets. Edge weights are updated in real time through the association strength decay mechanism, and core influence paths between entity pairs are marked through dynamic strengthening path sets. This enables the knowledge graph to accurately reflect the dynamic relationship between entities and key influence paths in building operation data, effectively improving the adaptability and accuracy of the knowledge graph for building operation data mining. Attached Figure Description

[0007] Figure 1 This is a flowchart of a knowledge graph generation method for building operation data mining provided by an embodiment of the present invention.

[0008] Figure 2 This is a schematic diagram of the composition of a computer system provided in an embodiment of the present invention. Detailed Implementation

[0009] Please see Figure 1 , Figure 1 A flowchart illustrating a knowledge graph generation method for building operation data mining, provided as an embodiment of the present invention, is available. This method can be executed by a computer system and may include the following steps:

[0010] Step S100: Collect multimodal data streams of building operation and generate time-series associated data sequences. The multimodal data streams of building operation include equipment operation status data streams, environmental parameter monitoring data streams, and space usage record data streams. The time-series associated data sequences are associated with the multimodal data streams as continuous data sequences with time-series dependencies through timestamp alignment processing.

[0011] The equipment operation status data stream in the building operation multimodal data stream records the real-time operating status of various equipment within the building. For example, for elevator equipment, the operation status data stream includes information such as the current floor, direction of travel, and door opening / closing status; for air conditioning equipment, it includes data such as set temperature, actual temperature, and fan speed. This data can intuitively reflect the working status of the equipment at different times. The environmental parameter monitoring data stream focuses on the environmental conditions inside the building, such as indoor temperature, humidity, light intensity, and various air quality indicators (such as carbon dioxide concentration and formaldehyde content). By monitoring these environmental parameters, it is possible to understand whether the building's internal environment is suitable for human activities and the normal operation of equipment. The space usage record data stream records the usage of various spaces within the building, such as the entry and exit times of office personnel, the booking and usage duration of meeting rooms, and the occupancy status of parking spaces, reflecting the utilization efficiency and usage patterns of building space.

[0012] When generating time-series correlated data sequences, a precise timestamp is first added to each data point in the multimodal data stream. For device operation status data streams, a high-precision clock chip can be integrated into the device's control module to synchronously record the timestamp when the device status changes. For environmental parameter monitoring data streams, the monitoring device records timestamps while collecting data. Space usage record data streams can be timestamped when events occur through access control systems, reservation systems, etc. Then, a data sorting algorithm is used to sort each data stream according to its timestamp, such as merge sort. After sorting, the data in different data streams are correlated in chronological order. A hash table data structure can be used, with the timestamp as the key, to store data from different data streams at the same timestamp in the corresponding values, thus forming a continuous data sequence with temporal dependencies. This allows for quick retrieval of all relevant multimodal data at a specific time point.

[0013] Step S200: Dynamically mine entity attribute relationship triples based on time-series associated data sequences to obtain a dynamic triple set. The dynamic triple set includes entity pairs, attribute association features of entity pairs, and relationship type labels of entity pairs. The attribute association features show dynamic association strength fluctuations as the timestamp changes.

[0014] Entity attribute relation triples are structures used to describe the relationships between entities in building operation data. An entity pair consists of two related entities. In a building operation scenario, this might be a combination of an equipment entity and an environmental entity (e.g., elevator and floor temperature), an environmental entity and a spatial entity (e.g., air quality in a certain area and meeting room in that area), or an equipment entity and a spatial entity (e.g., air conditioning and office). Attribute association features reflect the strength of the association between entity pairs, and this association strength changes over time. For example, the association strength between elevator usage frequency and the frequency of personnel movement on a given floor is significantly higher during weekday rush hours than at other times. Relationship type labels categorize the relationships between entity pairs, such as direct influence, indirect association, and weak association. A direct influence relationship indicates that a change in one entity directly leads to a change in another entity, such as the air conditioning's operating status directly affecting indoor temperature. An indirect association indicates that there is some association between the two entities, but not a direct causal relationship, such as an indirect association between elevator operation and building energy consumption. A weak association indicates a weak association between entity pairs, possibly with only occasional correlation.

[0015] As one implementation method, step S200 can be specifically implemented as the following steps S210-S260:

[0016] Step S210: Divide the time-series correlated data sequence into sliding time windows to obtain multiple continuous and partially overlapping time-series data segments. Each time-series data segment contains multimodal data content within a preset time length.

[0017] The choice of preset time length needs to be determined based on the specific application scenario and analysis requirements. For example, if you want to analyze short-term fluctuations in building operation data, you can choose a shorter preset time length; if you are interested in long-term trends and patterns, you can choose a longer preset time length.

[0018] In implementation, the size of the sliding time window and the sliding step size are first determined. The window size is the preset time length, and the sliding step size determines the time interval for each window movement. A loop structure can be used to implement the window sliding. Starting from the beginning of the time-series data sequence, data is extracted according to the window size to form the first time-series data segment. Then, the window moves forward according to the sliding step size to extract the second time-series data segment, and so on, until the window reaches the end of the data sequence. To ensure data continuity and integrity, there will be some overlap between adjacent time-series data segments. For example, when the window size is 1 hour and the sliding step size is 30 minutes, two adjacent time-series data segments will have a 30-minute overlap. When extracting each time-series data segment, the start and end timestamps of the segment need to be recorded simultaneously for subsequent analysis and processing.

[0019] Step S220: Perform entity recognition processing on each time-series data segment, extract the entity identifier sequence of equipment entity, environmental entity and spatial entity. The equipment entity corresponds to the equipment identity identifier in the equipment operation status data stream, the environmental entity corresponds to the monitoring point identity identifier in the environmental parameter monitoring data stream, and the spatial entity corresponds to the area identity identifier in the spatial usage record data stream.

[0020] The purpose of entity recognition processing is to accurately identify different types of entities from time-series data segments and extract their identification information. The identity identifier of a device entity is usually its unique number or name, which uniquely identifies a device within the device's operational status data stream. Examples include an elevator's serial number, an air conditioner's model number and serial number. The monitoring point identity identifier of an environmental entity is related to each monitoring point in the environmental parameter monitoring data stream and may include the monitoring point's location and monitoring type information, such as "3rd floor lobby temperature monitoring point". The regional identity identifier of a spatial entity is used to distinguish different spatial areas within a building and typically consists of floor information and area function information, such as "2nd floor conference room".

[0021] When performing entity recognition, Named Entity Recognition (NER) algorithms from Natural Language Processing (NLP) can be used. First, the text information in the time-series data segments is preprocessed, including noise removal and word segmentation. Then, a trained NER model is used to recognize the processed text. The NER model can be based on a deep learning architecture, such as a Long Short-Term Memory (LSTM) network combined with a Conditional Random Field (CRF). LSTM can effectively process sequential data and capture contextual information in the text, while CRF can model the dependencies between entity labels, improving the accuracy of entity recognition. Training the NER model requires a large amount of labeled data, containing the identifiers and corresponding labels for device entities, environment entities, and spatial entities. By inputting the time-series data segments into the trained NER model, the model outputs the recognized entity identifiers, arranged in the order they appear in the time-series data segments, forming an entity identifier sequence.

[0022] As one implementation method, step S220 can be specifically implemented as the following steps S221-S225:

[0023] Step S221: Construct an entity recognition rule base. The entity recognition rule base includes equipment entity recognition rules, environmental entity recognition rules, and spatial entity recognition rules. The equipment entity recognition rules define the composition rules of equipment identity as a combination of equipment type information and unique sequence information. The environmental entity recognition rules define the composition rules of monitoring point identity as a combination of area location information and monitoring type information. The spatial entity recognition rules define the composition rules of area identity as a combination of floor location information and area function information.

[0024] Entity recognition rule bases are crucial for entity recognition processing. Equipment entity recognition rules define the specific structure of equipment identification identifiers. For example, for elevator equipment, the equipment type information is "elevator," and the unique sequence information could be the elevator's number; therefore, the equipment identification identifier might be "elevator-001." Environmental entity recognition rules combine area location information and monitoring type information to form the monitoring point's identification identifier based on the characteristics of the monitoring point. For instance, a temperature monitoring point set up in the lobby on the 3rd floor could be identified as "3rd Floor Lobby - Temperature Monitoring Point." Spatial entity recognition rules define area identification identifiers using floor location information and area function information; for example, an identifier like "5th Floor Conference Room" clearly indicates the location and purpose of the space.

[0025] When constructing an entity recognition rule base, a detailed survey and analysis of various equipment, monitoring points, and spatial areas in building operations is required. First, information such as equipment type and serial number is collected to determine the rules for constructing equipment identification identifiers. For environmental monitoring points, their installation location and the types of parameters monitored are recorded, and corresponding recognition rules are formulated. For spatial areas, floor information and the functional uses of the area are clarified, and spatial entity recognition rules are constructed.

[0026] Step S222: Perform rule matching on the device operation status data stream content in the time-series data segment, extract character combinations that conform to the composition rules as candidate device identifiers according to the device entity identification rules, filter invalid candidate identifiers by comparing with preset device ledger information, and obtain device entity identifiers.

[0027] Rule matching is the process of comparing the content of a device operation status data stream in a time-series data segment with device entity identification rules. The device operation status data stream may contain various textual information, such as device operation records and status change information. Using a regular expression matching algorithm, based on the combination pattern of device type information and unique sequence information in the device entity identification rules, character combinations that match the rules are searched in the data stream content. For example, if the device entity identification rule specifies that the device identifier is in the form of "device type-unique number", then character combinations like "elevator-001" and "air conditioner-002" are searched in the device operation status data stream and used as candidate device entity identifiers.

[0028] The pre-set equipment ledger information contains detailed information about all equipment within the building, including equipment type, serial number, installation location, and purchase date. Comparing candidate equipment identifiers with the pre-set equipment ledger information filters out invalid identifiers. For example, if the pre-set equipment ledger only records elevator serial numbers "Elevator-001" and "Elevator-002," and the candidate identifier "Elevator-003" is found in the rule matching, it should be filtered out. The comparison process can be implemented using a database query function. The candidate equipment identifier is used as a query condition to search for matching records in the pre-set equipment ledger information. If a matching record exists, the candidate identifier is retained; otherwise, it is filtered out.

[0029] Step S223: Perform feature matching on the environmental parameter monitoring data stream content in the time series data segment, extract character combinations containing monitoring type information as environmental entity candidate identifiers according to environmental entity recognition rules, filter invalid candidate identifiers by comparing with preset monitoring point configuration information, and obtain environmental entity identifiers.

[0030] Feature matching is a processing method for environmental parameter monitoring data streams. These data streams contain measured values ​​of various environmental parameters along with related text descriptions. Based on environmental entity recognition rules, the system focuses on character combinations within the data stream content that contain monitoring type information (such as temperature, humidity, light intensity, etc.). For example, if the data stream contains "3rd floor conference room temperature 25℃," according to environmental entity recognition rules, "3rd floor conference room - temperature monitoring point" conforms to the rules for identifying monitoring points and is therefore considered a candidate environmental entity identifier.

[0031] The preset monitoring point configuration information contains detailed information about all environmental monitoring points within the building, including their location, monitoring type, and installation time. Candidate environmental entity identifiers are compared with this preset configuration information, filtering out invalid ones. For example, if the preset configuration information only records temperature and humidity monitoring points for the 3rd-floor conference room, and the candidate identifier "3rd-floor conference room - light intensity monitoring point" is obtained through feature matching, it will be filtered out. Similarly, the database query function can be used to perform the comparison process, ensuring that the obtained environmental entity identifiers are valid.

[0032] Step S224: Perform semantic matching on the spatial data stream content in the time series data segment, extract character combinations containing floor location information and area function information as spatial entity candidate identifiers according to the spatial entity recognition rules, filter invalid candidate identifiers by comparing with the preset building floor plan area information, and obtain spatial entity identifiers.

[0033] Semantic matching is the process of analyzing the content of space usage record data streams. These data streams contain usage information and related descriptions of various spatial areas within a building. Based on spatial entity recognition rules, character combinations containing floor location information and area function information are searched within the data stream content. For example, if the data stream records "the 2nd floor meeting room was used from 9:00 AM to 11:00 AM," according to spatial entity recognition rules, "2nd floor meeting room" conforms to the rules for constructing area identifiers and is therefore considered a candidate spatial entity identifier. Pre-defined building floor plan area information consists of detailed information about each spatial area recorded on a pre-drawn building floor plan, including the area's location, function, and area. Candidate spatial entity identifiers are compared with the pre-defined building floor plan area information, filtering out invalid candidate identifiers.

[0034] Step S225: Arrange the device entity identifier, environment entity identifier, and spatial entity identifier in the order of their appearance in the time-series data segment to generate an entity identifier sequence containing the three types of entity identifiers. Each entity identifier in the entity identifier sequence is marked with its first appearance time and duration of continuous appearance in the time-series data segment.

[0035] After obtaining the equipment entity identifier, environmental entity identifier, and spatial entity identifier, they are arranged according to their order of appearance in the time-series data segment. To accurately record the appearance time and duration of each entity identifier, the first appearance time of each entity identifier needs to be recorded during the identification process. For example, when processing the time-series data segment, when the equipment entity identifier "Elevator-001" is first identified, that moment is recorded as its first appearance time. Simultaneously, by tracking subsequent data, the duration of continuous appearance of this entity identifier in the time-series data segment is determined.

[0036] A linked list data structure can be used to store entity identifier sequences. Each node in the linked list contains information such as the entity identifier, the first occurrence time, and the duration of its occurrence. Nodes are inserted into the linked list sequentially according to the order in which the entity identifiers appear in the time-series data segment. In this way, the generated entity identifier sequence can clearly show the occurrence order and time information of various entity identifiers, providing important data support for subsequent entity relationship analysis.

[0037] Step S230: Construct an entity co-occurrence matrix based on the entity identifier sequence. The rows and columns of the entity co-occurrence matrix are entities in the entity identifier sequence, and the matrix elements are the number of times the entity pair co-occurs in the time series data segment. Calculate the initial association strength of the entity pair by the ratio of the number of co-occurrences to the total duration of the time series data segment.

[0038] An entity co-occurrence matrix is ​​an important tool for analyzing the relationships between entities. Its rows and columns consist of entities from a sequence of entity identifiers, and each element in the matrix represents the number of times the corresponding entity pair co-occurs in a time-series data segment. Co-occurrence refers to the simultaneous appearance of two entities in the data stream content at the same timestamp. For example, in a certain time-series data segment, "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" may appear simultaneously at multiple time points; their co-occurrence counts are recorded.

[0039] When constructing the entity co-occurrence matrix, a zero-based matrix is ​​first initialized, with the number of rows and columns equal to the number of entities in the entity identifier sequence. Then, the entity identifier sequence is traversed, and for each timestamp of the data stream content, entity pairs are checked. If two entities appear simultaneously, the corresponding element value in the entity co-occurrence matrix is ​​incremented by 1. For example, when "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" are detected to appear simultaneously, the intersection element of the row containing "Elevator-001" and the column containing "3rd Floor Lobby - Temperature Monitoring Point" in the matrix is ​​incremented by 1.

[0040] When calculating the initial association strength of entity pairs, the ratio of co-occurrence frequency to the total duration of the time-series data segment is used as the initial association strength. The total duration of the time-series data segment can be obtained by the difference between the end timestamp and the start timestamp of the segment. The initial association strength reflects the initial degree of association between entity pairs in the time-series data segment, providing a foundation for subsequent relationship analysis.

[0041] As one implementation method, step S230 can be specifically implemented as the following steps S231-S236:

[0042] Step S231: Perform deduplication on the entity identifier sequence to obtain an entity set containing unique entity identifiers. The entity set includes a device entity set, an environment entity set, and a spatial entity set.

[0043] Deduplication is performed to ensure the uniqueness of each entity identifier in an entity set. Duplicate entity identifiers may exist in the sequence, possibly due to errors during data collection or multiple identifications of the same entity. A hash set data structure is used to implement deduplication. Hash sets are characterized by fast lookup and insertion, enabling efficient removal of duplicate entity identifiers.

[0044] The entity identifier sequence is traversed, and each entity identifier is inserted into the hash set. Since hash sets do not allow duplicate elements, duplicate entity identifiers are automatically ignored. The resulting hash set is the entity set containing unique entity identifiers. The entity sets are then divided according to entity type into device entity sets, environment entity sets, and space entity sets. For example, all device entity identifiers are stored in the device entity set, environment entity identifiers in the environment entity set, and space entity identifiers in the space entity set.

[0045] Step S232: Construct an initial matrix using the entities in the entity set as row and column indices. The number of rows and columns of the initial matrix are equal to the total number of entities in the entity set.

[0046] The initial matrix forms the basis for constructing the entity co-occurrence matrix. Entities from the entity set are used as row and column indices to ensure the matrix accurately reflects the co-occurrence relationships between entities. First, determine the total number of entities in the entity set, and then create a two-dimensional matrix of all zeros based on this number, with both the number of rows and columns equal to the total number of entities.

[0047] Arrange the entities in the entity set in a certain order (such as alphabetical order or order of appearance), and assign the entities as row and column indices to the matrix in sequence. For example, if the entity set contains three entities: "Elevator-001", "3rd Floor Lobby-Temperature Monitoring Point", and "2nd Floor Conference Room", use them as row and column indices in sequence to construct a 3×3 initial matrix. Each element in the initial matrix is ​​initially set to 0, awaiting subsequent co-occurrence counts.

[0048] Step S233: Traverse all data records in the time-series data segment and identify the entity pairs that appear simultaneously in each data record. Simultaneous appearance means that the entity pairs coexist in the data stream content at the same timestamp.

[0049] When traversing data records in a time-series data segment, each record needs to be analyzed in detail. For each data record, the entity identifiers contained within it are extracted. String matching algorithms can be used to search for strings in the text content of the data record that match the entities in the entity identifier sequence. Determining whether two entities appear simultaneously hinges on whether they coexist in the data stream content at the same timestamp. Timestamp information can be added to the data records; when two entity identifiers are identified, their corresponding timestamps are checked for consistency. If they are the same, the two entities are considered to have appeared simultaneously, forming an entity pair.

[0050] Step S234: For each entity pair that appears simultaneously, increment the value of the element at the corresponding position in the initial matrix by one, and count the number of times the entity pair co-occurs in the time series data segment.

[0051] Once a pair of entities is identified, its corresponding position is located in the initial matrix. Based on the indices of the two entities in the entity set, their row and column positions in the matrix are determined. For example, for the entity pair "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point," where "Elevator-001" has an index of 0 in the entity set and "3rd Floor Lobby - Temperature Monitoring Point" has an index of 1, the element in row 0, column 1 of the initial matrix represents the position of this entity pair.

[0052] Incrementing the element value at that position by 1 indicates that the two entities co-occur again in that time series data segment. By continuously repeating this process, after traversing all data records in the time series data segment, the element values ​​in the initial matrix reflect the number of times the corresponding entity pair co-occurs in the time series data segment.

[0053] Step S235: Calculate the total duration of the time series data segment. The total duration is the difference between the first timestamp and the last timestamp in the time series data segment.

[0054] The total duration of a time-series data segment is calculated to prepare for subsequent calculations of the initial association strength of entity pairs. When processing the time-series data segment, the timestamp of each data record has already been recorded. By finding the timestamps of the first and last data records in the time-series data segment and calculating the difference between them, the total duration of the time-series data segment can be obtained.

[0055] Step S236: Divide the number of co-occurrences of each element in the initial matrix by the total duration to obtain the co-occurrence frequency per unit time of the entity pair. Use the co-occurrence frequency per unit time as the initial association strength of the entity pair to generate the entity co-occurrence matrix.

[0056] Dividing the co-occurrence frequency of each element in the initial matrix by the total duration of the time-series data segment yields the unit-time co-occurrence frequency of entity pairs. The unit-time co-occurrence frequency reflects the co-occurrence of entity pairs within a unit of time, more accurately representing the degree of association between entities. Using the unit-time co-occurrence frequency as the initial association strength of entity pairs, the element values ​​in the initial matrix are updated. The final matrix obtained is the entity co-occurrence matrix.

[0057] Step S240: Perform time decay correction on the initial association strength of entity pairs. Based on the co-occurrence interval of entity pairs in adjacent time-series data segments, adjust the initial association strength through an exponential decay function to generate attribute association features that change dynamically over time.

[0058] Time decay correction takes into account that the strength of the association between entities changes over time. Co-occurrence interval refers to the length of time during which entity pairs do not appear simultaneously in adjacent time series data segments. For example, in two adjacent time series data segments, "elevator-001" and "3rd floor lobby-temperature monitoring point" may co-occur multiple times in the first segment but not simultaneously in the second segment. The co-occurrence interval between them is the difference between the start time of the second segment and the end time of the first segment.

[0059] The exponential decay function is a tool used to adjust the initial correlation strength. Its basic form is f(t) = e^(-t / t). -αt Where t is the co-occurrence interval duration and α is the preset decay coefficient. The magnitude of the decay coefficient α determines the rate at which the association strength decays. The longer the co-occurrence interval duration, the smaller the value of the exponential decay function, and the greater the adjustment to the initial association strength. For example, when the co-occurrence interval duration is short, the value of the exponential decay function is close to 1, and the initial association strength changes little; when the co-occurrence interval duration is long, the value of the exponential decay function approaches 0, and the initial association strength decays significantly.

[0060] As one implementation method, step S240 can be specifically implemented as the following steps S241-S245:

[0061] Step S241: Extract the timestamp information of two adjacent time series data segments, and calculate the time interval between adjacent time series data segments. The time interval is the difference between the start timestamp of the later time series data segment and the end timestamp of the earlier time series data segment.

[0062] Extracting the timestamp information of two adjacent time-series data segments is a prerequisite for calculating the time interval. When processing time-series data segments, the start and end timestamps of each segment have already been recorded. This timestamp information can be stored using a data storage structure (such as an array or list). For example, the start and end timestamps of each time-series data segment can be stored as elements in a list, arranged sequentially according to the segment order.

[0063] When calculating the time interval between adjacent time series data segments, simply subtract the end timestamp of the preceding time series data segment from the start timestamp of the following segment. This subtraction can be performed using time calculation functions to ensure the accuracy of the result. The time interval reflects the time span between two adjacent time series data segments.

[0064] Step S242: Determine whether the entity pair appears in both adjacent time series data segments. If the entity pair appears only in the previous time series data segment and not in the next time series data segment, then it is determined that the entity pair has a co-occurrence interval duration, which is equal to the time interval between adjacent time series data segments.

[0065] Determining the occurrence of entity pairs in adjacent time-series data segments is crucial for determining the co-occurrence interval. A set data structure can be used to store the entity pairs appearing in each time-series data segment. When processing each time-series data segment, the entity identifiers are iterated through to find all co-occurring entity pairs and stored in a set.

[0066] Compare the sets of entity pairs in two adjacent time series data segments. If an entity pair appears only in the first set but not in the second set, it is considered that the entity pair has a co-occurrence interval. The time interval between adjacent time series data segments is taken as the co-occurrence interval of the entity pair.

[0067] Step S243: If the entity pair appears in both adjacent time series data segments, then the co-occurrence interval of the entity pair is determined to be zero.

[0068] When an entity pair appears in two adjacent time-series data segments, it indicates that the association between them is temporally continuous and there is no co-occurrence interval. In this case, there is no need to perform time decay correction on the initial association strength of the entity pair, and its initial association strength remains unchanged.

[0069] Step S244: Construct an exponential decay function based on the co-occurrence interval duration. The base of the exponential decay function is the natural constant, and the exponent is the negative value of the product of the co-occurrence interval duration and the preset decay coefficient.

[0070] An exponential decay function is constructed based on the co-occurrence interval and a preset decay coefficient. As mentioned earlier, the form of the exponential decay function is f(t) = e -αt , where t is the co-occurrence interval duration and α is the preset attenuation coefficient.

[0071] Step S245: Multiply the initial association strength of the entity pair by the calculation result of the exponential decay function to obtain the association strength after time decay correction, and use the association strength as the attribute association feature that changes dynamically with time.

[0072] Multiplying the initial association strength of an entity pair by the result of the exponential decay function yields the time-decayed association strength. This corrected association strength is then used as a dynamically changing attribute association feature over time. It reflects the change in association strength between entity pairs over time, providing a more accurate description of the dynamic relationships between entities.

[0073] Step S250: Determine the relationship type label of the entity pair based on the numerical range of the attribute association feature. When the attribute association feature is greater than the first threshold, it is marked as a direct influence relationship. When the attribute association feature is between the first threshold and the second threshold, it is marked as an indirect association relationship. When the attribute association feature is less than the second threshold, it is marked as a weak association relationship.

[0074] Relationship type labels are classification identifiers for the relationships between entity pairs. The first and second thresholds are the boundaries used to distinguish different relationship types. A direct impact relationship indicates a strong direct association between the entity pairs; a change in one entity directly leads to a change in the other. For example, the operation of an air conditioner directly affects the indoor temperature; when the air conditioner is in cooling mode, the indoor temperature will drop significantly. An indirect association relationship indicates a certain association between the two entities, but not a direct causal relationship. For example, there is an indirect association between the operation of an elevator and the energy consumption in a building; frequent elevator operation increases energy consumption, but it is not a direct causal relationship. A weak association relationship indicates a weak association between the entity pairs; there may only be occasional correlation.

[0075] As one implementation method, step S250, determining the relation type label of the entity pair based on the numerical range of the attribute association features, can be specifically implemented as the following steps S251-S255:

[0076] Step S251: Divide entity pairs into three types: device-environment entity pairs, environment-space entity pairs, and device-space entity pairs. Device-environment entity pairs refer to entity pairs composed of device entities and environment entities. Environment-space entity pairs refer to entity pairs composed of environment entities and space entities. Device-space entity pairs refer to entity pairs composed of device entities and space entities.

[0077] Classifying entity pairs allows for a more detailed analysis of the relationships between different types of entities. Equipment-environment entity pairs reflect the interaction between equipment and its environment. For example, the operation of an elevator generates heat, affecting the temperature environment of the floor it's on; "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" constitute an equipment-environment entity pair. Environmental-space entity pairs embody the relationship between environmental factors and spatial areas. For instance, the air quality of a conference room is closely related to the usage of that space; "3rd Floor Conference Room - Air Quality Monitoring Point" and "3rd Floor Conference Room" form an environmental-space entity pair. Equipment-space entity pairs describe the relationship between equipment and spatial areas. For example, air conditioning equipment is installed in an office; "Air Conditioner-002" and "2nd Floor Office" constitute an equipment-space entity pair.

[0078] When classifying entity pairs, the type of entity identifier can be used for judgment. If one entity is a device entity and the other is an environment entity, they are classified as a device-environment entity pair; if one is an environment entity and the other is a space entity, they are classified as an environment-space entity pair; if one is a device entity and the other is a space entity, they are classified as a device-space entity pair. Conditional statements can be used to classify entity pairs, storing different types of entity pairs in different data structures, which facilitates subsequent threshold setting and relationship analysis.

[0079] Step S252: Set a corresponding basic threshold group for each entity pair type. The basic threshold group includes a basic first threshold and a basic second threshold. The basic first threshold of the device environment entity pair is higher than the basic first threshold of the environment space entity pair, and the basic first threshold of the environment space entity pair is higher than the basic first threshold of the device space entity pair. The setting rule of the basic second threshold is the same as that of the basic first threshold.

[0080] Different types of entity pairs exhibit varying degrees of correlation strength, necessitating the establishment of corresponding base threshold sets for each type. Device-environment entity pairs typically exhibit strong direct correlations because device operation directly impacts environmental parameters. For instance, the cooling and heating functions of an air conditioning unit directly alter indoor temperature and humidity, thus the base threshold for device-environment entity pairs is relatively high. Environmental-space entity pairs exhibit relatively weaker correlation strengths because the impact of environmental factors on a spatial area may be indirect or require a certain period of time to accumulate. For example, changes in indoor air quality may not immediately affect the use of a conference room, therefore the base threshold for environmental-space entity pairs is lower than that for device-environment entity pairs. Device-space entity pairs may exhibit even weaker correlation strengths; for example, if a device operates within a large spatial area, its impact on the entire space is relatively small, resulting in the lowest base threshold for device-space entity pairs.

[0081] The setting pattern for the second basic threshold is consistent with that of the first basic threshold, decreasing sequentially in the order of equipment-environment entity pairs, environmental space entity pairs, and equipment-space entity pairs. When setting the basic threshold set, it is necessary to comprehensively consider the actual situation of building operation, historical data, and experience. A suitable basic threshold set can be determined by analyzing a large amount of historical data and statistically analyzing the distribution of association strength among different types of entity pairs.

[0082] Step S253: Extract the attribute association feature sequence of entity pairs in the historical time series data segment, calculate the standard deviation of the attribute association feature sequence as the historical volatility coefficient. The historical volatility coefficient reflects the stability of the association strength of entity pairs. The larger the historical volatility coefficient, the more violent the fluctuation of the association strength.

[0083] An attribute association feature sequence is a sequence of attribute association feature values ​​for entity pairs within a historical time-series data segment. Standard deviation is a statistic used to measure the dispersion of data; by calculating the standard deviation of the attribute association feature sequence, the historical volatility coefficient can be obtained. A larger historical volatility coefficient indicates more drastic fluctuations in the attribute association feature values ​​within the historical data, meaning the association strength between entity pairs is unstable. For example, if an entity pair has a large historical volatility coefficient, it suggests that its association strength varies significantly across different time points and may be influenced by multiple factors. The historical volatility coefficient can be calculated using statistical library functions in a programming language. The attribute association feature sequence is used as input parameters, and the standard deviation calculation function is called to obtain the historical volatility coefficient.

[0084] Step S254: Adjust the basic threshold group according to the historical fluctuation coefficient. When the historical fluctuation coefficient is greater than the preset fluctuation threshold, increase the basic first threshold and basic second threshold of the corresponding entity pair type by the preset adjustment ratio. When the historical fluctuation coefficient is less than or equal to the preset fluctuation threshold, keep the basic threshold group unchanged and generate the dynamically adjusted first threshold and second threshold.

[0085] The preset fluctuation threshold is the boundary for judging whether the correlation strength of entity pairs fluctuates drastically. The preset adjustment ratio is the proportion by which the base threshold set is adjusted when threshold adjustment is needed. When the historical fluctuation coefficient is greater than the preset fluctuation threshold, it indicates that the correlation strength of entity pairs fluctuates drastically, and the original base threshold set may not be able to accurately determine the relationship type. In this case, both the base first threshold and the base second threshold for the corresponding entity pair type are increased by the preset adjustment ratio.

[0086] When the historical fluctuation coefficient is less than or equal to the preset fluctuation threshold, it indicates that the association strength of the entity pair is relatively stable, and the original basic threshold set remains applicable. By dynamically adjusting the threshold in this way, the relationship type of the entity pair can be determined more accurately based on the attribute association characteristics, thus improving the accuracy of relationship classification.

[0087] Step S255: Compare the attribute association features of the entity pair with the dynamically adjusted first threshold and second threshold. When the attribute association features are greater than the dynamically adjusted first threshold, they are marked as a direct influence relationship. When the attribute association features are between the dynamically adjusted first threshold and the second threshold, they are marked as an indirect association relationship. When the attribute association features are less than the dynamically adjusted second threshold, they are marked as a weak association relationship.

[0088] The final step in determining the relationship type label is to compare the attribute association features of the entity pair with dynamically adjusted first and second thresholds. This comparison process is implemented using conditional statements. For example, if the attribute association feature of the entity pair "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" is 4, the dynamically adjusted first threshold is 3.6, and the second threshold is 1.2, since 4 is greater than 3.6, the entity pair is labeled as a direct relationship. If the attribute association feature is 2, which is between 3.6 and 1.2, it is labeled as an indirect relationship. If the attribute association feature is 0.8, which is less than 1.2, it is labeled as a weak relationship.

[0089] In this way, relationship type labels can be accurately assigned to each entity pair, providing important basic information for subsequent relationship network construction and knowledge graph generation.

[0090] Step S260: Combine entity pairs, dynamically changing attribute association features, and relation type labels into dynamic triples, and integrate the dynamic triples corresponding to all time series data segments into a dynamic triple set. Each dynamic triple in the dynamic triple set contains the timestamp information of the corresponding time series data segment.

[0091] A dynamic triple is a structure that includes entity pairs, dynamically changing attribute association features, and relation type labels. When combining entity pairs, attribute association features, and relation type labels into a dynamic triple, it is necessary to ensure the accuracy and consistency of each element. For each time-series data segment, the entity pairs, the time-decay-corrected attribute association features, and the defined relation type labels are combined to form a dynamic triple.

[0092] All dynamic triples corresponding to time-series data segments are integrated into a dynamic triple set. A list data structure can be used to store the dynamic triple set, with each dynamic triple added sequentially to the list. Simultaneously, the timestamp information of the corresponding time-series data segment is added to each dynamic triple for easy subsequent querying and analysis. The dynamic triple set comprehensively records the relationship information between entity pairs and the dynamic changes of these relationships over time, providing a rich data foundation for the subsequent construction of time-varying relationship networks.

[0093] Step S300: Construct a time-varying relation network through an association strength decay mechanism. The time-varying relation network uses entity pairs in the dynamic triple set as nodes, relation type labels as edges, and attribute association features as edge weights. The association strength decay mechanism adjusts the decay rate of the edge weights according to the consecutive occurrence interval of the attribute association features of entity pairs in the time-series relational data sequence.

[0094] Time-varying relation networks are network structures that reflect the dynamic relationships between entities. Entity pairs in a dynamic triplet set serve as nodes, with each node representing a specific entity pair. Relationship type labels act as edges connecting nodes; different relationship type labels (direct influence, indirect association, weak association) represent different types of edges. Attribute association features serve as the weights of the edges, reflecting the strength of the association between entity pairs.

[0095] The association strength decay mechanism is one of the core mechanisms of time-varying relation networks. It adjusts the decay rate of edge weights based on the consecutive occurrence interval of the attribute association features of entity pairs in the time-series relational data. The consecutive occurrence interval refers to the length of time during which entity pairs do not appear consecutively in the time-series relational data. If the consecutive occurrence interval of entity pairs is long, it indicates that the association between them is weak over a period of time, and the decay rate of the edge weights will be faster; if the consecutive occurrence interval is short, the decay rate of the edge weights will be relatively slower.

[0096] As one implementation method, step S300, constructing a time-varying relationship network through a correlation strength decay mechanism, can be specifically implemented as the following steps S310-S360:

[0097] Step S310: Extract all entity pairs from the dynamic triplet set, and use the two entities in each entity pair as network nodes to generate a node set. The node set includes device entity nodes, environment entity nodes, and spatial entity nodes.

[0098] Extracting all entity pairs from the dynamic triplet set is the first step in constructing the node set. The dynamic triplet set contains multiple dynamic triplets corresponding to time-series data segments, each containing one entity pair. The dynamic triplet set is traversed, and entity pairs are extracted. The two entities in each entity pair are treated as network nodes. For example, "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" are treated as two independent nodes. Based on the entity type, nodes are categorized into equipment entity nodes, environment entity nodes, and space entity nodes. All equipment entities are treated as equipment entity nodes, such as "Elevator-001" and "Air Conditioner-002"; all environment entities are treated as environment entity nodes, such as "3rd Floor Lobby - Temperature Monitoring Point" and "2nd Floor Conference Room - Air Quality Monitoring Point"; and all space entities are treated as space entity nodes, such as "3rd Floor Lobby" and "2nd Floor Conference Room".

[0099] A set data structure can be used to store the node set, ensuring the uniqueness of each node. The extracted nodes are added to the set sequentially, ultimately resulting in a node set containing device entity nodes, environment entity nodes, and spatial entity nodes.

[0100] Step S320: Extract the relation type label for each entity pair from the dynamic triple set, use the relation type label as the edge connecting the corresponding entity node, and generate an edge set. The edge set includes edges that directly affect the relation, edges that indirectly affect the relation, and edges that weakly affect the relation.

[0101] Extracting the relation type label for each entity pair from the dynamic triplet set is a crucial step in constructing the edge set. In a dynamic triplet, the relation type label clarifies the type of relationship between the entity pairs. For example, for the dynamic triplet ("Elevator-001", "3rd Floor Lobby - Temperature Monitoring Point", 2.5 times / hour, direct influence relationship, 9:00 AM - 10:00 AM), the relation type label is "direct influence relationship". The relation type label is then used as the edge connecting the corresponding entity nodes. For example, for the entity pair ("Elevator-001", "3rd Floor Lobby - Temperature Monitoring Point"), "direct influence relationship" is used as the edge connecting the "Elevator-001" node and the "3rd Floor Lobby - Temperature Monitoring Point" node. Based on the different relation type labels, the edge set is divided into direct influence relationship edges, indirect association relationship edges, and weak association relationship edges. A list data structure can be used to store the edges when generating the edge set. Each entity pair and its corresponding relation type label are combined into an edge object, and the edge object is added to the list. The final result is an edge set containing different types of edges, reflecting the relationship types between the entity nodes.

[0102] Step S330: Extract the attribute association features of each entity pair from the dynamic triplet set, use the attribute association features as the initial edge weights of the corresponding edges, and establish a mapping relationship between the edges and the initial edge weights.

[0103] Extracting the attribute association features of each entity pair from the dynamic triplet set is the basis for determining edge weights. Attribute association features reflect the strength of the association between entity pairs. For example, for the dynamic triplet ("elevator-001", "3rd floor lobby-temperature monitoring point", 2.5 times / hour, direct influence relationship, 9:00-10:00 AM), the attribute association feature is 2.5 times / hour.

[0104] The attribute association feature is used as the initial edge weight for the corresponding edge. For the "direct influence relationship" edge connecting the "Elevator-001" node and the "3rd Floor Lobby-Temperature Monitoring Point" node, 2.5 times / hour is used as the initial edge weight. The mapping relationship between edges and initial edge weights can be established using a dictionary data structure, where the key is the edge object and the value is the initial edge weight. For example, {("Elevator-001", "3rd Floor Lobby-Temperature Monitoring Point", "Direct Influence Relationship"): 2.5 times / hour}.

[0105] In this way, each edge is assigned an initial weight, which accurately reflects the initial association strength between entity pairs, providing a foundation for subsequent adjustment of edge weights and network analysis.

[0106] Step S340: Adjust edge weights based on the association strength decay mechanism. The association strength decay mechanism updates edge weights according to the duration of consecutive absence of entity pairs in the temporal association data sequence. The longer the duration of consecutive absence, the greater the decay of edge weights.

[0107] The association strength decay mechanism is the core mechanism for adjusting edge weights. The duration of consecutive absence refers to the length of time during which entity pairs do not appear simultaneously in a temporally associated data sequence. For example, in a temporally associated data sequence, "elevator-001" and "3rd floor lobby-temperature monitoring point" do not appear simultaneously for a period of time; this period is their duration of consecutive absence.

[0108] When a pair of entities is absent for a long period, it indicates that the association between them is weak during this time, and the weight of the edge will decrease more significantly. For example, during a certain period, due to elevator maintenance, "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" do not appear simultaneously. As the duration of their absence increases, the weight of the edge connecting them will gradually decrease.

[0109] As one implementation method, step S340, adjusting edge weights based on the association strength decay mechanism, can be specifically implemented as the following steps S341-S345:

[0110] Step S341: Monitor the update status of the time-series associated data sequence in real time. When a new time-series data segment is added to the time-series associated data sequence, check whether the entity pair corresponding to each edge in the time-varying relation network appears in the new time-series data segment.

[0111] Real-time monitoring of updates to the time-series correlated data sequence is a prerequisite for edge weight adjustment. This can be achieved using message queues or event listeners. When a new time-series data segment is generated and added to the time-series correlated data sequence, a corresponding event is triggered.

[0112] During event processing, it checks whether the entity pair corresponding to each edge in the time-varying relation network appears in the new time-series data segment. For each edge, its corresponding entity pair is obtained, and then the system searches whether the entity pair appears simultaneously in the new time-series data segment. For example, for the edge connecting "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point", the system checks whether "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" appear simultaneously in the new time-series data segment. This checking process can be performed using string matching algorithms or entity recognition algorithms.

[0113] Step S342: If an entity pair appears in a new time series data segment, update the attribute association feature of the entity pair according to the co-occurrence frequency in the new time series data segment, and update the edge weight of the corresponding edge to the new attribute association feature.

[0114] If an entity pair appears in a new time-series data segment, its attribute association features need to be updated based on the co-occurrence frequency in that segment. First, the co-occurrence frequency of the entity pair in the new time-series data segment is counted. Then, considering the duration of the segment, a new attribute association strength is calculated. The edge weights of the corresponding edges are updated with the new attribute association features. In the mapping relationship between edges and initial edge weights, the weight corresponding to that edge is found and updated with the new attribute association strength. In this way, the edge weights can promptly reflect the latest association strength between entity pairs.

[0115] Step S343: If the entity pair does not appear in the new time series data segment, calculate the duration of continuous absence of the entity pair. The duration of continuous absence is the difference between the end timestamp of the last time series data segment and the end timestamp of the current new time series data segment.

[0116] When an entity pair does not appear in a new time-series data segment, its continuous absence duration needs to be calculated. First, record the end timestamp of the time-series data segment in which the entity pair last appeared. When a new time-series data segment is added, obtain the end timestamp of that segment. The difference between these two timestamps is the continuous absence duration. For example, if the last time-series data segment for "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" ended at 10:00 AM, and the new time-series data segment ends at 11:30 AM, then their continuous absence duration is 1 hour and 30 minutes.

[0117] Step S344: Calculate the attenuation factor based on the duration of continuous absence. The attenuation factor is the ratio of the duration of continuous absence to the preset attenuation reference duration. When the duration of continuous absence is less than the attenuation reference duration, the attenuation factor is the ratio of the duration of continuous absence to the attenuation reference duration. When the duration of continuous absence is greater than or equal to the attenuation reference duration, the attenuation factor is the preset maximum attenuation ratio value, which is less than 1.

[0118] The attenuation factor is a parameter used to adjust edge weights. The preset attenuation baseline duration is a pre-defined time length used as a reference for calculating the attenuation factor. When the duration of consecutive absences is less than the attenuation baseline duration, the attenuation factor is the ratio of the consecutive absence duration to the attenuation baseline duration. For example, if the preset attenuation baseline duration is 2 hours and the consecutive absence duration is 1 hour, then the attenuation factor is 0.5. When the duration of consecutive absences is greater than or equal to the attenuation baseline duration, to avoid excessive attenuation of edge weights, the attenuation factor is set to a preset maximum attenuation ratio value. For example, if the preset maximum attenuation ratio value is 0.8, when the consecutive absence duration reaches or exceeds 2 hours, the attenuation factor is 0.8. When calculating the attenuation factor, conditional statements are used to calculate based on the relationship between the consecutive absence duration and the attenuation baseline duration.

[0119] Step S345: Multiply the current edge weight by the difference between 1 and the attenuation factor to obtain the attenuated edge weight. If the attenuated edge weight is less than the preset minimum weight threshold, set the edge weight to the minimum weight threshold. The minimum weight threshold is a preset constant greater than zero, used to avoid excessive attenuation of edge weight leading to the breakage of relationships between entities.

[0120] The decayed edge weight is obtained by multiplying the current edge weight by the difference between 1 and the decay factor. To prevent excessive decay of edge weights from breaking relationships between entities, a preset minimum weight threshold is set. The preset minimum weight threshold is a constant greater than zero. If the decayed edge weight is less than the preset minimum weight threshold, the edge weight is set to the minimum weight threshold.

[0121] In this way, the edge weights can be guaranteed to change within a reasonable range, maintaining the stability and continuity of relationships between entities and ensuring the effectiveness and reliability of the time-varying relationship network.

[0122] Step S350: Construct a relationship table of node set, edge set and dynamic edge weight. The relationship table records the neighboring nodes of each node, the relationship type label of the connecting edge and the current edge weight.

[0123] The association table is a crucial component of time-varying relational networks, recording the relationships between nodes. First, focusing on each node, we find its adjacent nodes. Adjacent nodes are those directly connected to the given node via edges. For example, for the node "Elevator-001," its adjacent nodes might be "3rd Floor Lobby - Temperature Monitoring Point."

[0124] Record the relationship type label of the edges connecting nodes and their adjacent nodes. For example, the relationship type label of the edge connecting "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" is "Direct Influence Relationship". Simultaneously, record the current edge weight, which dynamically changes as the association strength decay mechanism is adjusted.

[0125] A dictionary data structure can be used to construct a relational table. The dictionary keys are nodes, and the values ​​are lists, where each element contains adjacent nodes, a relation type label, and the current edge weight. For example, {“Elevator-001”:[(“3rd Floor Lobby - Temperature Monitoring Point”, “Direct Influence Relationship”, current edge weight],...}. By constructing this relational table, the connections between nodes, relation types, and edge weights can be clearly displayed, facilitating subsequent querying, analysis, and visualization of time-varying relational networks.

[0126] Step S360: Integrate the node set, edge set, dynamic edge weights, and association table into a time-varying relation network. The structure of the time-varying relation network is dynamically adjusted as the attribute association characteristics of entity pairs change.

[0127] Integrating the node set, edge set, dynamic edge weights, and association table is a key step in constructing a complete time-varying relational network. First, the basic structure of the time-varying relational network is defined. The node set serves as the basic element of the network, representing different entity pairs; the edge set acts as a bridge connecting nodes, reflecting the type of relationship between entity pairs; the dynamic edge weights reflect the strength of the association between entity pairs and adjust dynamically with time and data changes; the association table, as the network's metadata, records detailed connection information between nodes.

[0128] During the integration process, the node set, edge set, and dynamic edge weights are organized according to certain rules. A graph data structure can be used to represent the time-varying relationship network, with nodes as vertices, edges as edges, and edge weights as edge attributes. The relationship table can then be stored as additional information about the graph within the relevant graph data structure for easy querying and updating.

[0129] The structure of a time-varying relational network dynamically adjusts as the attribute association characteristics of entity pairs change. When the attribute association characteristics of an entity pair change, the edge weights are updated accordingly based on the association strength decay mechanism and edge weight adjustment strategy. Simultaneously, depending on the update of the dynamic triplet set, new nodes and edges may be added, or nodes and edges that no longer have associations may be deleted. For example, when new equipment is put into use or new environmental monitoring points are installed, new entity pairs are generated, requiring the addition of corresponding nodes and edges to the time-varying relational network.

[0130] Step S400: Dynamically strengthen relationship paths based on the path contribution evaluation model to generate a set of dynamically strengthened paths. The path contribution evaluation model determines the path contribution by calculating the ratio of the cumulative edge weight of all possible relationship paths between entity pairs to the path length, and selects relationship paths with path contributions exceeding a preset threshold as strengthened paths.

[0131] The path contribution assessment model is a tool used to evaluate the importance of relationship paths between entity pairs. A relationship path between entity pairs is a sequence of nodes and edges connected sequentially, representing the association path between entity pairs. The cumulative edge weight is the sum of the weights of all edges in the path, reflecting the overall strength of the association between entity pairs on the path. The path length refers to the number of edges contained in the path, reflecting the complexity of the path. The path contribution is determined by the ratio of the cumulative edge weight to the path length, reflecting the average association strength per unit path length. A preset threshold is a pre-defined value used to filter out important relationship paths. When the path contribution of a relationship path between entity pairs exceeds the preset threshold, the path is designated as a reinforced path. Reinforced paths represent important paths with strong associations between entity pairs, which are of great significance for the analysis and decision-making of building operation data.

[0132] When generating a dynamic reinforcement path set, the first step is to identify all possible relationship paths between entity pairs. Then, the cumulative edge weight and path length of each path are calculated to obtain the path contribution. Finally, relationship paths with contribution values ​​exceeding a preset threshold are integrated into the dynamic reinforcement path set.

[0133] As one implementation method, step S400, which involves dynamically strengthening the relationship path based on the path contribution evaluation model, can be specifically implemented as follows: S410-S470:

[0134] Step S410: Using each entity node in the time-varying relation network as the starting node, use the breadth-first search algorithm to traverse all reachable target nodes and record all possible relational paths from the starting node to the target node. The relational path is a sequence formed by connecting entity nodes and edges in sequence.

[0135] Breadth-first search (BFS) starts from the starting node and visits nodes layer by layer until all reachable target nodes have been traversed. In time-varying relational networks, each entity node is used as the starting node, and BFS is used to find all reachable target nodes.

[0136] During the traversal, all possible relational paths from the starting node to the target node are recorded. A relational path is a sequence formed by connecting entity nodes and edges in sequence.

[0137] As one implementation method, step S410 involves using a breadth-first search algorithm to traverse all reachable target nodes and recording all possible relationship paths from the starting node to the target node. Specifically, this can be implemented as the following steps S411-S416:

[0138] Step S411: Initialize the path queue by adding the starting node as the initial path to the path queue. The path length of the initial path is 0, and the cumulative edge weight of the path is 0.

[0139] A path queue is a data structure used to store paths to be traversed. At the start of the breadth-first search algorithm, the path queue is initialized, and the starting node is added to the queue as the initial path. The initial path has a length of 0 because it contains only one node and has no edges; the cumulative edge weight is also 0 because there are no edge weights to accumulate. For example, if "Elevator-001" is used as the starting node, and "Elevator-001" is added to the path queue as the initial path, the path length is 0, and the cumulative edge weight is 0.

[0140] Step S412: Retrieve the first current path from the path queue and obtain the endpoint node of the current path.

[0141] The first path in the path queue is taken as the current path. The current path is the path being processed. By obtaining its endpoint node, we can further search for nodes adjacent to that node and expand the path. For example, the first path in the path queue is "elevator-001", and its endpoint node is "elevator-001".

[0142] Step S413: Query all adjacent nodes directly connected to the endpoint node in the time-varying relation network, and the edges connecting the endpoint node and adjacent nodes.

[0143] In a time-varying relational network, query all adjacent nodes directly connected to the endpoint node. Information about adjacent nodes and connecting edges can be found using an association table. For example, for the endpoint node "Elevator-001", the association table can be used to find that its adjacent nodes might be "3rd Floor Lobby - Temperature Monitoring Point", with the relationship type label of the edges connecting them being "Direct Influence Relationship", and the edge weights being the current dynamic edge weights.

[0144] Step S414: For each adjacent node, determine whether the adjacent node has appeared in the current path. If it has not appeared, combine the current path, edge and adjacent node into a new path. The path length of the new path is the current path length plus 1. The cumulative edge weight of the new path is the cumulative edge weight of the current path plus the current edge weight of the edge. Add the new path to the path queue.

[0145] For each adjacent node, it needs to be determined whether it already appears in the current path. If the adjacent node does not appear in the current path, it means that the node can be used as an extension node of the path. Combine the current path, connecting edges, and adjacent nodes into a new path. The length of the new path is the length of the current path plus 1, because an edge has been added; the cumulative edge weight of the new path is the cumulative edge weight of the current path plus the current edge weight, because the weight of the new edge needs to be accumulated. For example, if the current path is "Elevator-001", the adjacent node is "3rd Floor Lobby-Temperature Monitoring Point", the connecting edge weight is 2, the current path length is 0, and the cumulative edge weight is 0, then the new path is "Elevator-001" - "3rd Floor Lobby-Temperature Monitoring Point", with a path length of 1 and a cumulative edge weight of 2. Add the new path to the path queue for further expansion.

[0146] Step S415: Repeat the steps of retrieving the current path, obtaining adjacent nodes, and generating a new path until the path length in the path queue reaches the preset maximum path length or the path queue is empty.

[0147] The process of retrieving the current path, obtaining adjacent nodes, and generating a new path is repeated until a termination condition is met. There are two termination conditions: first, the path length in the path queue reaches a preset maximum path length (a pre-defined value used to limit path length and prevent the search from expanding indefinitely); second, the path queue is empty, indicating that all possible paths have been traversed. In this way, all reachable target nodes can be systematically traversed, and all possible relational paths can be recorded.

[0148] Step S416: Filter out the paths from all generated paths where the starting node and the target node are different, and use them as possible relationship paths from the starting node to the target node.

[0149] Among all generated paths, some may have the same starting and target nodes. These paths do not meet the requirements and need to be filtered. Paths with different starting and target nodes are selected as possible relationship paths from the starting node to the target node. For example, in the generated paths, there exists a path like "Elevator-001"-"3rd Floor Lobby-Temperature Monitoring Point"-"Elevator-001". Since both the starting and target nodes are "Elevator-001", this path is excluded. However, a path like "Elevator-001"-"3rd Floor Lobby-Temperature Monitoring Point"-"3rd Floor Conference Room" has different starting and target nodes, and this path is considered a possible relationship path.

[0150] Step S420: For each relation path, extract the current edge weight of all edges in the path, and calculate the sum of all edge weights as the cumulative edge weight of the path.

[0151] For each possible relationship path, it is necessary to extract the current edge weights of all edges in the path. This can be obtained using a relational table. For example, for the relationship path "Elevator-001"-"3rd Floor Lobby-Temperature Monitoring Point"-"3rd Floor Conference Room", the weights of the edges connecting "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point", as well as the weights of the edges connecting "3rd Floor Lobby-Temperature Monitoring Point" and "3rd Floor Conference Room" can be obtained.

[0152] The cumulative edge weight of the path is obtained by summing the weights of all edges. The cumulative edge weight reflects the overall strength of the association between entity pairs on the path. For example, if the edge weight connecting "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" is 2, and the edge weight connecting "3rd Floor Lobby-Temperature Monitoring Point" and "3rd Floor Conference Room" is 3, then the cumulative edge weight of the path is 5.

[0153] Step S430: Count the number of edges contained in the relation path as the path length.

[0154] The number of edges in a relational path is counted and used as the path length. The path length reflects the complexity of the path. For example, the relational path "Elevator-001"-"3rd Floor Lobby-Temperature Monitoring Point"-"3rd Floor Conference Room" contains 2 edges, and its path length is 2.

[0155] Step S440: Calculate the path contribution by dividing the cumulative edge weight by the path length. The path contribution reflects the average edge weight per unit path length.

[0156] The path contribution is calculated by dividing the cumulative edge weight by the path length. The path contribution reflects the average edge weight per unit path length, indicating the path's importance. For example, if the cumulative edge weight is 5 and the path length is 2, the path contribution is 2.5. A higher path contribution indicates that the path is more important in the association between entity pairs.

[0157] Step S450: Set a path contribution threshold and identify relationship paths with a path contribution greater than the path contribution threshold as candidate reinforcement paths.

[0158] Setting a path contribution threshold is to filter out important relationship paths. The path contribution threshold is a pre-set value, determined based on actual needs and experience. Relationship paths with a path contribution greater than the path contribution threshold are identified as candidate reinforcement paths.

[0159] Step S460: Redundancy detection is performed on the candidate reinforcement paths. If the starting node, target node and path contribution of two candidate reinforcement paths are the same, the path with fewer edges is retained and the path with more edges is deleted.

[0160] Redundancy detection aims to remove redundant paths from candidate reinforcement paths, thereby improving the quality and effectiveness of the reinforcement paths. When two candidate reinforcement paths have the same starting node, target node, and path contribution, it indicates that the two paths are essentially similar. Only the path with fewer edges needs to be retained, as it is simpler and more directly reflects the relationship between entity pairs.

[0161] As one implementation method, step S460, redundancy detection of candidate enhancement paths, can be specifically implemented as the following steps S461-S466:

[0162] Step S461: Set the corresponding relationship weight value for the relationship type label. The relationship weight value of a direct relationship is higher than that of an indirect relationship, and the relationship weight value of an indirect relationship is higher than that of a weak relationship.

[0163] Setting corresponding relationship weight values ​​for relationship type labels is to comprehensively consider the relationship type in redundancy detection. Direct influence relationships indicate a strong direct association between entity pairs, and their relationship weight value is relatively high; indirect association relationships indicate a certain association between entity pairs, but not a direct causal relationship, and their relationship weight value is slightly lower; weak association relationships indicate a weak association between entity pairs, and their relationship weight value is the lowest. For example, the relationship weight value for direct influence relationships can be set to 3, the relationship weight value for indirect association relationships to 2, and the relationship weight value for weak association relationships to 1.

[0164] Step S462: For each candidate reinforcement path, extract the relation type labels of all edges in the path, and calculate the sum of relation type weights of all edges in the path based on the relation weight values. The sum of relation type weights is the result of adding the relation weight values ​​of each edge in the path.

[0165] For each candidate reinforcement path, extract the relation type labels for all edges in the path. For example, for the candidate reinforcement path "Elevator-001" - "3rd Floor Lobby - Temperature Monitoring Point" - "3rd Floor Conference Room", extract the relation type labels for the edges connecting "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point", as well as the relation type labels for the edges connecting "3rd Floor Lobby - Temperature Monitoring Point" and "3rd Floor Conference Room". Calculate the sum of the relation type weights for all edges in the path based on the relation weight values. For example, if the relation type of the edge connecting "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" is a direct influence relationship with a relation weight of 3, and the relation type of the edge connecting "3rd Floor Lobby - Temperature Monitoring Point" and "3rd Floor Conference Room" is an indirect association relationship with a relation weight of 2, then the sum of the relation type weights for this path is 5.

[0166] Step S463: Group the candidate reinforcement paths according to the starting node and the target node to obtain multiple node pair path groups. Each node pair path group contains multiple candidate reinforcement paths with the same starting node and target node.

[0167] Candidate reinforcement paths are grouped according to their starting and target nodes. For example, all candidate reinforcement paths with the starting node "Elevator-001" and the target node "3rd Floor Conference Room" are grouped together to obtain a node-pair path group. Each node-pair path group contains multiple candidate reinforcement paths with the same starting and target nodes.

[0168] Step S464: Within each node-path group, candidate reinforcement paths are sorted in ascending order of path length. When the difference in path length between two candidate reinforcement paths is less than a preset length difference threshold, the sum of the relationship type weights of the two paths is further compared.

[0169] Within each node-path pair group, candidate reinforcement paths are sorted in ascending order of path length. A preset length difference threshold is a pre-defined value used to determine whether the length difference between two paths is significant. When the path length difference between two candidate reinforcement paths is less than the preset length difference threshold, it indicates that the two paths are similar in length, and their relationship type weights need to be further compared.

[0170] Step S465: If the difference in the total weight of relation types is greater than the preset weight difference threshold, then retain the candidate reinforcement path with the higher total weight of relation types and delete the candidate reinforcement path with the lower total weight of relation types; if the difference in the total weight of relation types is less than or equal to the preset weight difference threshold, then retain the candidate reinforcement path with the higher path contribution.

[0171] The preset weight difference threshold is a pre-defined value used to determine whether the sum of the relationship type weights of two paths differs significantly. When the difference in the sum of the relationship type weights is greater than the preset weight difference threshold, the candidate reinforcement path with the higher sum of relationship type weights is retained because this path contains more important relationship types. When the difference in the sum of the relationship type weights is less than or equal to the preset weight difference threshold, the candidate reinforcement path with the higher path contribution is retained because path contribution reflects the importance of the path.

[0172] Step S466: When the difference in path length between two candidate reinforcement paths is greater than or equal to a preset length difference threshold, retain the candidate reinforcement path with shorter path length and delete the candidate reinforcement path with longer path length to ensure that the candidate reinforcement path that passes the redundancy detection is optimal in terms of path length, total weight of relation type, and path contribution.

[0173] When the difference in path length between two candidate reinforcement paths is greater than or equal to a preset length difference threshold, it indicates a significant difference in path length, and the candidate reinforcement path with the shorter path length is retained. Shorter paths are more concise and more directly reflect the relationship between entity pairs. In this way, it is ensured that the candidate reinforcement paths that pass the redundancy detection are optimal in terms of path length, total relation type weights, and path contribution.

[0174] Step S470: Integrate the candidate reinforcement paths that pass the redundancy detection into a dynamic reinforcement path set. Each reinforcement path in the dynamic reinforcement path set is labeled with its path contribution and the relationship type label of the edges it contains.

[0175] Candidate reinforcement paths that pass redundancy detection are integrated into a dynamic reinforcement path set. During the integration process, each reinforcement path is labeled with its path contribution and the relationship type of its edges. For example, for the reinforcement path "Elevator-001" - "3rd Floor Lobby - Temperature Monitoring Point" - "3rd Floor Conference Room", its path contribution is labeled as 2.5, the relationship type of the edge connecting "Elevator-001" and "3rd Floor Lobby - Temperature Monitoring Point" is direct influence, and the relationship type of the edge connecting "3rd Floor Lobby - Temperature Monitoring Point" and "3rd Floor Conference Room" is indirect association. The dynamic reinforcement path set clearly shows the important association paths between entity pairs, providing important information for subsequent knowledge graph generation and building operation analysis.

[0176] Step S500: Integrate the time-varying relation network and the dynamic reinforcement path set to generate a dynamic evolution knowledge graph. The dynamic evolution knowledge graph updates edge weights in real time through the association strength decay mechanism and marks the core influence paths between entity pairs through the dynamic reinforcement path set.

[0177] Dynamically evolving knowledge graphs are the result of fusing time-varying relation networks and dynamic reinforcement path sets. The time-varying relation network reflects the dynamic relationships between entity pairs, while the dynamic reinforcement path set highlights the important association paths between entity pairs. By fusing these two components, a more comprehensive and accurate knowledge graph reflecting the relationships between entities in building operation data can be constructed.

[0178] The association strength decay mechanism continues to play a role in the dynamically evolving knowledge graph, updating edge weights in real time. As building operation data changes continuously, the association strength between entity pairs also changes. The association strength decay mechanism adjusts edge weights based on the consecutive occurrence intervals of the attribute association characteristics of entity pairs in the time-series association data sequence, ensuring that the knowledge graph can reflect the latest relationship information in real time.

[0179] The dynamic reinforcement path set is used to annotate the core influence paths between entity pairs. Core influence paths are those between entity pairs that have a strong correlation and significant impact. By annotating these paths, users can quickly identify and analyze the key relationships between entity pairs. For example, in a dynamic evolutionary knowledge graph, for the entity pair "Elevator-001" and "3rd Floor Conference Room," the dynamic reinforcement path set might annotate a core influence path: "Elevator-001" - "3rd Floor Lobby - Temperature Monitoring Point" - "3rd Floor Conference Room." Users can use this path to understand the important relationships between these two entity pairs.

[0180] As one implementation method, step S500, which involves fusing the time-varying relationship network and the dynamic reinforcement path set to generate a dynamically evolving knowledge graph, can be specifically implemented as the following steps S510-S560:

[0181] Step S510: Use the node set of the time-varying relation network as the entity layer of the dynamically evolving knowledge graph. Each entity node in the entity layer retains its corresponding device entity, environment entity, or spatial entity attribute information.

[0182] The node set of the time-varying relational network is directly used as the entity layer of the dynamically evolving knowledge graph. The entity layer is the foundation of the knowledge graph, containing various entity nodes. Each entity node corresponds to a specific equipment entity, environmental entity, or spatial entity, and retains its related attribute information. For example, for the node "Elevator-001," its equipment entity attribute information such as equipment type, operating speed, and maintenance records is retained; for the node "3rd Floor Lobby - Temperature Monitoring Point," its environmental entity attribute information such as monitoring location, monitoring accuracy, and data acquisition frequency is retained; and for the node "3rd Floor Conference Room," its spatial entity attribute information such as area, capacity, and usage frequency is retained. By retaining this attribute information, the entity layer can more comprehensively describe the various entities in building operations.

[0183] Step S520: The edge set of the time-varying relation network is used as the relation layer of the dynamically evolving knowledge graph. Each edge in the relation layer retains its relation type label and dynamic edge weight updated through the association strength decay mechanism.

[0184] The edge set of the time-varying relational network is used as the relation layer of the dynamically evolving knowledge graph. The relation layer describes the relationships between entities, with each edge corresponding to a specific relation type label, such as direct influence, indirect association, or weak association. Simultaneously, the edge weights are dynamically updated in real-time through a correlation strength decay mechanism, reflecting the strength of the association between entities. For example, the edge connecting "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" has a direct influence relationship label, and its weight is dynamically adjusted based on elevator operation and changes in temperature monitoring data. In this way, the relation layer accurately reflects the dynamic relationships between entities.

[0185] Step S530: Map the reinforcement paths in the dynamic reinforcement path set to the time-varying relation network, and mark the edges contained in the reinforcement paths in the relation layer. The special marking includes the path contribution and path priority ranking.

[0186] The reinforcement paths in the dynamic reinforcement path set are mapped to a time-varying relation network. In the relation layer, edges contained within a reinforcement path are specially labeled. These labels include path contribution and path priority ranking. Path contribution reflects the importance of the reinforcement path, while path priority ranking distinguishes the relative importance of different reinforcement paths. For example, for the reinforcement path "Elevator-001" - "3rd Floor Lobby-Temperature Monitoring Point" - "3rd Floor Conference Room," the edges connecting these nodes are specially labeled in the relation layer with a path contribution of 2.5, and their paths are ranked according to their importance. By specially labeling reinforcement paths, users can quickly identify and analyze the core influence paths between entity pairs.

[0187] Step S540: Construct an association index between the entity layer and the relationship layer. The association index records the adjacent entity nodes of each entity node, the relationship type label of the connecting edge, the dynamic edge weight, and whether it belongs to the reinforcement path.

[0188] The association index serves as a bridge connecting the entity layer and the relationship layer, recording the association information between entity nodes. For each entity node, the association index records its adjacent entity nodes, the relationship type label of the connecting edge, the dynamic edge weight, and whether the edge belongs to a reinforcement path. For example, for the node "Elevator-001", the association index records its adjacent node "3rd Floor Lobby - Temperature Monitoring Point", the relationship type label of the connecting edge is "direct influence relationship", the dynamic edge weight is the current real-time weight, and whether the edge belongs to a reinforcement path. By constructing the association index, it is convenient to query and analyze the relationship information between entities, improving the efficiency of knowledge graph utilization.

[0189] Step S550: Set dynamic update trigger conditions. When the change magnitude of the attribute association features in the dynamic triple set exceeds the preset change threshold, the edge weight update of the time-varying relationship network is triggered, and the dynamic reinforcement path set and association index are updated synchronously.

[0190] Setting dynamic update trigger conditions ensures that the dynamically evolving knowledge graph can reflect changes in building operation data in real time. The attribute association features in the dynamic triplet set reflect the strength of the association between entity pairs. When the change in attribute association features exceeds a preset change threshold, it indicates a significant change in the relationship between entities. At this point, the edge weights of the time-varying relationship network are updated, adjusting the edge weights according to the association strength decay mechanism. Simultaneously, the dynamic reinforcement path set is updated, re-evaluating and filtering reinforcement paths to ensure they accurately reflect the latest core impact paths. Furthermore, the association index is updated to guarantee the accuracy of association information at the entity and relationship layers. For example, with a preset change threshold of 0.5, when the change in the attribute association features of "Elevator-001" and "3rd Floor Lobby-Temperature Monitoring Point" reaches 0.6, edge weight updates, dynamic reinforcement path set updates, and association index updates are triggered.

[0191] Step S560: Integrate the entity layer, relationship layer, association index, and dynamic update mechanism into a dynamic evolution knowledge graph. The dynamic evolution knowledge graph intuitively displays the relationship between entities in building operation data through the entity layer and relationship layer, strengthens the path annotation of the core influence path, and maintains the consistency between the knowledge graph and real-time building operation data through the dynamic update mechanism.

[0192] The knowledge graph integrates an entity layer, a relationship layer, an association index, and a dynamic update mechanism into a dynamically evolving knowledge graph. The entity layer displays various entities in building operations, the relationship layer describes the relationships between entities, the association index provides connection information between entities and relationships, and the dynamic update mechanism ensures the knowledge graph reflects the latest data changes in real time. Through the entity and relationship layers, users can intuitively see the relationships between entities in building operation data. For example, users can clearly see the relationships between elevator equipment and environmental parameter monitoring points, or spatial areas. By strengthening path annotation of core influence paths, users can quickly identify key association paths between entity pairs, facilitating in-depth analysis and decision-making. Through the dynamic update mechanism, the knowledge graph maintains consistency with real-time building operation data, providing strong support for the management and optimization of building operations.

[0193] It is understood that the various algorithms involved in the above descriptions of the embodiments of the present invention can all be obtained from relevant content in the prior art. To save space, they will not be elaborated on in the embodiments of the present invention. In addition, those skilled in the art can supplement the details based on common knowledge in the art when implementing the solutions of the present invention. For example, they can use normalization to eliminate dimensional conflicts before feature fusion, use interpolation to eliminate dimensional differences, reasonably set thresholds based on historical data, experience or business scenario requirements, train the model based on a general model training method, set the number of layers in the model structure based on actual needs, select activation functions, etc. The present invention will not provide redundant descriptions of overly detailed implementation processes here.

[0194] Please see Figure 2 , Figure 2 This is a schematic diagram of a computer system provided in an embodiment of the present invention. The computer system includes at least a processor 101, a communication interface 102, and a memory 103. The processor 101, communication interface 102, and memory 103 can be connected via a bus or other means. The processor 101 (or Central Processing Unit, CPU) is the computing and control core of the computer system, capable of parsing various instructions and processing various data within the computer system. The communication interface 102 may optionally include a standard wired interface or a wireless interface (such as Wi-Fi, mobile communication interface, etc.), and can be used to send and receive data under the control of the processor 101; the communication interface 102 can also be used for data transmission and interaction within the computer system. The memory 103 is a storage device in the computer system used to store programs and data. It is understood that the memory 103 here can include the computer system's built-in memory, or it can include extended memory supported by the computer system. The memory 103 provides storage space, which stores the computer system's operating system; this invention does not limit this storage space.

[0195] In one embodiment, the processor 101 executes the knowledge graph generation method for building operation data mining provided above in the embodiments of the present invention by running a computer program in the memory 103.

Claims

1. A method for generating knowledge graphs applied to building operation data mining, characterized in that, include: Collect multimodal data streams of building operations and generate time-series correlated data sequences; Based on the aforementioned time-series associated data sequence, dynamic mining of entity attribute relationship triples is performed to obtain a dynamic triple set. This dynamic triple set includes entity pairs, attribute association features of entity pairs, and relationship type labels for entity pairs. Specifically, this includes: dividing the time-series associated data sequence into sliding time windows to obtain multiple continuous and partially overlapping time-series data segments, each containing multimodal data content within a preset time length; performing entity recognition processing on each time-series data segment to extract entity identifier sequences for equipment entities, environmental entities, and spatial entities. The equipment entity corresponds to the equipment identity identifier in the equipment operation status data stream, the environmental entity corresponds to the monitoring point identity identifier in the environmental parameter monitoring data stream, and the spatial entity corresponds to the area identity identifier in the space usage record data stream; and constructing an entity co-occurrence matrix based on the entity identifier sequences. The rows and columns of the entity co-occurrence matrix represent the entities in the entity identifier sequences, and the matrix elements represent the entity pairs in the time-series data. The initial association strength of entity pairs is calculated by the ratio of the co-occurrence frequency in the fragments to the total duration of the time-series data fragments. A time decay correction is applied to the initial association strength of entity pairs. Based on the co-occurrence interval of entity pairs in adjacent time-series data fragments, the initial association strength is adjusted using an exponential decay function to generate dynamically changing attribute association features over time. The relationship type label of entity pairs is determined based on the numerical range of the attribute association features. When the attribute association feature is greater than a first threshold, it is marked as a direct influence relationship; when the attribute association feature is between the first and second thresholds, it is marked as an indirect association relationship; and when the attribute association feature is less than the second threshold, it is marked as a weak association relationship. Entity pairs, dynamically changing attribute association features, and relationship type labels are combined into dynamic triples. All dynamic triples corresponding to all time-series data fragments are integrated into a dynamic triple set, where each dynamic triple contains the timestamp information of the corresponding time-series data fragment. A time-varying relation network is constructed through an association strength decay mechanism. The time-varying relation network uses entity pairs in the dynamic triple set as nodes, relation type labels as edges, and attribute association features as edge weights. Dynamic reinforcement of relationship paths is performed based on a path contribution evaluation model, generating a set of dynamically reinforced paths. The path contribution evaluation model determines the path contribution by calculating the ratio of the cumulative edge weights to the path lengths of all possible relationship paths between entity pairs, and selects relationship paths with path contributions exceeding a preset threshold as reinforced paths. Specifically, this includes: taking each entity node in the time-varying relationship network as the starting node, traversing all reachable target nodes, and recording all possible relationship paths from the starting node to the target node; the relationship path is a sequence formed by sequentially connecting entity nodes and edges; for each relationship path, extracting the current edge weights of all edges in the path, and calculating the sum of all edge weights as the cumulative edge weight of the path; and statistically analyzing... The number of edges in a relational path is used as the path length. The path contribution is calculated by dividing the cumulative edge weight by the path length; the path contribution reflects the average edge weight per unit path length. A path contribution threshold is set, and relational paths with a path contribution greater than the threshold are identified as candidate reinforcement paths. Redundancy detection is performed on the candidate reinforcement paths; if two candidate reinforcement paths have the same starting node, target node, and path contribution, the path with fewer edges is retained, and the path with more edges is deleted. The candidate reinforcement paths that pass the redundancy detection are integrated into a dynamic reinforcement path set, and each reinforcement path in the dynamic reinforcement path set is labeled with its path contribution and the relational type label of the edges it contains. The time-varying relationship network and the dynamic reinforcement path set are combined to generate a dynamically evolving knowledge graph.

2. The method according to claim 1, characterized in that, The entity recognition processing for each time-series data segment, extracting entity identifier sequences for device entities, environmental entities, and spatial entities, includes: An entity recognition rule base is constructed, which includes equipment entity recognition rules, environmental entity recognition rules, and spatial entity recognition rules. The equipment entity recognition rules define the composition rule of the equipment identity as a combination of equipment type information and unique sequence information. The environmental entity recognition rules define the composition rule of the monitoring point identity as a combination of area location information and monitoring type information. The spatial entity recognition rules define the composition rule of the area identity as a combination of floor location information and area function information. The system performs rule matching on the equipment operation status data stream content in the time-series data segment, extracts character combinations that conform to the composition rules as candidate identifiers of equipment entities according to the equipment entity identification rules, and filters invalid candidate identifiers by comparing them with preset equipment ledger information to obtain the equipment entity identifier; Feature matching is performed on the environmental parameter monitoring data stream content in the time series data segment. Based on the environmental entity recognition rules, character combinations containing monitoring type information are extracted as candidate environmental entity identifiers. Invalid candidate identifiers are filtered out by comparing with the preset monitoring point configuration information to obtain the environmental entity identifier. Semantic matching is performed on the spatial data stream content in the time-series data segment. Based on the spatial entity recognition rules, character combinations containing floor location information and area function information are extracted as spatial entity candidate identifiers. Invalid candidate identifiers are filtered out by comparing with the preset building floor plan area information to obtain spatial entity identifiers. The device entity identifier, environmental entity identifier, and spatial entity identifier are arranged in the order of their appearance in the time-series data segment to generate an entity identifier sequence containing the three types of entity identifiers. Each entity identifier in the entity identifier sequence is marked with its first appearance time and duration of continuous appearance in the time-series data segment.

3. The method according to claim 1, characterized in that, The construction of the entity co-occurrence matrix based on entity identifier sequences includes: The entity identifier sequence is deduplicated to obtain an entity set containing unique entity identifiers. The entity set includes a device entity set, an environment entity set, and a spatial entity set. Construct an initial matrix using the entities in the entity set as row and column indices. The number of rows and columns in the initial matrix are equal to the total number of entities in the entity set. Iterate through all data records in the time-series data segment and identify the entity pairs that appear simultaneously in each data record; For each entity pair that appears simultaneously, increment the value of the element at the corresponding position in the initial matrix by one, and count the number of times the entity pair co-occurs in the time series data segment; Calculate the total duration of the time-series data segment, where the total duration is the difference between the first and last timestamps in the time-series data segment; Divide the number of co-occurrences of each element in the initial matrix by the total duration to obtain the co-occurrence frequency per unit time of the entity pair. Use the co-occurrence frequency per unit time as the initial association strength of the entity pair to generate the entity co-occurrence matrix.

4. The method according to claim 1, characterized in that, The time decay correction of the initial association strength of entity pairs includes: Extract the timestamp information of two adjacent time series data segments, and calculate the time interval between adjacent time series data segments. The time interval is the difference between the start timestamp of the later time series data segment and the end timestamp of the earlier time series data segment. Determine whether the entity pair appears in both adjacent time series data segments. If the entity pair appears only in the previous time series data segment and not in the next time series data segment, then determine that the entity pair has a co-occurrence interval duration, which is equal to the time interval between adjacent time series data segments. If an entity pair appears in both adjacent time-series data segments, then the co-occurrence interval of the entity pair is determined to be zero. An exponential decay function is constructed based on the co-occurrence interval duration. The base of the exponential decay function is a natural constant, and the exponent is the negative value of the product of the co-occurrence interval duration and a preset decay coefficient. The initial association strength of the entity pair is multiplied by the result of the exponential decay function to obtain the association strength after time decay correction. This association strength is then used as the attribute association feature that changes dynamically over time.

5. The method according to claim 1, characterized in that, The construction of the time-varying relationship network through the correlation strength decay mechanism includes: Extract all entity pairs from the dynamic triplet set, and use the two entities in each entity pair as network nodes to generate a node set, which includes device entity nodes, environment entity nodes and spatial entity nodes. Extract the relation type label of each entity pair from the dynamic triple set, and use the relation type label as the edge connecting the corresponding entity node to generate an edge set. The edge set includes edges that directly affect the relation, edges that indirectly affect the relation, and edges that weakly affect the relation. Extract the attribute association features of each entity pair from the dynamic triplet set, use the attribute association features as the initial edge weights of the corresponding edges, and establish a mapping relationship between the edges and the initial edge weights. The edge weights are adjusted based on the association strength decay mechanism. The association strength decay mechanism updates the edge weights according to the duration of consecutive absence of entity pairs in the temporal association data sequence. The longer the duration of consecutive absence, the greater the decay of the edge weights. Construct a relationship table between the node set, the edge set, and the dynamic edge weights. The relationship table records the neighboring nodes of each node, the relationship type label of the connecting edge, and the current edge weight. The node set, edge set, dynamic edge weights, and association table are integrated into a time-varying relation network. The structure of the time-varying relation network is dynamically adjusted as the attribute association characteristics of entity pairs change.

6. The method according to claim 5, characterized in that, The adjustment of edge weights based on the correlation strength decay mechanism includes: Real-time monitoring of the updates to the time-series associated data sequence; when a new time-series data segment is added to the time-series associated data sequence, check whether the entity pair corresponding to each edge in the time-varying relation network appears in the new time-series data segment. If an entity pair appears in a new time series data segment, the attribute association feature of the entity pair is updated according to the number of times it co-occurs in the new time series data segment, and the edge weight of the corresponding edge is updated to the new attribute association feature. If an entity pair does not appear in a new time series data segment, the duration of continuous absence of the entity pair is calculated. The duration of continuous absence is the difference between the end timestamp of the last time series data segment and the end timestamp of the current new time series data segment. The attenuation factor is calculated based on the duration of continuous absence. The attenuation factor is the ratio of the duration of continuous absence to the preset attenuation reference duration. When the duration of continuous absence is less than the attenuation reference duration, the attenuation factor is the ratio of the duration of continuous absence to the attenuation reference duration. When the duration of continuous absence is greater than or equal to the attenuation reference duration, the attenuation factor is a preset maximum attenuation ratio value, which is less than 1. Multiply the current edge weight by the difference between 1 and the attenuation factor to obtain the attenuated edge weight. If the attenuated edge weight is less than the preset minimum weight threshold, then set the edge weight to the minimum weight threshold, which is a preset constant greater than zero.

7. The method according to claim 1, characterized in that, The process involves traversing all reachable target nodes and recording all possible relationship paths from the starting node to the target node, including: Initialize the path queue by adding the starting node as the initial path to the path queue. The path length of the initial path is 0, and the cumulative edge weight of the path is 0. Retrieve the first current path from the path queue and obtain the endpoint node of the current path; Query all adjacent nodes directly connected to the endpoint node in a time-varying relational network, and the edges connecting the endpoint node and its adjacent nodes; For each adjacent node, determine whether the adjacent node has already appeared in the current path. If it has not appeared, combine the current path, edges, and adjacent nodes into a new path. The path length of the new path is the current path length plus 1, and the cumulative edge weight of the new path is the cumulative edge weight of the current path plus the current edge weight of the edge. Add the new path to the path queue. Repeat the steps of retrieving the current path, obtaining adjacent nodes, and generating a new path until the path length in the path queue reaches the preset maximum path length or the path queue is empty. Filter out the paths from all generated paths where the starting node and the target node are different, and use these as possible relationship paths from the starting node to the target node.

8. A computer system, characterized in that, include: A memory, wherein a computer program is stored; A processor is configured to load the computer program to implement the knowledge graph generation method for building operation data mining as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Interpretable commodity recommendation method and system based on time series knowledge graph

    CN112085559A

  • Method and system for constructing space-time dynamic graph of engineering construction project

    CN119474407A