Device information management method, device and electronic equipment

By encoding industrial equipment information and building a knowledge graph, the problem of low equipment information management efficiency is solved, digital representation and structured processing of information are realized, and management efficiency and information integrity are improved.

CN118428612BActive Publication Date: 2024-10-29江苏中天互联科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410898940.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-29
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively manage industrial equipment information, resulting in information blockage and low management efficiency. It cannot ensure efficient management of industrial equipment information and users' comprehensive understanding of the production environment.

Method used

By obtaining attribute data and point cloud data of industrial equipment for coding, the equipment code is determined, a knowledge graph is constructed based on the industrial Internet identification and industrial chain location, and a generative model is trained to manage equipment information.

Benefits of technology

It realizes digital representation and structured processing of device information, improves the efficiency and integrity of information management, and improves the accuracy of correlation between multiple device information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118428612B_ABST
    Figure CN118428612B_ABST
Patent Text Reader

Abstract

The present application proposes a method, device and electronic device for equipment information management, the method for equipment information management includes: obtaining equipment information of industrial equipment, wherein the equipment information includes attribute data and point cloud data; encoding the equipment information to obtain the equipment code corresponding to the industrial equipment; determining the upstream and downstream positions of the industrial equipment in the industrial chain according to the pre-stored first industrial Internet identifier; determining the correlation between any two industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; determining the attribute code as a node, determining the correlation as the edge weight between any two of the nodes, and constructing a knowledge graph according to the nodes and edge weights; training a generative model based on the knowledge graph to obtain an equipment information management model; inputting equipment information management requirements into the equipment information management model to manage the equipment information in the knowledge graph. The present application relates to the field of intelligent manufacturing technology and can improve the efficiency of equipment information management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent manufacturing technology, and in particular to a device information management method, apparatus and electronic equipment. Background Art

[0002] At present, with the rapid development of industrial production and Internet of Things applications, the number of electronic devices has increased rapidly, and device information management faces huge challenges. In the Internet of Things system, due to the diversity of data sources and the large amount of data, a large amount of data has poor accessibility and information occlusion. In order to effectively manage the data, the device data is usually organized in a coded manner and presented in a graphical or tabular manner. However, this method cannot form a complete mapping of virtual data to the physical world, cannot ensure that the information of industrial equipment is efficiently managed, and cannot ensure that users can fully understand the industrial equipment in the entire production environment. Summary of the invention

[0003] In view of the above, it is necessary to propose a device information management method, apparatus and electronic device to solve the technical problem of low management efficiency of device information.

[0004] The present application provides a device information management method, which is applied to electronic devices, and the method includes: obtaining device information of industrial equipment, wherein the device information includes attribute data and point cloud data of the industrial equipment; encoding the device information to obtain a device code corresponding to the industrial equipment; determining the upstream and downstream positions of the industrial equipment in the industrial chain according to a pre-stored first industrial Internet identifier; determining the correlation between any two of the industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; determining the device code as a node, determining the correlation as the edge weight between any two of the nodes, and constructing a knowledge graph according to the nodes and the edge weights; training a generative model based on the knowledge graph to obtain a device information management model; inputting the device information management requirements obtained in real time into the device information management model to manage the device information in the knowledge graph.

[0005] In some embodiments, encoding the device information to obtain the device code corresponding to the industrial equipment includes: encoding the attribute data to obtain a first code; encoding the point cloud data to obtain a second code; and determining the device code corresponding to the industrial equipment based on the first code and the second code.

[0006] In some embodiments, determining the upstream and downstream positions of the industrial equipment in the industrial chain based on a pre-stored first industrial Internet identifier includes: determining a data storage address corresponding to the first industrial Internet identifier; sending a pre-stored data query request to the data storage address; and determining that the received data corresponding to the data query request is the upstream and downstream position of the industrial equipment in the industrial chain.

[0007] In some embodiments, the determining the correlation between any two industrial devices according to the attribute data and the upstream and downstream positions of the industrial devices in the industrial chain includes: determining the first similarity between the first codes of any two industrial devices, wherein the higher the first similarity, the higher the correlation; encoding the upstream and downstream positions of the industrial devices in the industrial chain to obtain the third codes of any two industrial devices; determining the second similarity of the third codes of any two industrial devices, wherein the lower the second similarity, the higher the correlation; determining the difference between the upstream and downstream positions of any two industrial devices in the industrial chain, wherein the greater the difference, the lower the correlation; determining the correlation between any two industrial devices based on the first similarity, the second similarity and the difference of any two industrial devices, including: Wherein, R represents the correlation between any two of the industrial devices; A represents the first similarity; B represents the second similarity; and C represents the difference.

