Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5815468B2 - Spam classification model generation apparatus, method and program - Google Patents
[go: Go Back, main page]

JP5815468B2 - Spam classification model generation apparatus, method and program - Google Patents

Spam classification model generation apparatus, method and program Download PDF

Info

Publication number
JP5815468B2
JP5815468B2 JP2012110791A JP2012110791A JP5815468B2 JP 5815468 B2 JP5815468 B2 JP 5815468B2 JP 2012110791 A JP2012110791 A JP 2012110791A JP 2012110791 A JP2012110791 A JP 2012110791A JP 5815468 B2 JP5815468 B2 JP 5815468B2
Authority
JP
Japan
Prior art keywords
spam
classification model
case
model generation
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012110791A
Other languages
Japanese (ja)
Other versions
JP2013238983A (en
Inventor
良彦 数原
良彦 数原
鈴木 潤
潤 鈴木
良治 片岡
良治 片岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Inc
NTT Inc USA
Original Assignee
Nippon Telegraph and Telephone Corp
NTT Inc USA
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Telegraph and Telephone Corp, NTT Inc USA filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2012110791A priority Critical patent/JP5815468B2/en
Publication of JP2013238983A publication Critical patent/JP2013238983A/en
Application granted granted Critical
Publication of JP5815468B2 publication Critical patent/JP5815468B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、スパム分類モデル生成装置及び方法及びプログラムに係り、特に、スパム文書を判別するためのスパム分類モデル生成装置及び方法及びプログラムに関する。   The present invention relates to a spam classification model generation apparatus, method, and program, and more particularly, to a spam classification model generation apparatus, method, and program for discriminating spam documents.

ウェブ検索システムのような検索システムにおいては、検索対象の文書を取得し、検索可能にする際に、ユーザの満足度を下げる要因となるスパムページを予め判別し、除去を行うことがある。この際、日々大量に作成されるスパムページに対応するため、スパム、非スパムのラベルが付与された評価データセット(以下、『訓練データ』と記す)を元に機械学習手法を用いて判別器を自動生成する方法がある(例えば、非特許文献1参照)。なお、本明細書では、以下、スパムページのことをspam、非スパムページのことをhamと呼ぶ。   In a search system such as a web search system, when acquiring a search target document and making it searchable, a spam page that causes a reduction in user satisfaction may be determined in advance and removed. At this time, in order to cope with a large amount of spam pages created every day, a discriminator using a machine learning method based on an evaluation data set (hereinafter referred to as “training data”) labeled with spam and non-spam. There is a method of automatically generating (see Non-Patent Document 1, for example). In the present specification, the spam page is hereinafter referred to as spam, and the non-spam page is referred to as ham.

スパム分類においては2つの誤分類が存在し、spamを hamに誤分類するFalse Negativ(FN)誤りと、hamをspamに誤分類するFalse Positive(FP)誤りが存在する。通常のサービス運用方法では、スパム判別されたデータは検索対象から除去されるため、hamである文書をspamと誤分類するFP誤りは損失が非常に大きい。   There are two misclassifications in spam classification: False Negativ (FN) error that misclassifies spam as ham, and False Positive (FP) error that misclassifies ham as spam. In a normal service operation method, spam-determined data is removed from the search target, so that an FP error that misclassifies a document that is ham as spam is very lossy.

また、評価データセットを作成する対象のデータを取得する際、事前にspam、hamのラベルがわからないため、一般的に訓練データ内のspam、hamの事例数には偏りが生じる傾向がある。   In addition, when acquiring the target data for creating the evaluation data set, since the spam and ham labels are not known in advance, the number of cases of spam and ham in the training data generally tends to be biased.

G. V. Cormack, "Content-based web spam detection", In Proceedings of the 3rd International workshop on Adversarial Information Retrieval on the Web (AIRWeb '07), 2007.G. V. Cormack, "Content-based web spam detection", In Proceedings of the 3rd International workshop on Adversarial Information Retrieval on the Web (AIRWeb '07), 2007.

上記のように、従来のスパム分類器生成手法では、与えられた訓練データ内にham、spam事例数を考慮していないため、事例数の偏りが生じた際に、スパム分類器を適切に生成できなかった。また、事例の誤りに対して等しく損失を設定していたため、FN誤りに対してFP誤りを低く抑えることができなかった。そのため、FP誤りが低い、高精度なスパム分類モデルの生成が困難である、という課題があった。   As described above, the conventional spam classifier generation method does not consider the number of ham and spam cases in the given training data, so when the number of cases is biased, the spam classifier is generated appropriately. could not. In addition, since the loss was set equally for the case error, the FP error could not be kept low with respect to the FN error. Therefore, there is a problem that it is difficult to generate a highly accurate spam classification model with a low FP error.

本発明は、上記の点に鑑みなされたもので、事例の偏りがある訓練データであっても適切にスパム判別モデルを生成することが可能なスパム分類モデル生成装置及び方法及びプログラムを提供することを目的とする。   The present invention has been made in view of the above points, and provides a spam classification model generation apparatus, method, and program capable of appropriately generating a spam discrimination model even with training data with biased cases. With the goal.

上記の課題を解決するため、本発明(請求項1)は、スパム文書を判別するためのスパム分類モデル生成装置であって、
スパム判定対象のスパムページ(spam)または非スパムページ(ham)のいずれかのスパムラベルと特徴ベクトルを有する事例が入力されると、予めクラス毎に設定されているマージンの大きさに応じて該事例の損失を計算し、該損失の値と事例情報の組を、スパムラベルに応じてspamラベルの配列、またはhamラベルの配列に格納し、各ラベルの配列から損失が最大の事例を当該ラベルの配列から除去し、該損失が最大の事例の特徴ベクトルを抽出し、該特徴ベクトルを用いて該重みベクトルの更新を行い、更新された該重みベクトルをスパム分類モデル記憶手段に格納するスパム分類モデル生成手段と、
スパム判別対象の事例毎の特徴ベクトルを保持する分類データ記憶手段と、
前記スパム分類モデル記憶手段の前記重みベクトルと、前記分類データ記憶手段の前記特徴ベクトルとを用いてスパムスコアを算出し、該スパムスコアが所定の閾値以上の場合はspamと判定し、閾値より小さい場合はhamと判定し、判定結果を出力するスパム分類手段と、を有する。
In order to solve the above problems, the present invention (Claim 1) is a spam classification model generation device for discriminating spam documents,
When a case that has a spam label and a feature vector of either a spam page (spam) or a non-spam page (ham) that is subject to spam determination is input, the case is determined according to the size of the margin set in advance for each class. The loss of the case is calculated, and the combination of the loss value and case information is stored in the spam label array or the ham label array according to the spam label, and the case with the maximum loss from each label array is stored in the label. spam of removing from the array, the loss extracts a feature vector of the maximum case, updates the polymerization viewed vector using the feature vector and stores the updated heavy viewed vector spam classification model storing means A classification model generation means;
A classification data storage means for storing a feature vector for each case of spam discrimination;
A spam score is calculated using the weight vector of the spam classification model storage means and the feature vector of the classification data storage means. If the spam score is equal to or greater than a predetermined threshold, it is determined as spam and is smaller than the threshold In this case, it is determined to be ham, and spam classification means for outputting the determination result is included.

また、本発明(請求項2)は、前記スパム分類モデル生成手段において、
前記事例の損失を計算する際に、
前記事例に対して誤りを0にし、前記重みベクトルのL2ノルムの変化量が最小になるように更新する手段を含む。
Further, the present invention (Claim 2) provides the spam classification model generating means,
When calculating the loss of the case,
Means for updating the case so that the error is zero and the change amount of the L2 norm of the weight vector is minimized;

また、本発明(請求項3)は、前記スパム分類モデル生成手段において、
前記spamラベルの配列、前記hamラベルの配列から同じ数だけ損失が最大の事例を選択する事例選択手段を含む。
Further, the present invention (Claim 3) is the spam classification model generating means,
Case selection means for selecting the same number of cases with the same maximum loss from the spam label array and the ham label array.

また、本発明(請求項4)は、前記事例選択手段において、
前記重みベクトルの更新を行う毎に更新回数カウンタをインクリメントし、該更新回数カウンタの値が偶数の場合、前記spamラベルの配列から、奇数の場合は、前記hamラベル配列から事例を抽出する手段を含む。
Further, the present invention (Claim 4) is the case selecting means,
Each time the weight vector is updated, an update count counter is incremented, and when the value of the update count counter is an even number, means for extracting a case from the spam label array, and when odd, from the ham label array Including.

上記のように、本発明によれば、事例の偏りがある訓練データを用いてもスパム判別モデルを生成することが可能となる。また、非スパム事例とスパム事例に対して異なる重要度を付与することが可能となり、訓練データに偏りがある場合においても、非スパム事例をスパムに誤分類するFP誤りを低く抑えて高精度なスパム判別器の生成が可能となる。   As described above, according to the present invention, it is possible to generate a spam discrimination model even using training data with biased cases. In addition, it is possible to give different importance to non-spam cases and spam cases, and even when training data is biased, it is highly accurate with low FP errors that misclassify non-spam cases as spam. A spam classifier can be generated.

本発明の一実施の形態におけるスパム分類生成装置の構成図である。It is a block diagram of the spam classification production | generation apparatus in one embodiment of this invention. 本発明の一実施の形態における重みの更新のイメージである。It is an image of the update of the weight in one embodiment of this invention. 本発明の一実施の形態におけるスパム分類モデル生成部の処理のフローチャートである。It is a flowchart of the process of the spam classification model production | generation part in one embodiment of this invention. 本発明の一実施の形態におけるスパム分類部の処理のフローチャートである。It is a flowchart of the process of the spam classification part in one embodiment of this invention.

以下、図面と共に本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の一実施の形態におけるスパム分類モデル生成装置の構成を示す。   FIG. 1 shows a configuration of a spam classification model generation device according to an embodiment of the present invention.

同図に示すスパム分類モデル生成装置は、スパム訓練データDB10、スパム分類モデル生成部20、スパム分類モデルDB30,スパム分類部40、分類データDB50、予測ラベルDB60を有する。   The spam classification model generation apparatus shown in the figure includes a spam training data DB 10, a spam classification model generation unit 20, a spam classification model DB 30, a spam classification unit 40, a classification data DB 50, and a prediction label DB 60.

スパム訓練データDB10、スパム分類モデルDB30、分類データDB50、予測ラベルDB60はハードディスク等の記憶媒体である。   The spam training data DB 10, the spam classification model DB 30, the classification data DB 50, and the prediction label DB 60 are storage media such as a hard disk.

スパム分類モデル生成部20は、スパム訓練データDB10のスパム訓練データを読み込み、スパム分類モデルDB30にスパム分類モデルを出力する。   The spam classification model generation unit 20 reads the spam training data in the spam training data DB 10 and outputs the spam classification model to the spam classification model DB 30.

スパム訓練データDB10のデータの構造の例を表1に示す。   An example of the data structure of the spam training data DB 10 is shown in Table 1.

Figure 0005815468
スパム訓練データDB10は、1レコードに1事例の訓練データを格納しており、事例ID,スパムラベルと特徴ベクトルのカラムで構成されている。ここで「事例」とは、スパム判定の単位である文書のことを表し、判定されたスパムラベルyと、M次元の特徴ベクトルxT=(x1,x2,…,xM)の情報を持つ。スパムラベルy∈{+1,−1}は、spamの場合+1、hamの場合−1とする。表1では、"spam"、"ham"で表している。特徴ベクトルには例えば、当該ページに含まれている単語情報やリンク情報などを用いる。特徴ベクトルの各カラムは、当該事例の特徴ベクトルの値を格納している。
Figure 0005815468
The spam training data DB 10 stores one case of training data in one record, and includes a column of case IDs, spam labels, and feature vectors. Here, “example” represents a document that is a unit of spam determination, and information of the determined spam label y and M-dimensional feature vector x T = (x 1 , x 2 ,..., X M ). have. The spam label yε {+ 1, −1} is +1 for spam and −1 for ham. In Table 1, “spam” and “ham” are used. For example, word information or link information included in the page is used as the feature vector. Each column of the feature vector stores the value of the feature vector of the case.

スパム分類モデルDB30のデータ構造の例を表2に示す。   An example of the data structure of the spam classification model DB 30 is shown in Table 2.

Figure 0005815468
スパム分類モデルDB30は、事例の特徴ベクトルの次元数と同じ次元数である重みベクトルwT=(w1,w2,…,wM)の情報を格納しており、wiが特徴xiに対する重みである。
Figure 0005815468
The spam classification model DB 30 stores information of weight vectors w T = (w 1 , w 2 ,..., W M ) having the same number of dimensions as the feature vector of the case, and w i is a feature x i. Is a weight for.

スパム分類モデル生成部20は、スパム訓練データDB10から読み出した事例に対して誤りを0にし、重みベクトルのL2ノルムの変化量が最小になるように重みパラメータを更新することでマージンを変更する。重みパラメータの更新のイメージを図2に示す。同図では、入力事例(訓練データ)に対して損失が0になるように重みパラメータを更新する例を示している。   The spam classification model generation unit 20 changes the margin by setting the error to 0 for the case read from the spam training data DB 10 and updating the weight parameter so that the change amount of the L2 norm of the weight vector is minimized. An image of updating the weight parameters is shown in FIG. In the figure, an example is shown in which the weight parameter is updated so that the loss becomes 0 for the input example (training data).

スパム分類モデル生成部20では、システムに対して予め正例マージンサイズE(+1),負例マージンサイズE(−1),コストパラメータC,イテレーション回数n、選択サンプル数u、出力に対する閾値tが設定されているとする。   In the spam classification model generation unit 20, a positive example margin size E (+1), a negative example margin size E (-1), a cost parameter C, the number of iterations n, the number of selected samples u, and a threshold t for output are set in advance for the system. Suppose that it is set.

図3は、本発明の一実施の形態におけるスパム分類モデル生成部の処理のフローチャートである。   FIG. 3 is a flowchart of the process of the spam classification model generation unit in one embodiment of the present invention.

ステップ101) スパム分類モデル生成部20は、重みベクトルwを初期化する。事前の設定がなければ、wT=(0,0,…,0)とする。また、更新回数カウンタを初期化し、i←0とする。 Step 101) The spam classification model generation unit 20 initializes the weight vector w. If there is no prior setting, let w T = (0, 0,..., 0). In addition, the update counter is initialized and i ← 0.

