A method for detecting abnormal microblog users based on big data

By extracting the behavior, text and basic features of Weibo users for high-dimensional representation interaction, combined with neural networks, we can achieve efficient detection of abnormal Weibo users and solve the problems of high hardware resources and insufficient data utilization in the existing technology. Improved detection accuracy.

CN117453916BActive Publication Date: 2024-10-11CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311403088.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2024-10-11
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

When existing technology detects abnormal Weibo users, the deep learning method requires high hardware resources and cannot effectively utilize text and video data, resulting in unrealistic real-time monitoring and resource expenditure, and traditional methods suffer from data sparseness and subjectivity. question.

Method used

The Weibo abnormal user detection method based on big data is used to obtain Weibo user data, extract user behavior features, text features and basic features, conduct high-dimensional representation interaction, and combine fully connected neural networks and multi-dimensional convolutional neural networks to generate users Cross high-dimensional features for anomalous user detection.

Benefits of technology

It improves the accuracy of detection results, solves the problems of insufficient feature interaction and insufficient data utilization in traditional methods, reduces hardware resource requirements, and achieves efficient detection of abnormal Weibo users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117453916B_ABST
    Figure CN117453916B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of social network security, and specifically relates to a microblog abnormal user detection method based on big data; the method comprises: obtaining labeled microblog user data; extracting user behavior features and user text features according to the microblog user data to obtain high-dimensional representations of user behavior features and high-dimensional representations of user text features; extracting user basic features according to the microblog user data to obtain high-dimensional representations of user basic features; performing pairwise interaction on the three high-dimensional representations to obtain a basic-behavior feature table, a basic-text feature table and a behavior-text feature table; processing the three feature tables to obtain user cross-high-dimensional features; inputting the user cross-high-dimensional features into a fully connected neural network for processing to obtain abnormal user detection results; calculating the fully connected classification loss and adjusting model parameters according to the fully connected classification loss to obtain a trained abnormal user detection model; the present invention has accurate detection results and is helpful for relevant departments to control public opinion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of social network security, and in particular relates to a method for detecting abnormal microblog users based on big data. Background Art

[0002] With the rapid development of the Internet, big data analysis has become an important trend in the field of information technology. Therefore, developing an efficient method to detect these abnormal users is crucial to maintaining the security and credibility of social media platforms.

[0003] For the task of abnormal user detection, traditional methods mainly include rule-based methods, manual review-based methods, machine learning-based methods, and deep learning-based methods. Rule-based methods usually rely on predefined rules and patterns. The formulation of these rules requires insight into the motivations of abnormal users. According to these motivations, corresponding rules are designed. These rules have distinct characteristics of abnormal accounts and may not capture emerging abnormal behaviors, and are easily circumvented; methods based on manual review usually consume a lot of human resources, are subjective and impractical, especially when processing large-scale social media data; machine learning-based methods require manual feature extraction and labeling of training data. Manually extracted features often have data sparsity problems, and Weibo user data contains a large amount of text, images, videos, etc. in addition to numerical features, which cannot be manually extracted; deep learning-based methods use various deep learning networks to obtain mathematical representations of the global and local features of Weibo users, and finally perform classification tasks. At present, most models for abnormal user detection have begun to adopt deep learning methods.

[0004] However, when processing text and video, most deep learning-based methods will map the text and video data into a high-dimensional space to obtain the representation of the text and video data. However, such methods have extremely high requirements for hardware resources and obtain a large number of content features that are useless for identifying abnormal users. This is impractical for the real-time monitoring of the model and the expenditure of hardware resources. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention proposes a method for detecting abnormal Weibo users based on big data, which comprises: obtaining Weibo user data and inputting the data into a trained abnormal user detection model for processing to obtain abnormal Weibo user detection results;

[0006] The training process of the abnormal user detection model includes:

[0007] S1: Obtain Weibo user data with tags;

[0008] S2: Extract user behavior features and user text features from Weibo user data, map the user behavior features and user text features to a high-dimensional space, and obtain a high-dimensional representation of the user behavior features and a high-dimensional representation of the user text features;

[0009] S3: Extract basic user features from Weibo user data, map the basic user features to a high-dimensional space, and obtain a high-dimensional representation of the basic user features;

[0010] S4: Performing pairwise interactions on the high-dimensional representations of user behavior features, user text features, and user basic features to obtain a basic-behavior feature table, a basic-text feature table, and a behavior-text feature table;

