CN108876213B - Block chain-based product management method, device, medium and electronic equipment - Google Patents

Block chain-based product management method, device, medium and electronic equipment Download PDF

Info

Publication number
CN108876213B
CN108876213B CN201810959472.8A CN201810959472A CN108876213B CN 108876213 B CN108876213 B CN 108876213B CN 201810959472 A CN201810959472 A CN 201810959472A CN 108876213 B CN108876213 B CN 108876213B
Authority
CN
China
Prior art keywords
supply chain
product supply
chain information
product
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810959472.8A
Other languages
Chinese (zh)
Other versions
CN108876213A (en
Inventor
李夫路
常谦
李忠伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201810959472.8A priority Critical patent/CN108876213B/en
Publication of CN108876213A publication Critical patent/CN108876213A/en
Application granted granted Critical
Publication of CN108876213B publication Critical patent/CN108876213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/067Enterprise or organisation modelling

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a product management method, a device, a medium and electronic equipment based on a block chain, wherein the product management method based on the block chain comprises the following steps: storing a plurality of product-supply-chain information over a blockchain network; determining attribute information of various types of products based on a plurality of product supply chain information stored in the blockchain network; and if detecting that new product supply chain information is input into the block chain network, determining whether the new product supply chain information is abnormal or not according to the attribute information of each type of product and the new product supply chain information. The technical scheme of the embodiment of the invention avoids the problems of information omission, recording error, illegal data tampering and the like of the product supply chain information caused by manual recording of the product supply chain information, can effectively improve the analysis efficiency of the product supply chain information, saves the labor cost, and promotes the effective popularization of the block chain technology in the product supply chain information management scheme.

Description

基于区块链的产品管理方法、装置、介质及电子设备Blockchain-based product management method, device, medium and electronic equipment

技术领域technical field

本发明涉及区块链技术领域,具体而言,涉及一种基于区块链的产品管理方法、装置、介质及电子设备。The present invention relates to the technical field of blockchain, in particular, to a product management method, device, medium and electronic device based on blockchain.

背景技术Background technique

目前,对于产品供应链信息的管理主要是通过人工记录及分析或中心化的系统录入及分析的方式进行的,人工记录与分析这种方式不仅效率较低,而且会占用较多的人力成本。中心化的系统录入及分析,虽然提高了效率,但是供应链信息的可追溯性、安全性缺失,因此不可避免的会出现信息遗漏、记录错误、数据遭到非法篡改、无法准确识别供应链来源等问题。At present, the management of product supply chain information is mainly carried out through manual recording and analysis or centralized system entry and analysis. Manual recording and analysis is not only inefficient, but also takes up a lot of labor costs. Although the centralized system entry and analysis improves efficiency, the traceability and security of supply chain information are lacking, so information omission, recording errors, illegal data tampering, and inability to accurately identify supply chain sources are inevitable. And other issues.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本发明的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancing understanding of the background of the invention, and therefore may contain information that does not form the prior art known to a person of ordinary skill in the art.

发明内容SUMMARY OF THE INVENTION

本发明实施例的目的在于提供一种基于区块链的产品管理方法、装置、介质及电子设备,进而至少在一定程度上克服产品供应链信息管理困难,以及容易出现信息遗漏、记录错误、数据遭到非法篡改等问题。The purpose of the embodiments of the present invention is to provide a blockchain-based product management method, device, medium and electronic device, thereby at least to a certain extent overcoming the difficulty of product supply chain information management, and the easy occurrence of information omission, recording error, data Illegal tampering, etc.

本发明的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本发明的实践而习得。Other features and advantages of the present invention will become apparent from the following detailed description, or be learned in part by practice of the present invention.

根据本发明实施例的第一方面,提供了一种基于区块链的产品管理方法,包括:通过区块链网络存储多个产品供应链信息;基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息;若检测到所述区块链网络中录入了新的产品供应链信息,则根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常。According to a first aspect of the embodiments of the present invention, a blockchain-based product management method is provided, including: storing a plurality of product supply chain information through a blockchain network; Product supply chain information to determine the attribute information of various products; if it is detected that new product supply chain information has been entered in the blockchain network, the attribute information of the various products and the new product supply chain information, and determine whether the new product supply chain information is abnormal.

在本发明的一些实施例中,基于前述方案,基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息,包括:基于所述区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征;根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,以确定所述各类产品的属性信息。In some embodiments of the present invention, based on the foregoing solution, and based on a plurality of product supply chain information stored in the blockchain network, determining the attribute information of various products includes: based on the information stored in the blockchain network. A plurality of product supply chain information, the attribute features of each product supply chain information are extracted; the machine learning model is trained according to the attribute features of the respective product supply chain information to determine the attribute information of the various products.

在本发明的一些实施例中,基于前述方案,根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,包括:对所述各个产品供应链信息的属性特征进行加权处理,以得到所述各个产品供应链信息的属性特征对应的训练样本;通过所述训练样本对所述机器学习模型进行训练。In some embodiments of the present invention, based on the foregoing solution, training the machine learning model according to the attribute features of the respective product supply chain information includes: weighting the attribute features of the respective product supply chain information to obtain The training samples corresponding to the attribute features of each product supply chain information; the machine learning model is trained through the training samples.

在本发明的一些实施例中,基于前述方案,所述机器学习模型包括聚类模型,所述各类产品的属性信息包括所述各类产品的聚类中心。In some embodiments of the present invention, based on the foregoing solution, the machine learning model includes a clustering model, and the attribute information of the various types of products includes cluster centers of the various types of products.

在本发明的一些实施例中,基于前述方案,根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常,包括:提取所述新的产品供应链信息的属性特征;将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离;根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。In some embodiments of the present invention, based on the foregoing solution, according to the attribute information of the various types of products and the new product supply chain information, determining whether the new product supply chain information is abnormal includes: extracting the attribute features of the new product supply chain information; input the attribute features of the new product supply chain information into the trained clustering model to determine the target product type corresponding to the new product supply chain information, and the target distance between the attribute feature of the new product supply chain information and the cluster center of the target product type; according to the target product type and the target distance, determine whether the new product supply chain information is There is an exception.

在本发明的一些实施例中,基于前述方案,根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常,包括:若所述新的产品供应链信息所标识的产品类型与所述目标产品类型相同,且所述目标距离小于或等于距离阈值,则确定所述新的产品供应链信息不存在异常。In some embodiments of the present invention, based on the foregoing solution, according to the target product type and the target distance, determining whether the new product supply chain information is abnormal, including: if the new product supply chain information contains If the identified product type is the same as the target product type, and the target distance is less than or equal to the distance threshold, it is determined that there is no abnormality in the new product supply chain information.

在本发明的一些实施例中,基于前述方案,所述的基于区块链的产品管理方法,还包括:若确定所述新的产品供应链信息不存在异常,则通过所述新的产品供应链信息对确定的所述各类产品的属性信息进行调整。In some embodiments of the present invention, based on the foregoing solution, the blockchain-based product management method further includes: if it is determined that there is no abnormality in the new product supply chain information, passing the new product supply chain The chain information adjusts the determined attribute information of the various types of products.

根据本发明实施例的第二方面,提供了一种基于区块链的产品管理装置,包括:存储单元,用于通过区块链网络存储多个产品供应链信息;确定单元,用于基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息;处理单元,用于在检测到所述区块链网络中录入了新的产品供应链信息时,根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常。According to a second aspect of the embodiments of the present invention, a blockchain-based product management device is provided, including: a storage unit for storing a plurality of product supply chain information through a blockchain network; a determination unit for The multiple product supply chain information stored in the blockchain network is used to determine the attribute information of various products; the processing unit is used to detect new product supply chain information entered in the blockchain network, The attribute information of the various products and the new product supply chain information are used to determine whether the new product supply chain information is abnormal.

在本发明的一些实施例中,基于前述方案,所述确定单元包括:特征提取单元,用于基于所述区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征;训练单元,用于根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,以确定所述各类产品的属性信息。In some embodiments of the present invention, based on the foregoing solution, the determining unit includes: a feature extraction unit, configured to extract attributes of each product supply chain information based on a plurality of product supply chain information stored in the blockchain network feature; a training unit, configured to train the machine learning model according to the attribute features of the supply chain information of each product, so as to determine the attribute information of the various types of products.

在本发明的一些实施例中,基于前述方案,所述训练单元配置为:对所述各个产品供应链信息的属性特征进行加权处理,以得到所述各个产品供应链信息的属性特征对应的训练样本;通过所述训练样本对所述机器学习模型进行训练。In some embodiments of the present invention, based on the foregoing solution, the training unit is configured to: perform weighting processing on the attribute features of the respective product supply chain information, so as to obtain training corresponding to the attribute features of the respective product supply chain information sample; train the machine learning model through the training sample.

在本发明的一些实施例中,基于前述方案,所述机器学习模型包括聚类模型,所述各类产品的属性信息包括所述各类产品的聚类中心。In some embodiments of the present invention, based on the foregoing solution, the machine learning model includes a clustering model, and the attribute information of the various types of products includes cluster centers of the various types of products.

在本发明的一些实施例中,基于前述方案,所述处理单元配置为:提取所述新的产品供应链信息的属性特征;将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离;根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。In some embodiments of the present invention, based on the foregoing solution, the processing unit is configured to: extract the attribute features of the new product supply chain information; input the attribute features of the new product supply chain information into the trained In the clustering model, the target product type corresponding to the new product supply chain information is determined, and the target distance between the attribute feature of the new product supply chain information and the cluster center of the target product type ; According to the target product type and the target distance, determine whether the new product supply chain information is abnormal.

在本发明的一些实施例中,基于前述方案,所述处理单元配置为:若所述新的产品供应链信息所标识的产品类型与所述目标产品类型相同,且所述目标距离小于或等于距离阈值,则确定所述新的产品供应链信息不存在异常。In some embodiments of the present invention, based on the foregoing solution, the processing unit is configured to: if the product type identified by the new product supply chain information is the same as the target product type, and the target distance is less than or equal to If the distance threshold is set, it is determined that there is no abnormality in the new product supply chain information.

在本发明的一些实施例中,基于前述方案,所述的基于区块链的产品管理装置,还包括:调整单元,用于在确定所述新的产品供应链信息不存在异常时,通过所述新的产品供应链信息对确定的所述各类产品的属性信息进行调整。In some embodiments of the present invention, based on the foregoing solution, the blockchain-based product management device further includes: an adjustment unit configured to, when it is determined that the new product supply chain information is not abnormal, The new product supply chain information is used to adjust the determined attribute information of the various types of products.

根据本发明实施例的第三方面,提供了一种计算机可读介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述实施例中第一方面所述的基于区块链的产品管理方法。According to a third aspect of the embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the blockchain-based method described in the first aspect of the above embodiments product management approach.

根据本发明实施例的第四方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中第一方面所述的基于区块链的产品管理方法。According to a fourth aspect of the embodiments of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one When executed by the one or more processors, the one or more processors are caused to implement the blockchain-based product management method described in the first aspect of the above embodiment.

本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

在本发明的一些实施例所提供的技术方案中,通过由区块链网络存储多个产品供应链信息,使得能够通过区块链网络来保证产品供应链信息不被篡改,并且能够实现产品供应链信息的可追溯性,避免了通过人工记录或中心化系统管理产品供应链信息而造成产品供应链信息出现信息遗漏、记录错误、数据遭到非法篡改等问题。而通过基于区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息,并根据各类产品的属性信息和新的产品供应链信息来确定新的产品供应链信息是否存在异常,使得能够基于区块链网络存储的可靠数据实现对新的产品供应链信息的分析,有效提高了对产品供应链信息的分析效率,节省了人力成本,促进了区块链技术在产品供应链信息管理方案的有效推广。In the technical solutions provided by some embodiments of the present invention, by storing a plurality of product supply chain information in the blockchain network, it is possible to ensure that the product supply chain information is not tampered with through the blockchain network, and the product supply can be realized. The traceability of chain information avoids problems such as information omission, recording errors, and illegal data tampering in product supply chain information caused by manual recording or centralized system management of product supply chain information. Based on multiple product supply chain information stored in the blockchain network, the attribute information of various products is determined, and whether new product supply chain information exists according to the attribute information of various products and new product supply chain information. Anomaly, which enables the analysis of new product supply chain information based on the reliable data stored in the blockchain network, effectively improves the analysis efficiency of product supply chain information, saves labor costs, and promotes blockchain technology in product supply. Effective promotion of chain information management solutions.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention. Obviously, the drawings in the following description are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. In the attached image:

图1示意性示出了根据本发明的第一个实施例的基于区块链的产品管理方法的流程图;Fig. 1 schematically shows a flow chart of a blockchain-based product management method according to a first embodiment of the present invention;

图2示意性示出了根据本发明的一个实施例的基于区块链网络中存储的多个产品供应链信息确定各类产品的属性信息的流程图;2 schematically shows a flowchart of determining attribute information of various products based on multiple product supply chain information stored in a blockchain network according to an embodiment of the present invention;

图3示意性示出了根据本发明的一个实施例的确定新的产品供应链信息是否存在异常的流程图;FIG. 3 schematically shows a flowchart of determining whether new product supply chain information is abnormal according to an embodiment of the present invention;

图4示意性示出了根据本发明的第二个实施例的基于区块链的产品管理方法的流程图;FIG. 4 schematically shows a flow chart of a blockchain-based product management method according to a second embodiment of the present invention;

图5示意性示出了根据本发明的实施例的在区块链网络中实现产品供应链信息管理的系统的框图;5 schematically shows a block diagram of a system for implementing product supply chain information management in a blockchain network according to an embodiment of the present invention;

图6示意性示出了根据本发明的一个实施例的基于区块链的产品管理装置的框图;FIG. 6 schematically shows a block diagram of a blockchain-based product management apparatus according to an embodiment of the present invention;

图7示出了适于用来实现本发明实施例的电子设备的计算机系统的结构示意图。FIG. 7 shows a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本发明将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.

此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本发明的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本发明的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本发明的各方面。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the present invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present invention.

附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the figures are merely functional entities and do not necessarily necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.

附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are only exemplary illustrations and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.

图1示意性示出了根据本发明的第一个实施例的基于区块链的产品管理方法的流程图,该产品管理方法的执行主体可以是服务器或终端设备等。Fig. 1 schematically shows a flow chart of a blockchain-based product management method according to the first embodiment of the present invention. The execution subject of the product management method may be a server or a terminal device.

如图1所示,根据本发明的第一个实施例的基于区块链的产品管理方法,包括如下步骤S110、步骤S120和步骤S130,以下详细进行说明:As shown in FIG. 1, the blockchain-based product management method according to the first embodiment of the present invention includes the following steps S110, S120 and S130, which will be described in detail below:

在步骤S110中,通过区块链网络存储多个产品供应链信息。In step S110, multiple product supply chain information is stored through the blockchain network.

在本发明的一个实施例中,产品供应链信息可以包括:产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长、产品供应规模、供应的产品质量(如可以通过退货率来表示)、客户针对产品反馈的问题等。In one embodiment of the present invention, the product supply chain information may include: product supply source, product supply price, product supplier's credit rating, product supply time, product supply duration, product supply scale, and supplied product quality (if possible Expressed by the return rate), customer feedback on the product, etc.

在本发明的一个实施例中,可以将产品供应链信息作为区块链网络中的交易信息来存储在区块链网络中。In one embodiment of the present invention, the product supply chain information may be stored in the blockchain network as transaction information in the blockchain network.

在步骤S120中,基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息。In step S120, attribute information of various types of products is determined based on a plurality of product supply chain information stored in the blockchain network.

在本发明的一个实施例中,各类产品的属性信息能够体现出各类产品的特点,即各类产品的属性信息能够用于标识各类产品。如图2所示,根据本发明的一个实施例的基于区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息的过程,具体可以包括:In an embodiment of the present invention, the attribute information of various types of products can reflect the characteristics of various types of products, that is, the attribute information of various types of products can be used to identify various types of products. As shown in FIG. 2 , the process of determining attribute information of various products based on multiple product supply chain information stored in a blockchain network according to an embodiment of the present invention may specifically include:

步骤S210,基于区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征。Step S210, based on a plurality of product supply chain information stored in the blockchain network, extract attribute features of each product supply chain information.

在本发明的一个实施例中,产品供应链信息的属性特征可以是产品供应链信息的具体值,比如可以是产品的供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长、产品供应规模、供应的产品质量等信息的具体数值。In an embodiment of the present invention, the attribute feature of the product supply chain information may be a specific value of the product supply chain information, such as the supply source of the product, the supply price of the product, the credit rating of the product supplier, the supply time of the product, the product supply The specific value of information such as supply time, product supply scale, and supplied product quality.

步骤S220,根据各个产品供应链信息的属性特征对机器学习模型进行训练,以确定所述各类产品的属性信息。In step S220, the machine learning model is trained according to the attribute features of the supply chain information of each product, so as to determine the attribute information of the various types of products.

在本发明的一个实施例中,不同产品供应链信息的属性特征的维度可以相同,也可以不同,比如a类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应时间,供应时长,供应组件质量};b类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应组件质量,市场价格变化,客户反馈问题}等。In an embodiment of the present invention, the dimensions of attribute features of different product supply chain information may be the same or different. For example, the attribute features of type a product supply chain information may be {supply source, supply price, supplier credit rating, Supply time, supply time, quality of supply components}; the attribute characteristics of the supply chain information of class b products can be {supply source, supply price, supplier credit rating, supply component quality, market price changes, customer feedback issues} and so on.