ステップ102) スパム訓練データDB10に含まれる全ての事例について、現在の重みベクトルに基づいて損失を計算する。ある事例(x,y)に対する損失は、当該ラベルを考慮したマージンE(y)を用いて   Step 102) For all cases included in the spam training data DB 10, the loss is calculated based on the current weight vector. The loss for a case (x, y) is calculated using the margin E (y) considering the label.

Figure 0005815468
と求めることができる。上記では、予めクラス毎に設定されたマージンの大きさ(E(y))に応じて損失の計算を行っている。
Figure 0005815468
It can be asked. In the above, the loss is calculated according to the margin size (E (y)) set in advance for each class.

そして、式(1)で計算された損失の値と事例情報の組(l(i),x(i),y(i))をラベルに応じた配列に格納する。y=+1の場合、すなわち、spam事例の場合には、spam用の配列に格納し、y=−1の場合、すなわちham事例の場合にはham用の配列に格納する。この配列を用いてステップ104において損失が最大の事例を選択するため、ピープ木のようなデータ構造を用いてデータを格納すると計算効率がよい。なお、各配列はメモリ(図示せず)に格納されるものとする。 Then, the loss value and case information pair (l (i) , x (i) , y (i) ) calculated by the equation (1) is stored in an array corresponding to the label. In the case of y = + 1, that is, in the case of spam, it is stored in the array for spam. In the case of y = −1, that is, in the case of ham, it is stored in the array for ham. In order to select the case with the maximum loss in step 104 using this arrangement, it is computationally efficient to store data using a data structure such as a peep tree. Each array is stored in a memory (not shown).