[0008] In some embodiments, determining the second similarity of the third codes of any two of the industrial devices includes: determining the cosine similarity of the second codes of any two of the industrial devices as the first similarity.

[0009] In some embodiments, the training of the generative model based on the knowledge graph to obtain the device information management model includes: determining prompt data based on the device information and a pre-stored prompt template; inputting the prompt data into a pre-built initial generation model; obtaining a predicted knowledge graph corresponding to the device information; determining a loss value of the initial generation model based on the predicted knowledge graph and the knowledge graph; when the loss value is greater than a preset termination threshold, updating the predicted generation model based on a back-propagation algorithm until the loss value is less than or equal to the termination threshold, thereby obtaining a knowledge graph generation model trained to a convergence state.

[0010] In some embodiments, the predictive knowledge graph includes a predictive code corresponding to each of the industrial devices and a predictive correlation between any two of the industrial devices, and determining the loss value of the initial generation model based on the predictive knowledge graph and the knowledge graph includes: determining the node similarity between any node in the knowledge graph and any node in the predictive knowledge graph based on the predictive code and the device code; determining the edge weight similarity between any node in the knowledge graph and any node in the predictive knowledge graph based on the predictive correlation and the correlation; determining a first graph embedding vector of the predictive knowledge graph, and determining a second graph embedding vector of the knowledge graph; determining the confidence of the loss value based on the first graph embedding vector and the second graph embedding vector; determining the loss value based on the confidence, the node similarity and the edge weight similarity.

[0011] In some embodiments, determining the loss value according to the confidence, the node similarity and the edge weight similarity comprises:

[0012] Wherein, Loss represents the loss value of the initial generation model; P represents the confidence; n represents the number of nodes in the knowledge graph; i represents the index of the node in the knowledge graph; m represents the number of nodes in the predicted knowledge graph; j represents the index of the node in the predicted knowledge graph; D ij represents the node similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph; E ij Represents the edge weight similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph.

[0013] An embodiment of the present application also provides an equipment information management device, which includes: an acquisition module, used to acquire equipment information of industrial equipment, wherein the equipment information includes attribute data and point cloud data of the industrial equipment; an encoding module, used to encode the equipment information to obtain the equipment code corresponding to the industrial equipment; a determination module, used to determine the upstream and downstream positions of the industrial equipment in the industrial chain according to a pre-stored first industrial Internet identifier; the determination module is used to determine the correlation between any two of the industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; the determination module is also used to determine the equipment code as a node, determine the correlation as the edge weight between any two of the nodes, and construct a knowledge graph according to the nodes and the edge weights; a training module, used to train a generative model based on the knowledge graph to obtain a equipment information management model; the determination module is also used to input the equipment information management requirements acquired in real time into the equipment information management model to manage the equipment information in the knowledge graph.

[0014] An embodiment of the present application further provides an electronic device, comprising: a memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the device information management method.

[0015] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the device information management method.

[0016] It can be seen from the above technical solutions that the embodiment of the present application can digitally characterize the industrial equipment and improve the efficiency of managing equipment information by encoding the equipment information of the industrial equipment to obtain the corresponding equipment code. The upstream and downstream positions of the industrial equipment in the industrial chain are determined according to the first industrial Internet identifier, and then the correlation between the industrial equipment is determined according to the attribute data and the upstream and downstream positions of the industrial equipment, and a knowledge graph is constructed according to the equipment code and the correlation, so that the equipment information containing the upstream and downstream information can be structured, and the equipment information can be managed using the knowledge graph as structured data, thereby improving the integrity of the equipment information and the accuracy of the degree of correlation between multiple equipment information. Finally, a generative model is trained based on the knowledge graph to obtain a device information management model, and the real-time acquired equipment information management requirements are input into the device information management model to manage the equipment information in the knowledge graph, thereby improving the efficiency of equipment information management. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an application scenario diagram of a device information management method provided in one embodiment of the present application.

[0018] Figure 2 This is a flow chart of a device information management method provided in one embodiment of the present application.

[0019] Figure 3 It is a functional module diagram of a device information management apparatus provided in one embodiment of the present application.