[0011] S5: Process the basic-behavior feature table, the basic-text feature table, and the behavior-text feature table to obtain user cross-dimensional features;

[0012] S6: Input the user cross high-dimensional features into the fully connected neural network for processing to obtain abnormal user detection results;

[0013] S7: Calculate the full connection classification loss and adjust the model parameters according to the full connection classification loss to obtain a trained abnormal user detection model.

[0014] Preferably, the process of extracting user behavior features and user text features includes:

[0015] S21: Sort the messages posted by the user in ascending order of time, slide the messages using a sliding window, calculate the average time interval of information release in each window; select the window with the smallest average value as the feature window;

[0016] S22: Counting multiple user behavior parameters of each piece of information in the feature window on the same day; constructing a two-dimensional user behavior feature table according to each user behavior parameter to obtain user behavior features;

[0017] S23: Counting multiple user text parameters of each message in the feature window on the same day; constructing a two-dimensional user text feature table according to each user text parameter to obtain user text features.

[0018] Furthermore, the user behavior parameters include the number of posts, the number of likes, the number of reposts, the number of comments, the average interval between posts, the average interval between likes, the average interval between reposts and the average interval between comments.

[0019] Furthermore, the user text parameters include the average number of characters in posts, the average number of English characters in posts, the average number of punctuation marks in posts, the average number of URLs in posts, the average number of “@” in posts, the average number of “#” in posts, the average number of pictures in posts, the average number of topics in posts and the average number of phrases in posts.

[0020] Preferably, the basic characteristics of the user include the user's gender, the length of the user's nickname text, the number of non-text contained in the user's nickname, the length of the personal profile, the number of URLs contained in the personal profile, the number of user fans, the number of followers, the number of comments, the number of likes, and the time interval between the user registration time and the start time of the feature window.

[0021] Preferably, the formula for characterizing the pairwise interaction is:

[0022]

[0023] Among them, feature_table represents the interactive feature table, Q represents the first high-dimensional representation, K represents the second high-dimensional representation, mask represents the mask matrix, sum() represents the sum function, min() represents the minimum function, and softmax() represents the softmax activation function.

[0024] Preferably, the process of user cross-high-dimensional features includes: expanding the basic-behavior feature table, the basic-text feature table and the behavior-text feature table by one dimension and splicing them on the expanded dimension; inputting the spliced ​​features into a multidimensional convolutional neural network to obtain user cross-high-dimensional features.

[0025] Preferably, the formula for calculating the fully connected classification loss is:

[0026]

[0027] Among them, loss represents the full connection classification loss, n represents the number of users, and y i Indicates the true label of whether the i-th user is an abnormal user, It represents the model's probability prediction value of whether the i-th user is an abnormal user, δ represents a random parameter, and μ represents a hyperparameter.

[0028] The beneficial effects of the present invention are as follows: the present invention adopts hierarchical feature intersection based on convolutional neural network, the hierarchical features classify and model the features of microblog users, and the convolution model uses different convolution kernels to simultaneously consider the intrinsic relationship between user basic features, user text features and user behavior features from both global and local perspectives, thereby solving the problems that the category features manually extracted by the traditional machine learning model cannot interact effectively, the feature data is sparse, and the text data cannot be effectively utilized; the detection result of the present invention is highly accurate, which helps the relevant departments to control public opinion. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 Schematic diagram of the abnormal user detection model training process in the present invention. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0031] The present invention proposes a method for detecting abnormal microblog users based on big data. Figure 1 As shown, the method includes the following contents: obtaining microblog user data and inputting the data into a trained abnormal user detection model for processing to obtain a microblog abnormal user detection result.

[0032] The training process of the abnormal user detection model includes:

[0033] S1: Obtain Weibo user data with tags.

[0034] Preferably, data is obtained through an API provided by the Weibo open platform, and is manually labeled according to the user's data, with a label of 1 indicating that the user is an abnormal user and a label of 0 indicating that the user is a normal user, thereby obtaining labeled Weibo user data.

[0035] S2: Extract user behavior features and user text features from Weibo user data, map the user behavior features and user text features to a high-dimensional space, and obtain a high-dimensional representation of the user behavior features and a high-dimensional representation of the user text features.

[0036] The process of extracting user behavior features and user text features includes:

[0037] S21: Sort the messages posted by the users in ascending order of time, slide the messages using a sliding window, calculate the average time interval of information release in each window; select the window with the smallest average value as the feature window.

[0038] Preferably, the size of the sliding window is 60, and the step size is 1. By sliding the window, the average time interval between 60 messages continuously published by the user is calculated, and the window with the smallest average value is selected as the feature window.

