Trademark content risk assessment method and system
Through the GrabCut algorithm and vectorization processing, combined with cosine similarity calculation, the accuracy and efficiency issues of product appearance and trademark content risk assessment in e-commerce software are solved, and the identification and graphic trademarks of two-dimensional wireframes and three-dimensional model drawings are realized. Efficient retrieval simplifies the operation process and improves recognition accuracy and speed.
Patent Information
- Application Number
- CN202410862903.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-08-23
AI Technical Summary
Existing e-commerce software cannot effectively assist sellers in risk assessment during the product appearance and trademark content determination stages. Existing patent and trademark search systems have problems such as inaccurate retrieval, complex operations, and a large consumption of computing resources, especially when identifying two-dimensional products. The recognition accuracy is low when it comes to wireframe diagrams, three-dimensional model diagrams, and graphic trademarks.
The GrabCut algorithm is used for background separation processing, and vectorization processing is used to generate image sample vectors. Through cosine similarity calculation and risk level classification, the retrieval operation is simplified and risk assessment suggestions are automatically generated. It is suitable for non-professional users and is compatible with the identification of wireframes and model diagrams. , and speed up retrieval through background separation and vectorization.
It improves the accuracy of product appearance and trademark search results, simplifies operation steps, reduces risk assessment costs, shortens the preliminary preparation time for patent and trademark applications, and improves recognition accuracy and search speed.
Smart Images