[0020] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.

[0022] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0024] The embodiment of the present application provides a device information management method, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable gate array (Field-Programmable Gate Array, FPGA), a digital processor (Digital Signal Processor, DSP), an embedded device, etc.

[0025] An electronic device can be any electronic product that can interact with a customer, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0026] The electronic device may also include a network device and / or a client device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0027] The network where the electronic device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0028] like Figure 1 As shown, a device information management method provided by the present application can be applied to an electronic device 100, and the electronic device 100 is connected to a server 200 for communication. The electronic device 100 is used to obtain device information of industrial equipment from the server 200, wherein the device information includes attribute data and point cloud data of the industrial equipment; encode the device information to obtain the device code corresponding to the industrial equipment; determine the upstream and downstream positions of the industrial equipment in the industrial chain according to the pre-stored first industrial Internet identifier; determine the correlation between any two industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; determine the device code as a node, determine the correlation as the edge weight between any two nodes, and construct a knowledge graph according to the node and the edge weight; train a generative model based on the knowledge graph to obtain a device information management model; input the device information management requirements obtained in real time into the device information management model to manage the device information in the knowledge graph.

[0029] like Figure 2 , is a flow chart of a device information management method provided in an embodiment of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. A device information management method provided in an embodiment of the present application includes the following steps.

[0030] S20, acquiring equipment information of the industrial equipment, wherein the equipment information includes attribute data and point cloud data of the industrial equipment.

[0031] In one embodiment of the present application, industrial equipment can be any equipment used for production and manufacturing in the industrial chain. For example, industrial equipment can be a generator, a printing press, an injection molding equipment, etc. The present application does not limit the specific type of industrial equipment. Among them, the attribute data of industrial equipment is used to characterize the status of industrial equipment when it is running or shut down; point cloud data is used to characterize the structure and shape of industrial equipment. Exemplarily, the attribute data can be noise data, vibration data or voltage data when the industrial equipment is running, which is not limited in the present application.

[0032] S21, encoding the device information to obtain a device code corresponding to the industrial device.

[0033] In one embodiment of the present application, encoding the device information to obtain the device code corresponding to the industrial device includes: encoding the attribute data to obtain a first code; encoding the point cloud data to obtain a second code; determining the device code corresponding to the industrial device based on the first code and the second code. Among them, the attribute data and the point cloud data can be encoded using a pre-trained twin network model to obtain a first code and a second code; the attribute data and the point cloud data can also be encoded using a pre-trained autoencoder model to obtain a first code and a second code; the attribute data and the point cloud data can also be encoded using a One-Hot encoding algorithm to obtain a first code and a second code. This application does not limit the method of encoding attribute data and point cloud data.

[0034] S22, determining the upstream and downstream positions of the industrial equipment in the industrial chain based on the pre-stored first industrial Internet identifier.

[0035] In one embodiment of the present application, determining the upstream and downstream positions of the industrial equipment in the industrial chain based on a pre-stored first industrial Internet identifier includes: determining a data storage address corresponding to the first industrial Internet identifier; sending a pre-stored data query request to the data storage address; and determining that the received data corresponding to the data query request is the upstream and downstream position of the industrial equipment in the industrial chain.

[0036] In one embodiment of the present application, the position of industrial equipment in the industrial chain can generally be divided into upstream, midstream and downstream. Among them, the upstream can be the production link of industrial raw materials and parts, including industries that provide basic materials, parts and components for industrial equipment, such as steel, engines, hydraulic systems, bearings, chassis, etc. These parts and materials are the basis of industrial equipment manufacturing, and their quality and supply stability directly affect the production of midstream industrial equipment. The industrial equipment located upstream provides key raw materials and parts for midstream industrial equipment, so the production quality of the industrial equipment located upstream has a greater impact on the performance and competitiveness of the midstream equipment. The industrial equipment located in the midstream uses the raw materials and parts provided by the upstream industrial equipment to design, manufacture and assemble industrial equipment. The industrial equipment located in the midstream may include various machinery, machine tools (i.e., industrial mother machines), automation equipment, robots, etc. The importance of industrial equipment located in the midstream is relatively high in the industrial chain, which is used to convert the raw materials and parts of the upstream into industrial equipment with practical functions, and provide the necessary production tools for the downstream industrial equipment. The industrial equipment located downstream uses the industrial equipment produced in the midstream to produce and provide services. For example, the industrial equipment located downstream can be a variety of equipment in multiple fields such as traditional mechanical equipment, automotive equipment, power equipment, ship equipment, aerospace equipment, etc.