ステップ103) 選択事例用カウンタjを初期化し、j←0とする。   Step 103) The selected example counter j is initialized and j ← 0.

ステップ104) i mod 2=0の場合、すなわち、重みベクトル更新のための更新回数カウンタiが偶数の場合、spam用配列から損失が最大の事例を取得し、spam用配列から当該事例を除去する。それ以外の場合、すなわち更新回数カウンタが奇数の場合、ham用配列から損失が最大の事例を取得し、ham用配列から当該事例を除去する。ここで選択した事例の損失をlt、ラベルをyt、特徴ベクトルをxとする。当該処理を行うことにより、事例数の偏りの影響を排除することができる。 Step 104) If i mod 2 = 0, that is, if the update count counter i for updating the weight vector is an even number, a case with the greatest loss is obtained from the spam array, and the case is removed from the spam array. . In other cases, that is, when the update count counter is an odd number, a case with the maximum loss is obtained from the ham array, and the case is removed from the ham array. Let the loss of the case selected here be l t , the label be y t , and the feature vector be x. By performing the process, it is possible to eliminate the influence of the uneven number of cases.

ステップ105) 選択した事例に基づいて、重みベクトルの更新を行う。重みベクトルの更新は例えば、文献「K. Crammer, O. Dekel, J. Keshet, S. S.-Shwartz and Y. Singer, "Online Passive-Aggressive Algorithm", Journal of Machine Learning, vol. 7, pp. 551-585, 2006.」の方法を用いて   Step 105) Update the weight vector based on the selected case. The update of the weight vector is described in, for example, the literature “K. Crammer, O. Dekel, J. Keshet, SS-Shwartz and Y. Singer,“ Online Passive-Aggressive Algorithm ”, Journal of Machine Learning, vol. 7, pp. 551- 585, 2006. "

