Supply chain tracing method and device based on invoice data, electronic equipment, storage medium and computer program product
Through the supply chain traceability method based on invoice data, a knowledge graph is constructed and traced using declarative pattern matching language is solved, and the problem that traditional traceability systems are difficult to describe the relationship between correlation data is realized, and effective traceability and management of the supply chain is achieved.
Patent Information
- Application Number
- CN202411793471.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-28
AI Technical Summary
Traditional traceability systems are difficult to effectively describe the relationship between entities in related data, and cannot dig out the value behind traceability data. Especially in supply chain supervision, supplier transaction traceability needs to be deeply explored.
Through the supply chain traceability method based on invoice data, invoice data is collected for product annotation and enterprise annotation, nodes and relationship networks are established, knowledge graphs are built, and transaction search and traceability of suspicious products is used in declarative pattern matching language.
It realizes effective traceability of the supply chain, can be used for supplier management on the supply chain, optimize supply chain efficiency, and monitor and evaluate supply chain security.
Smart Images

Figure CN119722315A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of traceability technology, and in particular, to a supply chain traceability method, device, electronic device, storage medium, and computer program product based on invoice data. Background Art
[0002] Traditional traceability systems are developed based on relational databases and cannot well describe the relationships between entities in relational data, let alone dig out the value behind traceability data. From the perspective of supply chain supervision, the need for supplier transaction traceability requires in-depth digging of the relationships between transactions between enterprises, and the transaction relationship data based on invoice data is huge in scale and the relationships are more complex.
[0003] Therefore, how to achieve supply chain traceability based on invoice data has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the embodiments of the present application provide a supply chain traceability method, device, electronic device, storage medium and computer program product based on invoice data, which traces the supply chain based on invoice data and can be used for supplier management in the supply chain and optimize supply chain efficiency.
[0005] According to a first aspect of an embodiment of the present application, a supply chain traceability method based on invoice data is provided, the method comprising: performing product labeling and enterprise labeling according to collected invoice data to obtain product labeling results and enterprise labeling results in the invoice data; establishing nodes for the product labeling results, and establishing a relationship network according to transaction associations of the enterprise labeling results, and establishing a knowledge graph according to the nodes and the relationship network; based on the knowledge graph, searching and tracing transactions of suspicious products through an input declarative pattern matching language.
[0006] In some embodiments of the present application, the product labeling and enterprise labeling are performed based on the collected invoice data to obtain the product labeling results and enterprise labeling results in the invoice data, which also includes: investigating industry knowledge and acquiring the basic structure of the product, establishing a product system and levels in the product system, and the product system and levels in the product system are used to label the products.
[0007] In some embodiments of the present application, the product labeling and enterprise labeling are performed based on the collected invoice data to obtain the product labeling results and enterprise labeling results in the invoice data, including: obtaining the product corresponding to the invoice based on the collected invoice data, and determining the product labeling results corresponding to the product based on the product system and the hierarchy in the product system; obtaining the enterprise type corresponding to the invoice and the transaction relationship between enterprises as the enterprise labeling results based on the collected invoice data.
[0008] In some embodiments of the present application, the product labeling and enterprise labeling are performed based on the collected invoice data to obtain the product labeling results and enterprise labeling results in the invoice data, and also includes: preprocessing the invoice data to identify the products and enterprises corresponding to the invoice data.
[0009] In some embodiments of the present application, the steps of establishing nodes based on the product labeling results, establishing a relationship network based on the transaction associations of the enterprise labeling results, and establishing a knowledge graph based on the nodes and the relationship network also include: model verification and evaluation of the functional requirements and performance requirements of the knowledge graph.
[0010] In some embodiments of the present application, based on the knowledge graph, transactions of suspicious goods are retrieved and traced through an input declarative pattern matching language. Specifically, based on the knowledge graph, product labels, corporate roles, and trade relationships of suspicious goods are analyzed and discovered through an input declarative pattern matching language.
[0011] According to a second aspect of an embodiment of the present application, a supply chain traceability device based on invoice data is provided, the device comprising: a knowledge processing module, used to perform product labeling and enterprise labeling according to the collected invoice data, and obtain the product labeling results and enterprise labeling results in the invoice data; a graph establishment module, used to establish nodes for the product labeling results, and establish a relationship network according to the transaction associations of the enterprise labeling results, and establish a knowledge graph according to the nodes and the relationship network; a transaction tracing module, used to retrieve and trace transactions of suspicious products according to the knowledge graph through an input declarative pattern matching language.
[0012] According to a third aspect of the embodiments of the present application, an electronic device is provided, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the method described in the first aspect above.
[0013] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in the first aspect above is implemented.
[0014] According to a fifth aspect of an embodiment of the present application, a computer program product is provided, which is tangibly stored on a computer-readable medium and includes computer-executable instructions, which, when executed, enable at least one processor to perform the method described in the first aspect above.
[0015] Based on the above technical solution, the embodiment of the present application is a supply chain traceability solution based on invoice data, which performs commodity labeling and enterprise labeling according to the collected invoice data to obtain the commodity labeling results and enterprise labeling results in the invoice data. The embodiment of the present application establishes nodes for the commodity labeling results, and establishes a relationship network based on the transaction association of the enterprise labeling results, and establishes a knowledge graph based on the nodes and the relationship network, so that according to the knowledge graph, the transaction of suspicious goods is retrieved and traced through the input declarative pattern matching language. The embodiment of the present application uses graph database technology to store association data as a knowledge graph composed of nodes and relationship networks (edges), and performs data mining on this basis, which can be used for monitoring and evaluation of supply chain security, and can be used for supplier management on the supply chain to optimize supply chain efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 This is a flow chart of a supply chain tracing method based on invoice data provided by an embodiment of the present application;
[0018] Figure 2 is a flow chart of a supply chain tracing method based on invoice data provided by another embodiment of the present application;
[0019] Figure 3 is a flowchart of step S1 of a supply chain tracing method based on invoice data provided in yet another embodiment of the present application;
[0020] Figure 4 It is a schematic diagram of the structure of a supply chain tracing device based on invoice data provided by an embodiment of the present application;
[0021] Figure 5 It is a schematic diagram of the structure of an electronic device used in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0023] Reference is made to the accompanying drawings in the following detailed description, which form a part of the detailed description and illustrate exemplary embodiments. In addition, it is to be understood that other embodiments may be utilized and structural and / or logical changes may be made without departing from the scope of the claimed subject matter. It should also be noted that directions and references (e.g., up, down, top, bottom, etc.) may be used merely to facilitate the description of features in the accompanying drawings. Therefore, the following detailed description is not to be understood in a limiting sense, and the scope of the claimed subject matter is limited only by the appended claims and their equivalents.
[0024] In the following description, numerous details are set forth. However, it will be apparent to those skilled in the art that the embodiments herein can be practiced without these specific details. In some cases, known methods and devices are shown in block diagram form, rather than in detail, to avoid blurring the embodiments herein. References to "embodiment" or "one embodiment" or "some embodiments" throughout this specification mean that the specific features, structures, functions or characteristics described in conjunction with the embodiment are included in at least one embodiment herein. Therefore, the phrases "in an embodiment" or "in one embodiment" or "some embodiments" appearing throughout this specification do not necessarily refer to the same embodiment. In addition, in one or more embodiments, specific features, structures, functions or characteristics may be combined in any suitable manner. For example, the first embodiment may be combined with the second embodiment in any case where the specific features, structures, functions or characteristics associated with the two embodiments are not mutually exclusive.
[0025] As used in the description and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0026] The terms "coupled" and "connected" together with their derivatives may be used in this article to describe the functional or structural relationship between components. It should be understood that these terms are not intended to be synonymous with each other. On the contrary, in a particular embodiment, "connected" can be used to indicate that two or more elements are in direct physical, optical or electrical contact with each other. "Coupled" can be used to indicate that two or more elements are in direct or indirect (with other intermediate elements between them) physical or electrical contact with each other, and / or that two or more elements cooperate or interact with each other (e.g., as in a cause-and-effect relationship).
[0027] As used herein, the terms "above," "below," "between," and "on" refer to the relative position of one component or material with respect to other components or materials where such physical relationship is noteworthy. For example, in the context of materials, a material or materials disposed above or below another material may be in direct contact, or may have one or more intervening materials. Also, a material disposed between two materials or materials may be in direct contact with both layers, or may have one or more intervening layers. In contrast, a first material or material "above" a second material or material is in direct contact with the second material / materials. Similar distinctions are made in the context of component assembly.
[0028] As used throughout the description herein and in the claims, a list of items connected by the term "at least one of" or "one or more of" may mean any combination of the listed items. For example, the phrase "at least one of A, B, or C" may mean A; B; C; A and B; A and C; B and C; or A, B, and C.
[0029] The term "circuit" or "module" may refer to one or more passive and / or active components that are arranged to cooperate with each other to provide a desired functionality. The term "signal" may refer to at least one current signal, voltage signal, or magnetic signal. The terms "substantially," "close," "approximately," "close to," and "approximately" generally refer to within + / - 10% of a target value.
[0030] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0031] Supply Chain Traceability Method Based on Invoice Data
[0032] The embodiment of the present application provides a supply chain tracing method based on invoice data. The supply chain tracing method based on invoice data is described in detail through multiple embodiments below.
[0033] See also Figure 1 , the method comprising:
[0034] Step S1: perform product labeling and enterprise labeling according to the collected invoice data, and obtain the product labeling results and enterprise labeling results in the invoice data.
[0035] Specifically, since invoice transaction data reflects the actual transaction behavior and transaction relationship of an enterprise, the embodiment of the present application is based on invoice data to ensure the authenticity of supply chain traceability.
[0036] In some specific implementations of the embodiments of this application, see Figure 2 , the method further includes before step S1:
[0037] Step S0: Research industry knowledge and obtain commodity infrastructure, establish a commodity system and the hierarchy within the commodity system, and the commodity system and the hierarchy within the commodity system are used to label commodities.
[0038] Specifically, we conduct research on industry knowledge and obtain the basic structure of products, establish product systems and the levels in the product system. For example, in the generator product system, the second level includes bearings, housings, rotors, and stators.
[0039] The purpose of product labeling is to determine the product system and level in the system based on the product name, and give a label. The product system is based on the product BOM (Bill of Materials) table as the benchmark standard. For example, the product with the name of "*General Equipment* Self-Aligning Ball Bearing" on the face value belongs to the generator product system in the product BOM table, and the second-level bearing, according to the model.
[0040] Step S2: Establish nodes based on the product labeling results, establish a relationship network based on the transaction association of the enterprise labeling results, and establish a knowledge graph based on the nodes and relationship network.
[0041] Specifically, knowledge graph is a modern theory that achieves the purpose of multidisciplinary integration by combining the theories and methods of applied mathematics, graphics, information visualization technology, information science and other disciplines with metrological citation analysis, co-occurrence analysis and other methods, and using visual graphs to vividly display the core structure, development history, frontier fields and overall knowledge architecture of the discipline.
[0042] Among them, knowledge graph modeling includes ontology modeling and relationship modeling. Ontology modeling is to establish nodes based on product labeling results, and relationship modeling is to establish a relationship network based on the transaction association of enterprise labeling results, and establish a knowledge graph based on nodes and relationship networks.
[0043] Step S3: Based on the knowledge graph, the transaction of suspicious goods is searched and traced through the input declarative pattern matching language.
[0044] The role of association search is to retrieve and trace the transactions of suspicious goods through the association relationship of the knowledge graph by inputting CQL (declarative pattern matching language) statements, which can support traceability and monitoring of multi-level transaction chains between enterprises and suppliers.
[0045] The embodiment of the present application uses graph database technology to store relational data as a knowledge graph consisting of nodes and relationship networks (edges), and performs data mining on this basis. It can be used for monitoring and evaluating supply chain security, and can be used for supplier management in the supply chain to optimize supply chain efficiency.
[0046] In some specific implementations of the embodiments of this application, see Figure 3 , step S1, comprising:
[0047] Step S11: According to the collected invoice data, the commodity corresponding to the invoice is obtained, and the commodity labeling result corresponding to the commodity is determined according to the commodity system and the hierarchy in the commodity system.
[0048] Step S12: Based on the collected invoice data, the enterprise type corresponding to the invoice and the transaction association between enterprises are obtained as the enterprise labeling result.
[0049] Specifically, the embodiment of the present application obtains the commodity corresponding to the invoice based on the collected invoice data, for example, by text recognition, and then obtains the commodity labeling result corresponding to the commodity determined by the level in the commodity system based on the commodity BOM (Bill of Materials) table as a benchmark standard.
[0050] Specifically, the embodiment of the present application obtains the enterprise type corresponding to the invoice based on the collected invoice data, for example, obtains the seller information through text recognition, and based on the seller's query, such as business scope, obtains the enterprise type corresponding to the invoice and the transaction relationship between enterprises as the enterprise labeling result.
[0051] The embodiment of the present application obtains the commodity corresponding to the invoice, the enterprise type corresponding to the invoice, and the transaction relationship between the enterprises, respectively, so as to make full use of the invoice data that can reflect the real transaction behavior and transaction relationship of the enterprise, and further accurately trace the supply chain.
[0052] In some specific implementations of the embodiments of the present application, step S1 further includes:
[0053] Step S10: Pre-process the invoice data to identify the goods and enterprises corresponding to the invoice data.
[0054] The embodiment of the present application reduces the workload of invoice data annotation by preprocessing the invoice data, and can obtain invoice annotation results more effectively and accurately. For example, since the invoice format is unified and fixed, identifying the goods and enterprises corresponding to the invoice can be achieved through a text recognition OCR algorithm.
[0055] In some specific implementations of the embodiments of the present application, step S2 further includes:
[0056] Perform model verification and evaluation of functional and performance requirements for knowledge graphs.
[0057] The embodiment of the present application performs model verification and evaluation of the functional requirements and performance requirements of the knowledge graph, which can continuously optimize the knowledge graph to obtain a knowledge graph that more accurately reflects the invoice information, thereby ensuring the authenticity and accuracy of the supply chain traceability.
[0058] In some specific implementations of the embodiments of the present application, step S3 is specifically:
[0059] Based on the knowledge graph, the product labels, corporate roles, and trade associations of suspicious products are analyzed and discovered through the input declarative pattern matching language.
[0060] The embodiment of the present application provides a label that can be used for subsequent knowledge graph modeling and tracking, and can be used as a label to limit search conditions. It is the basis for graph modeling and transaction tracing. Transaction tracing is the analysis and discovery of product labels, corporate roles, and trade associations, which plays a role in listing risk chains and providing final conclusions.
[0061] Supply chain traceability device based on invoice data
[0062] Figure 4 is a schematic diagram of a supply chain tracing device based on invoice data provided by an embodiment of the present application, such as Figure 3 As shown, the supply chain tracing device 400 based on invoice data may include:
[0063] The knowledge processing module 401 is used to perform commodity labeling and enterprise labeling according to the collected invoice data, and obtain commodity labeling results and enterprise labeling results in the invoice data;
[0064] A graph building module 402 is used to build nodes from the product annotation results, build a relationship network based on the transaction association of the enterprise annotation results, and build a knowledge graph based on the nodes and the relationship network;
[0065] The transaction tracing module 403 is used to search and trace the transactions of suspicious commodities according to the knowledge graph through the input declarative pattern matching language.
[0066] Based on the above technical solution, the embodiment of the present application uses graph database technology to store the correlation data as a knowledge graph composed of nodes and relationship networks (edges), and performs data mining on this basis. It can be used for monitoring and evaluating supply chain security, and can be used for supplier management in the supply chain to optimize supply chain efficiency.
[0067] Electronic devices
[0068] Figure 5 This is a schematic block diagram of an electronic device provided in an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device. Figure 5 As shown, the electronic device 500 may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508. Among them:
[0069] The processor 502 , the communication interface 504 , and the memory 506 communicate with each other via a communication bus 508 .
[0070] The communication interface 504 is used to communicate with other electronic devices or servers.
[0071] The processor 502 is used to execute the program 510, and specifically can execute the relevant steps in any of the aforementioned tax management method embodiments.
[0072] Specifically, the program 510 may include program codes, which include computer operation instructions.
[0073] The processor 502 may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0074] The memory 506 is used to store the program 510. The memory 506 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0075] The program 510 may be specifically used to enable the processor 502 to execute the method in any of the aforementioned embodiments.
[0076] The specific implementation of each step in program 510 can refer to the corresponding description of the corresponding steps and units in any of the above method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above method embodiments, which will not be repeated here.
[0077] Storage Media
[0078] In this embodiment, a computer-readable storage medium is provided, which stores instructions for causing a machine to execute the communication control method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.
[0079] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.
[0080] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0081] It should be noted that the above method embodiment is implemented based on the aforementioned method embodiment. The specific content and beneficial effects can be found in the description of the aforementioned method embodiment, which will not be repeated here.
[0082] In the description of this application, the terms "first" and "second" are only used to facilitate the description of different components or names, and cannot be understood as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features.
[0083] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0084] It should be noted that although the specific embodiments of the present application are described in detail in conjunction with the accompanying drawings, this should not be construed as limiting the scope of protection of the present application. Within the scope described in the claims, various modifications and variations that can be made by those skilled in the art without creative work still fall within the scope of protection of the present application.
[0085] The examples of the embodiments of the present application are intended to concisely illustrate the technical features of the embodiments of the present application so that those skilled in the art can intuitively understand the technical features of the embodiments of the present application, and are not intended to be improper limitations of the embodiments of the present application.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A supply chain tracing method based on invoice data, characterized in that: The method comprises: Perform commodity labeling and enterprise labeling according to the collected invoice data, and obtain commodity labeling results and enterprise labeling results in the invoice data; Establishing nodes based on the product labeling results, establishing a relationship network based on the transaction association of the enterprise labeling results, and establishing a knowledge graph based on the nodes and the relationship network; According to the knowledge graph, the transaction of suspicious goods is retrieved and traced through the input declarative pattern matching language.
2. The method according to claim 1, characterized in that The step of performing product labeling and enterprise labeling according to the collected invoice data to obtain product labeling results and enterprise labeling results in the invoice data further includes: Research industry knowledge and acquire commodity infrastructure, establish a commodity system and hierarchies within the commodity system, and use the commodity system and hierarchies within the commodity system to label commodities.
3. The method according to claim 2, characterized in that The step of performing product labeling and enterprise labeling according to the collected invoice data to obtain product labeling results and enterprise labeling results in the invoice data includes: According to the collected invoice data, the commodity corresponding to the invoice is obtained, and the commodity labeling result corresponding to the commodity is determined according to the commodity system and the hierarchy in the commodity system; According to the collected invoice data, the enterprise type corresponding to the invoice and the transaction relationship between enterprises are obtained as the enterprise labeling result.
4. The method according to claim 3, characterized in that: The step of performing product labeling and enterprise labeling according to the collected invoice data to obtain product labeling results and enterprise labeling results in the invoice data further includes: The invoice data is pre-processed to identify the commodity and enterprise corresponding to the invoice data.
5. The method according to claim 1, characterized in that The step of establishing nodes based on the product labeling results, establishing a relationship network based on the transaction association of the enterprise labeling results, and establishing a knowledge graph based on the nodes and the relationship network also includes: Perform model verification and evaluation on the functional and performance requirements of the knowledge graph.
6. The method according to claim 1, characterized in that The process of searching and tracing the transaction of suspicious goods based on the knowledge graph by using the input declarative pattern matching language is as follows: According to the knowledge graph, the product labels, corporate roles, and trade associations of suspicious products are analyzed and discovered through an input declarative pattern matching language.
7. A supply chain tracing device based on invoice data, characterized in that: The device comprises: A knowledge processing module, used to perform commodity labeling and enterprise labeling according to the collected invoice data, and obtain commodity labeling results and enterprise labeling results in the invoice data; A graph establishment module, used to establish nodes based on the product annotation results, establish a relationship network based on the transaction association of the enterprise annotation results, and establish a knowledge graph based on the nodes and the relationship network; The transaction tracing module is used to retrieve and trace the transactions of suspicious commodities according to the knowledge graph through the input declarative pattern matching language.
8. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute an operation corresponding to the method as described in any one of claims 1-6.
9. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product tangibly stored on a computer readable medium and comprising computer executable instructions which, when executed, cause at least one processor to perform the method according to any one of claims 1-6.