# US 2016/0239865 A1 · Method and device for advertisement classification

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0239865 A1
- Document ID: US20160239865A1
- Status: Published application
- Kind: A1
- Application number: 15/140,793
- Filed: 2016-04-28
- Published: 2016-08-18
- Earliest claimed: 2013-10-28
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: YAJUAN SONG; LEI XIAO; JINJING LIU; SHAOFENG HU
- Web page: https://patentgrep.com/patent/US20160239865A1

## CPC

- G06Q 30/0251: Targeted advertisements
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

The present disclosure provides a method and a device for advertisement classification, a server and a storage medium in the field of information technologies. The method includes: obtaining, according to text information of an advertisement to be classified, a plurality of feature words of the text information; acquiring a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words as a weight value of the feature word, according to statistical information of the feature word in the text information and statistical information of the feature word in known product titles; and acquiring a category of the advertisement according to the weight values of the plurality of feature words, classification information of the advertisement and a preset classification model. Accordingly, selecting the data from the advertisement in a manner of manual labeling is avoided, so that the time taken for advertisement classification is reduced.

## Claims

### Claim 1

A method for advertisement classification, comprising:
obtaining, according to text information of an advertisement to be classified, a plurality of feature words of the text information;
determining a Term Frequency-Inverse Document Frequency (TFIDF) value of each feature word from the plurality of feature words according to statistical information of the feature word in the text information and statistical information of the feature word in known product titles, the Term Frequency-Inverse Document Frequency value being a weight value of the feature word; and
determining a category of the advertisement according to the weight values of the plurality of feature words, classification information of the advertisement and a preset classification model.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words further comprises:
determining a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words according to the number of occurrences of the feature word in the text information, the total number of known product titles and the number of occurrences of the feature word in the known product titles, the Term Frequency-Inverse Document Frequency value being a weight value of the feature word.

### Claim 3 (depends on 1)

The method of claim 1, wherein, the determining, according to text information of an advertisement to be classified, a plurality of feature words of the text information comprises:
acquiring the text information of the advertisement to be classified;
performing word segmentation on the text information to obtain a plurality of words; and
performing feature extraction on the plurality of words to obtain the plurality of feature words of the text information.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
if the text information of the advertisement contains specified product information, acquiring a specified product category as per a preset correspondence relationship between the product information and the product category according to the specified product information, wherein the specified product category is a product category corresponding to the specified product information, and the specified product information is a specified product identifier or a specified product title;
acquiring a preset category corresponding to the specified product category as per a one-to-many correspondence relationship between the preset category and the product categories according to the specified product category; and
acquiring the preset category corresponding to the specified product category as the category of the advertisement.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
if the plurality of feature words contain at least one known brand feature word, acquiring a Term Frequency-Inverse Document Frequency value of each brand feature word from the at least one known brand feature word as a weight value of the brand feature word, according to statistical information of the brand feature word in the text information and statistical information of the brand feature word in the known product titles;
obtaining a preset category corresponding to each brand feature word from the at least one known brand feature word according to a correspondence relationship between the brand feature word and the product category and a one-to-many correspondence relationship between the preset category and the product categories;
adding the weight values of brand feature words that belong to the same preset category, to obtain a weight value of the preset category corresponding to the brand feature words; and
selecting, among the preset categories corresponding to the at least one known brand feature word, a preset category with the largest weight value as the category of the advertisement.

### Claim 6 (depends on 1)

The method of claim 1, wherein, after the determining a category of the advertisement, the method further comprises:
if the category of the advertisement is the same as the preset category of the advertisement, training the preset classification model according to the advertisement to obtain an optimized preset classification model.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
determining preset categories corresponding to a plurality of advertisements;
acquiring product titles corresponding to each preset category from the preset categories according to a one-to-many correspondence relationship between the preset category and the product categories; and
establishing the preset classification model according to the product titles corresponding to the preset category.

### Claim 8 (depends on 7)

The method of claim 7, wherein, after the acquiring product titles corresponding to each preset category from the preset categories according to a one-to-many correspondence relationship between the preset category and the product categories, the method further comprises:
adjusting the product titles corresponding to each preset category according to the number of advertisements corresponding to each original category, so as to equalize the number of the product titles corresponding to each preset category, wherein the original category is a category determined by an advertisement owner; and
selecting product titles in a preset proportion from the adjusted product titles corresponding to each preset category, and establishing the preset classification model according to the selected product titles in the preset proportion.

### Claim 9 (depends on 7)

The method of claim 7, wherein, the establishing the preset classification model according to the product title corresponding to the preset category comprises:
determining a plurality of title feature words according to the selected product titles in the preset proportion from the adjusted product titles corresponding to each preset category;
determining a Term Frequency-Inverse Document Frequency value of each title feature word from the plurality of title feature words as a weight value of the title feature word, according to the number of occurrences of the title feature word in the corresponding product titles, the number of the selected product titles in the preset proportion as well as the number of occurrences of the title feature word in the selected product titles in the preset proportion; and
establishing the preset classification model according to the weight values of the plurality of title feature words and a preset classification algorithm.

