Construction management method based on digitization
Through digital construction management methods, combined with LSTM algorithm and knowledge graph technology, the problem of difficulty in accumulating knowledge in stent construction is solved, real-time prediction of the bracket status and abnormal alarms are realized, and the level of intelligent construction management is improved.
Patent Information
- Application Number
- CN202410970679.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There are problems in the construction of brackets. The existing technology is difficult to effectively integrate and utilize heterogeneous data, and the lack of semantic understanding and hierarchical division, which limits the level of intelligence in knowledge reasoning and decision-making.
Using a digital-based construction management method, the bracket data is collected by installing strain gauge and accelerometer sensors, the prediction model is constructed using the LSTM algorithm, and the semantic extraction and entity linking are combined with knowledge graph technology, and the knowledge representation is optimized, stored in the Neo4j graph database for semantics. Query and path reasoning.
Real-time prediction and abnormal alarm of bracket status are realized, operation instructions are generated, the intelligence level and knowledge utilization of construction management are improved, and data storage and processing efficiency are improved.
Smart Images

Figure CN118964440A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of support construction, and in particular to a digital-based construction management method. Background Art
[0002] As the scale of modern construction projects continues to expand and the complexity continues to increase, scaffolds, as temporary engineering structures, play an increasingly important role in the construction process. The safety and reliability of scaffolds are directly related to the quality and progress of the entire project. However, scaffold construction involves multiple professional disciplines and technical fields, and the data types generated during the construction process are diverse and complex in format, including structured sensor data and unstructured construction logs, drawings, etc. How to effectively integrate and utilize these heterogeneous data and mine the rich knowledge contained therein has become a major challenge facing scaffold construction management.
[0003] Traditional scaffold construction management mainly relies on manual experience and simple data analysis, which has problems such as low efficiency and difficulty in knowledge accumulation. On the one hand, a large amount of construction data is scattered in different systems and documents, lacking a unified storage and management method, which makes it difficult to centrally utilize the data. On the other hand, data from different sources lack semantic association, making it difficult to form a structured knowledge system, which hinders the accumulation and inheritance of knowledge. At the same time, existing data analysis methods are mainly based on simple statistics and rules, which make it difficult to discover the complex patterns and relationships hidden in the data, and have limited ability to predict the status of the scaffold and provide decision support.
[0004] In the related art, for example, Chinese patent document CN111950935A provides a smart management method for safe construction, the method comprising: obtaining a first characteristic parameter of a construction support; obtaining a first standard value of a construction support; judging whether the first characteristic parameter meets a first preset condition; when satisfied, the intelligent management platform sends a first instruction to the operating platform and the working platform, and the working platform and the operating platform respectively start the construction program according to the first instruction; obtaining a first real-time characteristic parameter of the construction support; judging whether the first real-time characteristic parameter meets a second preset condition; when not satisfied, obtaining a first warning message, the intelligent management platform sends a second instruction to the operating platform and the working platform according to the first warning message, and the working platform and the operating platform respectively start the warning program according to the second instruction, so as to achieve real-time monitoring of the construction site. However, the scheme adopts a simple threshold comparison method to judge whether the state of the construction support meets the preset condition. This rule-based knowledge representation method is relatively simple and lacks semantic understanding and hierarchical division of knowledge. There may be complex semantic associations between different construction parameters, and simple threshold judgment is difficult to characterize the internal logic and dependency relationship of knowledge. The lack of semantic hierarchical knowledge representation limits the level of intelligence of knowledge reasoning and decision-making. Summary of the invention
[0005] In response to the problem of difficulty in accumulating knowledge in scaffold construction in the prior art, the present application provides a construction management method based on digitalization, which comprehensively uses knowledge graph technology to perform semantic extraction, entity linking and embedding representation learning on structured feature data and unstructured construction data, build a construction field knowledge base, and use representation learning models such as TransE and RESCAL to optimize knowledge representation and store it in the Neo4j graph database; finally, the implicit information in the knowledge base is mined through semantic query, path reasoning, subgraph matching, etc., thereby improving the utilization rate of scaffold construction knowledge.
[0006] Technical solution, the purpose of this application is achieved through the following technical solution.
[0007] The present specification provides a digital-based construction management method, including: S1, collecting the force and deformation data of the bracket by installing strain gauges and accelerometer sensors on the bracket; transmitting the collected data to the edge gateway through a wireless network, and uploading the collected data to the cloud database after being processed by the edge gateway; S2, the cloud database adopts a distributed architecture, stores historical data in a historical database based on Hadoop, stores real-time data in a real-time database based on HBase, and establishes a timestamp index; performs ETL processing on the data in the cloud database to generate structured feature data; wherein the structured feature data includes the force characteristics and deformation characteristics of the bracket;
[0008] S3, based on the generated structured feature data, a prediction model for predicting whether the stent status meets the preset conditions is constructed using the LSTM algorithm; specifically, the structured feature data generated in step S2 is divided into several time windows according to the time series, and each time window contains a feature sequence of fixed length; the feature sequence in each time window is input into the LSTM neural network, and the feature sequence is encoded through the gating mechanism of the LSTM to extract the time series features; wherein the LSTM neural network includes an input gate, a forget gate, an output gate and a memory unit, and the selective memory and forgetting of the time series information are realized through the gating mechanism; a fully connected layer and a Sigmoid activation function are added to the last time step of the LSTM neural network, and the time series features extracted by the LSTM are mapped to the probability value of the stent status prediction result; wherein the stent status prediction result is a binary classification, indicating whether the stent status meets the preset conditions. The real label of whether the stent status meets the preset conditions is used as the supervision signal, the focalloss loss function is used to evaluate the difference between the prediction result and the real label, and the Adam optimization algorithm is used to minimize the loss function, and the parameters of the LSTM neural network are trained to obtain the stent status prediction model.
[0009] Among them, the focalloss loss function introduces a modulation factor to attenuate the loss value of easy-to-classify samples and amplify the loss value of difficult-to-classify samples, so that the model can focus more on difficult-to-classify samples and improve the classification performance of unbalanced data sets and difficult samples; in the training process of the LSTM neural network, a cyclic learning rate scheduling strategy is used to dynamically adjust the learning rate of the Adam optimization algorithm to improve the generalization ability and convergence speed of the model; specifically, a smaller learning rate is set at the beginning of training to make the model search slowly in the parameter space. As the training progresses, the learning rate is first gradually increased to accelerate the convergence of the model, and then gradually decreased to fine-tune the model near the local optimal point; at the same time, after each learning rate cycle, the performance of the model on the validation set is evaluated, and the model parameters with the best performance are saved; in the training process of the LSTM neural network, the Monte Carlo dropout method is used to estimate the uncertainty of the model prediction to improve the interpretability and robustness of the model.
[0010] Specifically, a dropout layer is introduced at each time step of the LSTM neural network. Multiple random dropout samplings are performed in the inference stage to obtain the probability distribution of the model prediction results, and the prediction uncertainty is quantified according to the discrete degree of the probability distribution. When the prediction uncertainty is higher than the preset threshold, it is considered that there is a greater risk in the current stent state and attention should be paid. In the training process of the LSTM neural network, the adversarial sample training method is used to improve the anti-interference ability and robustness of the model. Specifically, the fast gradient signed method (FGSM) is used to add small perturbations to the feature space of the training samples to generate adversarial samples. The adversarial samples are mixed with the original samples and input into the LSTM neural network for training, so that the model can correctly classify the adversarial samples, thereby improving the generalization ability and robustness of the model.
[0011] S4, construct a knowledge graph in the field of scaffold construction based on the ontology, perform semantic extraction and entity linking processing on structured data and unstructured data, and form a knowledge graph with construction concepts as nodes and concept relationships as edges; wherein, structured data includes scaffold performance, construction technology and operating specifications; unstructured data includes construction logs and construction drawings; S5, extract features from the collected scaffold data to obtain feature vectors; use the constructed prediction model to predict the feature vectors, and generate alarm information when the prediction result shows that the scaffold state is abnormal; specifically, divide the scaffold state data into time windows, each time window containing a sensor data sequence of a fixed length; perform statistical feature extraction on the sensor data sequence in each time window, including mean, variance, maximum value, minimum value, etc., to obtain a statistical feature vector of fixed dimension; use the LSTM prediction model constructed in step S3 to predict the statistical feature vector, and when the prediction result shows that the scaffold state does not meet the preset conditions, generate an alarm information in JSON format containing information such as the scaffold number, location, abnormality type, timestamp, etc.
[0012] S6, taking the alarm information as input, uses the constructed knowledge graph to infer the alarm information, combines it with the preset business rules, generates operation instructions, and sends the operation instructions to the construction personnel through the message middleware. Specifically, the JSON format alarm information is parsed into RDF triples, which are loaded into the Neo4j graph database through the ApacheJena framework and integrated with the existing construction field knowledge graph; the Cypher query language is used to perform semantic query and path reasoning on the knowledge graph, and the construction elements, standards, specifications, operating procedures and other knowledge related to the current support status are retrieved according to the key information such as the support number, location, and abnormality type in the alarm information; the retrieved knowledge is filtered and combined using the preset business rules to generate operation instructions for the current abnormal state of the support; the business rules are expressed in the form of IF-THEN, for example: IF the support tilt angle exceeds 5 degrees THEN immediately stop construction and reinforce the support; the generated operation instructions are converted into messages in JSON format, and the messages are published to the specified Topic through the MQTT protocol for construction personnel to subscribe and execute; at the same time, the operation instructions and execution results and other information are written back to the knowledge graph to realize the dynamic update and accumulation of the knowledge base.
[0013] Among them, edge gateway: a computing node deployed on site, used to preprocess, filter and compress the data collected by sensors, and reduce the computing load on the cloud. Hadoop-based historical database: uses Hadoop Distributed File System (HDFS) to store a large amount of historical data, supporting batch processing and offline analysis. HBase-based real-time database: uses HBase column storage to manage real-time data, supports high-concurrency random read and write, and is suitable for real-time query and analysis. ETL processing: the abbreviation of Extract-Transform-Load, which refers to the process of extracting data from the data source, converting the data format and content, and loading it into the target database. LSTM algorithm: LongShort-TermMemory, a recurrent neural network that can learn long-term dependencies and is suitable for the prediction of time series data. Support status: reflects the state parameters such as force and deformation of the support during the construction process, which is used to determine whether the support meets safety and quality requirements. Ontology-based: ontology is a formal description of domain knowledge, including concepts, attributes and relationships. Building a knowledge graph based on ontology can provide semantic representation and reasoning capabilities of knowledge. Semantic extraction: identifies key entities, attributes and relationships from unstructured data (such as text) and converts them into structured semantic representations. Entity linking: associate semantically extracted entities with existing entities in the knowledge base to eliminate ambiguity in entity reference. Preset business rules: pre-set judgment conditions and processing rules based on the business logic and expert experience of construction management to generate operation instructions. Message middleware: provides an asynchronous communication mechanism between distributed systems to achieve decoupling and reliable message delivery between different components. Common ones include Kafka, RabbitMQ, etc.
[0014] Further, S4, constructs a knowledge graph, including: S41, extracts information from structured data such as support performance parameters, construction process flow, and operation specification documents using regular expression matching, pattern matching, and other methods to extract entities and relationships; extracts semantics from unstructured data such as construction logs and construction drawings using natural language processing techniques such as word segmentation, part-of-speech tagging, and dependency syntax analysis to extract entities and relationships; organizes the extracted entities and relationships into triples; S42, uses a pre-trained named entity recognition model and a knowledge base linking model to identify entities in the obtained triples. S43, embedding the constructed directed acyclic graph into a low-dimensional semantic space, and adopting a combination model of the translation-based knowledge representation learning model TransE and the semantic matching-based knowledge representation learning model RESCAL to obtain entity vectors and relationship vectors; S44, constructing a knowledge graph according to the entity nodes and relationship edges of the constructed directed acyclic graph, and the entity vectors and relationship vectors obtained in step S43, and importing it into the Neo4j graph database for storage; in the graph database, the entity nodes and relationship edges contain the original attribute information and embedded vector information, respectively.
[0015] Among them, the regular expression matching method represents a string processing technology based on pattern matching. By defining a series of rules, the target information in the structured text can be quickly retrieved and extracted. Semantic extraction: a natural language processing technology that analyzes the grammatical structure and semantic relationship of the text, identifies the key entities, attributes and relationships in it, and converts them into structured semantic representations. Common methods include dependency syntax analysis, semantic role labeling, etc. Directed acyclic graph: Directed Acyclic Graph, referred to as DAG. A graph structure in which the edges have directions and there are no loops. In the knowledge graph, entities are usually used as nodes and relationships as directed edges to form a directed acyclic graph. Translation-based knowledge representation learning model TransE: a knowledge graph representation learning method that embeds entities and relationships into the same low-dimensional vector space and assumes that the head entity vector + relationship vector ≈ tail entity vector. By minimizing this translation error, the distributed representation of entities and relationships is learned. Semantic matching-based knowledge representation learning model RESCAL: a three-dimensional tensor decomposition method that represents the knowledge graph as a three-dimensional tensor, in which two dimensions represent entities and one dimension represents relationships. By minimizing the reconstruction error, it learns low-dimensional embedding representations of entities and relationships. Neo4j graph database: A native graph database management system that uses a property graph model and supports efficient graph query and traversal operations. In terms of knowledge graph storage, Neo4j can directly store entity nodes, relationship edges, and their attribute information, while supporting flexible queries based on the Cypher language.
[0016] Further, S42, constructing a directed acyclic graph, including: S421, using a pre-trained named entity recognition model to perform named entity recognition on the entities in the triples obtained in step S41, and identify the category of the entity; using a pre-trained knowledge base link model, linking the identified entities to a predefined knowledge base, performing entity disambiguation, and treating entities linked to the same knowledge base as the same category; S422, for the entities that cannot be linked to the knowledge base in step S421, constructing the triples obtained in step S41 into a directed acyclic graph, with the entities as nodes and the relationships as edges, and the direction of the edges pointing from the subject entity to the object entity; S423, performing embedding representation learning on the nodes in the constructed directed acyclic graph through a graph neural network to obtain an embedding vector for each entity node; calculating the semantic similarity between the embedding vectors of the entity nodes, and setting a similarity threshold value; merge entity nodes whose semantic similarity is higher than the threshold and are identified as the same category in step S421 into the same node to obtain a merged directed acyclic graph; S424, randomly generate multiple isomorphic subgraphs according to the merged directed acyclic graph obtained in step S423; use the graph isomorphism network to perform embedding representation learning on the subgraph and the merged directed acyclic graph obtained in step S423, respectively, to obtain an embedding vector for each node; S425, optimize the node embedding representation obtained in step S424 by minimizing the reconstruction error between the subgraph embedding and the embedding of the merged directed acyclic graph obtained in step S423; replace the original node embedding representation in the merged directed acyclic graph obtained in step S423 with the optimized node embedding representation; S426, construct the final directed acyclic graph based on the node embedding representation optimized in step S425. A knowledge base linking model is introduced to use external knowledge base information to assist entity linking and disambiguation. A graph neural network-based entity alignment method is adopted to make full use of the structural information of the knowledge graph for entity merging. At the same time, the graph isomorphism network method is used to further optimize the node embedding representation and improve the accuracy of entity alignment. Ultimately, a more accurate and complete knowledge graph is obtained.
[0017] Among them, entity disambiguation: In natural language processing, the same entity may be mentioned in many different ways, such as "apple" can refer to fruit or Apple. Entity disambiguation is to link these different mentions to the only entity in the knowledge base, eliminate ambiguity, and determine the accurate semantics of the entity. Graph neural network: A deep learning model specifically used to process graph structure data. Graph neural network can learn the feature representation of nodes, while considering the connection relationship between nodes, capturing the topological structure and node attribute information of the graph. Common graph neural networks include graph convolutional networks (GCNs), graph attention networks (GATs), etc. Embedding vector: Also known as embedding representation or distributed representation, it is a method of mapping discrete variables (such as words, entities) to continuous low-dimensional vector space. In the knowledge graph, entities and relationships can be mapped into dense low-dimensional vectors through embedding representation learning, which is convenient for semantic similarity calculation and downstream task application. Subgraph: A subset of a graph, consisting of some nodes in the original graph and the edges connecting these nodes. In the knowledge graph, subgraphs are usually used for local feature extraction and pattern mining. By sampling multiple isomorphic subgraphs from the original graph, the local structural information of the knowledge graph can be captured. Graph Isomorphism Network: A deep learning model for learning graph structure data representation, which can be seen as an extension of the graph neural network. By designing special convolution and pooling operations, the graph isomorphism network can process graphs of different sizes and topological structures and learn the hierarchical representation of the graph. In the representation learning of the knowledge graph, the graph isomorphism network can be used to learn the embedded representation of entities and subgraphs.
[0018] Furthermore, in step S423, the Graph SAGE algorithm is used to learn node embedding representation through graph neural network; wherein, Graph SAGE (Graph S Ample and aggre GatE) is a representation learning algorithm for learning large-scale graph structure data. It generates an embedding representation of the node by randomly sampling the neighbors of the node and recursively aggregating the feature information of the node using an aggregation function. Unlike traditional graph neural networks, Graph SAGE can handle dynamic graphs and unknown nodes, and is suitable for representation learning of large-scale knowledge graphs. For each node, a certain number of neighboring nodes are randomly sampled; the node's own features are aggregated with the features of the sampled neighboring nodes to generate a new node representation; multiple rounds of aggregation are recursively performed to obtain the final embedding representation of the node; the node embedding representation is optimized by unsupervised methods (such as negative sampling) or supervised methods (such as node classification).
[0019] In step S424, Graph Isomorphism Network is used as a graph isomorphism network for embedding representation learning. Among them, Graph Isomorphism Network (GIN) is a graph neural network model for learning graph structure data representation. Based on the concept of graph isomorphism, it designs a special graph convolution operation that can distinguish different graph structures. Multi-layer perceptron (MLP) is used as the aggregation function to aggregate the features of the node itself and the features of the neighboring nodes; a learnable parameter ε is introduced to control the weight of the node's own features and enhance the expressiveness of the model; the embedded representation of the node is aggregated into the embedded representation of the graph through sumpooling or mean pooling; the embedded representation of the graph is optimized through tasks such as graph classification or graph regression.
[0020] Further, S43, obtaining entity vectors and relationship vectors, including: S431, using the TransE model, by minimizing the energy function to optimize the representation of entities and relationships in the embedded space in the directed acyclic graph constructed in step S42, so that for each triple (h, r, t), the sum of the head entity embedding vector h and the relationship embedding vector r, and the difference between the tail entity embedding vector t is minimized, and the translation error of the model is obtained; wherein the energy function is defined as the L1 or L2 distance between h+r and t; S432, using the RESCAL model, by minimizing the reconstruction error to optimize the representation of entities and relationships in the embedded space in the directed acyclic graph constructed in step S42, so that the reconstructed knowledge graph The error between the spectrum and the adjacency matrix of the directed acyclic graph constructed in step S42 is minimized to obtain the reconstruction error; wherein, the reconstruction operation is defined as a three-dimensional tensor decomposition, and the product of the entity embedding matrix and the relationship embedding matrix is used to approximate the original adjacency tensor; S433, the translation error in step S431 and the reconstruction error in step S432 are weightedly summed as the overall optimization target of the combined model; the stochastic gradient descent algorithm is used to optimize and solve the overall objective function, and the entity embedding matrix and the relationship embedding matrix are updated to obtain the optimized entity embedding vector and the relationship embedding vector as the acquired entity vector and the relationship vector; the weighted sum coefficient of the overall optimization target is determined by hyperparameter optimization through grid search. S434, using L2 regularization term to constrain the entity embedding vector and relationship embedding vector optimized in step S433 to prevent model overfitting; comprehensively utilizing the advantages of TransE model and RESCAL model, while retaining the translation relationship between entities, introducing semantic association information between entities, and more comprehensively characterizing the semantic representation of entities and relationships in the embedding space; using L2 regularization and negative sampling strategies to improve the generalization ability and training efficiency of the model, thereby obtaining more accurate and robust entity embedding vectors and relationship embedding vectors.
[0021] Among them, energy function: In knowledge representation learning, the energy function is used to measure the rationality or confidence of a triple. The smaller the value of the energy function, the more reasonable the representation of the triple in the embedding space is, and the more it conforms to the structure of the knowledge graph. The TransE model uses distance metric as the energy function, assuming that the sum of the head entity embedding vector and the relationship embedding vector should be close to the tail entity embedding vector. Translation error: The optimization target in the TransE model, that is, the difference between the sum of the head entity embedding vector h and the relationship embedding vector r, and the tail entity embedding vector t. By minimizing the translation error, reasonable entity and relationship embedding representations can be learned so that h+r≈t. Reconstruction error: The optimization target in the RESCAL model, that is, the difference between the adjacency matrix of the reconstructed knowledge graph and the original knowledge graph. By minimizing the reconstruction error, reasonable entity and relationship embedding representations can be learned so that the reconstructed knowledge graph is as similar as possible to the original knowledge graph. Three-dimensional tensor decomposition: The core operation in the RESCAL model, which represents the knowledge graph as a three-dimensional tensor, in which two dimensions represent entities and one dimension represents relationships. By decomposing the three-dimensional tensor, we can obtain the entity embedding matrix and the relationship embedding matrix, which are used to reconstruct the knowledge graph.
[0022] Original adjacency tensor: The adjacency matrix representation of the knowledge graph, each element indicates whether there is a specific relationship between two entities. In the RESCAL model, the original adjacency tensor is the basis for the reconstruction error calculation and represents the true knowledge graph structure. Entity embedding matrix: A matrix that stores all entity embedding vectors, each row corresponds to the embedding vector of an entity. In the RESCAL model, the product of the entity embedding matrix and the relationship embedding matrix is used to reconstruct the knowledge graph. Relationship embedding matrix: A matrix that stores all relationship embedding vectors, each row corresponds to the embedding vector of a relationship. In the RESCAL model, the product of the relationship embedding matrix and the entity embedding matrix is used to reconstruct the knowledge graph. Entity vector: A low-dimensional representation of a single entity in the embedding space, usually a real-valued vector. The entity vector obtained through knowledge representation learning can characterize the semantic similarity and relationship between entities. Relationship vector: A low-dimensional representation of a single relationship in the embedding space, usually a real-valued vector. The relationship vector obtained through knowledge representation learning can characterize the semantic similarity and relationship type between relationships.
[0023] Furthermore, it also includes: for any query condition input by the user, matching is performed in the knowledge graph stored in step S44 through the Cypher query language to perform semantic query of the knowledge graph; for two entities given by the user, the shortest path between entity nodes is searched in the knowledge graph stored in step S44 to perform path reasoning of the knowledge graph; for a subgraph given by the user, similar substructures are matched in the knowledge graph stored in step S44 to perform subgraph matching reasoning of the knowledge graph. Preferably, a graph convolutional network is used to embed the query subgraph and the substructure in the graph database, and similar substructures are matched by the cosine similarity of the embedded vectors.
[0024] Among them, Cypher query language: a declarative query language designed for graph databases, especially developed for Neo4j graph database. Cypher uses SQL-like syntax to match nodes and relationships in the graph by describing query patterns, supporting complex graph matching, query and update operations. Cypher query language is easy to understand and use, and can efficiently perform semantic queries on knowledge graphs.
[0025] Furthermore, for two given entities, the A* search algorithm is used to search for the shortest path between entity nodes in the graph database. Among them, the A search algorithm is a heuristic search algorithm that is often used to find the shortest path between two nodes in a graph. The A algorithm combines the characteristics of the best-first search and the Dijkstra algorithm, uses a heuristic function to estimate the distance from the current node to the target node, and prioritizes the exploration of nodes that are more likely to lead to the target. In the path reasoning of the knowledge graph, the A* algorithm can be used to efficiently find the shortest path between two entity nodes.
[0026] Further, in step S1, the collected data is transmitted to the edge gateway via the MQTT protocol. Spark Streaming: A real-time data processing component in the Apache Spark ecosystem, used to process continuous data streams. Spark Streaming divides the input data stream into a series of micro-batches and processes each micro-batch to achieve near real-time computing. Spark Streaming supports a variety of data sources, such as Kafka, Flume, etc., and can be seamlessly integrated with components such as Spark Core and Spark SQL for real-time data processing and analysis.
[0027] Furthermore, in step S2, Spark Streaming is used to perform streaming ETL processing on the data in the real-time database. Streaming ETL processing: the process of extracting, transforming, and loading real-time data streams. Unlike traditional batch ETL processing, streaming ETL processing requires continuous processing of input data and writing the results to the target data storage in real time. Streaming ETL processing usually uses distributed stream processing frameworks such as Spark Streaming and Flink, which can process high-throughput and low-latency real-time data and support operations such as real-time data cleaning, transformation, and aggregation.
[0028] Furthermore, in step S6, Kafka is used as a message middleware to send the operation instructions to the construction personnel. Kafka, a distributed message queue and stream processing platform, is used to build real-time data pipelines and streaming applications. Kafka adopts a publish-subscribe model, supports multiple producers and consumers, and provides a high-throughput, low-latency and scalable messaging mechanism. In terms of system decoupling and asynchronous communication, Kafka is widely used in scenarios such as real-time processing of big data, log aggregation, and event-driven. In this solution, Kafka is used as a message middleware to reliably send operation instructions from the back-end system to the construction personnel.
[0029] Compared with the prior art, the advantages of this application are:
[0030] By installing sensors on the bracket to collect force and deformation data, and using the MQTT protocol to transmit it to the edge gateway for processing and then upload it to the cloud, real-time collection and efficient transmission of bracket status data are achieved, providing a data basis for subsequent data analysis and knowledge mining.
[0031] A distributed cloud database architecture is adopted to store historical data in Hadoop and real-time data in HBase, and Spark Streaming is used for streaming ETL processing, which improves the efficiency and scalability of data storage and processing. At the same time, the generated structured feature data provides training data for the prediction model.
[0032] Based on the ontology, a knowledge graph in the field of scaffold construction is constructed. Regular expression matching is used for structured data, and dependency syntax is used for semantic extraction of unstructured data to form a knowledge graph with construction concepts as nodes and concept relationships as edges. Named entity recognition and knowledge base linking technology are used for entity disambiguation, and node embedding representation is learned through graph neural network Graph SAGE and graph isomorphism network GIN to construct an optimized directed acyclic graph. This method integrates and associates construction knowledge from the data level and knowledge level to form a high-quality knowledge base.
[0033] Knowledge representation learning models such as TransE and RESCAL are used to optimize the embedded representation of entities and relations in the knowledge graph by minimizing translation error and reconstruction error, and L2 regularization is used to prevent overfitting, thereby learning dense, low-dimensional knowledge representation while retaining semantic information.
[0034] The optimized knowledge graph is stored in the Neo4j graph database, and the entity nodes and relationship edges contain the original attribute information and embedded vector information. Semantic query is performed through the Cypher query language, path reasoning is performed through the A* search algorithm, and subgraph reasoning is performed through subgraph matching. The knowledge storage and query method based on the graph database makes full use of the structured, associated and semantic information of knowledge, greatly improving the flexibility and efficiency of knowledge retrieval and reasoning.
[0035] The constructed LSTM prediction model is used to predict the support status, and an alarm message is generated when the prediction is abnormal. The alarm information is input into the knowledge graph for reasoning, and the operation instructions are automatically generated in combination with the preset business rules, and sent to the construction personnel in real time through the Kafka message middleware. This process realizes the automation and closed loop from data collection, analysis to knowledge application, and improves the intelligent level of construction management. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0037] Figure 1 is an exemplary flow chart of a digital-based construction management method according to some embodiments of this specification;
[0038] Figure 2 is an exemplary flow chart for constructing a knowledge graph according to some embodiments of this specification;
[0039] Figure 3 is an exemplary flow chart of constructing a directed acyclic graph according to some embodiments of this specification;
[0040] Figure 4 is an exemplary flow chart of obtaining entity vectors and relationship vectors according to some embodiments of this specification;
[0041] Figure 5 This is an exemplary flowchart of using knowledge graph query reasoning according to some embodiments of this specification. DETAILED DESCRIPTION
[0042] The method and system provided in the embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0043] Figure 1 This is an exemplary flow chart of a digital construction management method shown in some embodiments of the present specification, a digital construction management method, including: collecting the force and deformation data of the bracket by installing strain gauges and accelerometer sensors on the bracket; transmitting the collected data to the edge gateway via a wireless network, and uploading the data to the cloud database after being processed by the edge gateway; the cloud database adopts a distributed architecture, stores historical data in a historical database based on Hadoop, stores real-time data in a real-time database based on HBase, and establishes a timestamp index; performs ETL processing on the data in the cloud database to generate structured feature data; wherein the structured feature data includes the force characteristics and deformation characteristics of the bracket; according to the generated structured feature data, adopt The LSTM algorithm constructs a prediction model for predicting whether the status of the support meets the preset conditions; a knowledge graph in the field of support construction is constructed based on the ontology, and semantic extraction and entity linking processing are performed on structured data and unstructured data to form a knowledge graph with construction concepts as nodes and concept relationships as edges; among them, structured data includes support performance, construction technology and operating specifications; unstructured data includes construction logs and construction drawings; feature extraction is performed on the collected support data to obtain feature vectors; the feature vectors are predicted using the constructed prediction model, and an alarm message is generated when the prediction result shows that the support status is abnormal; the alarm information is used as input, and the constructed knowledge graph is used to infer the alarm information, and operation instructions are generated in combination with preset business rules, and the operation instructions are sent to construction personnel through the message middleware.
[0044] A construction management method based on digitalization, including: installing strain gauges and accelerometer sensors at key stress-bearing parts and deformation-prone positions of the bracket to collect the stress and deformation data of the bracket in real time. Among them, the strain gauge is used to measure the strain value of the bracket component to reflect the stress state of the bracket; the accelerometer is used to measure the vibration acceleration of the bracket to reflect the deformation and stability of the bracket. The sensor sampling frequency is set to 100Hz, which can meet the collection requirements of the dynamic response characteristics of the bracket. The data collected by the sensor is transmitted to the nearby edge gateway in real time through the Zigbee wireless communication module. The edge gateway uses an industrial-grade computer equipped with a 4G communication module and a Wi-Fi module, which can connect multiple sensor nodes and cloud databases at the same time. The edge gateway is pre-installed with the Linux operating system and the Docker container platform, and can run edge computing programs such as data processing, feature extraction, and anomaly detection.
[0045] Data transmission between sensor nodes and edge gateways is based on the MQTT protocol. MQTT is a lightweight publish / subscribe message transmission protocol suitable for low-bandwidth and unstable network environments. As an MQTT client, the sensor node packages the collected data into JSON format messages and publishes them to the specified Topic. As an MQTT server, the edge gateway subscribes to the Topic published by the sensor node and receives the sensor data. After receiving the sensor data, the edge gateway first performs data preprocessing, including timestamp alignment, outlier filtering, data normalization, etc. Then, the pre-trained machine learning model is used to extract features from the data to obtain a high-dimensional feature vector reflecting the state of the bracket. Feature extraction uses time window division, with each window length of 10 seconds and a sliding step of 5 seconds. The extracted features include time domain features (such as mean, variance, peak, etc.) and frequency domain features (such as band energy, spectrum entropy, etc.).
[0046] The edge gateway inputs the extracted feature vector into the preset anomaly detection model to achieve real-time monitoring of the bracket status and risk warning. The anomaly detection model uses the One-ClassSVM algorithm to learn the distribution boundary of the bracket features under normal conditions through unsupervised learning. When the newly collected data exceeds the boundary, it is judged as an abnormal state and an alarm information is generated. Finally, the edge gateway uploads the original sensor data, extracted feature vectors, and anomaly detection results to the cloud database through the 4G network. The cloud database uses the distributed time series database InfluxDB, which can efficiently store and query large-scale time series data. At the same time, a visual monitoring platform based on Grafana is also deployed in the cloud to achieve real-time display and historical playback of the bracket status.
[0047] The cloud database adopts a distributed architecture, dividing the bracket status data according to the time dimension and storing it in different databases. Among them, historical data is stored in the HDFS distributed file system based on Hadoop, using the Parquet column storage format to improve data compression and query efficiency. Real-time data is stored in a NoSQL database based on HBase, using the Key-Value storage model, where the Key is a combination of the sensor ID and the timestamp, and the Value is the original data collected by the sensor. At the same time, a secondary index table with the timestamp as the primary key is established in HBase to accelerate the query and retrieval of real-time data.
[0048] Perform ETL processing on the historical data and real-time data in the cloud database respectively to extract structured feature data. Among them, the ETL processing of historical data adopts a batch processing method based on Hadoop MapReduce, and divides the original data in HDFS according to time windows. Each time window corresponds to a MapReduce task. In the Map stage, feature extraction is performed on the data of each sensor, and time domain features and frequency domain features are calculated. In the Reduce stage, the features extracted by different sensors are summarized and spliced to generate a feature vector that reflects the overall state of the bracket. The structured feature data obtained by ETL processing is stored in HDFS in CSV format and managed through Hive metadata for subsequent machine learning and data analysis.
[0049] The ETL processing of real-time data adopts the stream processing method based on Spark Streaming to perform real-time feature extraction on the newly added data in HBase. First, through the Coprocessor mechanism of HBase, the preprocessing logic of feature extraction is triggered when the data is written to HBase, and the original data is converted into SparkRDD format. Then, the RDD is divided according to the time window, and each window corresponds to a DStream of Spark Streaming. In the conversion operation of DStream, the data of each sensor is extracted, and the time domain features and frequency domain features are calculated. Finally, the extracted features are sent to the real-time computing engine through the Kafka message queue for real-time monitoring of the bracket status and anomaly detection. At the same time, the feature data is persisted in the feature table of HBase and associated with the original data to facilitate subsequent query and analysis.
[0050] The LSTM (Long Short-Term Memory) algorithm is used to build a stent state prediction model. LSTM is a deep learning algorithm suitable for processing time series data. By introducing gating mechanisms and memory units, it can effectively capture long-term dependencies in time series data. First, the generated structured feature data is arranged in chronological order to form a time series. Then, the time series is divided into fixed lengths (such as 120 sampling points) to form a sample sequence. Each sample sequence contains a feature matrix and a label, where the number of rows of the feature matrix is the sequence length and the number of columns is the feature dimension; the label indicates whether the stent state corresponding to the sample sequence meets the preset conditions.
[0051] In the process of building the LSTM model, a multi-layer stacked structure is adopted, and each layer contains multiple LSTM units. In each LSTM unit, the flow and update of information are controlled by the input gate, forget gate and output gate, and the memory unit is used to store the long-term state. The sample sequence is input into the LSTM model, and the hidden state and output of each time step are calculated by the forward propagation algorithm. In the last layer of the LSTM model, a fully connected layer is used to map the hidden state of the last time step to the output probability of the binary classification. The cross entropy loss function is used to measure the difference between the predicted probability and the true label, and the Adam optimization algorithm is used to minimize the loss function to train the parameters of the LSTM model. During the training process, the EarlyStopping strategy is used to prevent overfitting, that is, when the performance index on the validation set does not improve for several consecutive epochs, the training is stopped.
[0052] The constructed LSTM prediction model is used to predict the newly collected bracket status data. First, the features of the newly collected bracket status data are extracted to obtain feature vectors in the same format as the training data. Then, the feature vectors are used to form a fixed-length sample sequence in chronological order, and the sample sequence is input into the trained LSTM model. The hidden state and output probability of the sample sequence at each time step are calculated through the forward propagation algorithm. The output probability of the last time step is taken as the result of the bracket status prediction. When the prediction probability is greater than the preset threshold (such as 0.5), it indicates that the bracket status is abnormal and an alarm message needs to be generated. The alarm message contains the time of the abnormality, the type of abnormality (such as excessive strain, abnormal vibration frequency, etc.), the abnormal location (such as bracket number, node ID, etc.), and the degree of abnormality (such as the percentage of deviation from the normal value). The alarm information is encapsulated in JSON format and published to the Topic of the alarm information through the MQTT protocol for subsequent knowledge graph reasoning and decision support. At the same time, the alarm information is persisted in the alarm information table of HBase, and is associated with the original data and feature data to facilitate subsequent query and analysis.
[0053] Figure 2 It is an exemplary flow chart for constructing a knowledge graph according to some embodiments of this specification. A knowledge graph in the field of scaffold construction is constructed based on the ontology, and semantic extraction and entity linking are performed on structured data and unstructured data to form a knowledge graph with construction concepts as nodes and concept relationships as edges; wherein the structured data includes scaffold performance, construction technology and operating specifications; and the unstructured data includes construction logs and construction drawings.
[0054] Different information extraction methods are used for structured data and unstructured data to extract entities and relationships in the field of scaffold construction and organize them into triples. For structured data (such as relational databases, CSV files, etc.), a method based on regular expression matching is used for information extraction. First, a set of regular expression templates are defined based on the schema information of the database table or the column name of the CSV file to match entities and relationships. For example, for the scaffold information table, the following regular expression can be defined: Entity regular expression: (?<bracket_id> \d+), (?<bracket_type> \w+), (? <material>\w+), relational regular expression: (?<bracket_id1> \d+), (?<bracket_id2> \d+), (? <relation>\w+). Then, regular expressions are used to scan the structured data line by line to extract matching entities and relationships. For entities, the extracted fields include bracket number, bracket type, material, etc.; for relationships, the extracted fields include the two associated bracket numbers and the relationship type. Finally, the extracted entity and relationship fields are combined into triples, such as (bracket 1, type, floor-standing type), (bracket 1, material, steel pipe), (bracket 1, connection, bracket 2), etc.
[0055] For unstructured data (such as construction logs, technical documents, etc.), a method based on dependency syntactic analysis is used for semantic extraction. First, the Chinese word segmentation tool (such as Jieba) is used to segment and tag the text, and then the dependency syntactic analysis tool (such as LTP) is used to perform syntactic analysis on the segmentation results to obtain the dependency relationship between words in the sentence. The dependency relationship reflects the semantic structure of the sentence. Common types of dependency relationships include subject-predicate relationship, verb-object relationship, attributive relationship, etc. After obtaining the dependency relationship, the dependency tree is matched and extracted according to the predefined entity and relationship templates. For example, for a sentence such as "bracket A and bracket B are connected by bolts", through dependency syntactic analysis, it can be obtained that there is a "connection" relationship between "bracket A" and "bracket B", and the attribute of the relationship is "bolt". By traversing all nodes in the dependency tree, the entities and relationships in the sentence are identified and converted into triples, such as (bracket A, connection, bracket B), and the attributes of the connection are (connection, method, bolt). For different types of unstructured text, different entity and relationship templates can be defined to improve the accuracy and coverage of extraction. For example, for construction logs, you can focus on elements such as action, time, and location; for technical specifications, you can focus on elements such as bracket type, material, specification, and construction requirements. By flexibly defining extraction templates, you can adapt to different text characteristics and knowledge requirements.
[0056] Finally, the triples extracted from structured data and unstructured data are merged and deduplicated to obtain a preliminary knowledge base in the field of scaffold construction. In order to improve the quality and consistency of the knowledge base, it is also necessary to perform post-processing operations such as entity linking, disambiguation, and reasoning on the triples to form a high-quality knowledge graph. The function of extracting scaffold construction knowledge from heterogeneous data sources is realized. Among them, the method of combining regular expression matching and dependency syntax analysis can make full use of the structured and unstructured characteristics of the data to improve the efficiency and accuracy of knowledge extraction. Organizing the extracted knowledge into triples can facilitate subsequent knowledge storage, query, and reasoning, and provide knowledge support for intelligent decision-making.
[0057] The obtained triples are entity linked and graph constructed to form the basic structure of the scaffold construction knowledge graph. First, the entities in the triples are identified and linked using the pre-trained named entity recognition model and knowledge base linking model. The named entity recognition model uses a BERT-based sequence annotation model, which can effectively capture the semantic features of entity names by pre-training on a large-scale corpus. The entity text in the triple is input into the BERT model, the label probability of each token is calculated through forward propagation, and the Viterbi algorithm is used to obtain the optimal entity label sequence. The named entity recognition model can identify the categories of entities, such as scaffolds, components, materials, equipment, etc.
[0058] Figure 3 This is an exemplary flow chart for constructing a directed acyclic graph according to some embodiments of this specification. The knowledge base link model adopts a distance learning model based on TransE. By performing representation learning on an existing knowledge base, a mapping relationship between entity names and knowledge base entities can be established. The identified entity name is embedded in the entity space of the TransE model, and the distance between the entity vector and the entity vector in the knowledge base is calculated to find the nearest knowledge base entity as the link result. Knowledge base links can achieve entity disambiguation, that is, link entities with different names to the same entity in the knowledge base, thereby determining the unique identifier of the entity. For new entities that cannot be linked to the knowledge base, triples are constructed into a directed acyclic graph. The entities are used as nodes of the graph, and the relationships are used as edges of the graph, with the direction of the edges pointing from the subject entity to the object entity. In this way, the scattered triple knowledge can be organized into a structured graph form to facilitate subsequent reasoning and query.
[0059] A graph neural network is used to perform representation learning and entity alignment on the constructed knowledge graph. The graph neural network can learn the embedding representation of the node by iteratively aggregating the features of the node's neighbors, thereby capturing the semantic information of the node in the graph structure. Specifically, the Graph SAGE algorithm is used to update the node's embedding vector by sampling the node's neighbor nodes and using aggregation functions (such as mean, maximum pooling, etc.). In each aggregation layer, the node's embedding vector is updated using the following formula: Among them, h(k)_v represents the embedding vector of node v in the kth layer, N(v) represents the set of neighbor nodes of node v, AGG represents the aggregation function, W and b represent the learnable parameter matrix and bias term, and σ represents the activation function (such as ReLU). Through multi-layer aggregation, the final embedding representation of the node can be obtained. After obtaining the node embedding vector, the semantic similarity between the nodes is calculated as the basis for entity alignment. Semantic similarity can be measured by cosine similarity and other metrics to measure the proximity of two vectors in the semantic space. Set a similarity threshold (such as 0.9) and merge entity nodes with similarity higher than the threshold and belonging to the same category (such as the bracket category) into the same node to achieve entity alignment. The graph representation learning method is introduced in the knowledge graph, which can fully mine the semantic information of entities and relationships and improve the quality of knowledge representation. At the same time, the similarity-based entity alignment strategy can eliminate the redundancy and ambiguity of entities and improve the consistency and accuracy of the knowledge graph.
[0060] The Graph Isomorphism Network (GIN) is used to perform self-supervised learning on the knowledge graph, and the embedding representation of nodes is learned by generating isomorphic subgraphs. First, multiple isomorphic subgraphs are randomly generated based on the merged directed acyclic graph. An isomorphic subgraph refers to a subgraph with the same number of nodes, edges, and topological structure as the original graph. A node in the original graph can be randomly selected as the central node of the subgraph, and then the subgraph can be expanded by breadth-first search (BFS) until the preset subgraph size is reached.
[0061] Then, embedding representation learning is performed on the original graph and the generated subgraph respectively. GIN is used as a graph isomorphism network. Its core idea is to iteratively aggregate the features of node neighbors and use learnable parameters to adapt to different graph structures. The aggregation function of GIN is defined as: h(k+1)_v=MLP(k)((1+ε(k))·h(k)_v+Σ(u∈N(v))h(k)_u), where h(k)_v represents the embedding vector of node v in the kth layer, N(v) represents the set of neighbor nodes of node v, MLP represents multi-layer perceptron, ε represents learnable parameters, and Σ represents the summation operation. Through multi-layer aggregation, the final embedding representation of the node can be obtained. Compared with other graph neural networks (such as Graph SAGE), GIN has achieved better performance on graph isomorphism test tasks, so it is more suitable for representation learning of knowledge graphs.
[0062] The node embedding representation is optimized by minimizing the reconstruction error between the embedding representation of the original image and the sub-graph. Specifically, the node embedding vector of the original image is used as the input of the encoder, and the node embedding vector of the sub-graph is used as the output of the decoder. The GIN model is trained by minimizing the mean square error (MSE) between the two. The loss function is defined as: L = Σ(i∈V)||h_i-h'_i||^2, where h_i represents the embedding vector of node i in the original image, h'_i represents the embedding vector of the corresponding node i in the sub-graph, and V represents the node set. The parameters of the GIN model are optimized by the back-propagation algorithm so that the embedding representation of the original image and the sub-graph are as close as possible, thereby learning a more robust and generalized node embedding representation. After the optimization is completed, the node embedding representation learned by the GIN model replaces the original representation to obtain the optimized knowledge graph. This self-supervised learning method can make full use of the graph structure information to learn the semantic representation of the node without additional annotation, thereby improving the quality and applicability of the knowledge graph.
[0063] Finally, based on the optimized node embedding representation, the final directed acyclic graph is constructed. The embedding vector of each node is used as the attribute of the node, and the relationship in the relationship triple is used as the attribute of the edge to form a complete knowledge graph structure. In this way, the knowledge graph not only contains the symbolic representation of entities and relationships, but also contains the distributed semantic representation of entities, which can support more intelligent and flexible knowledge reasoning and query.
[0064] The representation learning quality of the knowledge graph is further improved by using graph isomorphic networks and self-supervised learning methods. By generating isomorphic subgraphs to learn node embedding, the semantic information of nodes in local substructures can be captured; by optimizing the embedding representation through reconstruction loss, the embedding vector can have better generalization and robustness; by replacing the original representation with the embedding vector, distributed semantics can be introduced into the knowledge graph to expand its representation and reasoning capabilities. The scaffolding construction knowledge graph finally constructed has both the interpretability of symbolic reasoning and the flexibility of distributed representation, providing strong support for intelligent decision-making and knowledge services.
[0065] Figure 4 This is an exemplary flow chart for obtaining entity vectors and relationship vectors according to some embodiments of this specification. A combination of the translation-based TransE model and the semantic matching-based RESCAL model is used to perform representation learning on the knowledge graph to obtain low-dimensional embedding vectors of entities and relationships. First, the TransE model is used to model the knowledge graph. The TransE model assumes that for each triple (h, r, t), the sum of the head entity vector h and the relationship vector r should be as close as possible to the tail entity vector t. This can be achieved by minimizing the energy function, which is defined as the distance metric between h+r and t. Commonly used distance metrics include L1 norm and L2 norm. The objective function of the TransE model is defined as: L_TransE=Σ(h, r, t)∈S[γ+d(h+r, t)-d(h'+r, t')]+; where S represents the set of triples in the training set, γ represents the interval hyperparameter, d represents the distance metric function, and h' and t' represent the head entity and tail entity in the erroneous triple obtained by negative sampling. By minimizing the objective function of TransE, we can learn the embedded representations of entities and relations, so that in the embedding space, the energy function value of reasonable triplets is small, while the energy function value of incorrect triplets is large, thereby achieving the effect of differentiation.
[0066] In the definition of the objective function of the TransE model, the last + sign represents the concept of the positive part, that is, [x] + = max(0, x). The role of this + sign is to limit the loss function of the TransE model to non-negative values. Specifically, for each training sample (h, r, t), the goal of the TransE model is to minimize the following term: γ + d (h + r, t) - d (h' + r, t'), where γ is a positive interval hyperparameter, d (h + r, t) represents the energy function value of the correct triplet, and d (h' + r, t') represents the energy function value of the wrong triplet obtained by negative sampling. If the value of d (h + r, t) - d (h' + r, t') is already greater than or equal to -γ, then the loss corresponding to this term is 0, and no further optimization is required. This indicates that the model is already able to distinguish between correct and incorrect triplets very well. On the contrary, if the value of d(h+r, t)-d(h'+r, t') is less than -γ, then the loss corresponding to this term is γ+d(h+r, t)-d(h'+r, t'), which needs to be minimized through optimization to make the model better adapt to the training data. Therefore, [γ+d(h+r, t)-d(h'+r, t')]+ represents a positive loss term that penalizes correct and incorrect triplets that are not well distinguished, prompting the model to learn better entity and relationship embedding representations. The design of this loss function can effectively optimize the TransE model and achieve good performance in the representation learning task of knowledge graphs.
[0067] Then, the RESCAL model is used to model the knowledge graph. Unlike TransE, the RESCAL model uses a three-dimensional tensor decomposition method to approximate the adjacency tensor of the original knowledge graph by multiplying the entity embedding matrix and the relationship embedding matrix. Specifically, assuming that the knowledge graph has n entities and m relationships, the dimension of the adjacency tensor is n×n×m. The RESCAL model decomposes the tensor into an n×d entity embedding matrix E and an m×d×d relationship embedding tensor R, where d represents the embedding dimension. In this way, the representation of each triple (h, r, t) in the knowledge graph in the embedding space can be calculated by the following formula: X_hrt=E_h·R_r·E_t^T, where X_hrt represents the reconstructed value of the triple (h, r, t), E_h and E_t represent the embedding vectors of the head entity and the tail entity, respectively, and R_r represents the embedding matrix of the relationship r. The objective function of the RESCAL model is defined as the reconstruction error, that is: L_RESCAL = Σ(h, r, t)∈S[X_hrt-(E_h·R_r·E_t^T)]^2. By minimizing the objective function of RESCAL, the embedded representation of entities and relations can be learned so that the reconstructed knowledge graph is as close to the original knowledge graph as possible.
[0068] The translation error of the TransE model and the reconstruction error of the RESCAL model are weighted and summed as the overall optimization target of the combined model. Assuming the weight of the TransE model is α and the weight of the RESCAL model is β, the overall objective function is defined as: L = α·L_TransE+β·L_RESCAL. By adjusting the values of α and β, the contribution of the two models can be balanced. When optimizing the overall objective function, the stochastic gradient descent algorithm is used to calculate the gradient through back propagation, and update the entity embedding matrix E and the relationship embedding matrix R until convergence.
[0069] Finally, in order to prevent the model from overfitting, the L2 regularization term is added to the overall objective function to constrain the parameters of the entity embedding matrix E and the relationship embedding matrix R. The regularization term is defined as: L_reg = λ·(||E||^2+||R||^2), where λ represents the regularization coefficient and controls the strength of regularization. After adding the regularization term, the overall objective function becomes: L = α·L_TransE+β·L_RESCAL+L_reg. Through steps S431-S434, the two classic knowledge representation learning models TransE and RESCAL are used to embed the knowledge graph from different perspectives. Among them, the TransE model models the semantic relationship between entities and relations through translation operations, while the RESCAL model models the semantic matching between entities and relations through tensor decomposition. Combining the two models can take into account local and global semantic information and improve the quality and robustness of knowledge embedding. At the same time, the introduction of L2 regularization can alleviate the overfitting problem and improve the generalization ability of the model. The final entity and relationship embedding vectors can be used to support various applications of knowledge graphs, such as entity linking, relationship prediction, semantic search, etc.
[0070] Based on the directed acyclic graph constructed earlier and the entity vectors and relationship vectors obtained, the final knowledge graph is constructed and imported into the Neo4j graph database for storage. Neo4j is a native graph database that supports the storage and query of complex graph structure data in the form of property graphs. During the import process, the entity nodes and relationship edges in the directed acyclic graph are mapped to nodes and edges in Neo4j respectively, and the original attribute information of the entities and relationships and the embedded vector information are stored as attributes of the nodes and edges. In this way, the knowledge graph not only contains structured information at the symbolic level, but also contains embedded information at the distributed semantic level, which facilitates subsequent semantic queries and reasoning.
[0071] Figure 5 This is an exemplary flowchart of querying and reasoning using knowledge graphs according to some embodiments of this specification. The constructed knowledge graph of scaffold construction can be applied to multiple scenarios, including semantic query, path reasoning, and subgraph matching. For semantic query, users can enter any query conditions, such as entity name, entity type, relationship type, etc., and match them in the Neo4j graph database through the Cypher query language. Cypher is a declarative query language of Neo4j that supports querying and traversing graph structures in a pattern matching manner. For example, to query all one-hop neighbors of a specific entity node, you can use the following Cypher statement: MATCH (n)-[r]-(m) WHER En.name = 'Entity Name' RETURN n, r, m. This statement finds the node n named ""Entity Name"" by pattern matching, and returns all its one-hop neighbor nodes m and the relationship r connecting them. Using the Cypher language, complex graph pattern matching and path query can be easily performed, giving full play to the structural advantages of the knowledge graph.
[0072] For path reasoning, given two entity nodes, you need to find the shortest connection path between them in the knowledge graph. This can be achieved by using the A search algorithm in the Neo4j graph database. The A algorithm is a heuristic search algorithm that prioritizes the path that is most likely to reach the target by evaluating the estimated distance from the node to the target node. In Neo4j, you can use the path finding functions provided by the APOC library, such as apoc.algo.aStar, to perform A* search. For example, to find the shortest path between two entity nodes, you can use the following Cypher statement:
[0073] MATCH(start: Entity{name:'starting entity'}),(end: Entity{name:'target entity'})CALLapoc.algo.aStar(start, end,'KNOWS','distance',5)YIELDpath RETURNpath, this statement finds the starting entity node and the target entity node through the MATCH clause, and then calls the apoc.algo.aStar function, with the starting node and the target node as parameters, specifying the relationship type as "KNOWS", the weight attribute as "distance", the maximum depth as 5, performing A* search, and returning the shortest path found. Through path reasoning, the implicit relationships and connection patterns between entities can be discovered, and the deep knowledge in the knowledge graph can be mined.
[0074] For subgraph matching reasoning, given a user-specified query subgraph, it is necessary to find similar or isomorphic substructures in the knowledge graph. This can be achieved by using the pattern matching function of the Cypher language in the Neo4j graph database. Users can represent the query subgraph as a Cypher query pattern and then match it in the graph database. For example, to find a subgraph containing a specific entity and relationship type, you can use the following Cypher statement: MATCH (a: Entity)-[r1: KNOWS]->(b: Entity)-[r2: WORKS_AT]->(c: Company) WHERE a.name = 'Entity A' AND b.name = 'Entity B'; RETURN a, r1, b, r2, c; This statement defines a query pattern through the MATCH clause, including nodes a and b of entity type "Entity", edges r1 of relationship type "KNOWS" and edge r2 of relationship type "WORKS_AT", and finally connected to node c of entity type "Company". The WHERE clause specifies the specific entity names of a and b, constraining the query pattern. The query result returns the matched subgraph structure. Using subgraph matching reasoning, specific patterns and structures can be discovered in the knowledge graph, supporting complex semantic query and analysis. In summary, by storing the constructed knowledge graph in the Neo4j graph database and using the query and analysis capabilities of the graph database, a variety of application scenarios can be realized, such as semantic query, path reasoning, and subgraph matching. These application scenarios make full use of the structured representation and semantic relevance of the knowledge graph, providing strong support for intelligent decision-making and knowledge services. At the same time, because Neo4j supports flexible graph modes and efficient graph algorithms, it can easily expand and optimize the application of knowledge graphs to meet the requirements of different fields and needs.
[0075] The alarm information generated by the monitoring system is used as input, and the previously constructed knowledge graph of support construction is used to perform semantic reasoning on the alarm information. Combined with the preset business rules, the corresponding operation instructions are automatically generated, and the operation instructions are sent to the construction personnel in real time through the message middleware to guide them to handle on-site. Specifically, when the monitoring system captures an abnormal event or an indicator that exceeds the threshold, the corresponding alarm information will be triggered. These alarm information usually contains multiple attributes such as the type, severity, occurrence time, and associated equipment of the event. The alarm information is input into the knowledge graph reasoning engine in a structured form (such as JSON format) as the starting point of reasoning. The knowledge graph reasoning engine is based on the graph database Neo4j, and uses the Cypher query language and graph algorithm to perform semantic expansion and association analysis on the alarm information. First, according to the key attributes in the alarm information, such as equipment ID, alarm type, etc., the corresponding entity node is found in the knowledge graph. Then, with the entity node as the center, the graph traversal algorithm (such as depth-first search and breadth-first search) is used to explore its associated entities and relationships and mine implicit semantic information. For example, based on the device node, you can find the system, location, responsible person, etc.; based on the alarm type, you can find possible causes, impacts, disposal plans, etc. Through the semantic association of the knowledge graph, the alarm information is integrated and expanded with the domain knowledge.
[0076] After obtaining the expanded alarm information, the inference engine matches and infers it with the preset business rules. Business rules are a series of IF-THEN rules developed based on expert experience and industry standards, which are used to determine the severity and priority of the alarm and generate corresponding operation instructions. For example, the following rules can be set: IF alarm type = 'structural deformation' AND deformation degree > 10mm THEN operation instruction = 'immediately stop construction and conduct on-site verification'; IF alarm type = 'equipment failure' AND impact range = 'local' THEN operation instruction = 'dispatch maintenance personnel to troubleshoot and repair'; The inference engine uses rule engine technologies such as the Rete algorithm to pattern match the expanded alarm information with business rules, and triggers corresponding operation instructions based on the matching results. Operation instructions usually contain specific instructions to construction personnel, such as stopping work, inspection, maintenance, reporting, etc.
[0077] Finally, the generated operation instructions are sent to the construction personnel through the message middleware. Kafka is used as the message middleware here, and its high throughput, low latency and reliability are used to achieve real-time distribution of operation instructions. The specific steps are as follows: The inference engine encapsulates the operation instructions into a standard message format (such as JSON format) and specifies the identifier of the target construction personnel (such as ID, role, etc.). The inference engine sends the message to the specified Topic of Kafka. Topics can be divided according to construction projects, instruction types, etc. for easy management and subscription. The mobile terminal devices of the construction personnel (such as mobile phones and tablets) act as consumers of Kafka, subscribe to relevant Topics, and receive operation instruction messages in real time. The mobile terminal device parses the received message, extracts the content of the operation instruction, and presents it to the construction personnel in a friendly way (such as push notifications and voice broadcasts). According to the content of the operation instruction, the construction personnel take corresponding on-site disposal measures, such as suspension, inspection, maintenance, reporting, etc., and feedback the disposal results to the system.
[0078] Through the Kafka message middleware, the automatic flow of operation instructions from the reasoning engine to the construction personnel is realized, which improves the efficiency and reliability of instruction transmission and ensures the timely response and handling of on-site problems. The semantic reasoning ability of the knowledge graph and the message distribution ability of Kafka are fully utilized to realize the automatic generation and distribution of alarm information to operation instructions. This intelligent instruction generation method combines domain knowledge, business rules and real-time data, which can effectively guide construction personnel to conduct on-site management and control, and improve construction safety and efficiency. At the same time, the reasoning engine and mobile terminal are decoupled through the message middleware, which improves the flexibility and scalability of the system.< / relation> < / material>
Claims
1. A digital-based construction management method, comprising: S1, collecting the force and deformation data of the bracket through the strain gauge and accelerometer sensors installed on the bracket; The collected data is transmitted to the edge gateway via the wireless network, processed by the edge gateway, and uploaded to the cloud database; S2, the cloud database adopts a distributed architecture, stores historical data in a historical database based on Hadoop, stores real-time data in a real-time database based on HBase, and establishes a timestamp index; performs ETL processing on the data in the cloud database to generate structured feature data; wherein the structured feature data includes the stress characteristics and deformation characteristics of the bracket; S3, based on the generated structured feature data, a prediction model for predicting whether the stent status meets the preset conditions is constructed using the LSTM algorithm; S4, builds a knowledge graph in the field of scaffold construction based on the ontology, performs semantic extraction and entity linking processing on structured data and unstructured data, and forms a knowledge graph with construction concepts as nodes and concept relationships as edges; among them, structured data includes scaffold performance, construction technology and operating specifications; unstructured data includes construction logs and construction drawings; S5, extracting features from the collected stent data to obtain a feature vector; using the constructed prediction model to predict the feature vector, and generating an alarm message when the prediction result indicates that the stent state is abnormal; S6, taking the alarm information as input, uses the constructed knowledge graph to infer the alarm information, combines it with the preset business rules, generates operation instructions, and sends the operation instructions to the construction personnel through the message middleware.
2. The digital construction management method according to claim 1, characterized in that: S4, builds a knowledge graph, including: S41, for structured data, regular expression matching method is used to extract information, extract entities and relations; for unstructured data, dependency syntax is used to extract semantics, extract entities and relations; the extracted entities and relations are organized into triples; S42, for the entities in the obtained triples, a pre-trained named entity recognition model and a knowledge base linking model are used to perform entity linking and construct a directed acyclic graph; S43, embed the constructed directed acyclic graph into a low-dimensional semantic space, and adopt a combined model of the translation-based knowledge representation learning model TransE and the semantic matching-based knowledge representation learning model RESCAL to obtain entity vectors and relationship vectors; S44, construct a knowledge graph based on the entity nodes and relationship edges of the constructed directed acyclic graph, and the entity vectors and relationship vectors obtained in step S43, and import it into the Neo4j graph database for storage; in the graph database, the entity nodes and relationship edges contain the original attribute information and embedded vector information respectively.
3. The digital construction management method according to claim 2 is characterized in that: S42, construct a directed acyclic graph, including: S421, using a pre-trained named entity recognition model, performing named entity recognition on the entities in the triples obtained in step S41 to identify the categories of the entities; using a pre-trained knowledge base linking model, linking the identified entities to a predefined knowledge base to perform entity disambiguation, and treating entities linked to the same knowledge base as the same category; S422, for the entities that cannot be linked to the knowledge base in step S421, construct the triples obtained in step S41 into a directed acyclic graph, with the entities as nodes and the relationships as edges, and the direction of the edges is from the subject entity to the object entity; S423, embedding representation learning is performed on the nodes in the constructed directed acyclic graph through a graph neural network to obtain an embedding vector of each entity node; the semantic similarity between the embedding vectors of the entity nodes is calculated, and a similarity threshold is set; entity nodes whose semantic similarity is higher than the threshold and are identified as the same category in step S421 are merged into the same node to obtain a merged directed acyclic graph; S424, randomly generating multiple isomorphic subgraphs according to the merged directed acyclic graph obtained in step S423; using a graph isomorphism network to perform embedding representation learning on the subgraphs and the merged directed acyclic graph obtained in step S423, respectively, to obtain an embedding vector for each node; S425, optimizing the node embedding representation obtained in step S424 by minimizing the reconstruction error between the subgraph embedding and the embedding of the merged directed acyclic graph obtained in step S423; replacing the original node embedding representation in the merged directed acyclic graph obtained in step S423 with the optimized node embedding representation; S426, constructing a final directed acyclic graph based on the node embedding representation optimized in step S425.
4. The digital construction management method according to claim 3 is characterized in that: In step S423, the Graph SAGE algorithm is used to perform node embedding representation learning through a graph neural network; In step S424, a Graph Isomorphism Network is used as a graph isomorphism network to perform embedding representation learning.
5. The digital construction management method according to claim 3 is characterized in that: S43, obtaining entity vectors and relationship vectors, including: S431, using the TransE model, optimizing the representation of entities and relations in the directed acyclic graph constructed in step S42 in the embedding space by minimizing the energy function, so that for each triple (h, r, t), the sum of the head entity embedding vector h and the relationship embedding vector r is minimized from the difference between the tail entity embedding vector t, and obtaining the translation error of the model; wherein the energy function is defined as the L1 or L2 distance between h+r and t; S432, using the RESCAL model, optimizing the representation of entities and relationships in the directed acyclic graph constructed in step S42 in the embedding space by minimizing the reconstruction error, so that the error between the reconstructed knowledge graph and the adjacency matrix of the directed acyclic graph constructed in step S42 is minimized, and the reconstruction error is obtained; wherein the reconstruction operation is defined as a three-dimensional tensor decomposition; S433, taking a weighted sum of the translation error in step S431 and the reconstruction error in step S432 as the overall optimization target of the combined model; optimizing and solving the overall objective function using a stochastic gradient descent algorithm, updating the entity embedding matrix and the relationship embedding matrix, and obtaining an optimized entity embedding vector and a relationship embedding vector as the acquired entity vector and relationship vector; S434, using L2 regularization term to constrain the entity embedding vector and relationship embedding vector optimized in step S433 to prevent the model from overfitting.
6. The digital construction management method according to any one of claims 2 to 5, characterized in that: Also includes: For any query condition input by the user, a match is performed in the knowledge graph stored in step S44 using the Cypher query language to perform a semantic query on the knowledge graph; For two entities given by the user, the path reasoning of the knowledge graph is performed by searching the shortest path between the entity nodes in the knowledge graph stored in step S44; For a subgraph given by the user, subgraph matching reasoning of the knowledge graph is performed by matching similar substructures in the knowledge graph stored in step S44.
7. The digital construction management method according to claim 6, characterized in that: For two given entities, the shortest path between entity nodes is searched in the graph database using the A* search algorithm.
8. The digital construction management method according to claim 7, characterized in that: In step S1, the collected data is transmitted to the edge gateway via the MQTT protocol.
9. The digital construction management method according to claim 8, characterized in that: In step S2, Spark Streaming is used to perform streaming ETL processing on the data in the real-time database.
10. The digital construction management method according to claim 9, characterized in that: In step S6, Kafka is used as the message middleware to send the operation instructions to the construction personnel.
Citation Information
Patent Citations
Fault diagnosis method and device based on knowledge graph and computing equipment
CN115619383A
Digital back-end service platform construction method based on design circuit
CN118075267A
Abnormity diagnosis method and device for hydraulic support
CN118350469A
Relation-enhancement knowledge graph embedding method and system
US20230297553A1
Cited By
Vertical field large model training method and system based on building laws and regulations
CN120633797A
A building regulation-based vertical field large model training method and system
CN120633797B
Network space defense method and device, equipment, storage medium and program product
CN120692050A
Data query analysis method based on natural language
CN121070951A
Natural language based data query analysis method
CN121070951B