[0037] S23, determining the correlation between any two of the industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain.

[0038] In one embodiment of the present application, the determining the correlation between any two industrial devices according to the attribute data and the upstream and downstream positions of the industrial devices in the industrial chain includes: determining the first similarity between the first codes of any two industrial devices, wherein the higher the first similarity, the higher the correlation; encoding the upstream and downstream positions of the industrial equipment in the industrial chain to obtain the third codes of any two industrial devices; determining the second similarity of the third codes of any two industrial devices, wherein the lower the second similarity, the higher the correlation; determining the difference between the upstream and downstream positions of any two industrial devices in the industrial chain, wherein the greater the difference, the lower the correlation; determining the correlation between any two industrial devices based on the first similarity, the second similarity and the difference of any two industrial devices, including: Wherein, R represents the correlation between any two of the industrial devices; A represents the first similarity; B represents the second similarity; and C represents the difference.

[0039] In one embodiment of the present application, the difference between the upstream and downstream positions of any two industrial equipment in the industrial chain can be determined based on the capacity correlation between the capacity data of any two industrial equipment, wherein the higher the capacity correlation, the lower the difference; the difference between the upstream and downstream positions of any two industrial equipment in the industrial chain can also be determined based on the yield correlation between the yield data of any two industrial equipment, wherein the higher the yield correlation, the lower the difference. The present application does not limit the specific method for determining the difference between the upstream and downstream positions of any two industrial equipment in the industrial chain.

[0040] In an embodiment of the present application, determining the first similarity between the second codes of any two of the industrial devices includes: determining the cosine similarity of the second codes of any two of the industrial devices as the first similarity.

[0041] S24, determining that the device code is a node, determining the correlation is an edge weight between any two of the nodes, and constructing a knowledge graph based on the nodes and the edge weights.

[0042] In one embodiment of the present application, in order to efficiently manage the device information of industrial equipment, the device code can be determined as a node, and the correlation between any two industrial equipment can be determined as the edge weight between any two nodes, and a knowledge graph can be constructed based on the nodes and edge weights. In this way, the device code of the industrial equipment and the correlation between the industrial equipment can be converted into a structured knowledge graph, and the device information can be managed by querying or updating the data in the knowledge graph, thereby improving the efficiency of device information management.

[0043] S25, training a generative model based on the knowledge graph to obtain a device information management model.

[0044] In one embodiment of the present application, during the process of device information management, the electronic device usually receives a device information management requirement sent by the user. The device information management requirement may be voice data or text data containing natural language information. In order to improve the efficiency of device information management, a device information management model may be trained based on a knowledge graph, and the device information management model may be used to process the device information management requirements sent by the user, thereby improving the efficiency of device information management. The training of the generative model based on the knowledge graph to obtain the device information management model includes determining prompt data based on the device information and a pre-stored prompt template; inputting the prompt data into a pre-built initial generation model; obtaining a predicted knowledge graph corresponding to the device information; determining a loss value of the initial generation model based on the predicted knowledge graph and the knowledge graph; when the loss value is greater than a preset termination threshold, updating the predicted generation model based on a back propagation algorithm until the loss value is less than or equal to the termination threshold, thereby obtaining a knowledge graph generation model trained to a convergence state. The prompt template is used to generalize the device information to obtain prompt data that conforms to the natural language grammar, thereby improving the generalization ability of the device information management model, thereby improving the efficiency of device information management.

[0045] Exemplarily, the prompt template may be pre-written text data, and the content of the prompt template includes: "Background prompt: You are an assistant capable of generating a knowledge graph; Task prompt: Please generate a knowledge graph based on the following node data and edge weight data; Node data:; Edge weight data:.". When the node data includes node 1, node 2, and node 3, and the edge weight data includes that the edge weight between node 1 and node 2 is 0.5, the edge weight between node 2 and node 3 is 0.6, and the edge weight between node 1 and node 3 is 0.7, the prompt data may be "Background prompt: You are an assistant capable of generating a knowledge graph; Task prompt: Please generate a knowledge graph based on the following node data and edge weight data; Node data: node 1, node 2, and node 3; Edge weight data: the edge weight between node 1 and node 2 is 0.5, the edge weight between node 2 and node 3 is 0.6, and the edge weight between node 1 and node 3 is 0.7.".