### Claim 10 (depends on 9)

The method of claim 9, wherein, the acquiring a plurality of title feature words according to the adjusted product titles corresponding to each preset category comprises:
performing word segmentation on the selected product titles in the preset proportion from the adjusted product titles corresponding to each preset category, so as to obtain a word segmentation result of each of the product titles;
acquiring, according to the number of occurrences of each of the words from the segmentation result of each of the product titles in the selected product titles in the preset proportion, words of which the numbers of occurrences are larger than a first preset threshold; and
performing feature extraction using a preset statistical algorithm according to the words of which the numbers of occurrences are larger than the first preset threshold, to obtain the plurality of title feature words.

### Claim 11 (depends on 7)

The method of claim 7, wherein, after the establishing the preset classification model according to the product titles corresponding to each preset category, the method further comprises:
selecting product titles corresponding to each preset category except for the selected product titles in the preset proportion as advertisements, and acquiring the category corresponding to each of the product titles except for the selected product titles in the preset proportion according to the product titles except for the selected product titles in the preset proportion and the preset classification model;
determining whether the category corresponding to each of the product titles except for the selected product titles in the preset proportion is the same as the preset category corresponding to the product title; and
determining the accuracy of obtaining the category of the advertisement by the preset classification model, if the number of product titles from the product titles except for the selected product titles in the preset proportion, to which the categories correspond are respectively the same as the preset categories corresponding to which, reaches a second preset threshold.

### Claim 12 (depends on 11)

The method of claim 11, wherein, the acquiring the category corresponding to each of the product titles except for the selected product titles in the preset proportion according to the product titles except for the selected product titles in the preset proportion and the preset classification model comprises:
performing word segmentation on each of the product titles except for the selected product titles in the preset proportion, to obtain the word segmentation result of the product title;
performing feature extraction on words in the word segmentation result of the product title to obtain a plurality of words;
determining a Term Frequency-Inverse Document Frequency value of each of the obtained plurality of words as the weight value of the word, according to the number of occurrences of the word in the product title corresponding to the word, the number of the product titles except for the selected product titles in the preset proportion as well as the number of occurrences of the word in the product titles except for the selected product titles in the preset proportion; and
inputting the weight values of the plurality of words into the preset classification model for computation, in order to acquire the category corresponding to each of the product titles except for the selected product titles in the preset proportion.

### Claim 13

A device for advertisement classification, comprising:
a feature word acquiring module, which is configured for obtaining, from text information of an advertisement to be classified, a plurality of feature words of the text information;
a feature word weight value determining module, which is configured for acquiring a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words as a weight value of the feature word, according to statistical information of the feature word in the text information and statistical information of the feature word in known product titles; and
a category determining module category determining module, which is configured for acquiring a category of the advertisement according to the weight values of the plurality of feature words, classification information of the advertisement and a preset classification model.

### Claim 14 (depends on 13)

The device of claim 13, wherein, the feature word weight value determining module is configured for acquiring a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words as a weight value of the feature word, according to the number of occurrences of the feature word in the text information, the total number of known product titles and the number of occurrences of the feature word in the known product titles.

### Claim 15 (depends on 13)

The device of claim 13, wherein, the feature word acquiring module is configured for: acquiring the text information of the advertisement to be classified; performing word segmentation on the text information to obtain a plurality of words; and performing feature extraction on the plurality of words to obtain the plurality of feature words of the text information.

### Claim 16 (depends on 13)

The device of claim 13, further comprising:
a specified product category determining module, which is configured for, if the text information of the advertisement contains specified product information, acquiring a specified product category as per a preset correspondence relationship between the product information and the product category according to the specified product information, wherein the specified product category is a product category corresponding to the specified product information, and the specified product information is a specified product identifier and/or a specified product title;
a preset category determining module category determining module, which is configured for acquiring a preset category corresponding to the specified product category as per a one-to-many correspondence relationship between the preset category and the product categories according to the specified product category; and
the category determining module category determining module is further configured for acquiring the preset category corresponding to the specified product category as the category of the advertisement.

### Claim 17 (depends on 13)

The device of claim 13, further comprising:
a brand feature word weight value determining module, which is configured for, if the plurality of feature words contain at least one known brand feature word, acquiring a Term Frequency-Inverse Document Frequency value of each brand feature word from the at least one known brand feature word as a weight value of the brand feature word, according to statistical information of the brand feature word in the text information and statistical information of the brand feature word in the known product titles;
the preset category determining module category determining module is further configured for obtaining a preset category corresponding to each brand feature word from the at least one known brand feature word according to a correspondence relationship between the brand feature word and the product category and a one-to-many correspondence relationship between the preset category and the product categories; and
the device further comprises: a preset category weight value determining module, which is configured for adding the weight values of brand feature words that belong to the same preset category, to obtain a weight value of the preset category corresponding to the brand feature words;
the category determining module category determining module is further configured for selecting, among the preset categories corresponding to the at least one known brand feature word, a preset category with the largest weight value as the category of the advertisement.