Figure CN118536816A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a product appearance risk assessment method, a trademark content risk assessment method, and systems corresponding to the methods. Background Art
[0002] With the rise of global e-commerce, a large number of domestic small and medium-sized e-commerce sellers have expanded their retail business to foreign markets through e-commerce platforms. In order to assist sellers in managing overseas stores, e-commerce software (e-commerce auxiliary tools) such as e-commerce ERP systems, VAT tax systems, and EPR compliance systems have been gradually developed. For many sellers, it is often necessary to immediately assess the risks of product appearance patents and trademark registrations, but existing patent / trademark search tools cannot directly and effectively assist sellers.
[0003] When sellers use existing patent and trademark search systems, they lack professional knowledge of patent / trademark search and risk assessment, which makes it difficult to set search formulas, inaccurate searches, and difficult to evaluate search results, which prevents sellers from timely and accurately knowing the relevant risks at the stage of determining product appearance or trademark content. Existing e-commerce software (auxiliary software) cannot search for appearance patents and / or trademarks, nor can it simplify the search operation steps, let alone provide risk assessment suggestions for search results.
[0004] In addition, the existing appearance patent search system cannot effectively identify two-dimensional wireframe drawings and three-dimensional model drawings, resulting in that even two-dimensional wireframe drawings and three-dimensional model drawings of the same product will be judged as different products or dissimilar products, affecting the accuracy of the appearance patent search results.
[0005] The existing trademark search system also has the problem of low image recognition accuracy when searching for graphic trademarks. In addition, when searching for text trademarks, the existing trademark search system usually performs similarity matching based on the smallest unit of shape features, the smallest unit of pronunciation features, and the smallest unit of meaning features of the trademark name, and then judges the similarity scores of the three dimensions of shape, pronunciation, and meaning based on the different matching degrees, and then obtains the similarity values of different compared trademarks. This method of similarity judgment of text trademarks requires the pre-construction of many feature minimization units. The related recognition and judgment process is very cumbersome and requires a lot of computing resources, thereby reducing the speed of trademark retrieval.
[0006] Other technical issues related to this application will be further described later. The above content is only used to assist in understanding the technical solution of this application, and does not mean that all of the above content is prior art. Summary of the invention
[0007] The main purpose of this application is to provide a product appearance risk assessment method and system to improve the accuracy of appearance patent search results and automatically generate risk assessment suggestions for product appearance based on the search results. In addition, this application also provides a trademark content risk assessment method and system, which can improve the accuracy of trademark search results, automatically generate risk assessment suggestions for trademark content based on the search results, and speed up the search of trademarks.
[0008] To achieve the above purpose, the present application proposes a product appearance risk assessment method, which is used in a risk assessment module of e-commerce software. The risk assessment module includes an image retrieval mode. The method also includes the following steps: Step K1: Obtain simple text information and the appearance picture of the product to be risk assessed, use the GrabCut algorithm to perform background separation processing on the product appearance picture, and generate a corresponding initial product picture; Step K2: vectorizing the initial product image to generate a sample vector of the corresponding product appearance image. The vectorizing step includes: Step K21: reading a bitmap image of the picture to be vectorized, and converting the bitmap image into a grayscale bitmap; using the Canny edge detection algorithm to locate the shape edge of the image in the grayscale bitmap, and obtaining the image contour information of the grayscale bitmap; and using the RDP algorithm to simplify the image contour; Step K22: converting the simplified image outline into SVG path data; Step K23: Generate a picture sample vector in SVG format based on the SVG path data and the pixel intensity value of the grayscale bitmap; Step K3: retrieve the appearance patents that match the simple text information from the patent database, extract the patent appearance drawings of the appearance patents, perform background separation and vectorization processing on each patent appearance drawing of the appearance patents, and generate image sample vectors of the corresponding patent appearance drawings; Step K4: performing cosine similarity calculation based on the image sample vector of the product appearance image and the image sample vector of the patent appearance image, and obtaining a cosine similarity value S of the product appearance image and the patent appearance image after calculation; Step K5: Preset an initial similarity value S0 so that S0 satisfies 0.25≤S0≤0.35; select design patents with cosine similarity values S≥S0 as result patents, and output and display the result patents in the order of the size of the cosine similarity values S; Step K6: Set multiple patent risk levels according to different digital intervals; define the result patent with the largest cosine similarity value S and a valid patent status as the target evaluation patent, obtain the cosine similarity value S' of the target evaluation patent, determine the corresponding patent risk level according to the cosine similarity value S' of the target evaluation patent, and generate risk assessment recommendations based on the determined patent risk level.
[0009] Other technical features and technical effects of this application are described in the following part of the specification. The technical problem solving ideas and related product design solutions of this application are: After investigation, the applicant found that as the control of store intellectual property rights by various e-commerce platforms becomes increasingly strict, it becomes increasingly important to conduct risk assessments on the product appearance or trademark registration information of new products before putting new products on the store or registering new brands; however, the existing patent and / or trademark search systems are mainly used by professional legal staff. If they are directly used by non-professional legal personnel such as sellers, the following problems will arise: the search method is not professional enough and it is easy to miss the search content; after obtaining the search results, it is difficult to accurately judge the size of the risk.
[0010] Moreover, if sellers entrust professional intellectual property service agencies to complete relevant searches and evaluations in advance during the stage of determining product appearance or trademark content, the entrusted evaluation will take a lot of time and money, and the evaluation efficiency will be very low, which will be difficult to meet the actual needs of the majority of small and medium-sized sellers.
[0011] The applicant found that if a risk assessment module (including a patent assessment module and a trademark assessment module) is set up in the e-commerce software, and the front-end interface of the risk assessment module is set to a simpler operating interface than the existing patent and trademark search system, the seller only needs to set a small amount of simple search information (search conditions), and the remaining search information is automatically generated by the system or obtained by the system from the store information. In this way, the seller only needs simple operations to complete the accurate search of appearance patents and trademarks, thereby avoiding the seller from setting complex search formulas.
[0012] For the patent evaluation module (i.e., the product appearance risk assessment system), a picture retrieval mode specifically for use by primary users (referring to non-professionals in the field of intellectual property such as sellers) can be set to simplify the retrieval operation. In the picture retrieval mode, the system performs retrieval operations and risk assessments for appearance patents based on the product appearance pictures and simple text information provided by the user. Among them, simple text information refers to the text information in the retrieval text information used by primary users to set retrieval conditions (i.e., the text information corresponding to the patent retrieval items that are easy to set), and the retrieval operation of appearance patents refers to the operation process of matching the corresponding patents from the patent database based on the patent retrieval information (patent retrieval conditions). Patent retrieval information includes product appearance pictures and retrieval text information, and the retrieval text information can be classified into simple text information and detailed text information. Detailed text information is patent retrieval text information for professional users (referring to users who are proficient in patent retrieval skills), including patent application number, patent authorization number, patent name, abstract (generally refers to the abstract of invention patents, the abstract of utility models and the brief description of appearance designs), classification number, application date, publication date, applicant, inventor, patent country, patent application number, authorization announcement number, publication number, agency, legal status and other detailed patent retrieval items.
[0013] In the image search mode, the simple text information only includes a small number of patent search items such as patent classification numbers and keywords. The keyword search item corresponds to multiple patent search items such as patent name and abstract. When the user enters the keyword text in the keyword search item, the patent search module automatically recognizes the keyword text content and fills the recognized keyword text content into the patent name, abstract or other patent search items to generate a patent search formula, thereby simplifying the setting operation of the search formula.
[0014] In the patent search module, you can also set a text search mode and / or a mixed search mode. In the text search mode, the system searches and conducts risk assessment on appearance patents based on the detailed text information provided by the user. In the mixed search mode, the system searches for appearance patents based on the product appearance pictures and detailed text information provided by the user, thereby making the system suitable for professional users.
[0015] In addition, when the existing appearance patent search system searches for similar appearance design patents based on images, it mainly compares the similarity based on the features of the image dimensions such as color, pattern and shape, calculates the image similarity based on the similarity values of the features of each dimension and the corresponding weights, and then outputs the corresponding appearance patent as the search result according to the size of the similarity value. This method cannot effectively identify two-dimensional wireframes (referred to as wireframes) and three-dimensional model diagrams (referred to as model diagrams), resulting in the wireframes and model diagrams of the same product being judged as different products or dissimilar products, affecting the accuracy of the appearance patent search results.
[0016] After analysis and verification, the applicant found that an important reason why most wireframes and model diagrams cannot be recognized by existing patent search systems is that when calculating similarity, the existing patent search system assigns too high a weight to the product pattern and background of the image, while the weight of the product shape feature in the image is too low.
[0017] If, during patent search, the contour features of the image in the searched image are enhanced, and the image similarity judgment is performed based on the pixel intensity value (i.e., grayscale value) of the searched image in grayscale state, then the influence of the texture features of the object (product pattern) in the searched image on the similarity judgment can be weakened. This solution is compatible with image recognition between wireframe diagrams and model diagrams.
[0018] In specific implementation, the image processing module can be set to first perform background separation processing on the product appearance image to be risk assessed and the patent appearance image of the appearance patent in the patent database to generate the corresponding initial product image, thereby reducing the impact of the image background on the image content and reducing the difficulty of identifying two-dimensional wireframe images and three-dimensional model images. When performing background separation processing, the GrabCut algorithm can be used to gradually improve the accuracy of segmentation using its iterative optimization mechanism. After the initial product image is generated, the initial product image is then vectorized to generate the corresponding image sample vector. The operation steps can be: (1) The bitmap image of the picture to be vectorized is read through the OpenCV library, and the bitmap image is converted into a grayscale bitmap; the shape edge of the image in the grayscale bitmap is located using the Canny edge detection algorithm to obtain the image contour information of the grayscale bitmap; the RDP algorithm is used to simplify the image contour to enhance the contour features of the image in the retrieved picture.
[0019] (2) Convert the simplified image contour into SVG path data. At this time, it is necessary to traverse each contour and convert the points on the contour into an SVG path data string.
[0020] (3) Generate an image sample vector in SVG format based on the SVG path data and the pixel intensity value of the grayscale bitmap; when generating the image sample vector, the open source Apache Batik library can be used to complete it, and its generation process includes: ① creating an SVG document structure; ② creating an SVGGraphics2D object; ③ drawing the SVG path data of each image contour to the SVGGraphics2D object; ④ saving the SVG file to generate a vector image file in SVG format (that is, generating an image sample vector in SVG format based on the saving operation of the SVG file).
[0021] Through vectorization processing, the contour features of the image in the enhanced retrieved image and the features of the pixel intensity value of the retrieved image in the grayscale state can be extracted, and an easy-to-calculate image sample vector can be generated. In addition, the vectorization processing can eliminate the impact of the product angle difference between the product appearance image and the patent appearance image on the product similarity judgment. For example, under the same other conditions, if the product direction of the same product in the product appearance image is vertical, and the product direction in the patent appearance image is horizontal, then the product appearance image and the patent appearance image of the same product will be judged to be the same (cosine similarity value S=1), so that the similarity calculation is not affected by the product direction in the image, thereby improving the recognition accuracy of the image.
[0022] Furthermore, the cosine similarity is calculated based on the image sample vector of the product appearance image and the image sample vector of the patent appearance image, and the cosine similarity value S of the product appearance image and each patent appearance image is obtained after calculation; then, the appearance patents with cosine similarity value S ≥ preset initial similarity value S0 are selected as result patents; finally, the result patents are output and displayed in the order of the size of the cosine similarity value S (from large to small), and displayed in the result display window of the patent evaluation module to complete the retrieval operation of the appearance patent. After verification, it was found that the value range of S0 is set as 0.25≤S0≤0.35, and the result patent obtained can achieve a relatively ideal patent search output effect.
[0023] After completing the search operation of the appearance patent, it is still difficult for the seller to accurately judge the risk level of the product appearance diagram. For this reason, a risk assessment module is set in the patent search module to automatically generate risk assessment suggestions based on the search results. Therefore, multiple patent risk levels are first set according to different digital intervals, and each of the digital intervals is used as a risk interval for the corresponding patent risk level. For example, in step K6, three patent risk levels of high, medium and low can be set. The digital interval of the high patent risk level is [L1,1], the digital interval of the medium patent risk level is [L2,L1), and the digital interval of the low patent risk level is [-1,L2). After verification by actual product pictures, when L1=0.75±0.05 and L2=0.45±0.05, a relatively accurate risk level division can be obtained, thereby improving the quality of patent risk assessment.
[0024] This product appearance risk assessment method can greatly simplify the steps of searching for product appearance pictures in the image retrieval mode, and automatically generate risk assessment suggestions for product appearance pictures, so that sellers and other non-IP professionals can know the relevant risks in a timely and accurate manner at the stage of determining the product appearance, thereby greatly shortening the preparatory time for patent applications, reducing invalid applications, and saving the cost of product appearance risk assessment. When processing pictures, it can also reduce the influence of the texture features of the objects in the retrieved pictures on the similarity judgment, thereby improving the recognition accuracy of two-dimensional wireframe pictures and three-dimensional model pictures, so that the system can be compatible with the recognition of wireframe pictures and model pictures, the recognition of black and white pictures and color pictures, and the recognition between different background pictures when searching for appearance patents, thereby greatly improving the accuracy of appearance patent search results; in addition, since the background separation processing and vector processing operations are simplified in the image processing process, the speed of searching and evaluating appearance patents can also be significantly accelerated.
[0025] Furthermore, based on the trademark evaluation module (i.e., the trademark content risk evaluation system), this application also provides a trademark content risk evaluation method and system to simplify the operation of trademark search, improve the accuracy of trademark search, and generate corresponding trademark risk evaluation suggestions. The technical problem solving ideas and related product design solutions are as follows: Set two trademark search modes: graphic search mode (search based on trademark graphics and search text information) and name search mode (search based on trademark name and search text information). The graphic search mode is used to search graphic trademarks, and the name search mode is used to search word trademarks, to suit different application scenarios.
[0026] Trademark search information includes trademark content (trademark graphics and trademark names) and search text information. In order to simplify the trademark search operation, the search text information can also be classified into simple text information and detailed text information. The detailed text information of trademarks is used for professional users, including detailed trademark search items such as trademark category, goods and services, trademark country, application number, registration number, applicant, application date, registration date, agency, legal status, etc. The simple text information of trademarks only includes a small number of trademark search items such as trademark category and trademark country.
[0027] A trademark category identification module is set up in the trademark evaluation module. The trademark category identification module sets corresponding category words according to the trademark category (such as Class 1 to Class 45 of the Nice Classification), and each category word constitutes a category word library. For example, Class 11 of the Nice Classification is the trademark category of "lighting, heating, steam generation, cooking, refrigeration, drying, ventilation, water supply and sanitary devices" (referred to as the "lighting and air conditioning" category), which includes multiple trademark categories such as "lighting equipment and appliances (excluding gas lamps and oil lamps)" in the 1101 trademark subcategory, "spray welding lamps" in the 1102 trademark subcategory, and "gas lamps, oil lamps" in the 1103 trademark subcategory; each trademark subcategory includes several goods and services, among which the 1101 trademark subcategory includes "110021 light bulbs", "110022 electric light bulbs", "110023 arc lamps", "110051 flashlights" and other goods and services. At this time, "light bulb", "electric light bulb", "arc lamp" and "flashlight" can be set as the category words of the 1101st trademark subcategory. Each category word is associated with the corresponding trademark subcategory, and each trademark subcategory is associated with the corresponding trademark category.
[0028] When the user inputs a product name or service name, the trademark category identification module automatically matches the input product or service name with the category word. If the product or service name matches the corresponding category word (when the product or service name and the category word are the same, the product or service name contains the category word, or the category word contains the product or service name, it is determined to be a successful match, otherwise the match is unsuccessful), the trademark subcategory and trademark category information corresponding to the matched category word are extracted, and the extracted trademark category is used as the trademark category for the current trademark search; if the product or service name does not match the corresponding category word, the user is prompted to confirm the product or service name. In other solutions, when the product or service name does not match the corresponding category word, the category word (part of the text of the product or service name contained in the category word) with the highest similarity to the product or service name is selected as the matching result.
[0029] When multiple classifiers are matched, they may correspond to the same trademark subclass or trademark major class. In this case, the duplicate trademark subclass and trademark major class will be removed, and the trademark major class after the duplication will be used as the trademark class for the current trademark search. The goods and service items corresponding to the successfully matched classifiers are the goods and service items at the time of trademark registration.
[0030] A complete category vocabulary is created through the trademark category identification module, so that users can quickly and accurately obtain the corresponding product and service items, trademark categories, and trademark subcategories from 45 trademark categories simply by using the product and service name (which can be a product name or a service name), thereby effectively reducing the difficulty for users to select product categories.
[0031] When the trademark search mode is the graphic search mode, refer to the implementation method of the image search mode of the appearance patent in the patent evaluation module, and transform the relevant information of the relevant appearance patent into the corresponding information content of the searched trademark to realize the graphic search function of the trademark. The main steps include: performing background separation processing and vectorization processing on the trademark graphics to be risk assessed (defined as the query trademark graphics) and the trademark graphics in the trademark database (defined as the comparison trademark graphics) to generate the corresponding query trademark graphics and the comparison trademark graphics. Sample vectors of the image sample vector of the trademark graphics are processed by background separation to generate the corresponding initial trademark graphics. Then, based on the image sample vector of the query trademark graphics and the image sample vector of the comparison trademark graphics, the cosine similarity value S of the query trademark graphics and the comparison trademark graphics after calculation is obtained; then, according to the preset initial similarity value S0, the appearance patents with a cosine similarity value S≥S0 are selected as the result trademarks, and the result trademarks are output and displayed in the order of the size of the cosine similarity value S. Among them, in the trademark application scenario, the preset initial similarity value S0 is set as 0.1≤S0≤0.2, which can achieve an ideal trademark search output effect.
[0032] Finally, referring to the patent risk level method: set multiple trademark risk levels according to different digital intervals; define the resulting trademark with the largest cosine similarity value S and a valid trademark status as the target evaluation trademark, obtain the cosine similarity value S' of the target evaluation trademark, determine the corresponding trademark risk level according to the cosine similarity value S' of the target evaluation trademark, and generate risk assessment recommendations based on the determined trademark risk level.
[0033] When setting the trademark risk level, you can also set three trademark risk levels: high, medium and low. The numerical interval of the high trademark risk level is [L1,1], the numerical interval of the medium trademark risk level is [L2,L1), and the numerical interval of the low trademark risk level is [-1,L2); among them, for trademark risk, when L1=0.6±0.05 and L2=0.3±0.05, a more accurate risk level division can be obtained, thereby improving the quality of trademark risk assessment.
[0034] Furthermore, each trademark risk level may also be composed of one or more sub-risk levels, and the numerical intervals of multiple sub-risk levels are formed by splitting the numerical intervals of the original trademark risk level according to specific numerical nodes.
[0035] This trademark content risk assessment method can simplify the search operation steps of graphic trademarks in the graphic retrieval mode, and automatically generate risk assessment suggestions for product appearance pictures, so that sellers can know the relevant risks in a timely and accurate manner during the trademark content determination stage, thereby greatly shortening the pre-preparation time for trademark applications, reducing invalid applications, and saving the cost of trademark content risk assessment. When processing images, it can also reduce the impact of the texture features of the retrieved trademark graphics on the similarity judgment, thereby improving the recognition accuracy of trademark graphics. Since the background separation processing and vector processing operations are simplified during the image processing process, the speed of retrieval and evaluation of trademark content can also be significantly accelerated.
[0036] The name search mode used for trademark word mark searches is described below.
[0037] Furthermore, the present application also includes systems corresponding to various methods, wherein the systems include the functional modules involved in the present application and execute various operation instructions of the corresponding functional modules. Accordingly, the present application also provides a corresponding server, which includes a memory and a processor. The functional modules and their systems in the present application are stored in the memory, and the processor can execute the operation instructions of the corresponding functional modules and their systems. In addition, the present application also provides a corresponding computer device, which includes a memory and a processor. The functional modules and their systems in the present application are stored in the memory, and the processor can execute the operation instructions of the corresponding functional modules and their systems.
[0038] Disclaimer: The product appearance assessment system and / or trademark content risk assessment system of this application can be set in an e-commerce software system or as an independent software system. The e-commerce software of this application includes cross-border e-commerce software and local e-commerce software (e-commerce software used in a single country). The identity of the seller in this application is not strictly limited, and generally refers to a person (ie, user) who needs to conduct a product appearance and trademark content risk assessment, which can be a store seller or other person. The various functional modules of this application can be integrated with each other, or exist independently, and one functional module can be a submodule of another functional module. In this application, appearance patent refers to the abbreviation of design patent; The following are the descriptions of the professional terms used in this application (the letters of English words are not case sensitive).
[0039] (1) ERP (Enterprise Resource Planning) refers to enterprise resource planning, which can be referred to as ERP system in this application; VAT (Value Added Tax) is the value-added tax on the production and business activities of taxpayers; EPR (Extended Producers Responsibility) refers to the extended producer responsibility related to environmental policies.
[0040] (2) A two-dimensional wireframe drawing (wireframe drawing for short) refers to a two-dimensional product drawing composed of product contour lines, such as a two-dimensional plane drawing derived from a three-dimensional product model; a three-dimensional model drawing (model drawing for short) refers to a product drawing composed of multiple product surfaces, such as a rendering of a three-dimensional product model, a product photo taken based on the actual product, and other drawings.
[0041] (3) OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning library that contains a large number of algorithms and functions for image and video processing, computer vision, and related fields.
[0042] (4) The GrabCut algorithm is an interactive image segmentation method based on graph cuts. It indicates the foreground and background areas through simple interactions. The algorithm finds the optimal foreground and background segmentation by minimizing an energy function, thereby achieving background removal.
[0043] (5) Canny edge detection algorithm is a multi-level edge detection algorithm.
[0044] (6) The RDP (Ramer-Douglas-Peucker) algorithm is a commonly used method for simplifying polygon contours. It can effectively reduce the number of points while maintaining the similarity of the original shape. When using it, first convert the contour points detected by OpenCV into a list of Point objects, and then call the RDP algorithm.
[0045] (7) Apache Batik is a Java-based toolkit that can be used to process images in SVG (Scalable Vector Graphics) format; SVG is an XML-based graphics format that presents vector graphics and can be scaled losslessly without distortion. (8) SVGGraphics2D is a Java class that inherits from the Graphics2D class and can be used to create and generate graphics in SVG format.
[0046] (9) Cosine similarity (cosine similarity) is a method of evaluating the similarity between two vectors by calculating the cosine value of the angle between them. In this application, the cosine similarity value (S) is the value obtained by calculating the cosine similarity based on the image sample vector of the product appearance image and the image sample vector of the patent appearance image (-1≤S≤1).
[0047] (10) A figurative trademark is a mark consisting solely of a graphic image and used in connection with goods or services.
[0048] (11) A word trademark refers to a mark composed of Chinese characters, letters, numbers or other words and used on goods or services.
[0049] (12) Elasticsearch is a distributed, highly scalable, and highly real-time search and data analysis engine; BM25 (Best Match 25) is a statistical algorithm for information retrieval, mainly used to calculate the relevance score between query text and documents.
[0050] (13) The Soundex algorithm is a simple phonetic encoding system that aims to convert words (letters) into a code so that words with similar pronunciations produce the same code, thus facilitating fuzzy matching of strings.
[0051] (14) Edit distance is a metric used to measure the difference between two strings. Edit distance calculates the minimum number of editing operations required to convert one string to another.
[0052] (15) BERT (Bidirectional Encoder Representations from Transformers) is a Transformer-based deep bidirectional language representation model that aims to pre-train deep bidirectional representations by jointly regulating the context in all layers. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to provide further understanding of the present application and do not constitute a limitation of the present application; the contents shown in the accompanying drawings may be real data of the embodiments and belong to the protection scope of the present application.
[0054] Figure 1 This is a schematic diagram of the e-commerce software structure in one embodiment of the present application.
[0055] Figure 2 Schematic diagram of a patent evaluation module in one embodiment of the present application.
[0056] Figure 3 Schematic diagram of the product appearance risk assessment method in one embodiment of the present application.
[0057] Figure 4 Schematic diagram of a trademark evaluation module in one embodiment of the present application.
[0058] Figure 5 Schematic diagram of the trademark content risk assessment method in one embodiment of the present application.
[0059] Figure 6 Schematic diagram of the flow of a method for calculating text trademark similarity in one embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of this application more clear, the following is a further detailed description of the embodiments of this application through specific implementation methods combined with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.
[0061] like Figure 1-Figure 3 ,This application proposes a product appearance risk assessment method, which is used in a risk assessment module of e-commerce software. The risk assessment module includes an image retrieval mode. The method also includes steps K1-K6, as follows.
[0062] Step K1: Obtain simple text information and the appearance picture of the product to be risk assessed, and use the GrabCut algorithm to perform background separation on the product appearance picture to generate the corresponding initial product picture. After removing the background, the corresponding picture can be further cropped to reduce the noise of the initial product picture; the initial product picture is saved in bitmap format.
[0063] Step K2: vectorizing the initial product image to generate a sample vector of the corresponding product appearance image. The vectorizing step includes: Step K21: add the OpenCV library, read the bitmap image of the picture to be vectorized through the OpenCV library, and convert the bitmap image into a grayscale bitmap; use the Canny edge detection algorithm to locate the shape edge of the image in the grayscale bitmap, and obtain the image contour information of the grayscale bitmap; use the RDP algorithm to simplify the image contour; Step K22: converting the simplified image outline into SVG path data; Step K23: Generate a picture sample vector in SVG format based on the SVG path data and the pixel intensity value of the grayscale bitmap.
[0064] Step K3: retrieve the appearance patent that matches the simple text information from the patent database, extract the patent appearance drawings of the appearance patent, perform background separation processing and vectorization processing on each patent appearance drawing of the appearance patent (the background separation processing and vectorization processing methods in steps S1 and S2 can be used), and generate image sample vectors of the corresponding patent appearance drawings. Among them, the patent database can cover Chinese patents and patents from other countries around the world, so that sellers can timely retrieve and evaluate the risks of product appearance in different countries. Simple text information can include patent country information of the patent search destination country to narrow the search scope; patent country information can be specified by the user, or the store site information associated with the e-commerce software can be automatically obtained as patent country information.
[0065] Step K4: Perform cosine similarity calculation based on the image sample vector of the product appearance image and the image sample vector of the patent appearance image, and obtain the calculated cosine similarity value S of the product appearance image and the patent appearance image. When calculating the cosine similarity value S, if a single appearance patent has multiple patent appearance images (patent views), the image sample vector of the product appearance image is respectively calculated with the image sample vector of each patent appearance image, and the maximum value of the calculation result is taken as the cosine similarity value S of the product appearance image and the patent appearance image of the appearance patent.
[0066] Step K5: Preset an initial similarity value S0 so that S0 satisfies 0.25≤S0≤0.35; select appearance patents with cosine similarity values S≥S0 as result patents, and output and display the result patents in order of the size of the cosine similarity value S, where the range of S value is -1≤S≤1, and the larger the S value, the higher the patent risk level.
[0067] Step K6: Set multiple patent risk levels according to different digital intervals; define the result patent with the largest cosine similarity value S and a valid patent status as the target evaluation patent, obtain the cosine similarity value S' of the target evaluation patent, determine the corresponding patent risk level according to the cosine similarity value S' of the target evaluation patent, and generate risk assessment suggestions based on the determined patent risk level. The cosine similarity value of the patent appearance diagram and the product appearance diagram of the target evaluation patent is referred to as the cosine similarity value of the target evaluation patent; that is, the pre-similarity value of a patent refers to the cosine similarity value of the patent appearance diagram and the product appearance diagram of the patent.
[0068] In one embodiment, the generated risk assessment suggestion can be output to the result display window of the patent assessment module for display, so that the user can know the patent risk of the product appearance diagram to be evaluated in time. The content of the risk assessment suggestion includes patent risk level information, patent information of the target evaluation patent and prompt information based on the patent risk level; for example, the risk assessment suggestion is "a high-risk patent with patent number XX is retrieved, please pay attention to the patent risk"; the risk assessment suggestion can be displayed together with the target evaluation patent in the result display window, or it can be displayed separately in a separate area of the result display window, or prompt information of different colors can be generated for different patent risk levels. In other implementation schemes, the patent risk level of each result patent can be judged separately, and corresponding risk assessment suggestions can be generated according to the patent risk level of each result patent. When the patent status of the result patent is invalid (including the patent status of being rejected, expired, abandoned or withdrawn), the result patent is determined to be a low-risk patent; when the patent status of the result patent is valid (including the patent status of being authorized or applied for), the corresponding patent risk level is determined according to the cosine similarity value S of the result patent.
[0069] In one embodiment, the search result information (result patent) can be classified according to the patent search items of the detailed text information, and then the classified search result information can be displayed in the result display window respectively; the search result information can also be filtered and processed according to the patent search items of the detailed text information to output more accurate search results.
[0070] In one embodiment, for step K6, L1=0.75 and L2=0.45 can be taken to obtain the corresponding three patent risk levels of high, medium and low; if the initial similarity value is set to S0=0.3, then in step K5, the appearance patents with cosine similarity values S≥0.3 are screened as the result patents. At this time, the status of the result patent may be valid or invalid, and then the result patent (that is, the target evaluation patent) with the largest cosine similarity value S and a valid patent status is selected as the object of risk assessment, and the cosine similarity value of the target evaluation patent is defined as S'. Then, the corresponding risk interval (digital interval) is matched according to S', and the corresponding patent risk level is determined based on the matched risk interval, and finally, a risk assessment recommendation is generated based on the determined patent risk level. Among them, if S' is in the digital interval [L1,1], the product appearance drawing to be evaluated belongs to a high patent risk level; if S' is in the digital interval [L2,L1), the product appearance drawing to be evaluated belongs to a medium patent risk level; if S' is in the digital interval [-1,L2), the product appearance drawing to be evaluated belongs to a low patent risk level.
[0071] In other embodiments, one or more of the three patent risk levels of high, medium and low can be further split into more patent risk levels. For example, for the high-risk patent level in the interval [L1,1], it can be further split into an ordinary high-risk patent level in the interval [L1,L1') and an ultra-high-risk patent level in the interval [L1',1], where L1'=0.9; similarly, the medium patent risk level or the low patent risk level can be split into multiple more accurate patent risk levels (defined as sub-risk levels) to further improve the accuracy of patent evaluation. Therefore, each patent risk level in the present application can be composed of one or more sub-risk levels, and the digital intervals of multiple sub-risk levels are formed by splitting the digital intervals of the original patent risk level according to specific digital nodes (such as the L1' value in the above case).
[0072] In one embodiment, the product appearance image can be a product image uploaded by a user, or a product image of a store automatically obtained from an e-commerce platform. When obtaining the product appearance image, the image format and memory size are first verified (image compatibility judgment). When the image format and memory size of the product appearance image meet the preset conditions, the background separation processing of the product appearance image is performed. For example, the image format of the product appearance image is determined based on the image suffix to determine whether it meets the preset image format (such as JPG, PNG and other image formats), and only the predetermined type of image format is accepted; when the acquired image memory exceeds the predetermined memory (such as more than 2M or 5M), the corresponding product appearance image is not accepted. When the product appearance image is a vector image, the vector image is first converted into a corresponding bitmap, and then the background separation processing or other image processing actions are performed.
[0073] In one embodiment, the patent evaluation module is further provided with a classification number recognition module, and the classification number recognition module is preset with category words corresponding to the classification numbers of each appearance patent, and each category word constitutes a category word library. For example, when searching for appearance patents according to the Locarno classification, in the category of "lighting equipment" of the classification number "26", there are subcategories such as "candlesticks and candle holders" of the "26-01" category and "flashlights, hand lamps and lanterns" of the "26-02" category. At this time, words such as "candle rings", "candles", and "candlesticks" can be set as category words of the "26-01" classification number, and words such as "flashlights", "hand lamps", and "lanterns" can be set as category words of the "26-02" classification number, and each category word is associated with the corresponding appearance patent classification number.
[0074] When the classification number recognition module determines that the content to be filled in the patent classification number in the simple text information is empty, the classification number recognition module automatically generates a patent classification number, and its generation steps include: obtaining the keyword information in the simple text information, matching the category word with the keyword information, and if the keyword information matches the corresponding category word, then taking the classification number corresponding to the matched category word as the target classification number, which is used for the classification number of the current patent search. When the keyword information is empty, the user is prompted to enter the product name in the keyword filling place, and then execute the patent classification number generation step after filling in the product name. When matching the category word and keyword information, the matching operation can be performed according to the same or similar semantics, and the category word with the same or similar semantics as the keyword information (referring to part of the keywords or all the keywords) is selected as the matching result; it can also be matched according to the text content, and the category word contained in the keyword information is selected as the matching result.
[0075] In one embodiment, when generating a patent classification number, a large model system (such as an AI system) can be used to identify the product appearance image to obtain a product name corresponding to the product appearance image, and then the category word and the obtained product name are matched, and the classification number corresponding to the matched category word is taken as the target classification number, so as to avoid users entering keyword information when searching and simplify the operation steps.
[0076] In the image retrieval mode, in order to simplify the retrieval operation, it is not necessary to perform the retrieval operation according to the patent classification number, such as searching only according to the product appearance picture, or searching only according to the product appearance picture and keywords. The applicant also found that when the retrieval operation is not performed according to the patent classification number (that is, the patent classification number information in the simple text information of step K1 is empty), when searching for the appearance patent of product A, the patent search results of product B will appear, which will confuse the assessment object of the product appearance risk and seriously affect the accuracy of the product appearance risk assessment. For example, when searching for the appearance patent of the camera, the patent search results of the door handle will be obtained; at this time, judging the patent risk of the camera according to the similarity between the door handle picture and the camera picture is inconsistent with the actual scene.
[0077] To this end, in step K5, a baseline similarity value S1 is preset, with a value range of 0.40≤S1≤0.50, and appearance patents with a cosine similarity value S≥S1 are screened as provisional patents. The patent classification number information of each provisional patent is obtained, and the patent classification number with the largest number of provisional patents is defined as the target patent classification number. The number of all provisional patents N1 and the number of provisional patents with the patent classification number as the target patent classification number are calculated. When the ratio of N2 to N1 (N2 / N1) is greater than (or greater than or equal to) the predetermined value N3, after the result patents are screened out, the result patents with the patent classification number as the target patent classification number are output and displayed in the order of the size of the cosine similarity value S. That is, the result patents with non-target patent classification numbers are not used as search results, and no further risk assessment is performed on them. After verification, when N3 is set to 50%≤N3≤90%, a relatively stable search result can be obtained.
[0078] When the ratio of N2 to N1 (N2 / N1) is less than the predetermined value N3, obtain the N4 patent classification numbers with the largest number of identical patent classification numbers in all provisional patents, and output the category information corresponding to these N4 patent classification numbers to the user for designation (select one of the N4). After the user specifies the corresponding category information, the patent classification number of the specified category information is used as the target patent classification number, and finally the result patents with the patent classification number as the target patent classification number are output and displayed in the order of the size of the cosine similarity value S; wherein N4 is taken as 3≤N4≤5. This method further denoises the search results based on the patent classification number information of the search results, thereby improving the accuracy of product appearance risk assessment.
[0079] Furthermore, the applicant also found that the texture features of some product surfaces will change significantly when the 3D model is rendered, and the irregular lighting conditions during the rendering process cause the product model to produce uncertain lighting areas and shadow areas. These uncertain lighting areas and shadow areas are difficult to repair through algorithms, making it difficult to obtain accurate image contours (refer to step K21) during the vectorization process of severely exposed model images (which can be product appearance images or patent appearance images), which ultimately affects the accuracy of image retrieval and risk assessment.
[0080] After verification, the application found that severely exposed model images are usually complex, and for complex exposure images, if the contrast is kept basically unchanged and the brightness of the image is increased, the impact of the illuminated area and the shadow area on the texture features of the model image can be greatly reduced, making the image contour of the model image closer to the actual model image. Therefore, if it is possible to identify severely exposed model images from product appearance drawings or patent appearance drawings, and increase the image brightness of the model image during vectorization, and obtain the image contour based on the image with increased brightness, the image contour features of the severely exposed model image can be greatly improved, thereby improving the accuracy of image retrieval.
[0081] In the relevant embodiment (Case 1), after the bitmap image is converted into a grayscale bitmap (corresponding to step K21), the entropy value of the grayscale image can be calculated first, and the entropy value G of the grayscale image is calculated according to the grayscale value [0-255] of each pixel in the grayscale image, and the range of the entropy value G is 0≤G≤log2(256); if the entropy value G≥4, the corresponding grayscale image and the product appearance image or patent appearance image corresponding to the grayscale image are judged to be severely exposed model images (complex images), and the grayscale image is brightness enhanced to increase the brightness of the grayscale image; if the entropy value G<4, the corresponding grayscale image and the product appearance image or patent appearance image corresponding to the grayscale image are judged to be unexposed ordinary images (simple images), and the grayscale image is not brightness enhanced.
[0082] The steps for calculating the entropy value G include: (1) obtaining grayscale image information, converting the image into a grayscale image, and storing it in a two-dimensional integer array, where the two-dimensional integer array [i][j] represents the grayscale value (0-255) of the pixel in the i-th row and j-th column of the image; (2) calculating the image histogram of the grayscale image and creating an integer array of length 256 for counting the frequency of each grayscale level; (3) normalizing the histogram and converting the frequency of each grayscale level into its probability of appearing in the image; (4) using the entropy formula of the probability distribution to calculate the entropy value G of the image.
[0083] Entropy formula: , where b = 2, P(x i)The random variable x takes the i-th possible value x i The probability of x is n, where n is the number of possible values of x.
[0084] When brightness enhancement processing is required, in step K21, the bitmap image of the picture to be vectorized is read and the bitmap image is converted into a grayscale bitmap; then the brightness value of the grayscale bitmap is increased to generate a new grayscale bitmap; the Canny edge detection algorithm is continued to be used to locate the shape edge of the image in the new grayscale bitmap to obtain the image contour information of the new grayscale bitmap; and the RDP algorithm is used to simplify the image contour. That is, in step K21, when the Canny edge detection algorithm is used to locate the shape edge of the image, a new grayscale bitmap is used to obtain the image contour information of the new grayscale bitmap; and then the RDP algorithm is used to simplify the image contour. It has been verified that increasing the brightness value of the new grayscale bitmap to 1.7 to 1.8 times that of the original grayscale bitmap can greatly reduce the influence of the illuminated area and the shadow area on the texture characteristics of the original image, and retain a clearer and more recognizable image contour.
[0085] Furthermore, the above product appearance risk assessment method can also be used to conduct risk assessment of trademark content. For this purpose, the present application also provides a trademark content risk assessment method and a corresponding system. The trademark content risk assessment method is used in the trademark assessment module (belonging to the risk assessment module) of the e-commerce software. In the graphic retrieval mode, the trademark content risk assessment method includes steps K1'-K6', as follows.
[0086] Step K1': Acquire the search text information and the trademark image to be risk assessed, define the trademark image to be risk assessed as the query trademark image; use the GrabCut algorithm to perform background separation processing on the query trademark image to generate a corresponding initial trademark image.
[0087] Step K2': vectorize the query trademark graphic to generate a picture sample vector corresponding to the query trademark graphic. The vectorization step includes: Step K21: reading a bitmap image of the picture to be vectorized, and converting the bitmap image into a grayscale bitmap; using the Canny edge detection algorithm to locate the shape edge of the image in the grayscale bitmap, and obtaining the image contour information of the grayscale bitmap; and using the RDP algorithm to simplify the image contour; Step K22: converting the simplified image outline into SVG path data; Step K23: Generate a picture sample vector in SVG format based on the SVG path data and the pixel intensity value of the grayscale bitmap.
[0088] Step K3': retrieve the trademarks matching the search text information from the trademark database, extract the trademark graphics of the matching trademarks, and define the trademark graphics of the matching trademarks as comparison trademark graphics; perform background separation and vectorization processing on each comparison trademark graphic to generate a picture sample vector of the corresponding trademark graphic.
[0089] Step K4': perform cosine similarity calculation based on the image sample vector of the query trademark image and the image sample vector of the comparison trademark image, and obtain the calculated cosine similarity value S of the query trademark image and the comparison trademark image.
[0090] Step K5': preset an initial similarity value S0, satisfying 0.1≤S0≤0.2; select trademarks with cosine similarity values S≥S0 as result trademarks, and output and display the result trademarks in the order of the size of the cosine similarity values S.
[0091] Step K6': Set multiple trademark risk levels according to different digital intervals; define the resulting trademark with the largest cosine similarity value S and a valid trademark status as the target evaluation trademark, obtain the cosine similarity value S' of the target evaluation trademark, determine the corresponding trademark risk level according to the cosine similarity value S' of the target evaluation trademark, and generate risk assessment recommendations based on the determined trademark risk level.
[0092] In one embodiment, when searching for graphic trademarks, for trademarks with complex patterns or trademarks with complex image surface texture features after special rendering (such as colorful gradient petal patterns), the solution of Case 1 can be used to determine the similarity of trademark patterns, thereby improving the recognition accuracy of trademark patterns. That is, in step K21, the bitmap image of the image to be vectorized is first read, the bitmap image is converted into a grayscale bitmap, and then the entropy value G of the grayscale image is calculated according to the grayscale value of each pixel of the grayscale image; If the entropy value G≥4, the grayscale image is enhanced to increase the brightness of the grayscale bitmap and generate a new grayscale bitmap; and when the Canny edge detection algorithm is used to locate the shape edge of the image, the new grayscale bitmap is used to obtain the image contour information of the new grayscale bitmap; then the RDP algorithm is used to simplify the image contour; when the grayscale image is enhanced, the brightness of the new grayscale bitmap is increased to 1.7-1.8 times that of the original grayscale bitmap. In this way, the effect of rendering or color gradient processing on the texture characteristics of the original trademark image can be greatly reduced, and a clearer and more recognizable image contour can be retained.
[0093] Furthermore, in the search mode of word trademarks (name search mode), in order to solve the problems of cumbersome identification and judgment process, large consumption of computing resources and slow search speed in similarity judgment of word trademarks, the applicant proposed a method for calculating trademark word similarity, and performed risk assessment of word trademarks based on the new trademark word similarity algorithm. In the name search mode of word trademarks, the word trademark similarity calculation method includes steps M1-M6, as follows.
[0094] Step M1: Obtain the search text information and the name of the trademark to be risk assessed, define the trademark to be risk assessed as the query trademark, and the trademark in the trademark database used for similarity judgment with the query trademark as the comparison trademark; set the font similarity value weight F1, pronunciation similarity value weight F2 and semantic similarity value weight F3 of the query trademark and the comparison trademark to satisfy F1+F2+F3=1; Step M2: determining the text type of the query trademark. When the text type of the query trademark is an English character string (a character string consisting of English letters), splitting the English characters to obtain the glyph information, pronunciation information and meaning information of each character of the query trademark; Step M3: Retrieving (matching) corresponding comparison trademarks from the trademark database based on the calculation of glyph similarity, pronunciation similarity and semantic similarity, including steps M31-M33: Step M31: When calculating the similarity of glyphs, the ElasticSearch tool is used for processing. The relevant steps include: (1) Using Elasticsearch to create an index, defining the mapping of fields in the index, specifying the field to be searched as a text type, and specifying an analyzer for it (setting ElasticSearch to use the BM25 scoring algorithm). (2) Indexing the trademark documents in the trademark database into Elasticsearch, the text fields in the trademark documents will be processed according to the analyzer defined in the mapping and stored as an inverted index, and the trademark documents are documents that store the information of the compared trademarks. (3) Creating a query request based on the query trademark, the match query can be used to construct the query body, and the query body contains an English string of the trademark text to be matched. (4) Sending the query request to Elasticsearch, matching the query request content with the trademark name text in the trademark document of Elasticsearch, and Elasticsearch can score the trademark documents in the index using the BM25 scoring algorithm based on the matching of the query conditions. (5) Using the BM25 scoring algorithm to calculate the BM25 scores of the query trademark and the compared trademark. (6) Selecting the comparison trademark with a BM25 score higher than a predetermined value as the temporary search trademark; converting the BM25 scores of the query trademark and the comparison trademark into a glyph similarity value E1 (maximum 1 point, minimum 0 point) of the corresponding temporary search trademark.
[0095] The steps of calculating the BM25 score include steps M311 to M315, as follows.
[0096] Step M311: Perform term frequency (TF) calculation to calculate the frequency of each character of the query trademark appearing in the trademark document.
[0097] Step M312: perform an inverse document frequency (IDF) calculation to calculate the rarity of the query trademark in all trademark documents in the trademark database (the rarer the character, the greater its contribution to the trademark document score).
[0098] Step M313: normalize the length of the trademark document to adjust the impact of the trademark document length on the score, and avoid long documents getting too high a score due to naturally higher word frequency.
[0099] Step M314: Adjust the (k1, b) parameters in the BM25 scoring algorithm, where k1 is used to control the word frequency saturation, and b is used to adjust the normalization factor affecting the document length; a lower value of k1 can reduce the impact of word frequency on the score, and a smaller value of b can reduce the impact of length. After verification, according to the values of k1=0.5±0.05 and b=0.3±0.05, the trademarks with a trademark length of 1-10 characters in the query trademark have good glyph similarity value recognition results, thereby meeting most text trademark retrieval requirements. In other embodiments, the parameter b can be set as a dynamic parameter to determine the trademark length of the query trademark. When 1≤the trademark length of the query trademark≤10, the b value is set to b=0.3; when 10<the trademark length of the query trademark≤20, the b value is set to b=0.25; when 20<the trademark length of the query trademark, the b value is set to b=0.20, thereby improving the judgment accuracy of the trademark glyph similarity.
[0100] Step M315: Calculate the BM25 scores of the query trademark and the comparison trademark based on the (k1, b) parameters.
[0101] Step M32: The Soundex algorithm is used to calculate the pronunciation similarity. The fuzzy matching characteristics of the Soundex algorithm are used to speed up the calculation of the trademark pronunciation similarity. The relevant steps include: (1) performing a first preprocessing on the query trademark and the comparison trademark. The first preprocessing includes: removing all non-alphabetic characters of the first preprocessed trademark and converting all characters of the first preprocessed trademark to uppercase or lowercase to eliminate the influence of uppercase and lowercase characters on trademark retrieval. (2) The trademark after the first preprocessing is converted into a 4-digit trademark code, the first digit of the trademark code is the first letter of the trademark after the first preprocessing, and the second to fourth digits are numbers converted from letters. The code conversion is performed in sequence starting from the second letter of the trademark after the first preprocessing. If the letter is B, F, P or V, it is converted to number 1. If the letter is C, G, J, K, Q, S, X or Z, it is converted to number 2. If the letter is D or T, it is converted to number 3. If the letter is L, it is converted to number 4. If the letter is M or N, it is converted to number 5. If the letter is R, it is converted to number 6. If the letter is A, E, I, O or U, the current letter is skipped and the next letter is converted. (3) After the code conversion of all letters is completed, the first three digits of the digital code are taken as the second to fourth digits of the trademark code in sequence; if the converted digital code is less than 3 digits after the code conversion of all letters is completed, the insufficient digital code is padded with the number 0. In this case, the first digit of the trademark code is a letter, and the second to fourth digits are numbers, which greatly simplifies the search trademark and the comparison trademark; for example, the trademark code of the search trademark "Rupert" after code conversion is "R163". (4) Calculate the edit distance between the trademark code of the search trademark and the trademark code of the comparison trademark, convert the edit distance into the pronunciation similarity value E2 of the corresponding comparison trademark (0≤E2≤1, the closer E2 is to 1, the more similar it is), and select the comparison trademark with a pronunciation similarity value E2 higher than a predetermined value as the temporary search trademark.
[0102] Step M33: When calculating semantic similarity, the BERT model is used for calculation. The relevant steps include: (1) performing a second preprocessing on the query trademark and the comparison trademark, wherein the second preprocessing includes: removing spaces and punctuation marks of the second preprocessed trademark, and converting all characters of the second preprocessed trademark to uppercase or lowercase. (2) Using the BERT tokenizer, the preprocessed trademark name text is converted into an encoding format that the BERT model can understand; for example, the trademark name text is converted into token IDs, special start and end tags (such as [CLS] and [SEP]) are added, and an attention mask is generated. (3) The trademark name text in the encoding format is input into the BERT model to obtain the embedding vector of each token, such as using the output of the last layer of the BERT model as the embedding vector of the token; for the entire sentence or string, a fixed-length sentence embedding vector is obtained by performing mean pooling or max pooling on the token embedding vector. (4) Calculate the cosine similarity between the embedding vector of the query trademark and the embedding vector of the comparison trademark, use the calculated cosine similarity value of the query trademark and the comparison trademark as the semantic similarity value E3, and select the comparison trademark whose semantic similarity value E3 is higher than a predetermined value as the temporary search trademark.
[0103] Step M4: Calculate the total similarity value E between the query trademark and the comparison trademark, E=E1*F1+ E2*F2+ E3*F3.
[0104] Step M5: Preset an initial total similarity value E0 to satisfy 0.1≤E0≤0.2; select temporary search trademarks with total similarity values E≥E0 as result trademarks, and output and display the result trademarks in order of the total similarity values E.
[0105] Step M6: Set multiple trademark risk levels according to different digital intervals; define the resulting trademark with the largest total similarity value E and a valid trademark status as the target evaluation trademark, obtain the total similarity value E' of the target evaluation trademark, determine the corresponding trademark risk level according to the total similarity value E' of the target evaluation trademark, and generate risk assessment recommendations based on the determined trademark risk level. The trademark risk level assessment method for text trademarks can refer to the trademark risk level assessment method for graphic trademarks or the patent risk level assessment method for appearance patents, so it will not be repeated here.
[0106] The above-mentioned text trademark similarity calculation method focuses on solving the retrieval and risk assessment problems of English trademarks, which are most in demand by cross-border e-commerce sellers, and can greatly improve the speed of trademark retrieval.
[0107] In one embodiment, in step M2, when the text type of the queried trademark is Chinese characters, the Chinese characters are first translated into English, and then the translated English characters are split, so that the Chinese trademark can be searched for similar trademarks in countries outside China.
[0108] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. All equivalent transformations made by using the contents of the present application specification and drawings under the inventive concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A trademark content risk assessment method, used in a risk assessment module of e-commerce software, characterized in that: The risk assessment module includes a graphic retrieval mode, and the risk assessment method in the graphic retrieval mode includes the following steps: Step K1': obtaining the search text information and the trademark image to be risk assessed, defining the trademark image to be risk assessed as the query trademark image; performing background separation processing on the query trademark image using the GrabCut algorithm to generate a corresponding initial trademark image; Step K2': vectorize the query trademark graphic to generate a picture sample vector corresponding to the query trademark graphic. The vectorization step includes: Step K21: reading a bitmap image of the picture to be vectorized, and converting the bitmap image into a grayscale bitmap; using the Canny edge detection algorithm to locate the shape edge of the image in the grayscale bitmap, and obtaining the image contour information of the grayscale bitmap; and using the RDP algorithm to simplify the image contour; Step K22: converting the simplified image outline into SVG path data; Step K23: Generate a picture sample vector in SVG format based on the SVG path data and the pixel intensity value of the grayscale bitmap; Step K3': Retrieving trademarks that match the search text information from the trademark database, extracting trademark graphics of the matching trademarks, and defining the trademark graphics of the matching trademarks as comparison trademark graphics; performing background separation and vectorization processing on each comparison trademark graphic to generate a picture sample vector of the corresponding trademark graphic; Step K4': performing cosine similarity calculation based on the image sample vector of the query trademark image and the image sample vector of the comparison trademark image, and obtaining the cosine similarity value S of the query trademark image and the comparison trademark image after calculation; Step K5': preset an initial similarity value S0, satisfying 0.1≤S0≤0.2; selecting trademarks with cosine similarity values S≥S0 as result trademarks, and outputting and displaying the result trademarks in the order of the size of the cosine similarity values S; Step K6': Set multiple trademark risk levels according to different digital intervals; define the resulting trademark with the largest cosine similarity value S and a valid trademark status as the target evaluation trademark, obtain the cosine similarity value S' of the target evaluation trademark, determine the corresponding trademark risk level according to the cosine similarity value S' of the target evaluation trademark, and generate risk assessment recommendations based on the determined trademark risk level.
2. The trademark content risk assessment method according to claim 1, characterized in that: When setting the trademark risk level, the trademark risk level includes high trademark risk level, medium trademark risk level and low trademark risk level. The numerical interval of the high trademark risk level is [L1,1], the numerical interval of the medium trademark risk level is [L2,L1), and the numerical interval of the low trademark risk level is [-1,L2), among which L1=0.6±0.05, L2=0.3±0.05; each trademark risk level is composed of one or more sub-risk levels, and the numerical intervals of multiple sub-risk levels are formed by splitting the numerical intervals of the original trademark risk level according to specific numerical nodes.
3. The trademark content risk assessment method according to claim 1, characterized in that: In step K23, when generating the image sample vector, the generation steps include: (1) creating an SVG document structure based on the Apache Batik library; (2) creating an SVGGraphics2D object; (3) drawing the SVG path data of each image contour to the SVGGraphics2D object; and (4) generating an SVG format image sample vector based on a save operation of the SVG file.
4. The trademark content risk assessment method according to claim 1, characterized in that: The risk assessment module is also provided with a trademark category identification module, which sets corresponding category words according to the trademark category; when the user inputs the product name or service name, the trademark category identification module automatically matches the product or service name with the category words according to the input, and if the product or service name matches the corresponding category words, the trademark sub-category and trademark major category information corresponding to the matched category words are extracted, and the extracted trademark major category is used as the trademark category for the current trademark search; When the commodity service name and the classifier are the same, the commodity service name contains the classifier, or the classifier contains the commodity service name, it is determined that the commodity service name matches the corresponding classifier.
5. The trademark content risk assessment method according to claim 1, characterized in that: In step K21, a bitmap image of the picture to be vectorized is first read, the bitmap image is converted into a grayscale bitmap, and then an entropy value G of the grayscale image is calculated according to the grayscale value of each pixel of the grayscale image; If the entropy value G≥4, the grayscale image is subjected to brightness enhancement processing to increase the brightness value of the grayscale bitmap and generate a new grayscale bitmap; and when the Canny edge detection algorithm is used to locate the shape edge of the image, the new grayscale bitmap is used to obtain the image contour information of the new grayscale bitmap; then the RDP algorithm is used to simplify the image contour; when the grayscale image is subjected to brightness enhancement processing, the brightness value of the new grayscale bitmap is increased to 1.7 to 1.8 times of the original grayscale bitmap.
6. The trademark content risk assessment method according to claim 1, characterized in that: The risk assessment module includes a name search mode for searching word trademarks. In the name search mode, the risk assessment method includes the following steps: Step M1: Obtain the search text information and the name of the trademark to be risk assessed, define the trademark to be risk assessed as the query trademark, and the trademark in the trademark database used for similarity judgment with the query trademark as the comparison trademark; set the font similarity value weight F1, pronunciation similarity value weight F2 and semantic similarity value weight F3 of the query trademark and the comparison trademark to satisfy F1+F2+F3=1; Step M2: determining the text type of the queried trademark. When the text type of the queried trademark is an English character string, splitting the English characters to obtain the glyph information, pronunciation information and meaning information of each character of the queried trademark; Step M3: Retrieving corresponding comparison trademarks from the trademark database based on the calculation of glyph similarity, pronunciation similarity and semantic similarity, including steps M31-M33: Step M31: When calculating the glyph similarity, the ElasticSearch tool is used for processing. The relevant steps include: (1) using Elasticsearch to create an index, defining the mapping of fields in the index, specifying the field to be searched as a text type, and specifying an analyzer for it; (2) indexing the trademark document in the trademark database into Elasticsearch, wherein the trademark document is a document that stores the information of the compared trademark; (3) creating a query request based on the query trademark; (4) sending the query request to Elasticsearch, and matching the trademark name text in the trademark document of Elasticsearch based on the query request content; (5) using the BM25 scoring algorithm to calculate the BM25 score of the query trademark and the compared trademark; (6) selecting the compared trademark with a BM25 score higher than a predetermined value as a temporary search trademark; and converting the BM25 scores of the query trademark and the compared trademark into the glyph similarity value E1 of the corresponding temporary search trademark; Step M32: The Soundex algorithm is used to calculate the pronunciation similarity. The relevant steps include: (1) performing a first preprocessing on the query trademark and the comparison trademark. The first preprocessing includes: removing all non-alphabetic characters of the first preprocessed trademark and converting all characters of the first preprocessed trademark into uppercase or lowercase; (2) converting the first preprocessed trademark into a 4-digit trademark code. The first digit of the trademark code is the first letter of the query trademark after the first preprocessing, and the second to fourth digits are numbers converted from letters. Starting from the second letter of the query trademark after the first preprocessing, the code conversion is performed in sequence. If the letter is B, F, P or V, it is converted to the number 1. If the letter is C, G, J, K, Q, S, X or Z, it is converted to the number 2 , if the letter is D or T, it is converted to the number 3, if the letter is L, it is converted to the number 4, if the letter is M or N, it is converted to the number 5, if the letter is R, it is converted to the number 6, if the letter is A, E, I, O or U, then skip the current letter and convert the next letter; (3) after completing the code conversion of all letters, take the first 3 digits of the digital code as the 2nd to 4th digits of the trademark code in turn; if after completing the code conversion of all letters, the converted digital code is less than 3 digits, the insufficient digital code is filled with the number 0; (4) calculate the edit distance between the trademark code of the query trademark and the trademark code of the comparison trademark, convert the edit distance into the pronunciation similarity value E2 of the corresponding comparison trademark, and select the comparison trademark with the pronunciation similarity value E2 higher than the predetermined value as the temporary search trademark; Step M33: When calculating semantic similarity, the BERT model is used for calculation. The relevant steps include: (1) performing a second preprocessing on the query trademark and the comparison trademark, wherein the second preprocessing includes: removing spaces and punctuation marks of the second preprocessed trademark, and converting all characters of the second preprocessed trademark to uppercase or lowercase; (2) using the BERT word segmenter to convert the preprocessed trademark name text into an encoding format that can be understood by the BERT model; (3) inputting the trademark name text in the encoding format into the BERT model to obtain the embedding vector of each tag; (4) performing cosine similarity calculation based on the embedding vector of the query trademark and the embedding vector of the comparison trademark, and taking the calculated cosine similarity value of the query trademark and the comparison trademark as the semantic similarity value E3, and selecting the comparison trademark whose semantic similarity value E3 is higher than a predetermined value as the temporary search trademark; Step M4: Calculate the total similarity value E between the query trademark and the comparison trademark, E=E1*F1+ E2*F2+ E3*F3; Step M5: presetting an initial total similarity value E0, which satisfies 0.1≤E0≤0.2; selecting temporary search trademarks with total similarity values E≥E0 as result trademarks, and outputting and displaying the result trademarks in order of the total similarity values E; Step M6: Set multiple trademark risk levels according to different digital intervals; define the resulting trademark with the largest total similarity value E and a valid trademark status as the target evaluation trademark, obtain the total similarity value E' of the target evaluation trademark, determine the corresponding trademark risk level according to the total similarity value E' of the target evaluation trademark, and generate risk assessment recommendations based on the determined trademark risk level.
7. The trademark content risk assessment method according to claim 6, characterized in that: In step M31, the step of calculating the BM25 score includes: Step M311: performing word frequency calculation to calculate the frequency of occurrence of each character of the queried trademark in the trademark document; Step M312: performing inverse document frequency calculation to calculate the rarity of the query trademark in all trademark documents in the trademark database; Step M313: normalizing the length of the trademark document; Step M314: Adjust the (k1, b) parameters in the BM25 scoring algorithm, where k1=0.5±0.05, b=0.3±0.05, k1 is used to control the word frequency saturation, and b is used to adjust the normalization factor affecting the document length; Step M315: Calculate the BM25 scores of the query trademark and the comparison trademark based on the (k1, b) parameters.
8. The trademark content risk assessment method according to claim 7, characterized in that: In step M314, the trademark length of the queried trademark is determined, and the value of b is adjusted according to the trademark length of the queried trademark; When 1≤the trademark length of the query trademark≤10, set the b value to b=0.3; When 10<the trademark length of the queried trademark≤20, the b value is set to b=0.25; when 20<the trademark length of the queried trademark, the b value is set to b=0.
20.
9. The trademark content risk assessment method according to claim 1, characterized in that: In step M2, when the text type of the queried trademark is Chinese characters, the Chinese characters are first translated into English, and then the translated English characters are split.
10. A trademark content risk assessment system, characterized in that: The system comprises a risk assessment module, and the risk assessment module executes the operation instructions contained in the trademark content risk assessment method according to any one of claims 1 to 9.
Citation Information
Cited By
Product multi-context trademark information compliance detection method and system
CN119600612A