Figure 0005815468
で計算することができる。ここで、
Figure 0005815468
Can be calculated with here,

Figure 0005815468
である。ここで‖x‖は特徴ベクトルのL2ノルムを表し、
Figure 0005815468
It is. Where ‖x‖ represents the L2 norm of the feature vector,

Figure 0005815468
で計算できる。
Figure 0005815468
It can be calculated with

ステップ106) カウンタを更新し、i←i+1,j←j+1とする。   Step 106) The counter is updated so that i ← i + 1 and j ← j + 1.

ステップ107) j<uかつi<nの場合、ステップ104に戻り、それ以外の場合はステップ108に移行する。ここで、u,nは事前に定めたパラメータ(定数)であり、uとnの関係は経験的にu≪nである。   Step 107) If j <u and i <n, return to Step 104; otherwise, go to Step 108. Here, u and n are predetermined parameters (constants), and the relationship between u and n is empirically u << n.

ステップ108)i<nの場合ステップ102に戻る。それ以外の場合はステップ109に移行する。   Step 108) If i <n, return to Step 102. Otherwise, the process proceeds to step 109.

ステップ109) 重みベクトルwをスパム分類モデルDB30に出力し、処理を終了する。   Step 109) The weight vector w is output to the spam classification model DB 30, and the process is terminated.