[0046] In one embodiment of the present application, the predicted knowledge graph includes the predicted code corresponding to each of the industrial equipment and the predicted correlation between any two of the industrial equipment, and the loss value of the initial generation model determined according to the predicted knowledge graph and the knowledge graph includes: determining the node similarity between any node in the knowledge graph and any node in the predicted knowledge graph according to the predicted code and the device code; determining the edge weight similarity between any node in the knowledge graph and any node in the predicted knowledge graph according to the predicted correlation and the correlation; determining the first graph embedding vector of the predicted knowledge graph and determining the second graph embedding vector of the knowledge graph; determining the confidence of the loss value according to the first graph embedding vector and the second graph embedding vector; determining the loss value according to the confidence, the node similarity and the edge weight similarity. Among them, the node similarity can be the cosine similarity between the predicted code and the device code, the inverse of the Euclidean distance between the predicted code and the device code, or the inverse of the Hamming distance between the predicted code and the device code, and the present application does not limit this. The edge weight similarity may be the inverse of the difference between the predicted correlation and the correlation.

[0047] In an embodiment of the present application, determining the loss value according to the confidence, the node similarity and the edge weight similarity includes: Wherein, Loss represents the loss value of the initial generation model; P represents the confidence; n represents the number of nodes in the knowledge graph; i represents the index of the node in the knowledge graph; m represents the number of nodes in the predicted knowledge graph; j represents the index of the node in the predicted knowledge graph; D ij represents the node similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph; E ij Represents the edge weight similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph.

[0048] In one embodiment of the present application, the cosine similarity between the first image embedding vector and the second image embedding vector can be determined as the confidence of the loss value; the similarity between the first image embedding vector and the second image embedding vector can also be determined as the confidence of the loss value using a pre-trained autoencoder; the inverse of the Hamming distance between the first image embedding vector and the second image embedding vector can also be determined as the confidence of the loss value. The present application does not limit the specific method of determining the confidence of the loss value based on the first image embedding vector and the second image embedding vector.

[0049] S26, inputting the device information management requirements acquired in real time into the device information management model to manage the device information in the knowledge graph.

[0050] In one embodiment of the present application, in order to improve the efficiency of managing device information in the knowledge graph, the device information management requirements acquired in real time can be input into the device information management model to manage the device information in the knowledge graph. Exemplarily, the device information management requirements can be to update the device information of industrial equipment corresponding to any one or more nodes in the knowledge graph; the device information management requirements can also be to delete any one or more nodes in the knowledge graph; the device information management requirements can also be to update the edge weights of any two nodes in the knowledge graph. This application does not limit the specific content of the device information management requirements.

[0051] It can be seen from the above technical solutions that the embodiment of the present application can digitally characterize the industrial equipment and improve the efficiency of managing equipment information by encoding the equipment information of the industrial equipment to obtain the corresponding equipment code. The upstream and downstream positions of the industrial equipment in the industrial chain are determined according to the first industrial Internet identifier, and then the correlation between the industrial equipment is determined according to the attribute data and the upstream and downstream positions of the industrial equipment, and a knowledge graph is constructed according to the equipment code and the correlation, so that the equipment information containing the upstream and downstream information can be structured, and the equipment information can be managed using the knowledge graph as structured data, thereby improving the integrity of the equipment information and the accuracy of the degree of correlation between multiple equipment information. Finally, a generative model is trained based on the knowledge graph to obtain a device information management model, and the real-time acquired equipment information management requirements are input into the device information management model to manage the equipment information in the knowledge graph, thereby improving the efficiency of equipment information management.

[0052] See also Figure 3 , Figure 3 1 is a functional module diagram of a device information management device provided in an embodiment of the present application. A device information management device 31 includes an acquisition module 310, an encoding module 311 and a determination module 312. The module / unit referred to in the present application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0053] The acquisition module 310 is used to acquire device information of industrial equipment, wherein the device information includes attribute data and point cloud data of the industrial equipment.

[0054] The encoding module 311 is used to encode the device information to obtain the device code corresponding to the industrial device.

[0055] The determination module 312 is used to determine the upstream and downstream positions of the industrial equipment in the industrial chain based on the pre-stored first industrial Internet identifier.