[0039] S22: Counting multiple user behavior parameters of each piece of information in the feature window on the day; constructing a two-dimensional user behavior feature table according to each user behavior parameter to obtain user behavior features.

[0040] Preferably, the user behavior parameters include the number of posts, the number of likes, the number of reposts, the number of comments, the average interval between posts, the average interval between likes, the average interval between reposts, and the average interval between comments.

[0041] The number of posts, likes, reposts, and comments on each piece of information in the statistical window is counted on that day, as well as the average interval between posts, likes, reposts, and comments on that day, and a two-dimensional user behavior feature table with a dimension size of (60, 8), namely, user behavior features, is constructed.

[0042] S23: Counting multiple user text parameters of each message in the feature window on the same day; constructing a two-dimensional user text feature table according to each user text parameter to obtain user text features.

[0043] Preferably, the user text parameters include the average number of characters in a post, the average number of English characters in a post, the average number of punctuation marks in a post, the average number of URLs in a post, the average number of "@"s in a post, the average number of "#"s in a post, the average number of pictures in a post, the average number of topics in a post, and the average number of phrases in a post.

[0044] The statistics window includes the average number of characters in each message posted on that day, the average number of English characters in the message posted on that day, the average number of punctuation marks in the message posted on that day, the average number of URLs in the message posted on that day, the average number of “@” in the message posted on that day, the average number of “#” in the message posted on that day, the average number of pictures in the message posted on that day, the average number of topics in the message posted on that day, and the average number of phrases in the message posted on that day. A two-dimensional user text feature table with a dimension size of (60, 9), namely the user text feature, is constructed.

[0045] Map user behavior features and user text features to a high-dimensional space. Specifically, input the two-dimensional user behavior feature table into a fully connected neural network to obtain a high-dimensional representation B of user behavior features with a dimension size of (60, hidden_size); input the two-dimensional user text feature table into a fully connected neural network to obtain a high-dimensional representation T of user text features with a dimension size of (60, hidden_size).

[0046] S3: Extract basic user features from Weibo user data, map the basic user features to a high-dimensional space, and obtain a high-dimensional representation of the basic user features.

[0047] Preferably, the basic characteristics of the user include the user's gender, the length of the user's nickname text, the number of non-text contained in the user's nickname, the length of the personal profile, the number of URLs contained in the personal profile, the number of user fans, the number of followers, the number of comments, the number of likes, and the time interval between the user registration time and the start time of the feature window.

[0048] The user's basic features are mapped to a high-dimensional space, that is, the user's basic features are passed through a fully connected neural network and expanded in the first dimension to obtain a high-dimensional representation F of the user's basic features with a dimension size of (60, hidden_size).

[0049] S4: Perform pairwise interactions on the high-dimensional representations of user behavior features, user text features, and user basic features to obtain a basic-behavior feature table, a basic-text feature table, and a behavior-text feature table.

[0050] The formula for characterizing pairwise interactions is:

[0051]

[0052] Among them, feature_table represents the interactive feature table, i.e., the basic-behavior feature table, the basic-text feature table, or the behavior-text feature table; Q represents the first high-dimensional representation, K represents the second high-dimensional representation, Q and K satisfy Q∈{B, T, F}, K∈{B, T, F} and mask b represents the b-th mask matrix, sum() represents the sum function, min() represents the minimum function, and softmax() represents the softmax activation function.

[0053] By performing pairwise interactions on the three high-dimensional representations, we obtain the basic behavior feature table feature_table FB , Basic-text feature table feature_table FT and behavior-text feature table feature_table BT .

[0054] S5: Process the basic-behavior feature table, the basic-text feature table, and the behavior-text feature table to obtain user cross-high-dimensional features.

[0055] For the basic-behavior feature table feature_table FB , Basic-text feature table feature_table FT and behavior-text feature table feature_table BT Each feature is expanded by one dimension and concatenated on the expanded dimension; the concatenated features are input into a multi-dimensional convolutional neural network to obtain user cross-dimensional features.

[0056] S6: Input the user cross-high-dimensional features into the fully connected neural network for processing to obtain abnormal user detection results.

[0057] By inputting the user's cross-dimensional features into a fully connected neural network for processing, a classification result of whether the user is an abnormal user, i.e., an abnormal user detection result, can be obtained.

[0058] S7: Calculate the full connection classification loss and adjust the model parameters according to the full connection classification loss to obtain a trained abnormal user detection model.