スパム分類部40は、分類データDB50のデータを入力として受け取り、スパム分類結果を予測ラベルDB60に出力する。その際、分類データDB50の1レコードに対応するデータを逐次的に受け取り、予測ラベルDB60の1レコードに対応する結果を逐次的に出力することも可能である。   The spam classification unit 40 receives the data of the classification data DB 50 as an input, and outputs the spam classification result to the prediction label DB 60. At that time, it is possible to sequentially receive data corresponding to one record of the classification data DB 50 and sequentially output a result corresponding to one record of the prediction label DB 60.

分類データDB50のデータ構造を表3に示す。   Table 3 shows the data structure of the classification data DB 50.

Figure 0005815468
分類データDB50は、スパム判別を行う対象のデータを格納しており、事例IDと特長ベクトルxの特徴を格納している。分類データDB50のデータベーススキーマは、スパム訓練データ10からラベルカラムを除いたものとなる。
Figure 0005815468
The classification data DB 50 stores data to be subjected to spam discrimination, and stores case IDs and features of feature vectors x. The database schema of the classification data DB 50 is obtained by removing the label column from the spam training data 10.

予測ラベルDB60のデータ構造の例を表4に示す   An example of the data structure of the prediction label DB 60 is shown in Table 4.

Figure 0005815468
予測ラベルDB60は、入力された各事例に対して予測ラベルと予測スコアの情報を格納している。
Figure 0005815468
The prediction label DB 60 stores information on a prediction label and a prediction score for each input case.

図3は、本発明の一実施の形態におけるスパム分類部の処理のフローチャートである。   FIG. 3 is a flowchart of the processing of the spam classification unit according to the embodiment of the present invention.

ステップ201) スパム分類部40は、スパム分類モデルDB30から重みベクトル情報を取得し、M次元の重みベクトルwT=(w1,w2,…,wM)とする。 Step 201) The spam classification unit 40 acquires weight vector information from the spam classification model DB 30 and sets it as an M-dimensional weight vector w T = (w 1 , w 2 ,..., W M ).

