CN107844980A - Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment - Google Patents
Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment Download PDFInfo
- Publication number
- CN107844980A CN107844980A CN201710940939.XA CN201710940939A CN107844980A CN 107844980 A CN107844980 A CN 107844980A CN 201710940939 A CN201710940939 A CN 201710940939A CN 107844980 A CN107844980 A CN 107844980A
- Authority
- CN
- China
- Prior art keywords
- commodity
- false
- true
- authenticity
- characteristic 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Strategic Management (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Entrepreneurship & Innovation (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明涉及一种商品真假鉴别方法及装置、计算机存储介质及设备,获取通过机器学习方法,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型,获取待测商品的特征信息,将待测商品的特征信息作为商品真假鉴别模型的输入进行商品真假鉴别,即采用通过预设机器学习方法根据样本商品的特征信息库建立的商品真假鉴别模型,对待测商品进行真假鉴别,从而实现待测商品的真假准确鉴别,且无需通过人工进行真假鉴别,避免由于人工主观性影响鉴别结果的问题,提高商品鉴别准确性,然后再根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级,便于更加直观地获知待测商品的真假程度。
The invention relates to a commodity authenticity identification method and device, a computer storage medium and equipment, which obtain a commodity authenticity identification model determined by machine learning according to a feature information database of a preset sample commodity through a machine learning method, and obtain the authenticity of the commodity to be tested. Feature information, using the feature information of the product to be tested as the input of the product authenticity identification model to identify the authenticity of the product, that is, using the product authenticity identification model established by the preset machine learning method based on the feature information database of the sample product, and the product to be tested Carry out true and false identification, so as to realize the accurate identification of the true and false of the product to be tested, and do not need to manually identify the true and false, avoid the problem of affecting the identification result due to artificial subjectivity, improve the accuracy of product identification, and then according to the identification data and The data ranges corresponding to each preset authenticity level determine the authenticity level of the commodity to be tested, so as to know the authenticity degree of the commodity to be tested more intuitively.
Description
技术领域technical field
本发明涉及数据处理技术领域,特别涉及一种商品真假鉴别方法及装置、计算机存储介质及设备。The invention relates to the technical field of data processing, in particular to a method and device for authenticating a commodity, a computer storage medium and equipment.
背景技术Background technique
随着电子商务的快速发展,网上购物已经走进千家万户中,足不出户即可享受到商场购物的便捷。由于网络的虚拟性和相关监管制度的局限性,电商平台的商品良莠不齐,充斥着大量的假冒伪劣产品,这既损害了消费者和正规厂家的权益,又给消费者网络购物带来了选择商品的困难,严重影响了电子商务的健康发展。因此,为确保电子商务的健康发展,对商品进行真假鉴别是非常有必要的。With the rapid development of e-commerce, online shopping has entered thousands of households, and people can enjoy the convenience of shopping in shopping malls without leaving home. Due to the virtuality of the network and the limitations of the relevant regulatory system, the goods on the e-commerce platform are uneven, filled with a large number of fake and shoddy products, which not only damages the rights and interests of consumers and regular manufacturers, but also brings choices to consumers when shopping online. The difficulty of commodities has seriously affected the healthy development of e-commerce. Therefore, in order to ensure the healthy development of e-commerce, it is very necessary to identify the authenticity of commodities.
目前,进行商品真假鉴定的常用方法是消费者根据商品的介绍以及图片等信息进行人工鉴别,但由于人工鉴别存在强烈主观性,影响鉴别结果,不能确保鉴别的准确性。At present, the common method for identifying the authenticity of commodities is for consumers to manually identify products based on information such as product introductions and pictures. However, due to the strong subjectivity of manual identification, it affects the identification results and cannot ensure the accuracy of identification.
发明内容Contents of the invention
基于此,有必要针对鉴别准确性低的问题,提供一种商品真假鉴别方法及装置、计算机存储介质及设备。Based on this, it is necessary to provide a method and device, a computer storage medium and a device for authenticating a commodity to address the problem of low identification accuracy.
一种商品真假鉴别方法,包括如下步骤:A method for identifying the authenticity of a commodity, comprising the steps of:
获取通过机器学习方法,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型;Obtain a product authenticity identification model determined by machine learning based on the characteristic information database of preset sample products through machine learning;
获取待测商品的特征信息;Obtain the characteristic information of the product to be tested;
将所述待测商品的特征信息作为所述商品真假鉴别模型的输入进行商品真假鉴别,获得真假鉴别数据;Using the feature information of the commodity to be tested as the input of the commodity authenticity identification model to identify the authenticity of the commodity, and obtain authenticity identification data;
根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级。According to the identification data and the data ranges corresponding to each preset authenticity level, the authenticity level of the commodity to be tested is determined.
还提供一种商品真假鉴别装置,包括:Also provided is a commodity authenticity identification device, comprising:
鉴别模型获取模块,用于获取通过预设机器学习装置,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型;The identification model acquisition module is used to obtain a product authenticity identification model determined by machine learning according to the feature information database of preset sample products through a preset machine learning device;
第一特征信息获取模块,用于获取待测商品的特征信息;The first characteristic information acquisition module is used to obtain the characteristic information of the product to be tested;
鉴别数据获取模块,用于将所述待测商品的特征信息作为所述商品真假鉴别模型的输入进行商品真假鉴别,获得真假鉴别数据;The identification data acquisition module is used to use the characteristic information of the commodity to be tested as the input of the commodity authenticity identification model to identify the authenticity of the commodity, and obtain the authenticity identification data;
真假鉴别模块,用于根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级。The authenticity identification module is used to determine the authenticity level of the product to be tested according to the identification data and the data ranges corresponding to the preset authenticity levels.
还提供一种计算机存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述方法的步骤。A computer storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are realized.
还提供一种计算机设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的方法。A computer device is also provided, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the above-mentioned method is realized when the processor executes the computer program.
通过上述商品真假鉴别方法及装置、计算机存储介质及设备进行待测商品真假鉴别时,一方面,采用通过预设机器学习方法根据样本商品的特征信息库建立的商品真假鉴别模型,对待测商品进行真假鉴别,获得鉴别数据,从而实现待测商品的真假准确鉴别,另一方面,通过上述过程进行真假鉴别,无需再通过人工进行真假鉴别,避免由于人工主观性影响鉴别结果的问题,提高商品鉴别准确性,然后再根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级,便于更加直观地获知待测商品的真假程度。When using the above method and device, computer storage medium and equipment to identify the authenticity of the commodity to be tested, on the one hand, using the commodity authenticity identification model established according to the characteristic information database of the sample commodity through the preset machine learning method, treat The authenticity of the tested product is identified, and the identification data is obtained, so as to realize the accurate identification of the authenticity of the product to be tested. On the other hand, the authenticity identification is carried out through the above process, and there is no need to manually identify the true and false, avoiding the influence of artificial subjectivity on identification As a result, improve the accuracy of commodity identification, and then determine the authenticity level of the commodity to be tested according to the identification data and the corresponding data ranges of the preset authenticity levels, so as to more intuitively know the authenticity of the commodity to be tested. degree of authenticity.
附图说明Description of drawings
图1为一实施例的商品真假鉴别方法的流程图;Fig. 1 is the flow chart of the commodity authenticity identification method of an embodiment;
图2为另一实施例的商品真假鉴别方法的流程图;Fig. 2 is the flow chart of the commodity authenticity identification method of another embodiment;
图3为一实施例的商品真假鉴别装置的模块示意图;Fig. 3 is a schematic diagram of modules of a commodity authenticity identification device of an embodiment;
图4为另一实施例的商品真假鉴别装置的模块示意图。Fig. 4 is a schematic diagram of modules of a product authenticity identification device according to another embodiment.
具体实施方式Detailed ways
请参阅图1,提供一种实施例的商品真假鉴别方法,包括以下步骤S110至步骤S140。Please refer to FIG. 1 , which provides an embodiment of a commodity authenticity identification method, including the following steps S110 to S140.
S110:获取通过机器学习方法,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型。S110: Acquiring a product authenticity identification model determined by machine learning based on the characteristic information database of preset sample products through machine learning.
机器学习方法是一类从已知数据中自动分析获得规律,并利用规律对未知数据进行预测的方法,机器学习方法对应有初始预测模型,不同机器学习方法对应不同的初始预测模型,初始预测模型对应有输入、过程参数以及输出,输出由输入和过程参数决定,机器学习即为根据已知的输入数据以及对应的输出数据不断修正过程参数以获得最优的过程参数的过程,即将已知的输入数据作为初始预测模型的输入,已知输出数据作为初始预测模型的输出,不断更新初始预测模型中的过程参数,获得最优的过程参数,从而得到目标预测模型(在本实施例中对应商品真假鉴别模型)。可以理解,进行机器学习后得到的目标预测模型是利用得到的最优的过程参数建立的输入与输出之间的对应关系,也就是上述已知输入数据和输出数据满足的规律,在需要对未知输入数据预测其对应的输出时,将未知输入数据作为上述得到的目标预测模型的输入,通过目标预测模型进行预测可获得预测结果即输出。Machine learning method is a kind of method that automatically analyzes and obtains laws from known data, and uses the laws to predict unknown data. Machine learning methods correspond to initial prediction models. Different machine learning methods correspond to different initial prediction models. Initial prediction models Corresponding to the input, process parameters and output, the output is determined by the input and process parameters. Machine learning is the process of continuously correcting the process parameters according to the known input data and corresponding output data to obtain the optimal process parameters. The input data is used as the input of the initial prediction model, and the known output data is used as the output of the initial prediction model, and the process parameters in the initial prediction model are continuously updated to obtain the optimal process parameters, thereby obtaining the target prediction model (in this embodiment, the corresponding commodity true and false identification model). It can be understood that the target prediction model obtained after machine learning is the corresponding relationship between the input and the output established by using the optimal process parameters obtained, that is, the above-mentioned law that the known input data and output data satisfy. When the input data predicts its corresponding output, the unknown input data is used as the input of the target prediction model obtained above, and the prediction result can be obtained through the target prediction model, that is, the output.
在本实施例中,首先获取预先已确定的商品真假鉴别模型,以便后续通过真假鉴别模型进行商品真假的鉴别。上述真假鉴别模型是采用机器学习方法根据预设样本商品的特征信息库进行机器学习得到的,其对应的输入为商品的特征信息,对应的输出为真假标签,即为根据目标过程参数建立的商品的特征信息与真假标签的对应关系。具体地,将预设样本商品的特征信息库作为机器学习方法所需的已知数据,然后进行机器学习,寻找预设样本商品的特征信息库中预设样本商品的特征信息满足的规律。In this embodiment, firstly, a pre-determined commodity authenticity identification model is obtained, so that the authenticity of the commodity can be subsequently identified through the authenticity identification model. The above authenticity identification model is obtained by machine learning based on the characteristic information database of preset sample commodities. The corresponding input is the characteristic information of the commodity, and the corresponding output is the true and false label, which is established according to the target process parameters. The corresponding relationship between the characteristic information of the commodity and the true and false labels. Specifically, the feature information library of the preset sample products is used as the known data required by the machine learning method, and then machine learning is performed to find the rules that the feature information of the preset sample products in the feature information library of the preset sample products satisfies.
S120:获取待测商品的特征信息。S120: Obtain feature information of the product to be tested.
在获得商品真假鉴别模型之后,即可进行待测商品的真假鉴别,则首先需要获取待测商品的特征信息,作为商品真假鉴别模型的输入。在本实施例中,单个待测商品的特征信息与单个样本商品的特征信息的特征数量相同,且特征类型相同。例如,样本商品包括A商品和B商品,A商品和B商品分别对应的特征信息包括A1特征和A2特征,获得对应的商品真假鉴别模型后,对待测商品C进行预测,则获取的待测商品C的特征信息也包括A1特征和A2特征,即待测商品C的A1特征和A2特征,为后续通过商品真假鉴别模型对待测商品C进行真假鉴别提供数据依据。After the authenticity identification model of the product is obtained, the authenticity identification of the product to be tested can be carried out. First, the characteristic information of the product to be tested needs to be obtained as the input of the product authenticity identification model. In this embodiment, the feature information of a single commodity to be tested has the same number of features and the same feature type as the feature information of a single sample commodity. For example, the sample product includes product A and product B, and the feature information corresponding to product A and product B includes A1 feature and A2 feature. After obtaining the corresponding product authenticity identification model, the product C to be tested is predicted, and the obtained test product The feature information of product C also includes A1 feature and A2 feature, that is, the A1 feature and A2 feature of the product C to be tested, which provide data basis for the subsequent authentication of the product C to be tested through the product authenticity identification model.
S130:将待测商品的特征信息作为商品真假鉴别模型的输入进行商品真假鉴别,获得真假鉴别数据。S130: Using the feature information of the commodity to be tested as an input of the commodity authenticity identification model to identify the authenticity of the commodity, and obtain authenticity identification data.
在获得商品真假鉴别模型以及待测商品的特征信息后,即可对待测商品进行真假预测,获得预测结果即真假鉴别数据。在根据目标过程参数建立商品的特征信息与真假标签的对应关系后,不同商品的特征信息作为真假鉴别模型的输入,输出的预测结果可能不同,将待测商品的特征信息作为商品真假鉴别模型的输入进行商品真假鉴别,获得待测商品对应的真假鉴别数据(反映待测商品的真假的数据)。After obtaining the authenticity identification model of the commodity and the feature information of the commodity to be tested, the authenticity of the commodity to be tested can be predicted, and the prediction result is the authenticity discrimination data. After establishing the corresponding relationship between the characteristic information of the commodity and the true and false labels according to the target process parameters, the characteristic information of different commodities is used as the input of the authenticity identification model, and the output prediction results may be different. The characteristic information of the commodity to be tested is used as the authenticity of the commodity The input of the identification model is used to identify the authenticity of the commodity, and the authenticity identification data corresponding to the commodity to be tested (data reflecting the authenticity of the commodity to be tested) is obtained.
S140:根据鉴别数据以及各预设真假等级分别对应的数据范围,确定待测商品的真假等级。S140: Determine the authenticity level of the product to be tested according to the identification data and the data ranges corresponding to each preset authenticity level.
由于得到的真假鉴别数据的大小存在多样性,不能准确地判断待测商品的真假,预先进行真假等级的划分,每个真假等级对应一个数据范围,根据鉴别数据以及各预设真假等级分别对应的数据范围,确定待测商品的真假等级。具体地,将鉴别数据所属的数据范围对应的预设真假等级作为待测商品的真假等级,如此,可得到商品准确真假鉴别结果。且能统一直观地反映商品的真假。Due to the diversity of the obtained authenticity identification data, the authenticity of the product to be tested cannot be accurately judged. The authenticity level is divided in advance. Each authenticity level corresponds to a data range. According to the identification data and each preset authenticity The data ranges corresponding to the false grades determine the true and false grades of the commodities to be tested. Specifically, the preset authenticity level corresponding to the data range to which the identification data belongs is used as the authenticity level of the product to be tested, so that an accurate authenticity identification result of the product can be obtained. And can uniformly and intuitively reflect the authenticity of the goods.
通过上述商品真假鉴别方法进行待测商品真假鉴别时,一方面,采用通过预设机器学习方法根据样本商品的特征信息库建立的商品真假鉴别模型,对待测商品进行真假鉴别,获得鉴别数据,从而实现待测商品真假准确鉴别,另一方面,通过上述过程进行真假鉴别,无需再通过人工进行真假鉴别,避免由于人工主观性影响鉴别结果的问题,提高商品鉴别准确性,然后再根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级,便于更加直观地获知待测商品的真假程度。可为用户提供待测商品是否假冒伪劣产品的准确参考信息,提高用户电商购物的体验,对于促进电子商务产业健康发展有积极的意义。When the authenticity of the commodity to be tested is identified by the above-mentioned commodity authenticity identification method, on the one hand, the commodity authenticity identification model established by the preset machine learning method based on the characteristic information database of the sample commodity is used to identify the authenticity of the commodity to be tested, and the obtained Identify the data, so as to realize the accurate identification of the authenticity of the product to be tested. On the other hand, through the above-mentioned process to identify the authenticity, there is no need to manually identify the authenticity, avoiding the problem of artificial subjectivity affecting the identification results, and improving the accuracy of product identification , and then determine the authenticity level of the product under test according to the identification data and the data ranges corresponding to the preset authenticity levels, so as to know the degree of authenticity of the commodity under test more intuitively. It can provide users with accurate reference information on whether the product to be tested is a fake or inferior product, and improve the user's e-commerce shopping experience, which is of positive significance for promoting the healthy development of the e-commerce industry.
请参阅图2,在其中一个实施例中,获取通过机器学习方法,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型的步骤之前,还包括步骤:Please refer to Fig. 2, in one of the embodiments, before obtaining the authenticity identification model of commodities determined by machine learning according to the feature information library of preset sample commodities through machine learning methods, further steps are included:
S101:获取各样本商品的特征信息以及各样本商品分别对应的真假标签。S101: Obtain feature information of each sample commodity and authenticity labels corresponding to each sample commodity.
在获取上述商品真假鉴别模型之前,首先要确定商品真假鉴别模型,在本实施例中,确定商品真假鉴别模型过程中,首先,获取各样本商品的特征信息以及各样本商品分别对应的真假标签,其中,真假标签用来标志商品真假的信息,预先建立有商品的真假标签库,商品的真假标签库中存储各样本商品分别对应的真假标签,可从商品的真假标签库中获取各样本商品分别对应的真假标签。例如,可采用标签1标志商品为真,采用标签0标志商品为假,针对已知的样本商品a和样本商品b,若样本商品a为真商品,则样本商品a对应的真假标签为标志商品为真的信息,可以为1,样本商品b为假商品,则样本商品b对应的真假标签为标志商品为假的信息,可以为0。Before acquiring the authenticity identification model of the above-mentioned commodities, the authenticity identification model of the commodities must first be determined. Authentic and false labels, wherein the authentic and false labels are used to mark the authenticity of the commodity. The authentic and false label library of the commodity is established in advance. The true and false labels corresponding to each sample commodity are obtained from the true and false label library. For example, label 1 can be used to mark the product as true, and label 0 can be used to mark the product as false. For the known sample product a and sample product b, if sample product a is a real product, then the true and false label corresponding to sample product a is the symbol The information that the product is genuine can be 1, and the sample product b is a fake product, then the true and false label corresponding to the sample product b is the information indicating that the product is fake, which can be 0.
进一步地,各样本商品包括真商品和假商品,则上述各样本商品的特征信息包括真商品的特征信息以及假商品的特征信息,这样既覆盖真商品又覆盖假商品的特征信息,有利于提高后续进行机器学习得到的商品鉴别模型的准确性。Further, each sample product includes a real product and a fake product, and the feature information of each sample product includes the feature information of the real product and the feature information of the fake product, so that the feature information of both the real product and the fake product is covered, which is beneficial to improve The accuracy of the commodity identification model obtained by subsequent machine learning.
S102:根据各样本商品的特征信息以及各样本商品分别对应的真假标签,建立预设样本商品的特征信息库。S102: According to the characteristic information of each sample commodity and the true and false labels corresponding to each sample commodity, establish a characteristic information database of preset sample commodities.
在获取各样本商品的特征信息以及各样本商品分别对应的真假标签后,可将其进行组合,建立预设样本商品的特征信息库,以便于统一存储,且便于后续进行机器学习过程中特征信息以及真假标签的获取。预设样本商品的特征信息库中包括各样本商品的特征信息以及各样本商品分别对应的真假标签。After obtaining the feature information of each sample product and the corresponding true and false labels of each sample product, they can be combined to establish a feature information database of preset sample products for unified storage and subsequent machine learning. Information and access to true and false labels. The characteristic information database of the preset sample commodities includes characteristic information of each sample commodity and authenticity labels corresponding to each sample commodity.
S103:通过机器学习方法,根据建立的样本商品库中的各样本商品的特征信息以及各样本商品分别对应的真假标签进行机器学习,确定商品真假鉴别模型。S103: Using a machine learning method, perform machine learning according to the characteristic information of each sample commodity in the established sample commodity library and the authenticity labels corresponding to each sample commodity, and determine a commodity authenticity identification model.
一个具体示例中,机器学习方法可包括支持向量、神经网络、隐形马尔科夫模型以及贝叶斯判别模型,在进行商品真假鉴别模型确定过程中,可采用上述机器学习方法中任意一种方法根据建立的样本商品库中的各样本商品的特征信息以及各样本商品分别对应的真假标签进行机器学习。In a specific example, machine learning methods may include support vectors, neural networks, hidden Markov models, and Bayesian discriminant models, and any one of the above machine learning methods may be used in the process of determining the authenticity of commodities. Machine learning is performed according to the feature information of each sample commodity in the established sample commodity library and the true and false labels corresponding to each sample commodity.
在其中一个实施例中,获取各样本商品的特征信息的方式包括:通过网路爬虫抓取样本商品的特征信息。In one embodiment, the manner of obtaining the characteristic information of each sample commodity includes: grabbing the characteristic information of the sample commodity through a web crawler.
网络爬虫是一种按照一定的规则,自动的抓取网路中的信息的程序或者脚本。在电子商务领域中,多种多样的商品可供购买,通过网络爬虫可快速准确地在网络中抓取样本商品的特征信息。A web crawler is a program or script that automatically grabs information on the Internet according to certain rules. In the field of e-commerce, a variety of commodities are available for purchase, and the feature information of sample commodities can be quickly and accurately captured in the network through a web crawler.
在其中一个实施例中,获取待测商品的特征信息的方式包括:获取待测商品的网页地址;根据网页地址获取所述待测商品的网页,读取所述待测商品的网页的内容,获取待测商品的特征信息。In one of the embodiments, the method of obtaining the feature information of the product to be tested includes: obtaining the web page address of the product to be tested; obtaining the web page of the product to be tested according to the web page address, reading the content of the web page of the product to be tested, Obtain feature information of the product to be tested.
需要对待测商品的真假进行预测时,用户可输入待测商品的网页地址,即可获取待测商品的网路地址,然后;根据网页地址获取所述待测商品的网页,网页中包括待测商品的相关信息,例如,上架时间、商品信息(比如材料、名称、产地等信息)的介绍,通过读取所述待测商品的网页的内容,即可获取待测商品的特征信息。When it is necessary to predict the authenticity of the commodity to be tested, the user can input the webpage address of the commodity to be tested to obtain the network address of the commodity to be tested, and then obtain the webpage of the commodity to be tested according to the webpage address. The webpage includes Relevant information of the product to be tested, for example, the introduction of the time on the shelf, product information (such as material, name, origin, etc.), by reading the content of the web page of the product to be tested, the feature information of the product to be tested can be obtained.
在其中一个实施例中,特征信息包括名称信息、生产厂家信息、产地信息、评价信息、价格信息、介绍信息以及规格信息。In one embodiment, the feature information includes name information, manufacturer information, origin information, evaluation information, price information, introduction information and specification information.
通过结合上述名称信息、生产厂家信息、产地信息、评价信息、价格信息、介绍信息以及规格信息,能准确表征对应的商品的特点,通过上述特征信息作为所述商品真假鉴别模型的输入进行商品真假鉴别时,可提高商品真假鉴别模型的真假预测结果的准确性。By combining the above-mentioned name information, manufacturer information, origin information, evaluation information, price information, introduction information, and specification information, the characteristics of the corresponding commodity can be accurately characterized, and the above-mentioned characteristic information is used as the input of the authenticity identification model of the commodity to identify the commodity. During authenticity identification, the accuracy of the authenticity prediction result of the commodity authenticity identification model can be improved.
在其中一个实施例中,所述确定所述待测商品的真假等级之后,还包括步骤:根据预设显示形式显示所述待测商品的真假等级。In one of the embodiments, after the determination of the authenticity level of the commodity to be tested, a step is further included: displaying the authenticity level of the commodity to be tested according to a preset display form.
一个具体示例中,预设真假等级可包括绝对真等级、真等级、一般真等级、一般假等级、假等级以及严重假等级。在确定待测商品的真假等级之后进行显示,以更加直观地为用户提示商品的真假,即便于用户查看待测商品的真假程度。在本实施例中,通过预设显示形式进行显示,其中,预设显示形式包括文字显示形式以及颜色图片显示形式。针对文字显示形式,在对待测商品的真假等级进行显示时,显示的是对应的文字信息,例如,待测商品c的真假等级为真等级,对应显示真等级文字。针对颜色图片显示形式,真假等级与颜色图片对应,不同真假等级显示的图片颜色不同,例如,真假等级从绝对真等级到严重假等级,图片颜色可逐渐变深或变浅,比如,真等级对应的图片颜色为浅红色,一般真等级对应的图片颜色为红色,待测商品c的真假等级为真等级,则显示红色图片,以更加直观方式提示用户。In a specific example, the preset truth level may include an absolute true level, a true level, a general true level, a general false level, a false level and a serious false level. After the authenticity level of the commodity to be tested is determined, it is displayed so as to more intuitively prompt the user about the authenticity of the commodity, that is, to facilitate the user to check the authenticity of the commodity to be tested. In this embodiment, the display is performed in a preset display form, wherein the preset display form includes a text display form and a color picture display form. Regarding the text display form, when displaying the authenticity level of the commodity under test, the corresponding text information is displayed. For example, the authenticity level of the commodity c under test is the true level, and the true level text is displayed correspondingly. For the color picture display form, the true and false levels correspond to the color pictures, and the colors of pictures displayed by different true and false levels are different. For example, the true and false levels range from absolute true to serious false, and the color of the picture can gradually become darker or lighter. For example, The color of the picture corresponding to the true level is light red. Generally, the color of the picture corresponding to the true level is red. If the authenticity level of the product c to be tested is the true level, a red picture will be displayed to remind the user in a more intuitive way.
请参阅图3,提供一种实施例的商品真假鉴别装置,包括:Please refer to Figure 3, which provides an embodiment of a product authenticity identification device, including:
鉴别模型获取模块310,用于获取通过预设机器学习装置,根据预设样本商品的特征信息库进行机器学习确定的商品真假鉴别模型。The identification model acquisition module 310 is used to acquire a product authenticity identification model determined by machine learning based on the feature information database of preset sample products through a preset machine learning device.
第一特征信息获取模块320,用于获取待测商品的特征信息。The first feature information acquisition module 320 is configured to acquire feature information of the product to be tested.
鉴别数据获取模块330,用于将待测商品的特征信息作为商品真假鉴别模型的输入进行商品真假鉴别,获得真假鉴别数据。The identification data acquisition module 330 is used to use the characteristic information of the product to be tested as the input of the product authenticity identification model to perform authenticity identification of the product and obtain authenticity identification data.
真假鉴别模块340,用于根据鉴别数据以及各预设真假等级分别对应的数据范围,确定待测商品的真假等级。The authenticity identification module 340 is used to determine the authenticity level of the product to be tested according to the identification data and the corresponding data ranges of the preset authenticity levels.
通过上述商品真假鉴别装置进行待测商品真假鉴别时,一方面,采用通过预设机器学习方法根据样本商品的特征信息库建立的商品真假鉴别模型,对待测商品进行真假鉴别,获得鉴别数据,从而实现待测商品真假准确鉴别,另一方面,通过上述过程进行真假鉴别,无需再通过人工进行真假鉴别,避免由于人工主观性影响鉴别结果的问题,提高商品鉴别准确性,然后再根据所述鉴别数据以及各预设真假等级分别对应的数据范围,确定所述待测商品的真假等级,便于更加直观地获知待测商品的真假程度。可为用户提供待测商品是否假冒伪劣产品的准确参考信息,提高用户电商购物的体验,对于促进电子商务产业健康发展有积极的意义。When using the above-mentioned commodity authenticity identification device to identify the authenticity of the commodity to be tested, on the one hand, the authenticity of the commodity to be tested is identified by using the commodity authenticity identification model established by the preset machine learning method according to the characteristic information database of the sample commodity, and the obtained Identify the data, so as to realize the accurate identification of the authenticity of the product to be tested. On the other hand, through the above-mentioned process to identify the authenticity, there is no need to manually identify the authenticity, avoiding the problem of artificial subjectivity affecting the identification results, and improving the accuracy of product identification , and then determine the authenticity level of the product under test according to the identification data and the data ranges corresponding to the preset authenticity levels, so as to know the degree of authenticity of the commodity under test more intuitively. It can provide users with accurate reference information on whether the product to be tested is a fake or inferior product, and improve the user's e-commerce shopping experience, which is of positive significance for promoting the healthy development of the e-commerce industry.
请参阅图4,在其中一个实施例中,上述商品真假鉴别装置,还包括:Please refer to Fig. 4, in one of the embodiments, the above-mentioned commodity authenticity identification device also includes:
信息获取模块301,用于获取各样本商品的特征信息以及各样本商品分别对应的真假标签;An information acquisition module 301, configured to acquire the feature information of each sample product and the true and false labels corresponding to each sample product;
特征信息库建立模块302,用于根据各样本商品的特征信息以及各样本商品分别对应的真假标签,建立预设样本商品的特征信息库;The characteristic information database building module 302 is used to establish a characteristic information database of preset sample commodities according to the characteristic information of each sample commodity and the true and false labels corresponding to each sample commodity;
鉴别模型确定模块303,用于通过预设机器学习装置,根据建立的样本商品库中的各样本商品的特征信息以及各样本商品分别对应的真假标签进行机器学习,确定商品真假鉴别模型。The identification model determination module 303 is used to perform machine learning according to the characteristic information of each sample commodity in the established sample commodity library and the authenticity labels corresponding to each sample commodity through a preset machine learning device, so as to determine a commodity authenticity identification model.
在其中一个实施例中,上述信息获取模块301包括:In one of the embodiments, the information acquisition module 301 includes:
第二特征信息获取模块,用于通过网路爬虫抓取样本商品的特征信息。The second feature information acquisition module is used to capture feature information of sample commodities through a web crawler.
在其中一个实施例中,上述第二特征信息获取模块包括:In one of the embodiments, the above-mentioned second feature information acquisition module includes:
网页地址获取模块,用于获取待测商品的网页地址。The web page address obtaining module is used to obtain the web page address of the product to be tested.
待测商品的特征信息获取模块,用于根据所述网页地址获取所述待测商品的网页,读取所述待测商品的网页的内容,获取待测商品的特征信息。The characteristic information acquisition module of the commodity under test is used to obtain the webpage of the commodity under test according to the webpage address, read the content of the webpage of the commodity under test, and obtain the characteristic information of the commodity under test.
在其中一个实施例中,上述特征信息包括名称信息、生产厂家信息、产地信息、评价信息、价格信息、介绍信息以及规格信息。In one embodiment, the feature information includes name information, manufacturer information, origin information, evaluation information, price information, introduction information and specification information.
在其中一个实施例中,上述商品真假鉴别装置,还包括:In one of the embodiments, the above-mentioned commodity authenticity identification device further includes:
显示模块,用于根据预设显示形式显示所述待测商品的真假等级。The display module is used to display the authenticity level of the commodity to be tested according to a preset display form.
本发明一个实施例中还提供一种计算机存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述商品真假鉴别方法的步骤。An embodiment of the present invention also provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned commodity authenticity identification method are realized.
本发明一个实施例中还提供一种计算机设备,包括存储器、处理器以及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述商品真假鉴别方法。An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, the above method for authenticating a commodity is realized.
上述商品真假鉴别装置、计算机存储介质以及计算机设备中的技术特征分别与上述商品真假鉴别方法中的技术特征是对应的,在此不再赘述。The technical features in the above-mentioned commodity authentication device, computer storage medium and computer equipment are respectively corresponding to the technical features in the above-mentioned commodity authentication method, and will not be repeated here.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above examples only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710940939.XA CN107844980A (en) | 2017-09-30 | 2017-09-30 | Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710940939.XA CN107844980A (en) | 2017-09-30 | 2017-09-30 | Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107844980A true CN107844980A (en) | 2018-03-27 |
Family
ID=61662048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710940939.XA Pending CN107844980A (en) | 2017-09-30 | 2017-09-30 | Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844980A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111523908A (en) * | 2020-03-31 | 2020-08-11 | 云南省烟草质量监督检测站 | Packaging machine type tracing method, device and system for identifying authenticity of cigarettes |
CN112070510A (en) * | 2020-08-12 | 2020-12-11 | 上海连尚网络科技有限公司 | A method and equipment for detecting substandard goods based on blockchain |
CN112070511A (en) * | 2020-08-12 | 2020-12-11 | 上海连尚网络科技有限公司 | A method and equipment for detecting substandard goods |
CN112567419A (en) * | 2018-08-21 | 2021-03-26 | 先讯美资电子有限责任公司 | Self-service product return using computer vision and artificial intelligence |
CN112633383A (en) * | 2020-12-25 | 2021-04-09 | 百度在线网络技术(北京)有限公司 | Antique identification method and device, electronic equipment and readable medium |
CN114445167A (en) * | 2020-11-06 | 2022-05-06 | 电子湾有限公司 | Condition prediction for a list of items |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6996543B1 (en) * | 1998-04-14 | 2006-02-07 | International Business Machines Corporation | System for protection of goods against counterfeiting |
CN101820366A (en) * | 2010-01-27 | 2010-09-01 | 南京邮电大学 | Pre-fetching-based phishing web page detection method |
CN106462549A (en) * | 2014-04-09 | 2017-02-22 | 尹度普有限公司 | Authenticating physical objects using machine learning from microscopic variations |
CN107194587A (en) * | 2017-05-24 | 2017-09-22 | 暨南大学 | It is a kind of to be circulated based on block chain and the art work of expert system and identification register method |
-
2017
- 2017-09-30 CN CN201710940939.XA patent/CN107844980A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6996543B1 (en) * | 1998-04-14 | 2006-02-07 | International Business Machines Corporation | System for protection of goods against counterfeiting |
CN101820366A (en) * | 2010-01-27 | 2010-09-01 | 南京邮电大学 | Pre-fetching-based phishing web page detection method |
CN106462549A (en) * | 2014-04-09 | 2017-02-22 | 尹度普有限公司 | Authenticating physical objects using machine learning from microscopic variations |
CN107194587A (en) * | 2017-05-24 | 2017-09-22 | 暨南大学 | It is a kind of to be circulated based on block chain and the art work of expert system and identification register method |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112567419A (en) * | 2018-08-21 | 2021-03-26 | 先讯美资电子有限责任公司 | Self-service product return using computer vision and artificial intelligence |
CN111523908A (en) * | 2020-03-31 | 2020-08-11 | 云南省烟草质量监督检测站 | Packaging machine type tracing method, device and system for identifying authenticity of cigarettes |
CN111523908B (en) * | 2020-03-31 | 2023-04-07 | 云南省烟草质量监督检测站 | Packaging machine type tracing method, device and system for identifying authenticity of cigarettes |
CN112070510A (en) * | 2020-08-12 | 2020-12-11 | 上海连尚网络科技有限公司 | A method and equipment for detecting substandard goods based on blockchain |
CN112070511A (en) * | 2020-08-12 | 2020-12-11 | 上海连尚网络科技有限公司 | A method and equipment for detecting substandard goods |
CN112070510B (en) * | 2020-08-12 | 2024-12-03 | 上海连尚网络科技有限公司 | A method and device for detecting unqualified goods based on blockchain |
CN112070511B (en) * | 2020-08-12 | 2025-08-15 | 上海连尚网络科技集团有限公司 | Method and equipment for detecting unqualified commodity |
CN114445167A (en) * | 2020-11-06 | 2022-05-06 | 电子湾有限公司 | Condition prediction for a list of items |
CN112633383A (en) * | 2020-12-25 | 2021-04-09 | 百度在线网络技术(北京)有限公司 | Antique identification method and device, electronic equipment and readable medium |
CN112633383B (en) * | 2020-12-25 | 2023-08-18 | 百度在线网络技术(北京)有限公司 | Ancient game authentication method and device, electronic equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107844980A (en) | Commercial articles true and false discrimination method and device, computer-readable storage medium and equipment | |
JP6216024B1 (en) | Trained model generation method and signal data discrimination device | |
US11699101B2 (en) | Automatic image selection for online product catalogs | |
CN109741144B (en) | Commodity verification method and device, host and equipment | |
CN110148000A (en) | A security control system and method applied to a payment platform | |
CN110765825A (en) | Method and system for acquiring article placement state | |
CN110703215B (en) | Airborne SAR imaging quality evaluation method based on support vector machine | |
CN104243474B (en) | Electronic equipment authenticity verification method and device | |
CN107800670B (en) | Method and device for early warning website safety | |
CN117714722B (en) | Data analysis method and system for live shopping of electronic commerce | |
CN110263255A (en) | Acquisition methods, system, server and the storage medium of customer attribute information | |
CN112839047A (en) | A method, device, device and medium for asset vulnerability scanning on a cloud platform | |
JP2025059081A (en) | Footwear Authentication System Using Pressure Distribution Image Analysis | |
WO2022230639A1 (en) | Information processing device, information processing method, and program | |
CN109858446A (en) | Article register method and device under a kind of new public safety | |
CN109597744A (en) | Data change analysis method and device | |
CN112306606A (en) | A method and device for presenting control style | |
CN111626437A (en) | Confrontation sample detection method, device and equipment and computer scale storage medium | |
CN113269433B (en) | Tax risk prediction method, apparatus, medium and computer program product | |
CN115048996B (en) | Quality assessment model training and use method, equipment and storage medium | |
CN112685478B (en) | Information processing method for cloud service and user portrait mining and cloud server | |
CN112580674B (en) | Image recognition method, computer device, and storage medium | |
CN112950329A (en) | Commodity dynamic information generation method, device, equipment and computer readable medium | |
CN114240462A (en) | A commodity traceability method, electronic device and storage medium | |
CN112685610A (en) | False registration account identification method and related device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180327 |