[0059] Calculate the total model loss, i.e. the fully connected classification loss:

[0060]

[0061] Among them, loss represents the full connection classification loss, n represents the number of users, and y i Indicates the true label of whether the i-th user is an abnormal user, It indicates the model's probability prediction value of whether the ith user is an abnormal user; δ indicates a random parameter with a value range of [-0.2, 0), which is used to make the model pay more attention to the data of positive samples; μ indicates a hyperparameter, which is generally taken as the ratio of positive and negative samples, so that the trained model can be more in line with the actual usage scenario and prevent the model from overfitting the prediction of negative samples.

[0062] The model parameters are adjusted according to the full connection classification loss to obtain a trained abnormal user detection model; the Weibo user data to be detected is obtained, and the trained abnormal user detection model is used to process the Weibo user data to be detected to obtain the Weibo abnormal user detection results. According to the Weibo abnormal user detection results, relevant public opinion departments can be helped to reasonably control public opinion.

[0063] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation modes of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting abnormal microblog users based on big data, characterized in that: include: Obtain Weibo user data and input it into the trained abnormal user detection model for processing to obtain Weibo abnormal user detection results; The training process of the abnormal user detection model includes: S1: Obtain Weibo user data with tags; S2: Extracting user behavior features and user text features from Weibo user data, mapping the user behavior features and user text features to a high-dimensional space, and obtaining a high-dimensional representation of the user behavior features and a high-dimensional representation of the user text features; the process of extracting user behavior features and user text features includes: S21: Sort the messages posted by the user in ascending order of time, slide the messages using a sliding window, calculate the average time interval of information release in each window; select the window with the smallest average value as the feature window; S22: Count multiple user behavior parameters of each piece of information in the feature window on the day; construct a two-dimensional user behavior feature table according to each user behavior parameter to obtain user behavior features; the user behavior parameters include the number of posts, the number of likes, the number of reposts, the number of comments, the average interval between posts, the average interval between likes, the average interval between reposts, and the average interval between comments; S23: Count multiple user text parameters of each message in the feature window on the day; construct a two-dimensional user text feature table according to each user text parameter to obtain user text features; the user text parameters include the average number of characters in a post, the average number of English characters in a post, the average number of punctuation marks in a post, the average number of URLs in a post, the average number of "@" in a post, the average number of "#" in a post, the average number of pictures in a post, the average number of topics in a post, and the average number of phrases in a post; S3: Extract basic user features from Weibo user data, map the basic user features to a high-dimensional space, and obtain a high-dimensional representation of the basic user features; the basic user features include user gender, user nickname text length, number of non-characters contained in the user nickname, personal profile length, number of URLs contained in the personal profile, number of user fans, number of followers, number of comments, number of likes, and the time interval between user registration time and the start of the feature window; S4: Perform pairwise interaction on the high-dimensional representation of user behavior features, the high-dimensional representation of user text features, and the high-dimensional representation of user basic features to obtain a basic-behavior feature table, a basic-text feature table, and a behavior-text feature table; the formula for pairwise interaction of the representations is: Among them, feature_table represents the interactive feature table, Q represents the first high-dimensional representation, K represents the second high-dimensional representation, mask represents the mask matrix, and mask b represents the b-th mask matrix, sum() represents the sum function, min() represents the minimum function, and softmax() represents the softmax activation function; S5: Process the basic-behavior feature table, the basic-text feature table, and the behavior-text feature table to obtain user cross-high-dimensional features; S6: Input the user cross high-dimensional features into the fully connected neural network for processing to obtain abnormal user detection results; S7: Calculate the full connection classification loss and adjust the model parameters according to the full connection classification loss to obtain a trained abnormal user detection model.

2. According to the big data-based microblog abnormal user detection method of claim 1, it is characterized in that: The process of user cross-high-dimensional features includes: expanding a basic-behavior feature table, a basic-text feature table and a behavior-text feature table by one dimension and splicing them on the expanded dimension; inputting the spliced ​​features into a multi-dimensional convolutional neural network to obtain user cross-high-dimensional features.

3. According to the method for detecting abnormal microblog users based on big data in claim 1, it is characterized in that: The formula for calculating the fully connected classification loss is: Among them, loss represents the full connection classification loss, n represents the number of users, and y i Indicates the true label of whether the i-th user is an abnormal user, It represents the model's probability prediction value of whether the i-th user is an abnormal user, δ represents a random parameter, and μ represents a hyperparameter.