在本发明的一个实施例中,由于产品供应链信息的各个属性特征的占比可能不同,因此在根据各个产品供应链信息的属性特征对机器学习模型进行训练之前,可以对各个产品供应链信息的属性特征进行加权处理,进而得到各个产品供应链信息的属性特征对应的训练样本,然后通过该训练样本对机器学习模型进行训练。In an embodiment of the present invention, since the proportion of each attribute feature of the product supply chain information may be different, before training the machine learning model according to the attribute feature of each product supply chain information, each product supply chain information The attribute features are weighted, and then the training samples corresponding to the attribute features of each product supply chain information are obtained, and then the machine learning model is trained through the training samples.

在本发明的一个实施例中,机器学习模型可以是聚类模型,比如可以是K近邻聚类算法(k-Nearest Neighbor,KNN),也可以是K-means聚类算法等。通过训练样本对聚类模型进行训练的过程即是通过相应的聚类算法来对训练样本进行聚类的过程,并在聚类算法收敛之后(即聚类中心确定之后)停止训练。其中,对于聚类模型而言,各类产品的属性信息可以是各类产品的聚类中心。In an embodiment of the present invention, the machine learning model may be a clustering model, such as a K-Nearest Neighbor (KNN) clustering algorithm, or a K-means clustering algorithm or the like. The process of training the clustering model through the training samples is the process of clustering the training samples through the corresponding clustering algorithm, and the training is stopped after the clustering algorithm converges (that is, after the cluster center is determined). Among them, for the clustering model, the attribute information of various products may be the clustering centers of various products.