ステップ202) 分類データDB50から未処理のデータを取得し、M次元の特徴ベクトルx=(x1,x2,…,xM)とする。 Step 202) Acquire unprocessed data from the classification data DB 50 and set it as an M-dimensional feature vector x = (x 1 , x 2 ,..., X M ).

ステップ203) ステップ201で取得した重みベクトルとステプ202から取得した特徴ベクトルを用いて、スパムスコアsを   Step 203) Using the weight vector acquired in Step 201 and the feature vector acquired from Step 202, the spam score s is calculated.

Figure 0005815468
に従って計算する。
Figure 0005815468
Calculate according to

ステップ204) スパムスコアsが予めシステムに設定された閾値以上の場合にはspamと判定し、そうでない場合はhamと判定する。判定された予測ラベルを   Step 204) If the spam score s is greater than or equal to a threshold set in the system in advance, it is determined as spam, and otherwise it is determined as ham. The determined prediction label

Figure 0005815468
とする。
Figure 0005815468
And

ステップ205) 当該事例ID、当該事例に対するスパムスコアsと予測ラベル   Step 205) Case ID, spam score s and prediction label for the case

Figure 0005815468
を、予測ラベルDB60に出力する。
Figure 0005815468
Is output to the prediction label DB 60.

ステップ206) 分類データDB50に未処理のデータがある場合にはステップ202に戻り、そうでない場合は処理を終了する。   Step 206) If there is unprocessed data in the classification data DB 50, the process returns to Step 202, and if not, the process ends.

上記のような処理を行うことで、訓練データに事例の偏りがある状態においてもhamをspamに誤分類する悪影響を抑えることが可能となり、FP誤りを押さえた高精度なスパム分類を実現することが可能である。   By performing the above processing, it is possible to suppress the adverse effect of misclassifying ham as spam even when training data is biased, and to realize highly accurate spam classification with FP errors suppressed. Is possible.

なお、上記の実施の形態におけるスパム分類モデル生成装置の各構成要素の動作をプログラムとして構築し、スパム分類モデル生成装置として利用されるコンピュータにインストールして実行させる、または、ネットワークを介して流通させることが可能である。   In addition, the operation | movement of each component of the spam classification model production | generation apparatus in said embodiment is constructed | assembled as a program, installed in the computer utilized as a spam classification model production | generation apparatus, is made to execute, or distribute | circulates via a network It is possible.

本発明は、上記の実施の形態に限定されることなく、特許請求の範囲内において、種々変更・応用が可能である。   The present invention is not limited to the above-described embodiments, and various modifications and applications are possible within the scope of the claims.

10 スパム訓練データDB
20 スパム分類モデル生成部
30 スパム分類モデルDB
40 スパム分類部
50 分類データDB
60 予測ラベルDB
10 Spam training data DB
20 Spam classification model generator 30 Spam classification model DB
40 Spam classification section 50 Classification data DB
60 prediction label DB

Claims (8)