[0056] The determination module 312 is further configured to determine the correlation between any two of the industrial devices according to the attribute data and the upstream and downstream positions of the industrial devices in the industrial chain.

[0057] The determination module 312 is further used to determine that the device code is a node, determine the correlation as the edge weight between any two of the nodes, and construct a knowledge graph based on the nodes and the edge weights.

[0058] The training module 313 is used to train a generative model based on the knowledge graph to obtain a device information management model.

[0059] The determination module 312 is also used to input the device information management requirements acquired in real time into the device information management model to manage the device information in the knowledge graph.

[0060] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement a device information management method described in any of the above embodiments.

[0061] In an embodiment of the present application, the electronic device 100 further includes a bus, a computer program stored in the memory 12 and executable on the processor 13, such as a device information management program.

[0062] Figure 4 Only the electronic device 100 having the memory 12 and the processor 13 is shown, and those skilled in the art can understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 100 , and the electronic device 100 may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.

[0063] Combination Figure 2, the memory 12 in the electronic device 100 stores multiple computer-readable instructions to implement a device information management method, and the processor 13 can execute the multiple instructions to achieve: obtaining device information of industrial equipment, wherein the device information includes attribute data and point cloud data of the industrial equipment; encoding the device information to obtain the device code corresponding to the industrial equipment; determining the upstream and downstream positions of the industrial equipment in the industrial chain according to the pre-stored first industrial Internet identifier; determining the correlation between any two of the industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; determining the device code as a node, determining the correlation as the edge weight between any two of the nodes, and constructing a knowledge graph according to the nodes and the edge weights; training a generative model based on the knowledge graph to obtain a device information management model; inputting the real-time acquired device information management requirements into the device information management model to manage the device information in the knowledge graph.

[0064] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0065] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. The electronic device 100 may be a bus-type structure or a star-type structure. The electronic device 100 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 100 may also include input and output devices, network access devices, etc.

[0066] It should be noted that the electronic device 100 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0067] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 100, such as a mobile hard disk of the electronic device 100. In other embodiments, the memory 12 can also be an external storage device of the electronic device 100, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 100. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 100, such as a code of a device information management program, etc., but also can be used to temporarily store data that has been output or is to be output.

[0068] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 100, and uses various interfaces and lines to connect various components of the entire electronic device 100, and executes or executes programs or modules stored in the memory 12 (for example, executes a device information management program, etc.), and calls data stored in the memory 12 to execute various functions of the electronic device 100 and process data.

[0069] The processor 13 executes the operating system of the electronic device 100 and various installed applications. The processor 13 executes the applications to implement the steps in each of the above-mentioned device information management method embodiments, for example Figure 2 Steps shown.

[0070] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into an acquisition module 310, an encoding module 311, a determination module 312, and a training module 313.

[0071] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of a device information management method described in each embodiment of the present application.

[0072] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0073] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.

[0074] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0075] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Figure 4 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0076] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement a device information management method described in any of the above embodiments.

[0077] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0078] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0079] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0080] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A device information management method, applied to electronic equipment, characterized in that: The method comprises: Acquire device information of industrial equipment, wherein the device information includes attribute data and point cloud data of the industrial equipment; Encoding the device information to obtain a device code corresponding to the industrial device; Determine the upstream and downstream positions of the industrial equipment in the industrial chain according to the pre-stored first industrial Internet identifier; Determine the correlation between any two of the industrial equipment according to the attribute data and the upstream and downstream positions of the industrial equipment in the industrial chain; Determine that the device code is a node, determine that the correlation is an edge weight between any two of the nodes, and construct a knowledge graph according to the nodes and the edge weights; Training a generative model based on the knowledge graph to obtain a device information management model; Input the device information management requirements acquired in real time into the device information management model to manage the device information in the knowledge graph.

2. The device information management method according to claim 1, characterized in that: The encoding of the device information to obtain the device code corresponding to the industrial device includes: Encoding the attribute data to obtain a first code; Encoding the point cloud data to obtain a second code; A device code corresponding to the industrial device is determined based on the first code and the second code.

3. The device information management method according to claim 1, characterized in that: Determining the upstream and downstream positions of the industrial equipment in the industrial chain according to the pre-stored first industrial Internet identifier includes: Determine the data storage address corresponding to the first industrial Internet identifier; Sending a pre-stored data query request to the data storage address; It is determined that the received data corresponding to the data query request is the upstream and downstream position of the industrial equipment in the industrial chain.