在本发明的其它实施例中,机器学习模型也可以是其它机器学习模型,比如卷积神经网络模型(Convolutional Neural Network,CNN)、循环神经网络模型(RecurrentNeural Network,RNN)等神经网络模型。其中,对于神经网络模型而言,各类产品的属性信息可以是神经网络模型学习到的特征映射信息。In other embodiments of the present invention, the machine learning model may also be other machine learning models, such as a convolutional neural network model (Convolutional Neural Network, CNN), a recurrent neural network model (Recurrent Neural Network, RNN) and other neural network models. Among them, for the neural network model, the attribute information of various products may be feature mapping information learned by the neural network model.

继续参照图1所示,在步骤S130中,若检测到所述区块链网络中录入了新的产品供应链信息,则根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常。Continuing to refer to FIG. 1, in step S130, if it is detected that new product supply chain information has been entered in the blockchain network, then according to the attribute information of the various products and the new product supply chain information , to determine whether the new product supply chain information is abnormal.

在本发明的一个实施例中,若根据聚类模型确定了各类产品的属性信息,那么如图3所示,步骤S130中根据各类产品的属性信息和新的产品供应链信息,确定新的产品供应链信息是否存在异常的过程,具体可以包括如下步骤:In an embodiment of the present invention, if the attribute information of various products is determined according to the clustering model, as shown in FIG. 3 , in step S130, according to the attribute information of various products and the new product supply chain information, a new product is determined. The process of checking whether there is any abnormality in the product supply chain information, which may include the following steps:

步骤S310,提取所述新的产品供应链信息的属性特征。Step S310, extracting attribute features of the new product supply chain information.

在本发明的一个实施例中,新的产品供应链信息的属性特征与区块链网络中已存储的产品供应链信息的属性特征是一致的,比如可以是产品的供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长、产品供应规模、供应的产品质量等信息的具体数值。In an embodiment of the present invention, the attribute characteristics of the new product supply chain information are consistent with the attribute characteristics of the product supply chain information stored in the blockchain network, such as the supply source of the product, the supply price of the product, The specific numerical value of the credit rating of the product supplier, the product supply time, the product supply time, the product supply scale, and the supplied product quality.

步骤S320,将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离。Step S320, input the attribute features of the new product supply chain information into the trained clustering model to determine the target product type corresponding to the new product supply chain information, and the new product supply chain information The target distance between the attribute feature of the chain information and the cluster center of the target product type.

在本发明的一个实施例中,由于已经根据区块链网络中存储的产品供应链信息的属性特征对机器学习模型进行了训练,因此在将新的产品供应链信息的属性特征输入至训练好的聚类模型中之后,可以得到新的产品供应链信息对应的目标产品类型,以及新的产品供应链信息的属性特征与目标产品类型的聚类中心之间的目标距离。In an embodiment of the present invention, since the machine learning model has been trained according to the attribute characteristics of the product supply chain information stored in the blockchain network, the attribute characteristics of the new product supply chain information are input to the trained After the clustering model of , the target product type corresponding to the new product supply chain information, and the target distance between the attribute feature of the new product supply chain information and the cluster center of the target product type can be obtained.

在本发明的一个实施例中,可以在将新的产品供应链信息的属性特征输入至训练好的聚类模型中之前,对新的产品供应链信息的属性特征进行加权处理,然后将加权处理后的属性特征输入至训练好的聚类模型中。In an embodiment of the present invention, before the attribute features of the new product supply chain information are input into the trained clustering model, weighting processing may be performed on the attribute features of the new product supply chain information, and then the weighting processing may be performed on the attribute features of the new product supply chain information The resulting attribute features are input into the trained clustering model.

步骤S330,根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。Step S330, according to the target product type and the target distance, determine whether the new product supply chain information is abnormal.

在本发明的一个实施例中,步骤S330中根据目标产品类型和目标距离确定该新的产品供应链信息是否存在异常的过程,具体可以包括:若该新的产品供应链信息所标识的产品类型与该目标产品类型相同,且所述目标距离小于或等于距离阈值,则确定所述新的产品供应链信息不存在异常。In an embodiment of the present invention, the process of determining whether the new product supply chain information is abnormal according to the target product type and the target distance in step S330 may specifically include: if the product type identified by the new product supply chain information If the type of the target product is the same, and the target distance is less than or equal to the distance threshold, it is determined that there is no abnormality in the new product supply chain information.

在本发明的一个实施例中,由于产品供应链信息中会标识出产品的类型,因此若新的产品供应链信息所标识的产品类型与通过聚类模型识别出的目标产品类型相同,且新的产品供应链信息的属性特征与目标产品类型的聚类中心之间的目标距离小于或等于距离阈值时,可以确定新的产品供应链信息不存在异常。反之,则可以确定新的产品供应链信息存在异常,比如可以确定新的产品供应链存在违规或欺诈行为。In one embodiment of the present invention, since the product type is identified in the product supply chain information, if the product type identified by the new product supply chain information is the same as the target product type identified through the clustering model, and the new When the target distance between the attribute feature of the product supply chain information and the cluster center of the target product type is less than or equal to the distance threshold, it can be determined that there is no abnormality in the new product supply chain information. On the contrary, it can be determined that the new product supply chain information is abnormal, for example, it can be determined that the new product supply chain has irregularities or fraudulent behaviors.