スパム文書を判別するためのスパム分類モデル生成装置であって、
スパム判定対象のスパムページ(spam)または非スパムページ(ham)のいずれかのスパムラベルと特徴ベクトルを有する事例が入力されると、クラス毎に設定されているマージンの大きさに応じて該事例の損失を計算し、該損失の値と事例情報の組を、スパムラベルに応じてspamラベルの配列、またはhamラベルの配列に格納し、損失が最大の事例を当該ラベルの配列から除去し、該損失が最大の事例の特徴ベクトルを抽出し、該特徴ベクトルを用いて該重みベクトルの更新を行い、更新された該重みベクトルをスパム分類モデル記憶手段に格納するスパム分類モデル生成手段と、
スパム判別対象の事例毎の特徴ベクトルが格納された分類データ記憶手段と、
前記スパム分類モデル記憶手段の前記重みベクトルと、前記分類データ記憶手段の前記特徴ベクトルとを用いてスパムスコアを算出し、該スパムスコアが所定の閾値以上の場合はspamと判定し、閾値より小さい場合はhamと判定し、判定結果を出力するスパム分類手段と、
を有することを特徴とするスパム分類モデル生成装置。
A spam classification model generation device for discriminating spam documents,
When a case that has a spam label and a feature vector of either a spam page (spam) or a non-spam page (ham) that is subject to spam determination is input, the case is determined according to the size of the margin set for each class. The loss value and case information pair are stored in the spam label array or ham label array according to the spam label, and the case with the greatest loss is removed from the label array, the loss extracts a feature vector of the maximum case, and spam classification model generating means updates the heavy look vector, and stores the updated heavy viewed vector spam classification model storing unit by using the feature vectors,
A classification data storage means storing a feature vector for each case of spam discrimination;
A spam score is calculated using the weight vector of the spam classification model storage means and the feature vector of the classification data storage means. If the spam score is equal to or greater than a predetermined threshold, it is determined as spam and is smaller than the threshold In the case, it is determined as ham and spam classification means for outputting the determination result;
A spam classification model generation device characterized by comprising:
前記スパム分類モデル生成手段は、
前記事例の損失を計算する際に、
前記事例に対して誤りを0にし、前記重みベクトルのL2ノルムの変化量が最小になるように更新する手段を含む
請求項1記載のスパム分類モデル生成装置。
The spam classification model generation means includes:
When calculating the loss of the case,
The spam classification model generation apparatus according to claim 1, further comprising means for updating the case so that an error is 0 and an amount of change in the L2 norm of the weight vector is minimized.
前記スパム分類モデル生成手段は、
前記spamラベルの配列、前記hamラベルの配列から同じ数だけ損失が最大の事例を選択する事例選択手段を含む
請求項1記載のスパム分類モデル生成装置。
The spam classification model generation means includes:
2. The spam classification model generation apparatus according to claim 1, further comprising: case selecting means for selecting the same number of cases with the same number of losses from the spam label array and the ham label array.
前記事例選択手段は、
前記重みベクトルの更新を行う毎に更新回数カウンタをインクリメントし、該更新回数カウンタの値が偶数の場合、前記spamラベルの配列から、奇数の場合は、前記hamラベル配列から事例を抽出する手段を含む
請求項3記載のスパム分類モデル生成装置。
The case selection means includes:
Each time the weight vector is updated, an update count counter is incremented, and when the value of the update count counter is an even number, means for extracting a case from the spam label array, and when odd, from the ham label array The spam classification model generation device according to claim 3 including.
スパム文書を判別するためのスパム分類モデル生成方法であって、
スパム分類モデル生成手段が、スパム判定対象のスパムページ(spam)または非スパムページ(ham)のいずれかのスパムラベルと特徴ベクトルを有する事例が入力されると、クラス毎に設定されているマージンの大きさに応じて該事例の損失を計算し、該損失の値と事例情報の組を、スパムラベルに応じてspamラベルの配列、またはhamラベルの配列に格納し、損失が最大の事例を当該ラベルの配列から除去し、該損失が最大の事例の特徴ベクトルを抽出し、該特徴ベクトルを用いて該重みベクトルの更新を行い、更新された該重みベクトルをスパム分類モデル記憶手段に格納するスパム分類モデル生成ステップと、
スパム分類手段が、前記スパム分類モデル記憶手段の前記重みベクトルと、スパム判別対象の事例毎の特徴ベクトルを保持する分類データ記憶手段の前記特徴ベクトルとを用いてスパムスコアを算出し、該スパムスコアが所定の閾値以上の場合はspamと判定し、閾値より小さい場合はhamと判定し、判定結果を出力するスパム分類ステップと、
を行うことを特徴とするスパム分類モデル生成方法。
A spam classification model generation method for discriminating spam documents,
When the spam classification model generation means inputs a case with a spam label and a feature vector of either a spam page (spam) or a non-spam page (ham) that is subject to spam determination, the margin set for each class The loss of the case is calculated according to the size, and the combination of the loss value and the case information is stored in an array of spam labels or an array of ham labels according to the spam label. removed from the array of labels, the loss extracts a feature vector of the maximum case, updates the polymerization viewed vector using the feature vector and stores the updated heavy viewed vector spam classification model storing means A spam classification model generation step;
A spam classification unit calculates a spam score using the weight vector of the spam classification model storage unit and the feature vector of the classification data storage unit that stores a feature vector for each case of spam discrimination target, and the spam score Is determined to be spam if it is greater than or equal to a predetermined threshold, ham if it is less than the threshold, and a spam classification step that outputs the determination result;
A spam classification model generation method characterized by:
前記スパム分類モデル生成ステップにおいて、
前記事例の損失を計算する際に、前記事例に対して誤りを0にし、前記重みベクトルのL2ノルムの変化量が最小になるように更新する
請求項5記載のスパム分類モデル生成方法。
In the spam classification model generation step,
The spam classification model generation method according to claim 5, wherein, when calculating the loss of the case, the update is performed such that an error is set to 0 for the case and the change amount of the L2 norm of the weight vector is minimized.
前記スパム分類モデル生成ステップにおいて、
前記spamラベルの配列、前記hamラベルの配列から同じ数だけ損失が最大の事例を選択する
請求項5記載のスパム分類モデル生成方法。
In the spam classification model generation step,
6. The spam classification model generation method according to claim 5, wherein the same number of cases with the same loss is selected from the spam label array and the ham label array.
コンピュータを、
請求項1乃至4のいずれか1項に記載のスパム分類モデル生成装置の各手段として機能させるためのスパム分類モデル生成プログラム。
Computer
The spam classification model production | generation program for functioning as each means of the spam classification model production | generation apparatus of any one of Claims 1 thru | or 4.
JP2012110791A 2012-05-14 2012-05-14 Spam classification model generation apparatus, method and program Expired - Fee Related JP5815468B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012110791A JP5815468B2 (en) 2012-05-14 2012-05-14 Spam classification model generation apparatus, method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012110791A JP5815468B2 (en) 2012-05-14 2012-05-14 Spam classification model generation apparatus, method and program