4. The device information management method according to claim 2, characterized in that: Determining the correlation between any two industrial devices according to the attribute data and the upstream and downstream positions of the industrial devices in the industrial chain includes: Determine a first similarity between the first codes of any two of the industrial devices, wherein the higher the first similarity, the higher the correlation; Encoding the upstream and downstream positions of the industrial equipment in the industrial chain to obtain a third code for any two of the industrial equipment; Determine a second similarity of the third codes of any two of the industrial devices, wherein the lower the second similarity, the higher the correlation; Determine the difference between any two upstream and downstream positions of the industrial equipment in the industrial chain, wherein the greater the difference, the lower the correlation; Determining the correlation between any two industrial devices based on the first similarity, the second similarity, and the difference between any two industrial devices includes: Wherein, R represents the correlation between any two of the industrial devices; A represents the first similarity; B represents the second similarity; and C represents the difference.

5. The device information management method according to claim 4, characterized in that: The determining the second similarity of the third codes of any two of the industrial devices includes: determining the cosine similarity of the second codes of any two of the industrial devices as the first similarity.

6. The device information management method according to claim 1, characterized in that: The device information management model obtained by training the generative model based on the knowledge graph includes: Determining prompt data according to the device information and a pre-stored prompt template; Inputting the prompt data into a pre-built initial generation model; Obtaining a prediction knowledge graph corresponding to the device information; Determining a loss value of the initial generation model according to the predicted knowledge graph and the knowledge graph; When the loss value is greater than a preset termination threshold, the prediction generation model is updated based on the back propagation algorithm until the loss value is less than or equal to the termination threshold, thereby obtaining a knowledge graph generation model trained to a convergence state.

7. The device information management method according to claim 6, characterized in that: The prediction knowledge graph includes a prediction code corresponding to each of the industrial devices and a prediction correlation between any two of the industrial devices. The loss value of the initial generation model is determined based on the prediction knowledge graph and the knowledge graph, including: Determine the node similarity between any node in the knowledge graph and any node in the predicted knowledge graph according to the predicted code and the device code; Determine the edge weight similarity between any node in the knowledge graph and any node in the predicted knowledge graph according to the predicted correlation and the correlation; Determine a first graph embedding vector of the predicted knowledge graph, and determine a second graph embedding vector of the knowledge graph; Determining a confidence level of the loss value based on the first graph embedding vector and the second graph embedding vector; A loss value is determined according to the confidence, the node similarity and the edge weight similarity.

8. The device information management method according to claim 7, characterized in that: The determining of the loss value according to the confidence, the node similarity and the edge weight similarity comprises: Wherein, Loss represents the loss value of the initial generation model; P represents the confidence; n represents the number of nodes in the knowledge graph; i represents the index of the node in the knowledge graph; m represents the number of nodes in the predicted knowledge graph; j represents the index of the node in the predicted knowledge graph; D ij represents the node similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph; E ij Represents the edge weight similarity between the device code of the i-th node in the knowledge graph and the j-th node in the predicted knowledge graph.

9. A device information management device, characterized in that: The apparatus comprises a module for implementing the device information management method according to any one of claims 1 to 8, and the apparatus comprises: An acquisition module, used to acquire device information of industrial equipment, wherein the device information includes attribute data and point cloud data of the industrial equipment; An encoding module, used to encode the device information to obtain a device code corresponding to the industrial device; A determination module, used to determine the upstream and downstream positions of the industrial equipment in the industrial chain according to a pre-stored first industrial Internet identifier; The determination module is used to determine the correlation between any two of the industrial devices according to the attribute data and the upstream and downstream positions of the industrial devices in the industrial chain; The determination module is further used to determine that the device code is a node, determine that the correlation is an edge weight between any two of the nodes, and construct a knowledge graph based on the nodes and the edge weights; A training module, used for training a generative model based on the knowledge graph to obtain a device information management model; The determination module is also used to input the device information management requirements acquired in real time into the device information management model to manage the device information in the knowledge graph.

10. An electronic device, characterized in that: The electronic device comprises a processor and a memory, and the processor is configured to implement the device information management method according to any one of claims 1 to 8 when executing a computer program stored in the memory.

Citation Information

Patent Citations

  • Industrial Internet of Things identification method based on knowledge graph

    CN110674310A

  • Knowledge graph construction method for power grid main equipment

    CN112612902A