图3所示实施例的技术方案能够通过聚类模型的处理来确定新的产品供应链信息是否存在异常。在本发明的其它实施例中,也可以通过其它机器学习模型来处理,比如可以通过神经网络模型来进行处理,具体可以是将新的产品供应链信息的属性特征输入至训练好的神经网络模型中,以通过训练好的神经网络模型确定新的产品供应链信息对应的产品类型,然后基于训练好的神经网络模型确定的产品类型与该新的产品供应链信息中标识的产品类型来确定新的产品供应链信息是否异常,比如若基于训练好的神经网络模型确定的产品类型与该新的产品供应链信息中标识的产品类型相同,则确定新的产品供应链信息不存在异常;反之,则可以确定新的产品供应链信息存在异常。The technical solution of the embodiment shown in FIG. 3 can determine whether there is an abnormality in the new product supply chain information through the processing of the clustering model. In other embodiments of the present invention, other machine learning models can also be used for processing, for example, a neural network model can be used for processing. Specifically, the attribute features of the new product supply chain information can be input into the trained neural network model. In order to determine the product type corresponding to the new product supply chain information through the trained neural network model, and then determine the new product type based on the product type determined by the trained neural network model and the product type identified in the new product supply chain information. Whether the product supply chain information of the new product is abnormal, for example, if the product type determined based on the trained neural network model is the same as the product type identified in the new product supply chain information, it is determined that the new product supply chain information is not abnormal; otherwise, Then it can be determined that the new product supply chain information is abnormal.

基于前述方案,在本发明的一个实施例中,若确定新的产品供应链信息不存在异常,则可以通过新的产品供应链信息对确定的各类产品的属性信息进行调整,进而可以优化系统参数,以提高对新的产品供应链信息是否存在异常的识别准确性。Based on the foregoing solution, in an embodiment of the present invention, if it is determined that there is no abnormality in the new product supply chain information, the determined attribute information of various products can be adjusted through the new product supply chain information, thereby optimizing the system. parameters to improve the accuracy of identifying whether there is anomaly in new product supply chain information.

在本发明的一个实施例中,在通过新的产品供应链信息对确定的各类产品的属性信息进行调整时,具体可以通过新的产品供应链信息的属性特征来对机器学习模型再次进行训练,以优化机器学习模型的参数,进而提高机器学习模型的输出准确性。In an embodiment of the present invention, when adjusting the attribute information of the determined products of various types through the new product supply chain information, the machine learning model may be retrained specifically through the attribute features of the new product supply chain information. , to optimize the parameters of the machine learning model, thereby improving the output accuracy of the machine learning model.

本发明前述实施例的技术方案避免了通过人工记录或中心化系统管理产品供应链信息而造成产品供应链信息出现信息遗漏、记录错误、数据遭到非法篡改等问题。并且能够基于区块链网络存储的可靠数据实现对新的产品供应链信息的分析,有效提高了对产品供应链信息的分析效率,节省了人力成本,促进了区块链技术在产品供应链信息管理方案的有效推广。The technical solutions of the foregoing embodiments of the present invention avoid problems such as information omission, recording errors, and illegal tampering of data in product supply chain information caused by manual recording or centralized system management of product supply chain information. And it can realize the analysis of new product supply chain information based on the reliable data stored in the blockchain network, which effectively improves the analysis efficiency of product supply chain information, saves labor costs, and promotes the application of blockchain technology in product supply chain information. Effective promotion of management programs.

以下结合图4至图5,对本发明实施例的实现细节进行详细阐述:The implementation details of the embodiments of the present invention are described in detail below with reference to FIGS. 4 to 5 :

如图4所示,根据本发明的第二个实施例的基于区块链的产品管理方法,包括如下步骤:As shown in Figure 4, the blockchain-based product management method according to the second embodiment of the present invention includes the following steps:

步骤S410,区块链节点及区块链网络构建。Step S410, a blockchain node and a blockchain network are constructed.

在本发明的一个实施例中,在选定区块链节点之后,可以基于选定的区块链节点来构建区块链网络。比如可以以保险公司基层营业机构为最小节点,并基于一个或多个保险集团/公司的参与来构建区块链网络。In one embodiment of the present invention, after a blockchain node is selected, a blockchain network can be constructed based on the selected blockchain node. For example, the grass-roots business organization of an insurance company can be the smallest node, and a blockchain network can be constructed based on the participation of one or more insurance groups/company.

步骤S420,基于本发明实施例中的数据结构及存储方式存储产品供应链信息。In step S420, the product supply chain information is stored based on the data structure and storage method in the embodiment of the present invention.

在本发明的一个实施例中,产品供应链信息可以通过产品供应链交易信息的形式存储在区块链网络中,产品供应链交易信息的输入可以是供应时间信息记录以及供应商的公开密钥和签字等;产品供应链交易信息的输出可以是供应时间材料的存放链接、相关信息访问者的公开密钥(账户地址)等。可选地,可以通过如表1所示的数据结构存储产品供应链交易信息,以保证信息存储和信息处理的高效率:In one embodiment of the present invention, the product supply chain information may be stored in the blockchain network in the form of product supply chain transaction information, and the input of the product supply chain transaction information may be the supply time information record and the supplier's public key The output of the transaction information of the product supply chain can be the storage link of the supply time material, the public key (account address) of the relevant information visitor, and so on. Optionally, product supply chain transaction information can be stored through the data structure shown in Table 1 to ensure high efficiency of information storage and information processing:

Figure BDA0001773502700000101
Figure BDA0001773502700000101

表1Table 1

在表1所示的数据结构中,由于供应相关信息材料和其他材料通常会包含一些图像、文档等数据量比较大的信息,因此为了提高存储效率和解决区块信息过大的问题,在本发明的实施例中,可以将图像等比较大的材料以链接的形式存放在区块中,这个链接的值就是通过哈希函数对材料进行加密得到的哈希值,比如SHA1等,这种通过哈希函数得到指针链接的方式能够保证内容不可篡改。而实际的材料既可以存放在区块链节点的局部存储设备中,又可以以云存储的方式存放。同时,为了保证材料存储的高可靠性,可以采用冗余编码的方式对材料进行存储,譬如采用RS编码(即Reed-Solomon codes,是一种前向纠错的信道编码,对由校正过采样数据所产生的多项式有效)或LDPC(Low Density Parity CheckCode,低密度奇偶校验码)编码的方式等对材料进行冗余编码处理。In the data structure shown in Table 1, because supply-related information materials and other materials usually contain some images, documents and other information with a relatively large amount of data, in order to improve the storage efficiency and solve the problem of excessive block information, in this paper In the embodiment of the invention, relatively large materials such as images can be stored in the block in the form of a link, and the value of this link is the hash value obtained by encrypting the material through a hash function, such as SHA1, etc. The way the hash function gets the pointer link ensures that the content cannot be tampered with. The actual material can be stored either in the local storage device of the blockchain node or in the form of cloud storage. At the same time, in order to ensure the high reliability of material storage, the material can be stored in the form of redundant coding, such as RS coding (that is, Reed-Solomon codes, which is a forward error correction channel coding, which is used to correct oversampling by correction). The polynomial generated by the data is valid) or LDPC (Low Density Parity CheckCode, Low Density Parity Check Code) encoding method to perform redundant encoding processing on the material.

在本发明的一个实施例中,每个产品供应链信息可以通过上述表1的格式上传并存储至区块链网络中。其中,产品供应链信息可以包括:产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长,产品供应规模、供应的产品质量(如可以通过退货率来表示)、客户针对产品反馈的问题等。In one embodiment of the present invention, each product supply chain information can be uploaded and stored in the blockchain network in the format of Table 1 above. The product supply chain information may include: product supply source, product supply price, product supplier's credit rating, product supply time, product supply time, product supply scale, product quality supplied (for example, it can be expressed by the return rate), Customer feedback on the product, etc.