### Claim 18 (depends on 13)

The device of claim 13, further comprising:
a model optimization module, which is configured for, if the category of the advertisement is the same as the preset category of the advertisement, training the preset classification model according to the advertisement to obtain an optimized preset classification model.

### Claim 19 (depends on 13)

The device of claim 13, wherein, the preset category determining module category determining module is further configured for acquiring preset categories corresponding to a plurality of advertisements;
the device further comprises:
a product title acquiring module, which is configured for acquiring product titles corresponding to each preset category from the preset categories according to a one-to-many correspondence relationship between the preset category and the product categories; and
a model establishing module, which is configured for establishing the preset classification model according to the product titles corresponding to the preset category.

### Claim 20 (depends on 19)

The device of claim 19, further comprising:
a product title adjusting module, which is configured for adjusting the product titles corresponding to each preset category according to the number of advertisements corresponding to each original category, so as to equalize the number of the product titles corresponding to each preset category, wherein the original category is a category determined by an advertisement owner; and
a product title selecting module, which is configured for selecting product titles in a preset proportion from the adjusted product titles corresponding to each preset category, and establishing the preset classification model according to the selected product titles in the preset proportion.

### Claim 21 (depends on 19)

The device of claim 19, wherein, the model establishing module comprises:
a title feature word acquiring unit, which is configured for acquiring a plurality of title feature words according to the selected product titles in the preset proportion from the adjusted product titles corresponding to each preset category;
a title feature word weight value acquiring unit, which is configured for acquiring a Term Frequency-Inverse Document Frequency value of each title feature word from the plurality of title feature words as a weight value of the title feature word, according to the number of occurrences of the title feature word in the corresponding product titles, the number of the selected product titles in the preset proportion as well as the number of occurrences of the title feature word in the selected product titles in the preset proportion; and
a model establishing unit, which is configured for establishing the preset classification model according to the weight values of the plurality of title feature words and a preset classification algorithm.

### Claim 22 (depends on 21)

The device of claim 21, wherein, the title feature word acquiring unit is configured for: performing word segmentation on the selected product titles in the preset proportion from the adjusted product titles corresponding to each preset category, so as to obtain a word segmentation result of each of the product titles; acquiring, according to the number of occurrences of each of the words from the segmentation result of each of the product titles in the selected product titles in the preset proportion, words of which the numbers of occurrences are larger than a first preset threshold; and performing feature extraction using a preset statistical algorithm according to the words of which the numbers of occurrences are larger than the first preset threshold, to obtain the plurality of title feature words.

### Claim 23 (depends on 19)

The device of claim 19, wherein, the category determining module category determining module is further configured for: selecting product titles corresponding to each preset category except for the selected product titles in the preset proportion as advertisements, and acquiring the category corresponding to each of the product titles except for the selected product titles in the preset proportion according to the product titles except for the selected product titles in the preset proportion and the preset classification model;
the device further comprises:
a determining module, which is configured for determining whether the category corresponding to each of the product titles except for the selected product titles in the preset proportion is the same as the preset category corresponding to the product title; and
an accuracy determining module, which is configured for acquiring the accuracy of obtaining the category of the advertisement by the preset classification model, if the number of product titles from the product titles except for the selected product titles in the preset proportion, to which the categories correspond are respectively the same as the preset categories corresponding to which, reaches a second preset threshold.

### Claim 24 (depends on 23)

The device of claim 23, wherein, the category determining module category determining module is configured for: performing word segmentation on each of the product titles except for the selected product titles in the preset proportion, to obtain the word segmentation result of the product title; performing feature extraction on words in the word segmentation result of the product title to obtain a plurality of words; acquiring a Term Frequency-Inverse Document Frequency value of each of the obtained plurality of words as the weight value of the word, according to the number of occurrences of the word in the product title corresponding to the word, the number of the product titles except for the selected product titles in the preset proportion as well as the number of occurrences of the word in the product titles except for the selected product titles in the preset proportion; and inputting the weight values of the plurality of words into the preset classification model for computation, in order to determine the category corresponding to each of the product titles except for the selected product titles in the preset proportion.

### Claim 25

A server comprising: a processor and a storage which are connected with each other; wherein:
the processor is configured for obtaining, according to text information of an advertisement to be classified, a plurality of feature words of the text information;
the processor is further configured for acquiring a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words as a weight value of the feature word, according to statistical information of the feature word in the text information and statistical information of the feature word in known product titles; and
the processor is further configured for determining a category of the advertisement according to the weight values of the plurality of feature words, classification information of the advertisement and a preset classification model.

### Claim 26

A storage medium containing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are configured to perform a method for advertisement classification comprising:
obtaining, according to text information of an advertisement to be classified, a plurality of feature words of the text information;
acquiring a Term Frequency-Inverse Document Frequency value of each feature word from the plurality of feature words as a weight value of the feature word, according to statistical information of the feature word in the text information and statistical information of the feature word in known product titles; and
determining a category of the advertisement according to the weight values of the plurality of feature words, classification information of the advertisement and a preset classification model.