Publications (2)

Publication Number Publication Date
JP2013238983A JP2013238983A (en) 2013-11-28
JP5815468B2 true JP5815468B2 (en) 2015-11-17

Family

ID=49763962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012110791A Expired - Fee Related JP5815468B2 (en) 2012-05-14 2012-05-14 Spam classification model generation apparatus, method and program

Country Status (1)

Country Link
JP (1) JP5815468B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062303A (en) * 2017-12-06 2018-05-22 北京奇虎科技有限公司 The recognition methods of refuse messages and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6365032B2 (en) * 2014-07-08 2018-08-01 富士通株式会社 Data classification method, data classification program, and data classification apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062303A (en) * 2017-12-06 2018-05-22 北京奇虎科技有限公司 The recognition methods of refuse messages and device

Also Published As

Publication number Publication date
JP2013238983A (en) 2013-11-28

Similar Documents

Publication Publication Date Title
US10671812B2 (en) Text classification using automatically generated seed data
US11232141B2 (en) Method and device for processing an electronic document
US11755671B2 (en) Projecting queries into a content item embedding space
JP6537340B2 (en) Summary generation device, summary generation method, and summary generation program
CN113256383B (en) Recommendation method and device for insurance products, electronic equipment and storage medium
KR102053635B1 (en) Distrust index vector based fake news detection apparatus and method, storage media storing the same
Sindhwani et al. Uncertainty sampling and transductive experimental design for active dual supervision
JP6365032B2 (en) Data classification method, data classification program, and data classification apparatus
JP2007287139A (en) Computer-implemented method and system for recommending product to consumer
CN110825873B (en) Method and device for expanding log exception classification rules
US20200042893A1 (en) Analytic system based on multiple task learning with incomplete data
JP7287699B2 (en) Information provision method and device using learning model through machine learning
Irissappane et al. Leveraging GPT-2 for classifying spam reviews with limited labeled data via adversarial training
CN106411683B (en) A kind of determination method and device of key social information
JP2013097723A (en) Text summarization apparatus, method and program
WO2016122575A1 (en) Product, operating system and topic based recommendations
US20190279085A1 (en) Learning method, learning device, and computer-readable recording medium
Shi et al. Efficient and long-tailed generalization for pre-trained vision-language model
CN108376420A (en) Model generating means and method, apparatus for evaluating and method and storage medium
US20210303599A1 (en) Analysis apparatus, analysis method and program
JP5815468B2 (en) Spam classification model generation apparatus, method and program
JP2014228995A (en) Image feature learning device, image feature learning method and program
JP5903376B2 (en) Information recommendation device, information recommendation method, and information recommendation program
JP2013097722A (en) Text summarization apparatus, method and program
JP5491430B2 (en) Class classification device, class classification method, and class classification program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141020

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150619

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150707

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150812

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20150915

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150924

R150 Certificate of patent or registration of utility model

Ref document number: 5815468

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees