| In recent years, along with the development of commodity economy and improvement of enterprises’strategic brand awareness, a growing number of enterprises begin to pay attention to its own brand image, implementation of Business Strategy and Consumption information collection. However, there are more and more lawbreakers andagencies as well, who want to seek exorbitant profits with fake, or to gain money through goods trafficking. Enterprises’brand image and strategy implementation is badly harmed and lawful right of consumers is greatly violated. With the emergence of two-dimensional code technology, there comes some anti-forgery or goods trafficking preventing system based on two-dimensional code. All these systems can solve the problems from a certain level and view, but there are still some aspects to improve.This article designs a system, which combines two-dimensional code technology and machine learning algorithm of data mining technology. By the integration of enterprise’s anti-forgery flow and goods trafficking preventing flow, with the Support Vector Machine’s intelligent match to Commodity information types, the system can identify counterfeit goods and transshipments rapidly and accurately. The anti-forgery and goods trafficking preventing system includes alternating layer, business logic layer, Data storage and analysis layer, programmed by Java, Python and JavaScript, using SSH Framework and LIBSVM. This article completes the major functions, which can be summarized as the following respects:(1) Point out the principle, method and steps to realize commodity security using encrypted two-dimensional code. By the integration and stitching of commodity information, plaintext is gained. By encrypting plaintext with MD5, digital digestis gained. Plaintext and digital digestjoint and form the encrypted two-dimensional code. The client scans the two-dimensional code, get the plaintext and digital digest, verify them with a certain key and check the scanned counter, and then get the type of the information. For some information with uncertain type, transport them to data analysis and mining module to do the matching, and then estimate if the good is counterfeit.(2)Indicate the principle, method and steps to realize goods trafficking prevention using two-dimensional code as commodity logistics code. By establishing the matched relation of commodity barcode, packaging barcode and destination, verify whether the real destination of a product is legal. For some information with uncertain type, transport them to data analysis and mining module to do the matching, and then estimate if the good is fleeing goods.(3) Math the types of commodity information using machine learning algorithm of data mining. For commodity information which is hard to be sorted by common logic, preprocess the sale information, transport to SVM classifier which is based on knowledge base, and finally return the result to callers.In the end, functions of anti-forgery code generation, code recognition in smart terminals, forgery information recognition and sales areas abnormally recognition are tested, proving that two-dimensional code anti-forgery and goods trafficking preventing system based on data mining is feasible. |