例如,一个产品供应链信息的属性特征可以表示为{供应来源=value1;供应价格=2000;供应商信用等级=v1;供应时间=2016.01;供应时长=1年;退货率=8%},则供应链交易信息的输入可以是供应时间信息记录以及供应商的公开密钥和签字,供应链交易信息的输出可以是供应时间材料即属性值的存放链接、交易事件的性质(合规/违规/欺诈等)、交易事件的相关信息访问者的公开密钥(账户地址)等,其中,一个供应链交易信息可以构成一个区块。For example, the attribute feature of a product supply chain information can be expressed as {supply source=value1; supply price=2000; supplier credit rating=v1; supply time=2016.01; supply duration=1 year; return rate=8%}, then The input of the supply chain transaction information can be the supply time information record and the supplier's public key and signature, and the output of the supply chain transaction information can be the supply time material, that is, the storage link of the attribute value, the nature of the transaction event (compliance/violation/ fraud, etc.), the public key (account address) of the visitor of the relevant information of the transaction event, etc., in which a supply chain transaction information can constitute a block.

步骤S430,根据区块链网络中存储的信息进行产品供应链管理。In step S430, product supply chain management is performed according to the information stored in the blockchain network.

在本发明的一个实施例中,可以基于产品供应链信息构建多维离散数据,比如通过产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长,产品供应规模、供应的产品质量(退货率)、市场价格变化、客户反馈问题、突发事件(禁运、贸易战、自然灾害)等确定多维离散数据,然后根据区块链网络中存储的每个产品供应链信息对应的多维离散数据构建训练样本,通过该训练样本对K近邻聚类模型进行训练,以基于训练后的模型查找和识别可能存在的违规和诈骗行为。In one embodiment of the present invention, multi-dimensional discrete data can be constructed based on product supply chain information, such as product supply source, product supply price, product supplier's credit rating, product supply time, product supply duration, product supply scale, supply The product quality (return rate), market price changes, customer feedback problems, emergencies (embargoes, trade wars, natural disasters), etc. determine multi-dimensional discrete data, and then based on the supply chain information of each product stored in the blockchain network The corresponding multi-dimensional discrete data is used to construct training samples, and the K-nearest neighbor clustering model is trained through the training samples, so as to find and identify possible illegal and fraudulent behaviors based on the trained model.

譬如,区块链网络中包含n类产品,根据产品特点,不同类产品的供应链信息的属性特征可以相同,也可以不同,比如第a类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应时间,供应时长,供应组件质量};第b类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应组件质量,市场价格变化,客户反馈问题}。根据区块链网络中存储的n类产品的供应链信息(不包含违规信息),按照各属性特征的占比不同,将产品供应链信息的属性特征加权后作为输入,训练出KNN模型,其中,每一类产品对应于一个聚类中心,随着区块链网络中存储的产品供应链信息的增加,不断对KNN模型进行参数调整和模型优化,以保证KNN模型的正确分类以及每一产品供应链信息的属性特征到对应的聚类中心点的距离小于设定的阈值T。For example, the blockchain network contains n types of products. According to the characteristics of the products, the attribute characteristics of the supply chain information of different types of products can be the same or different. For example, the attribute characteristics of the supply chain information of type a products can be {supply source, Supply price, supplier credit rating, supply time, supply duration, supply component quality}; the attribute characteristics of the supply chain information of type b products can be {supply source, supply price, supplier credit rating, supply component quality, market price change , Customer Feedback Questions}. According to the supply chain information of n types of products stored in the blockchain network (excluding violation information), according to the proportion of each attribute feature, the attribute features of the product supply chain information are weighted as input, and the KNN model is trained, where , each type of product corresponds to a cluster center. With the increase of product supply chain information stored in the blockchain network, parameter adjustment and model optimization of the KNN model are continuously performed to ensure the correct classification of the KNN model and each product. The distance between the attribute feature of the supply chain information and the corresponding cluster center point is less than the set threshold T.

当区块链网络中新产生了一笔产品供应链交易信息(假设该产品供应链交易信息中标识了产品类别为a类产品)时,提取该产品供应链交易信息的属性特征,比如可以是{供应来源=value1;供应价格=2000;供应商信用等级=v1;供应时间=2017.01;供应时长=1年;退货率=10%},然后将提取出的属性特征输入到训练好的KNN模型,该训练好的KNN模型的输出结果为“此产品为a类产品,并且与a类产品的聚类中心的距离小于T”,进而可以判断此产品供应链信息不存在违规行为。反之,若训练好的KNN模型输出的结果表示此产品为b类产品或者不属于任何一类已知产品,则基本可以认定该产品供应链信息存在违规或者欺诈行为,进而可以对该产品供应事件进行责任追查。When a new product supply chain transaction information is generated in the blockchain network (assuming that the product category is identified as a product in the product supply chain transaction information), the attribute characteristics of the product supply chain transaction information are extracted, for example, it can be {supply source=value1; supply price=2000; supplier credit rating=v1; supply time=2017.01; supply duration=1 year; return rate=10%}, and then input the extracted attribute features into the trained KNN model , the output result of the trained KNN model is "this product is a product of class a, and the distance from the cluster center of class a product is less than T", and then it can be judged that there is no violation of the supply chain information of this product. Conversely, if the output result of the trained KNN model indicates that the product is a class b product or does not belong to any class of known products, it can be basically determined that the product supply chain information has violations or fraudulent behavior, and then the product supply event can be determined. Carry out accountability.

步骤S440,基于系统性能更新优化系统参数。Step S440, update and optimize system parameters based on system performance.

在本发明的一个实施例中,可以评估产品供应链管理的及时性、有效性,以及对异常产品供应链信息的识别准确性来不断调整和优化系统参数,以期通过在区块链网络中有效实现产品供应链的跟踪管理,从而有力促进区块链技术在产品供应链信息管理方面的有效推广。In one embodiment of the present invention, the timeliness and effectiveness of product supply chain management, as well as the identification accuracy of abnormal product supply chain information can be continuously adjusted and optimized to continuously adjust and optimize system parameters, in order to effectively Realize the tracking management of product supply chain, thus effectively promoting the effective promotion of blockchain technology in product supply chain information management.

以下结合附图介绍本发明的装置实施例。The device embodiments of the present invention are described below with reference to the accompanying drawings.

图5示意性示出了根据本发明的实施例的在区块链网络中实现产品供应链信息管理的系统的框图。FIG. 5 schematically shows a block diagram of a system for implementing product supply chain information management in a blockchain network according to an embodiment of the present invention.

参照图5所示,根据本发明的实施例的在区块链网络中实现产品供应链信息管理的系统,包括:区块链网络构建子系统510、数据格式定义子系统520、产品供应链信息存储子系统530、供应链管理子系统540,以及系统性能评估子系统550。Referring to FIG. 5, a system for implementing product supply chain information management in a blockchain network according to an embodiment of the present invention includes: a blockchain network construction subsystem 510, a data format definition subsystem 520, and product supply chain information Storage subsystem 530 , supply chain management subsystem 540 , and system performance evaluation subsystem 550 .

其中,区块链网络构建子系统510负责区块链节点的构建、更新和维护机制以及区块链网络的构建、更新和维护。比如可以以保险公司基层营业机构为最小节点,并基于一个或多个保险集团/公司的参与来构建区块链网络。Among them, the blockchain network construction subsystem 510 is responsible for the construction, update and maintenance mechanism of the blockchain nodes and the construction, update and maintenance of the blockchain network. For example, the grass-roots business organization of an insurance company can be the smallest node, and a blockchain network can be constructed based on the participation of one or more insurance groups/company.

数据格式定义子系统520可以按照上述表1中所示的数据结构来存储产品供应链交易信息,以保证信息存储和信息处理的高效率。产品供应链交易信息的输入可以是供应时间信息记录以及供应商的公开密钥和签字等;产品供应链交易信息的输出可以是供应时间材料的存放链接、相关信息访问者的公开密钥(账户地址)等。The data format definition subsystem 520 can store product supply chain transaction information according to the data structure shown in Table 1 above, so as to ensure high efficiency of information storage and information processing. The input of the product supply chain transaction information can be the supply time information record and the supplier's public key and signature, etc.; the output of the product supply chain transaction information can be the storage link of the supply time material, the public key (account) of the relevant information visitor. address), etc.

产品供应链信息存储子系统530用于存储产品供应链信息。具体地,每个产品供应链信息可以通过上述表1的格式上传至区块链网络中,以便于产品供应链信息存储子系统530进行存储。其中,产品供应链信息可以包括:产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长,产品供应规模、供应的产品质量(如可以通过退货率来表示)、客户针对产品反馈的问题等。The product supply chain information storage subsystem 530 is used for storing product supply chain information. Specifically, each product supply chain information can be uploaded to the blockchain network in the format of Table 1 above, so that the product supply chain information storage subsystem 530 can store it. The product supply chain information may include: product supply source, product supply price, product supplier's credit rating, product supply time, product supply time, product supply scale, product quality supplied (for example, it can be expressed by the return rate), Customer feedback on the product, etc.

例如,一个产品供应链信息的属性特征可以表示为{供应来源=value1;供应价格=2000;供应商信用等级=v1;供应时间=2016.01;供应时长=1年;退货率=8%},则供应链交易信息的输入可以是供应时间信息记录以及供应商的公开密钥和签字,供应链交易信息的输出可以是供应时间材料即属性值的存放链接、交易事件的性质(合规/违规/欺诈等)、交易事件的相关信息访问者的公开密钥(账户地址)等,其中,一个供应链交易信息可以构成一个区块。For example, the attribute feature of a product supply chain information can be expressed as {supply source=value1; supply price=2000; supplier credit rating=v1; supply time=2016.01; supply duration=1 year; return rate=8%}, then The input of the supply chain transaction information can be the supply time information record and the supplier's public key and signature, and the output of the supply chain transaction information can be the supply time material, that is, the storage link of the attribute value, the nature of the transaction event (compliance/violation/ fraud, etc.), the public key (account address) of the visitor of the relevant information of the transaction event, etc., in which a supply chain transaction information can constitute a block.

供应链管理子系统540用于根据区块链网络中存储的信息进行产品供应链管理。The supply chain management subsystem 540 is used for product supply chain management according to the information stored in the blockchain network.

在本发明的一个实施例中,可以基于产品供应链信息构建多维离散数据,比如通过产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长,产品供应规模、供应的产品质量(退货率)、市场价格变化、客户反馈问题、突发事件(禁运、贸易战、自然灾害)等确定多维离散数据,然后根据区块链网络中存储的每个产品供应链信息对应的多维离散数据构建训练样本,通过该训练样本对K近邻聚类模型进行训练,以基于训练后的模型查找和识别可能存在的违规和诈骗行为。In one embodiment of the present invention, multi-dimensional discrete data can be constructed based on product supply chain information, such as product supply source, product supply price, product supplier's credit rating, product supply time, product supply duration, product supply scale, supply The product quality (return rate), market price changes, customer feedback problems, emergencies (embargoes, trade wars, natural disasters), etc. determine multi-dimensional discrete data, and then based on the supply chain information of each product stored in the blockchain network The corresponding multi-dimensional discrete data is used to construct training samples, and the K-nearest neighbor clustering model is trained through the training samples, so as to find and identify possible illegal and fraudulent behaviors based on the trained model.

譬如,区块链网络中包含n类产品,根据产品特点,不同类产品的供应链信息的属性特征可以相同,也可以不同,比如第a类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应时间,供应时长,供应组件质量};第b类产品供应链信息的属性特征可以为{供应来源,供应价格,供应商信用等级,供应组件质量,市场价格变化,客户反馈问题}。根据区块链网络中存储的n类产品的供应链信息(不包含违规信息),按照各属性特征的占比不同,将产品供应链信息的属性特征加权后作为输入,训练出KNN模型,其中,每一类产品对应于一个聚类中心,随着区块链网络中存储的产品供应链信息的增加,不断对KNN模型进行参数调整和模型优化,以保证KNN模型的正确分类以及每一产品供应链信息的属性特征到对应的聚类中心点的距离小于设定的阈值T。For example, the blockchain network contains n types of products. According to the characteristics of the products, the attribute characteristics of the supply chain information of different types of products can be the same or different. For example, the attribute characteristics of the supply chain information of type a products can be {supply source, Supply price, supplier credit rating, supply time, supply duration, supply component quality}; the attribute characteristics of the supply chain information of type b products can be {supply source, supply price, supplier credit rating, supply component quality, market price change , Customer Feedback Questions}. According to the supply chain information of n types of products stored in the blockchain network (excluding violation information), according to the proportion of each attribute feature, the attribute features of the product supply chain information are weighted as input, and the KNN model is trained, where , each type of product corresponds to a cluster center. With the increase of product supply chain information stored in the blockchain network, parameter adjustment and model optimization of the KNN model are continuously performed to ensure the correct classification of the KNN model and each product. The distance between the attribute feature of the supply chain information and the corresponding cluster center point is less than the set threshold T.

当区块链网络中新产生了一笔产品供应链交易信息(假设该产品供应链交易信息中标识了产品类别为a类产品)时,提取该产品供应链交易信息的属性特征,比如可以是{供应来源=value1;供应价格=2000;供应商信用等级=v1;供应时间=2017.01;供应时长=1年;退货率=10%},然后将提取出的属性特征输入到训练好的KNN模型,该训练好的KNN模型的输出结果为“此产品为a类产品,并且与a类产品的聚类中心的距离小于T”,进而可以判断此产品供应链信息不存在违规行为。反之,若训练好的KNN模型输出的结果表示此产品为b类产品或者不属于任何一类已知产品,则基本可以认定该产品供应链信息存在违规或者欺诈行为,进而可以对该产品供应事件进行责任追查。When a new product supply chain transaction information is generated in the blockchain network (assuming that the product category is identified as a product in the product supply chain transaction information), the attribute characteristics of the product supply chain transaction information are extracted, for example, it can be {supply source=value1; supply price=2000; supplier credit rating=v1; supply time=2017.01; supply duration=1 year; return rate=10%}, and then input the extracted attribute features into the trained KNN model , the output result of the trained KNN model is "this product is a product of class a, and the distance from the cluster center of class a product is less than T", and then it can be judged that there is no violation of the supply chain information of this product. Conversely, if the output result of the trained KNN model indicates that the product is a class b product or does not belong to any class of known products, it can be basically determined that the product supply chain information has violations or fraudulent behavior, and then the product supply event can be determined. Carry out accountability.

系统性能评估子系统550可以评估产品供应链管理的及时性、有效性,以及对异常产品供应链信息的识别准确性来不断调整和优化系统参数,以期通过在区块链网络中有效实现产品供应链的跟踪管理,从而有力促进区块链技术在产品供应链信息管理方面的有效推广。The system performance evaluation subsystem 550 can evaluate the timeliness and effectiveness of product supply chain management, as well as the identification accuracy of abnormal product supply chain information to continuously adjust and optimize system parameters, in order to effectively realize product supply through the blockchain network Chain tracking management, thus effectively promoting the effective promotion of blockchain technology in product supply chain information management.

图6示意性示出了根据本发明的一个实施例的基于区块链的产品管理装置的框图。FIG. 6 schematically shows a block diagram of a blockchain-based product management apparatus according to an embodiment of the present invention.

参照图6所示,根据本发明的一个实施例的基于区块链的产品管理装置600,包括:存储单元602、确定单元604和处理单元606。Referring to FIG. 6 , a blockchain-based product management apparatus 600 according to an embodiment of the present invention includes: a storage unit 602 , a determination unit 604 and a processing unit 606 .

其中,存储单元602用于通过区块链网络存储多个产品供应链信息;确定单元604用于基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息;处理单元606用于在检测到区块链网络中录入了新的产品供应链信息时,根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常。The storage unit 602 is configured to store multiple product supply chain information through the blockchain network; the determining unit 604 is configured to determine attribute information of various products based on the multiple product supply chain information stored in the blockchain network; The processing unit 606 is configured to determine the new product supply chain according to the attribute information of the various types of products and the new product supply chain information when it is detected that new product supply chain information is entered in the blockchain network Whether the information is abnormal.

在本发明的一个实施例中,确定单元604包括:特征提取单元,用于基于所述区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征;训练单元,用于根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,以确定所述各类产品的属性信息。In an embodiment of the present invention, the determining unit 604 includes: a feature extraction unit, configured to extract attribute features of each product supply chain information based on a plurality of product supply chain information stored in the blockchain network; a training unit, The method is used to train the machine learning model according to the attribute characteristics of the supply chain information of each product, so as to determine the attribute information of the various products.

在本发明的一个实施例中,所述训练单元配置为:对所述各个产品供应链信息的属性特征进行加权处理,以得到所述各个产品供应链信息的属性特征对应的训练样本;通过所述训练样本对所述机器学习模型进行训练。In an embodiment of the present invention, the training unit is configured to: perform weighting processing on attribute features of each product supply chain information to obtain training samples corresponding to the attribute features of each product supply chain information; The training samples are used to train the machine learning model.

在本发明的一个实施例中,所述机器学习模型包括聚类模型,所述各类产品的属性信息包括所述各类产品的聚类中心。In an embodiment of the present invention, the machine learning model includes a clustering model, and the attribute information of the various types of products includes cluster centers of the various types of products.

在本发明的一个实施例中,处理单元606配置为:提取所述新的产品供应链信息的属性特征;将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离;根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。In an embodiment of the present invention, the processing unit 606 is configured to: extract the attribute features of the new product supply chain information; input the attribute features of the new product supply chain information into the trained clustering model , to determine the target product type corresponding to the new product supply chain information, and the target distance between the attribute feature of the new product supply chain information and the cluster center of the target product type; according to the target The product type and the target distance determine whether the new product supply chain information is abnormal.

在本发明的一个实施例中,处理单元606配置为:若所述新的产品供应链信息所标识的产品类型与所述目标产品类型相同,且所述目标距离小于或等于距离阈值,则确定所述新的产品供应链信息不存在异常。In one embodiment of the present invention, the processing unit 606 is configured to: if the product type identified by the new product supply chain information is the same as the target product type, and the target distance is less than or equal to a distance threshold, then determine There is no abnormality in the new product supply chain information.

在本发明的一个实施例中,所述的基于区块链的产品管理装置600还包括:调整单元,用于在确定所述新的产品供应链信息不存在异常时,通过所述新的产品供应链信息对确定的所述各类产品的属性信息进行调整。In an embodiment of the present invention, the blockchain-based product management device 600 further includes: an adjustment unit, configured to pass the new product when it is determined that there is no abnormality in the supply chain information of the new product The supply chain information adjusts the determined attribute information of the various types of products.

由于本发明的示例实施例的基于区块链的产品管理装置的各个功能模块与上述基于区块链的产品管理方法的示例实施例的步骤对应,因此对于本发明装置实施例中未披露的细节,请参照本发明上述的基于区块链的产品管理方法的实施例。Since each functional module of the blockchain-based product management device of the exemplary embodiment of the present invention corresponds to the steps of the above-mentioned exemplary embodiment of the blockchain-based product management method, details not disclosed in the device embodiment of the present invention are not disclosed. , please refer to the above-mentioned embodiments of the blockchain-based product management method of the present invention.

下面参考图7,其示出了适于用来实现本发明实施例的电子设备的计算机系统700的结构示意图。图7示出的电子设备的计算机系统700仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。Referring next to FIG. 7 , it shows a schematic structural diagram of a computer system 700 suitable for implementing an electronic device according to an embodiment of the present invention. The computer system 700 of the electronic device shown in FIG. 7 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present invention.

如图7所示,计算机系统700包括中央处理单元(CPU)701,其可以根据存储在只读存储器(ROM)702中的程序或者从存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM 703中,还存储有系统操作所需的各种程序和数据。CPU701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7, a computer system 700 includes a central processing unit (CPU) 701 which can be loaded into a random access memory (RAM) 703 according to a program stored in a read only memory (ROM) 702 or a program from a storage section 708 Instead, various appropriate actions and processes are performed. In the RAM 703, various programs and data necessary for system operation are also stored. The CPU 701 , the ROM 702 , and the RAM 703 are connected to each other through a bus 704 . An input/output (I/O) interface 705 is also connected to bus 704 .

以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

特别地,根据本发明的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本发明的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被中央处理单元(CPU)701执行时,执行本申请的系统中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as computer software programs according to embodiments of the present invention. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 . When the computer program is executed by the central processing unit (CPU) 701, the above-described functions defined in the system of the present application are executed.

需要说明的是,本发明所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本发明中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本发明中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In the present invention, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.

描述于本发明实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present invention may be implemented in a software manner, or may be implemented in a hardware manner, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如上述实施例中所述的基于区块链的产品管理方法。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The above computer readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the blockchain-based product management method described in the above embodiment.

例如,所述的电子设备可以实现如图1中所示的:步骤S110,通过区块链网络存储多个产品供应链信息;步骤S120,基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息;步骤S130,若检测到所述区块链网络中录入了新的产品供应链信息,则根据所述各类产品的属性信息和所述新的产品供应链信息,确定所述新的产品供应链信息是否存在异常。For example, the electronic device can implement as shown in FIG. 1: step S110, storing multiple product supply chain information through a blockchain network; step S120, based on multiple product supply chains stored in the blockchain network chain information, and determine the attribute information of various products; step S130, if it is detected that new product supply chain information has been entered in the blockchain network, then according to the attribute information of the various products and the new product supply chain information chain information, and determine whether the new product supply chain information is abnormal.

又如,所述的电子设备可以实现如图2至图4所示的各个步骤。For another example, the electronic device can implement the various steps shown in FIG. 2 to FIG. 4 .

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本发明的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present invention, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本发明实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本发明实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present invention can be embodied in the form of software products, and the software products can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.) or on the network , which includes several instructions to cause a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the invention which follow the general principles of the invention and which include common knowledge or conventional techniques in the art not disclosed by the invention . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.

应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims.

Claims (7)

1.一种基于区块链的产品管理方法,其特征在于,包括:1. A blockchain-based product management method, comprising: 通过区块链网络存储多个产品供应链信息;所述产品供应链信息包括产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长、产品供应规模、供应的产品质量、客户针对产品反馈的问题;Store multiple product supply chain information through the blockchain network; the product supply chain information includes product supply source, product supply price, product supplier's credit rating, product supply time, product supply time, product supply scale, product supply Quality, customer feedback on the product; 基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息;Determine attribute information of various products based on multiple product supply chain information stored in the blockchain network; 基于所述区块链网络中存储的多个产品供应链信息,确定各类产品的属性信息,包括:基于所述区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征;根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,以确定所述各类产品的属性信息;所述机器学习模型包括聚类模型,所述各类产品的属性信息包括所述各类产品的聚类中心;Determining attribute information of various products based on multiple product supply chain information stored in the blockchain network includes: extracting each product supply chain information based on multiple product supply chain information stored in the blockchain network The attribute features of each product; the machine learning model is trained according to the attribute features of the supply chain information of each product to determine the attribute information of the various products; the machine learning model includes a clustering model, and the attributes of the various products are The information includes the cluster centers of the various types of products; 若检测到所述区块链网络中录入了新的产品供应链信息,则提取所述新的产品供应链信息的属性特征;If it is detected that new product supply chain information has been entered in the blockchain network, the attribute features of the new product supply chain information are extracted; 将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离;Input the attribute features of the new product supply chain information into the trained clustering model to determine the target product type corresponding to the new product supply chain information, and the new product supply chain information. the target distance between the attribute feature and the cluster center of the target product type; 根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。According to the target product type and the target distance, it is determined whether the new product supply chain information is abnormal. 2.根据权利要求1所述的基于区块链的产品管理方法,其特征在于,根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,包括:2. The blockchain-based product management method according to claim 1, wherein the machine learning model is trained according to the attribute characteristics of each product supply chain information, comprising: 对所述各个产品供应链信息的属性特征进行加权处理,以得到所述各个产品供应链信息的属性特征对应的训练样本;Perform weighting processing on the attribute features of each product supply chain information to obtain training samples corresponding to the attribute features of each product supply chain information; 通过所述训练样本对所述机器学习模型进行训练。The machine learning model is trained through the training samples. 3.根据权利要求1所述的基于区块链的产品管理方法,其特征在于,根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常,包括:3. The blockchain-based product management method according to claim 1, wherein, according to the target product type and the target distance, determining whether the new product supply chain information is abnormal, comprising: 若所述新的产品供应链信息所标识的产品类型与所述目标产品类型相同,且所述目标距离小于或等于距离阈值,则确定所述新的产品供应链信息不存在异常。If the product type identified by the new product supply chain information is the same as the target product type, and the target distance is less than or equal to the distance threshold, it is determined that there is no abnormality in the new product supply chain information. 4.根据权利要求1至3中任一项所述的基于区块链的产品管理方法,其特征在于,还包括:4. The blockchain-based product management method according to any one of claims 1 to 3, further comprising: 若确定所述新的产品供应链信息不存在异常,则通过所述新的产品供应链信息对确定的所述各类产品的属性信息进行调整。If it is determined that there is no abnormality in the new product supply chain information, the determined attribute information of the various types of products is adjusted through the new product supply chain information. 5.一种基于区块链的产品管理装置,其特征在于,包括:5. A product management device based on blockchain, characterized in that, comprising: 存储单元,用于通过区块链网络存储多个产品供应链信息;所述产品供应链信息包括产品供应来源、产品供应价格、产品供应商的信用评级、产品供应时间、产品供应时长、产品供应规模、供应的产品质量、客户针对产品反馈的问题;The storage unit is used to store multiple product supply chain information through the blockchain network; the product supply chain information includes product supply source, product supply price, product supplier's credit rating, product supply time, product supply time, product supply Scale, quality of products supplied, customer feedback on products; 确定单元,用于基于所述区块链网络中存储的多个产品供应链信息,提取各个产品供应链信息的属性特征;根据所述各个产品供应链信息的属性特征对机器学习模型进行训练,以确定各类产品的属性信息;所述机器学习模型包括聚类模型,所述各类产品的属性信息包括所述各类产品的聚类中心;A determination unit, used for extracting attribute features of each product supply chain information based on a plurality of product supply chain information stored in the blockchain network; training the machine learning model according to the attribute features of each product supply chain information, to determine attribute information of various types of products; the machine learning model includes a clustering model, and the attribute information of various types of products includes cluster centers of the various types of products; 处理单元,用于在检测到所述区块链网络中录入了新的产品供应链信息时,提取所述新的产品供应链信息的属性特征;将所述新的产品供应链信息的属性特征输入至训练好的所述聚类模型中,以确定所述新的产品供应链信息对应的目标产品类型,以及所述新的产品供应链信息的属性特征与所述目标产品类型的聚类中心之间的目标距离;根据所述目标产品类型和所述目标距离,确定所述新的产品供应链信息是否存在异常。The processing unit is configured to extract the attribute features of the new product supply chain information when it is detected that the new product supply chain information has been entered in the blockchain network; Input into the trained clustering model to determine the target product type corresponding to the new product supply chain information, as well as the attribute characteristics of the new product supply chain information and the clustering center of the target product type The target distance between the two; according to the target product type and the target distance, determine whether the new product supply chain information is abnormal. 6.一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1至4中任一项所述的基于区块链的产品管理方法。6. A computer-readable medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the blockchain-based product management method according to any one of claims 1 to 4 is implemented . 7.一种电子设备,其特征在于,包括:7. An electronic device, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至4中任一项所述的基于区块链的产品管理方法。A storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement any one of claims 1 to 4 A described blockchain-based approach to product management.
CN201810959472.8A 2018-08-22 2018-08-22 Block chain-based product management method, device, medium and electronic equipment Active CN108876213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810959472.8A CN108876213B (en) 2018-08-22 2018-08-22 Block chain-based product management method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810959472.8A CN108876213B (en) 2018-08-22 2018-08-22 Block chain-based product management method, device, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108876213A CN108876213A (en) 2018-11-23
CN108876213B true CN108876213B (en) 2022-05-17

Family

ID=64321522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810959472.8A Active CN108876213B (en) 2018-08-22 2018-08-22 Block chain-based product management method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108876213B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377104A (en) * 2018-12-04 2019-02-22 泰康保险集团股份有限公司 Data processing method, device, medium and electronic equipment
CN109472518B (en) * 2018-12-10 2021-06-29 泰康保险集团股份有限公司 Block chain-based sales behavior evaluation method and device, medium and electronic equipment
CN109359901A (en) * 2018-12-13 2019-02-19 泰康保险集团股份有限公司 Method and device, medium and electronic equipment are determined based on the business risk of block chain
CN109697670B (en) * 2018-12-29 2021-06-04 杭州趣链科技有限公司 Public link information shielding method without influence on credibility
CN109857611A (en) * 2019-01-31 2019-06-07 泰康保险集团股份有限公司 Test method for hardware and device, storage medium and electronic equipment based on block chain
CN109977014B (en) * 2019-03-22 2022-04-05 泰康保险集团股份有限公司 Block chain-based code error identification method, device, equipment and storage medium
US11488099B2 (en) 2019-10-18 2022-11-01 International Business Machines Corporation Supply-chain simulation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2742395C (en) * 2007-11-14 2019-01-08 Panjiva, Inc. Evaluating public records of supply transactions
CN102541899B (en) * 2010-12-23 2014-04-16 阿里巴巴集团控股有限公司 Information identification method and equipment
CN102495164B (en) * 2011-11-30 2014-07-23 深圳市计量质量检测研究院 Comprehensive classifying model authenticating method for geographical indication protected vinegar product
CN105021736B (en) * 2015-08-04 2017-11-07 内蒙古农业大学 Former milk or liquid milk authenticity discrimination method and system
WO2017059297A1 (en) * 2015-10-02 2017-04-06 Phylagen, Inc. Product authentication and tracking
US20170221075A1 (en) * 2016-01-29 2017-08-03 Sap Se Fraud inspection framework

Also Published As

Publication number Publication date
CN108876213A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108876213B (en) Block chain-based product management method, device, medium and electronic equipment
US10592386B2 (en) Fully automated machine learning system which generates and optimizes solutions given a dataset and a desired outcome
US11132248B2 (en) Automated information technology system failure recommendation and mitigation
US11625602B2 (en) Detection of machine learning model degradation
US11924027B1 (en) Detecting network operation validation anomalies in conglomerate-application-based ecosystems systems and methods
US11842238B2 (en) Methods and arrangements to detect a payment instrument malfunction
WO2019072128A1 (en) Object identification method and system therefor
US20230401468A1 (en) Methods and systems for generating forecasts using an ensemble online demand generation forecaster
US12260424B2 (en) Techniques to predict and implement an amortized bill payment system
US11797565B2 (en) Data validation using encode values
US12050625B2 (en) Systems and methods for classifying imbalanced data
CN112883990A (en) Data classification method and device, computer storage medium and electronic equipment
CN109859060A (en) Risk determines method, apparatus, medium and electronic equipment
US20240086736A1 (en) Fault detection and mitigation for aggregate models using artificial intelligence
CN115114073A (en) Method and device for processing alarm information, storage medium, and electronic device
CN110070383B (en) Abnormal user identification method and device based on big data analysis
CN113487208B (en) Risk assessment method and device
US12026718B1 (en) Low latency anomaly detection and related mitigation action
US20240220660A1 (en) System and method for managing ai models based on downstream use of inferences
TWI778634B (en) Method for classifying faults, electronic equipment and storage medium
CN117172632B (en) Enterprise abnormal behavior detection method, device, equipment and storage medium
CN113361555B (en) Method and device for generating user tags
US20250021872A1 (en) Determining data quality using data reconstruction models
CN116881031A (en) Disk fault prediction method and device
CN118967139A (en) A risk data analysis method, system, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant