Picture review system and method for 5g rich media information, and electronic device and medium
By building a picture feature extraction model and combining texture, edge and SIFT feature extraction technology to identify sensitive areas in the picture, it solves the problem of being unable to review specific elements in the picture in the existing technology and improves the accuracy of picture review.
Patent Information
- Application Number
- PCT/CN2023/119658
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-23
- Filing Date
- 2023-09-19
- Publication Date
- 2024-10-31
AI Technical Summary
The image classification model used in the existing technology can only review the overall compliance of non-compliant images, and cannot review specific elements within the image.
By constructing a picture feature extraction model, three different feature extraction sets are obtained through texture feature extraction, edge feature extraction and SIFT feature extraction, and they are fused to identify areas with suspected sensitive features in the picture, and then determine whether the picture is compliant.
It realizes that pictures in 5G rich media information can be reviewed for specific elements, improving the accuracy and effectiveness of picture review.
Smart Images

Figure CN2023119658_31102024_PF_FP_ABST
Abstract
Description
Image review system, method, electronic device, and medium for 5G rich media information Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a system, method, electronic device, and medium for image review of 5G rich media information. Background Art
[0002] 5G rich media messages are a major leap forward in the communication capabilities of the short messaging industry. Compared to traditional text messages, 5G rich media messages support more media formats and richer forms of expression. They can not only send rich media information such as long text, pictures, voice, and video, but also include user interaction and feedback capabilities such as official accounts and mini-programs, greatly improving the application scenarios, content quality, and usage scope of 5G rich media messages.
[0003] Traditional image review often uses image classification models to screen non-compliant images. However, it has the disadvantage of only reviewing the overall compliance of the image but not specific elements within the image.
[0004] Therefore, there is an urgent need for an image review method for 5G rich media information that can review specific elements within the image.
[0005] Summary of the Invention
[0006] The purpose of the embodiments of the present invention is to provide a 5G rich media information image review system, method, electronic device and medium to solve the problem in the prior art that image classification models are used to screen non-compliant images, which can only review the overall compliance of the image but cannot review specific elements within the image.
[0007] To achieve the above objectives, an embodiment of the present invention provides a method for image review of 5G rich media information, the method specifically comprising:
[0008] Obtain a picture message and a video sample picture set y' in the 5G rich media message, and construct a picture message information set Z based on the picture message and the video sample picture set y';
[0009] Constructing a picture classification model, and inputting the pictures in the picture message information set Z into the picture classification model in sequence to determine whether the pictures are compliant;
[0010] Constructing an image feature extraction model, performing texture feature extraction, edge feature extraction, and SIFT feature extraction on the sensitive images in the image message information set Z based on the image feature extraction model to obtain three different feature extraction sets, and fusing the three different feature extraction sets to obtain image regions in the image that are suspected to have sensitive features; wherein the feature extraction includes texture feature extraction, edge feature extraction, and SIFT feature extraction;
[0011] The image area with suspected sensitive features in the image is input into the image classification model to determine whether the image is compliant.
[0012] On the basis of the above technical solution, the present invention can also be improved as follows:
[0013] Furthermore, the obtaining of the picture message and the video sample picture set y' in the 5G rich media message, and constructing the picture message information set Z based on the picture message and the video sample picture set y', includes:
[0014] Obtain the video message information set Y in the 5G rich media message;
[0015] Build a video summarization model;
[0016] The video message information set Y is input into the video summary model to obtain the corresponding video sample picture set y'.
[0017] Furthermore, the image classification model includes a CNN convolutional layer, an LSTM network and an attention mechanism connected in sequence;
[0018] Extracting a feature vector of the picture message information set Z based on the CNN convolutional layer;
[0019] Identify the feature vector based on the LSTM network;
[0020] The attention mechanism sets weights for different regions based on the feature vector, so that the image classification model focuses on feature information of different regions during the classification process.
[0021] Furthermore, the texture feature extraction includes:
[0022] In the center of the sensitive image, a pixel value is randomly selected as the center pixel;
[0023] Use a matrix to collect neighborhood pixels around the central pixel;
[0024] When the pixel value of the neighborhood is greater than or equal to the central pixel value, the neighborhood pixel value is set to 1, otherwise the neighborhood pixel value is set to 0;
[0025] After the setting is completed, all thresholds are collected clockwise or counterclockwise from the neighborhood to obtain a binary code, and the binary code is converted into a decimal number;
[0026] The center pixel value is replaced by the decimal number of the calculation result, and the same operation is performed on all pixel values in the sensitive image.
[0027] Furthermore, the edge feature extraction includes:
[0028] Convert the original sensitive image into a grayscale image and read the pixel information in the grayscale image;
[0029] Normalizing pixel information of the grayscale image using a gamma correction method;
[0030] Divide the gamma-corrected grayscale image pixels into several pixel units;
[0031] The Prewitt operator is used to scan the corrected pixel blocks to capture the pixel contour information with large grayscale gradient changes;
[0032] Compute the HOG feature vector near the contour.
[0033] Furthermore, the SIFT feature extraction includes:
[0034] Generate a scale space for sensitive images;
[0035] Checking extreme points in the scale space;
[0036] Specify the direction parameters for each extreme point;
[0037] The directional parameter information of all extreme points is extracted to obtain the final SIFT feature parameters of the sensitive image.
[0038] Furthermore, the image region of the image suspected to be a sensitive feature is obtained by fusing the three different feature extraction sets, including:
[0039] The three different feature extraction sets are uniformly represented by initial vectorization to obtain the initial fusion vector set;
[0040] Performing feature fusion on the initial fusion vector set based on a deep residual network, wherein the deep residual network includes a CNN network, a transition, an RNN network, and a residual network unit mapping connected in sequence;
[0041] Extract hidden layer information from the initial fusion vector set through the CNN network;
[0042] Obtain the image sequence feature set through the RNN network;
[0043] By mapping the residual network units to sense the slight fluctuations between the output features, a multi-layer feature fusion set of the sequence images is obtained under unsupervised conditions.
[0044] Furthermore, the fusing of the three different feature extraction sets to obtain the image region of the image with suspected sensitive features also includes:
[0045] Constructing a sensitive feature area extraction model, wherein the sensitive feature area extraction model includes a CBL layer, a Res Block layer, two SDN4 networks, and a CBL network connected in sequence;
[0046] After obtaining the multi-layer feature fusion set of the sequence image, vector convolution is performed through the CBL layer to obtain the convolution vector;
[0047] The convolution vectors are connected in series and skipped through two layers of Res Block, where each layer of Res Block consists of two CBL layers connected in series;
[0048] The concatenated convolution vectors are fed into two SDN4 networks respectively, and dense connections are formed through CBL and Concat, thereby enclosing and superimposing the convolution vectors, retaining more features, and improving the overall expression ability of the sensitive feature area extraction model. After processing, the SDN4 network will use an upsampling method to expand the feature vector of the Concat output set;
[0049] The feature map combination is spliced through a 5-layer CBL network to finally obtain different types of feature vector sets. The different feature vector sets are the image areas with suspected sensitive features in the image;
[0050] The image area with suspected sensitive features in the image is input into the image classification model to determine whether the image is compliant.
[0051] A 5G rich media information image review system, comprising:
[0052] An acquisition module is configured to acquire a picture message and a video sample picture set y' in a 5G rich media message, and construct a picture message information set Z based on the picture message and the video sample picture set y';
[0053] A first construction module is used to construct an image classification model, and input the images in the image message information set Z into the image classification model in sequence to determine whether the images are compliant;
[0054] A second construction module is configured to construct an image feature extraction model, and based on the image feature extraction model, perform texture feature extraction, edge feature extraction, and SIFT feature extraction on the sensitive images in the image message information set Z to obtain three different feature extraction sets, and fuse the three different feature extraction sets to obtain an image region in the image with suspected sensitive features; wherein the feature extraction includes texture feature extraction, edge feature extraction, and SIFT feature extraction;
[0055] The image area with suspected sensitive features in the image is input into the image classification model to determine whether the image is compliant.
[0056] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method are implemented when the processor executes the computer program.
[0057] The embodiments of the present invention have the following advantages:
[0058] The image review method of 5G rich media information in the present invention obtains the image message and video sampling image set y' in the 5G rich media message, and constructs the image message information set Z based on the image message and video sampling image set y'; constructs an image classification model, and inputs the images in the image message information set Z into the image classification model in sequence to determine whether the images are compliant; constructs an image feature extraction model, and performs texture feature extraction, edge feature extraction and SIFT feature extraction on the sensitive images in the image message information set Z based on the image feature extraction model to obtain three different feature extraction sets, and fuses the three different feature extraction sets to obtain image areas with suspected sensitive features in the image; wherein the feature extraction includes texture feature extraction, edge feature extraction and SIFT feature extraction; the image areas with suspected sensitive features in the image are input into the image classification model to determine whether the image is compliant, which solves the problem in the prior art of using image classification models to screen non-compliant images, and can only review the overall compliance of the image, but cannot review specific elements in the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] To more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the embodiments or the description of the prior art. Obviously, the drawings described below are merely exemplary, and those skilled in the art can derive other implementation drawings based on the provided drawings without inventive effort.
[0060] The structures, proportions, sizes, etc. illustrated in this specification are intended only to complement the contents disclosed herein and to facilitate understanding and reading by persons familiar with the art. They are not intended to limit the conditions under which the present invention may be implemented and therefore have no substantive technical significance. Any structural modifications, changes in proportions, or adjustments in sizes, without affecting the efficacy and objectives of the present invention, shall still fall within the scope of the technical contents disclosed herein.
[0061] FIG1 is a flow chart of a method for image review of 5G rich media information according to the present invention;
[0062] FIG2 is a first architecture diagram of a 5G rich media information image review system according to the present invention;
[0063] FIG3 is a second architecture diagram of the image review system for 5G rich media information according to the present invention;
[0064] FIG4 is a schematic diagram of the feature fusion process of the deep residual network of the present invention;
[0065] FIG5 is a schematic diagram of the network structure of a sensitive feature region extraction module based on a DarkNet network and an SPP module according to the present invention;
[0066] FIG6 is a schematic diagram of the physical structure of an electronic device provided by the present invention.
[0067] The accompanying drawings are marked as follows: acquisition module 10, image classification model 20, image feature extraction model 30, speech-to-text model 40, video summary model 50, sensitive word variant recognition model 60, electronic device 70, processor 701, memory 702, bus 703. DETAILED DESCRIPTION
[0068] Example
[0069] FIG1 is a flow chart of an embodiment of a method for reviewing images of 5G rich media information according to the present invention. As shown in FIG1 , an embodiment of the present invention provides a method for reviewing images of 5G rich media information, including the following steps:
[0070] S101, obtaining a picture message and a video sample picture set y' in a 5G rich media message, and constructing a picture message information set Z based on the picture message and the video sample picture set y';
[0071] Specifically, a 5G rich media message is obtained. Since the maximum capacity of a single 5G rich media message is 3M, a 5G rich media message can contain multiple text messages, multiple pictures, and multiple videos / audios. A 5G rich media message can be represented as T xyz, T can include multiple text message information sets X (x1, x2, ...), multiple video message information sets Y (y1, y2, ...), and multiple picture message information sets Z (z1, z2, ...).
[0072] The video message information set Y contains video content and audio content. In the security compliance review, both video and audio information need to be reviewed simultaneously. The video message information set Y(y1,y2,...) is converted into a video text set y and a video sample image set y' respectively.
[0073] Constructing a video summarization model 50, wherein the video summarization model 50 includes a temporal decoder, a perceptron, and a transformer module connected in sequence;
[0074] Performing time sequence processing on the videos in the video message information set Y based on the time decoder;
[0075] Generate corresponding segmentation sequence based on two-layer perceptron;
[0076] Each segmentation sequence is vectorized and parsed through the Transformer module to obtain the sequence feature set R of each segmentation sequence, calculate the tolerance rate between the sequence features in the sequence feature set R, and obtain the segmentation sequence set with the largest tolerance rate based on the tolerance rate.
[0077] From the segmentation sequence set In each segmentation sequence, n pictures are randomly selected to form a video sampling picture set y' of the video to be identified.
[0078] A picture message information set Z is constructed based on the picture message and the video sample picture set y'.
[0079] S102: Build an image classification model, and input the images in the image message information set Z into the image classification model in sequence to determine whether the images are compliant;
[0080] Specifically, the image classification model 20 includes a CNN convolutional layer, an LSTM network, and an attention mechanism connected sequentially;
[0081] The feature vectors of the image message information set Z are extracted based on the CNN convolutional layer; these vectors represent the high-level semantic information of the original input image.
[0082] To gradually change the regional features observed by the algorithm, an LSTM network is used to identify image feature information. LSTM networks are typical memory networks that can use previously extracted feature information to influence the next update action.
[0083] To ensure that the catenary process can achieve end-to-end gradient descent differentiability, soft attention was selected as the feature processing mechanism after LSTM vector learning. By adding a penalty to the logistic regression loss function, the attention weights can be constrained, allowing the model to focus on feature information in different regions throughout the entire process.
[0084] Finally, the model outputs the probability of compliance, E(w), to determine the image classification result. The overall calculation formula for E(w) is as follows.
[0085] Among them, w represents the current picture to be judged;
[0086] y∈{-1,1} represents the annotation results of the images in the training set, Represents the predicted conditional probability of image feature x for category i at time t;
[0087] Indicates the exponential prediction probability of w when the length of LSTM is T and the number of categories is C. t,i is the weight of the i convolutional features at time t, Represents the sum of the weights of the i-th convolutional feature during the entire training time T, Indicates that in the fully connected layer K 2 The sum of the weights of feature i is multiplied by the attention penalty term γ to obtain the final weight value of feature i. λ is the regularization term. It is the regularization processing of image w.
[0088] S103: Build an image feature extraction model 30. Based on the image feature extraction model, perform texture feature extraction, edge feature extraction, and SIFT feature extraction on the sensitive images in the image message information set Z to obtain three different feature extraction sets. The three different feature extraction sets are then fused to obtain image regions in the image that are suspected to contain sensitive features. Feature extraction includes texture feature extraction, edge feature extraction, and SIFT feature extraction.
[0089] Specifically, traditional image review methods primarily classify the overall content of an image to determine compliance. For example, some images may appear normal street photos based on image classification, making them highly likely to pass short message security compliance review. However, local features of the images may reveal obvious violations, which can easily lead to negative social reactions, especially on specific dates. Review of 5G message image information requires more than just image classification; instead, it requires a thorough identification of image features. For example, violent and sensitive images are primarily associated with content related to mandatory regulations, controlled knives, burning, explosions, and gore. Politically sensitive images generally involve portraits and photos of politically sensitive leaders, as well as flags and patterns.
[0090] Therefore, this patent proposes to use a multidimensional residual network to perform corresponding texture feature extraction, edge feature extraction, and SIFT feature extraction on violence-sensitive images and politically sensitive images. After extracting these high-value image features, these features are fused, and the fused sensitive feature areas are identified. The sensitive feature areas are then passed into the sensitive image classification module, thereby meeting the security review requirements at the image feature level.
[0091] Texture features refer to the spatial arrangement of colors or grayscale in an image. They are low-level features that can help segment an image into regions of interest and classify these regions. However, they are also important feature information in image information extraction. Texture feature extraction includes:
[0092] In the center of the sensitive image, a pixel value is randomly selected as the center pixel; a 3x3 matrix is used to collect the neighborhood pixels around the center pixel; when the neighborhood pixel value is greater than or equal to the center pixel value, the neighborhood pixel value is set to 1, otherwise the neighborhood pixel value is set to 0; after the setting is completed, all thresholds are collected clockwise or counterclockwise from the neighborhood to obtain an 8-bit binary code, and the binary code is converted to a decimal number;
[0093] Replace the center pixel value with the decimal number of the calculation result, and perform the same operation on all pixel values in the sensitive image.
[0094] Image edges refer to the boundaries between different pixel segments in the entire image. Edge feature extraction algorithms search for edge region features with large grayscale changes in one direction, that is, they use the grayscale change difference to characterize the features with large differences in the image. Edge feature extraction includes:
[0095] Convert the original sensitive image into a grayscale image and read the pixel information in the grayscale image;
[0096] Gamma correction is used to normalize the pixel information of grayscale images. It can also be seen as a power function transformation of the pixel contrast of grayscale images, thereby reducing the interference of noise such as lighting in the image.
[0097] The pixels of the gamma-corrected grayscale image are divided into several pixel units; in this patent, the image is divided into 320*320 pixel blocks, and the pixel gradient histogram of each pixel block is calculated, which contains two values: the gradient size and direction of each pixel block; that is, each pixel block contains 320×320×2=204800 values.
[0098] The Prewitt operator is used to scan the corrected pixel blocks to capture the pixel outline information where the grayscale gradient changes significantly. The HOG feature vector near the outline is calculated. This means sliding along the edge outline with significant grayscale gradient changes toward the upper left and lower right corners of the image (320-1) times. The values for the same pixel block are averaged to obtain the final HOG feature vector representation of the image.
[0099] SIFT features can, to a certain extent, offset affine transformations of image pixels, the effects of lighting, and occlusion during the recognition process. Therefore, SIFT features can enhance the generalization and robustness of the image feature extraction model 30. SIFT feature extraction includes: generating a scale space for the sensitive image; this patent utilizes a Gaussian convolution function to generate a scale space for the image, generating three layers of image information; examining extreme points in the scale space; precisely locating extreme points in the image by comparing the pixel value changes within the same pixel region at different levels of scale space; and specifying directional parameters for each extreme point; calculating the position, scale, and directional information of each extreme point according to a fixed rotation angle. This patent performs calculations every 10 degrees, resulting in a total of 36*3 sets of directional parameters for each extreme point. The directional parameter information for all extreme points is extracted to obtain the final SIFT feature parameters for the sensitive image. Image features obtained through different feature extraction algorithms represent different elements of the image, but these elements vary significantly, requiring a feature fusion algorithm to effectively fuse these different features to ultimately obtain valuable image feature information.
[0100] This patent designs a deep residual network of CNN+RNN, which uses a deep neural network to effectively fuse and analyze feature residuals, and ultimately obtains an excellent set of image features.
[0101] The three different feature extraction sets are uniformly represented by initial vectorization to obtain the initial fusion vector set;
[0102] Since different feature extraction algorithms have different focuses on the feature information extracted, the three feature sets cannot be simply merged into three different vector tensors. Instead, the weight calculation of different feature sets needs to be considered.
[0103] This patent establishes a weight attribute set obj(c,x l ,y l ,x r ,y r ), respectively represent the weight value of the pixel block in this feature extraction algorithm, the horizontal and vertical coordinates of the upper left corner and the horizontal and vertical coordinates of the lower right corner of the pixel block bounding box. Assume that when any two feature sets A and B of the same pixel block are combined, obj a combin obj b →obj ab The weight calculation method is as follows:
[0104] w ab =(1+δ)*max(w a ,w b )
[0105] Among them, obj a Represents the feature set extracted from a pixel block by method a. b Represents the feature set extracted from a pixel block by method b. ab is the fusion feature set generated by combining the decision rules, Represents obj ab The horizontal axis coordinate in the upper left corner is selected by and The smallest upper left corner horizontal coordinate value of the two is obtained. Represents obj ab The horizontal axis coordinate in the upper left corner is selected by and The smallest upper left corner horizontal coordinate value of the two is obtained. Represents obj ab The horizontal axis coordinate in the lower right corner is selected by and The maximum horizontal coordinate value of the lower right corner of the two is obtained. Represents obj ab The horizontal axis coordinate in the lower right corner is selected by and The maximum horizontal coordinate value of the lower right corner of the two is obtained. ab Indicates the combined weight value. ab Is the combination obj abThe weight of obj a and obj b The initial fusion vector set Conv is obtained by weighting the weight of the pixel block.
[0106] As shown in Figure 4, the initial fusion vector set is feature fused based on the deep residual network, where the deep residual network includes a CNN network (CNN Residual extract), Transition, RNN network (Residual extract) and residual network unit mapping (Residual Mapping) connected in sequence;
[0107] Since the initial fusion vector set Conv contains too many feature details, these details are often hidden in the feature set. Therefore, this patent first extracts the hidden layer information from the picture feature set through the CNN network. The first convolution layer parameter is designed to be 64 7*7 convolution kernels with a step size of 2. A BatchNorm layer is set after each convolution layer to increase the model's capacity. In addition, since part of the 5G message picture set processed here comes from the video sampling picture set y', there is a certain sequence relationship between the pictures. CNN is not good at capturing feature information in sequence pictures, so this patent adds a recursive neural network layer (RNN) after Transition. Here, given the feature sequence X extracted by the pre-order CNN model = (x1, x2, ..., x T ) consists of T features, and the joint distribution probability model p(x1,x2,...,x T ) can be expressed as follows. p(x1,x2,...,x T )=p(x1)p(x2|x1)p(x3|x1,x2)...p(x T |x1,x2...,x T-1 )
[0108] Each conditional probability distribution can be set as: p(x T |x1,x2...,x T-1 )=g(h T )
[0109] Where g is a feature-level nonlinear transformation that is smooth and bounded. This patent uses the logistic sigmoid function, which is expressed as:
[0110] is the recursive hidden state of RNN, and the function expression is:
[0111] Here, φ is a nonlinear function that is a combination of logistic sigmoid and affine transformation. This allows us to obtain a feature set of the image sequence extracted by the RNN.
[0112] By mapping the residual network units to sense the slight fluctuations between the output features, a multi-layer feature fusion set of the sequence images is obtained under unsupervised conditions.
[0113] After obtaining a multi-layer feature fusion set for a sequence of images, it is necessary to extract sensitive feature regions from them. This patent designs a sensitive feature region extraction module based on the DarkNet network and the SPP module. The network structure of this module is shown in Figure 5.
[0114] A sensitive feature region extraction model was constructed, consisting of a sequentially connected CBL layer, a Res Block layer, two SDN4 networks, and a CBL network. After obtaining a multi-layer feature fusion set for the sequence image, a convolution vector was generated by performing vector convolution with a 128x128 CBL layer. This convolution vector consists of a convolution layer, a batch normalization layer, and a Leaky ReLU activation function. The convolution vector was then connected in series and skipped using two layers of Res Blocks. Each Res Block layer consists of two CBL layers connected in series, effectively overcoming the vanishing and exploding gradient problems.
[0115] The concatenated convolution vectors are fed into two SDN4 networks respectively, forming a dense connection through CBL and Concat, thereby confining and superimposing the convolution vectors, retaining more features and improving the overall expressiveness of the sensitive feature area extraction model. After processing, the SDN4 network will use the upsampling method to expand the feature vector of the Concat output set;
[0116] The feature map combination is spliced through a 5-layer CBL network to finally obtain different types of feature vector sets. Different feature vector sets are image areas with suspected sensitive features in the image.
[0117] The image area with suspected sensitive features in the image is input into the image classification model 20 to determine whether the image is compliant.
[0118] S104: Input the image area with suspected sensitive features in the image into the image classification model to determine whether the image is compliant.
[0119] The speech-to-text model 40 is a CTC model. On the basis of the CTC model, the maximum entropy function is introduced to improve the original CTC loss function in the CTC model; the improved CTC model is trained through the training set to obtain a trained improved CTC model; the video message information set Y is converted into a video text set y through the trained improved CTC model.
[0120] The original CTC loss function is improved by formula 1;
[0121] Where, To improve the loss function of the CTC model, is the original loss function of CTC, α is the coefficient of maximum conditional entropy regularization, and H(p(π|l, X)) is the entropy of the feasible path for a given input sequence and target sequence.
[0122] Solve H(p(π|l,X)) by formula 2,
[0123] Where (p(π|l, X)) represents the conditional probability of a feasible path π given the 5G voice information X and the true output l;
[0124] logp(π|X) represents the logarithm of the conditional probability of a feasible path π given the 5G voice information X; It represents the sum of all output conditional probabilities of the 5G voice information X regardless of whether the true output l is given.
[0125] The loss function used in the present invention can be selected from L1Loss, MSEloss, CrossEntropyLoss, etc., which will not have a significant difference in the final effect of improving the CTC model.
[0126] Obtain a picture message in a 5G rich media message, and construct a picture message information set Z based on the picture message and the video sample picture set y';
[0127] Obtain text messages in 5G rich media messages; construct a text message information set X based on the text message and video text set y;
[0128] Construct a sensitive word variant recognition model 60; preferably, the sensitive word variant recognition model 60 is a Text CNN model. The bad short text recognition method based on the Text CNN model has been relatively maturely used in short message text review.
[0129] The sensitive word variant recognition model 60 used in the present invention can be replaced by models such as CRNN, LSTM+CTC, etc. in addition to the Text CNN model, and the recognition effect will not be significantly different.
[0130] First of all, the 5G rich media messages to be processed need to undergo preprocessing such as digital character standardization, English character standardization, conversion from traditional Chinese to simplified Chinese, processing of special meaning symbols, removal of mixed symbol noise, unified representation of continuous digital payments, and string segmentation.
[0131] Secondly, short texts are vectorized using word2vec, and the text vectors are subjected to high-dimensional convolution and extension in the convolution layer. The pooling layer and the fully connected layer are used to activate the vectors of sensitive words, and the hit probability of sensitive words is calculated using the SoftMax function. The SoftMax function expression selected here is as follows:
[0132] Here, x represents the word vector.
[0133] Finally, the text messages in the text message information set X are sequentially input into the sensitive word variant identification model 60 to determine whether all text messages in the text message information set X are compliant. If the text message compliance is determined to be non-compliant, it will be transferred to manual judgment or warning. If the text message is determined to be compliant, it will enter the subsequent judgment process.
[0134] Feature extraction is performed on the picture message information set Z to obtain the picture depth feature set z; preferably, the original feature extraction method of the picture used in the present invention is LBP, HOG, SIFT, and other similar feature extraction algorithms can be used instead, and the replacement effect will not have a significant impact on the final picture classification model 20.
[0135] The 5G message image information set Z can be judged as compliant using a classification model. If the image or any feature information within the image is judged as non-compliant, the image is judged as non-compliant. If the image or any feature information within the image is judged as compliant, the image is judged as compliant.
[0136] During the security review of 5G message videos, text, and images, if any of the review results are judged as non-compliant, the 5G message will enter the manual review process. If all the results are judged as compliant, the 5G message can be sent normally and the process ends.
[0137] Figures 2 and 3 are flow charts of an embodiment of a system for reviewing images of 5G rich media information according to the present invention. As shown in Figures 2 and 3, an embodiment of the present invention provides a system for reviewing images of 5G rich media information, including the following steps:
[0138] An acquisition module 10 is configured to acquire a picture message and a video sample picture set y' in a 5G rich media message, and construct a picture message information set Z based on the picture message and the video sample picture set y';
[0139] The picture classification model 20 is used to input the pictures in the picture message information set Z into the picture classification model 20 in sequence to determine whether the pictures are compliant;
[0140] An image feature extraction model 30 is configured to perform texture feature extraction, edge feature extraction, and SIFT feature extraction on sensitive images in the image message information set Z based on the image feature extraction model 30 to obtain three different feature extraction sets, and fuse the three different feature extraction sets to obtain an image region in the image that is suspected to have sensitive features; wherein the feature extraction includes texture feature extraction, edge feature extraction, and SIFT feature extraction;
[0141] Texture feature extraction includes: arbitrarily selecting a pixel value as the center pixel in the center of the sensitive image; using a matrix to collect neighborhood pixels around the center pixel; when the neighborhood pixel value is greater than or equal to the center pixel value, the neighborhood pixel value is set to 1, otherwise the neighborhood pixel value is set to 0; after the setting is completed, all thresholds are collected clockwise or counterclockwise from the neighborhood to obtain a binary code, and the binary code is converted into a decimal number; the center pixel value is replaced with the decimal number of the calculated result, and the same operation is performed on all pixel values in the sensitive image.
[0142] Edge feature extraction includes: converting the original sensitive image into a grayscale image and reading the pixel information in the grayscale image; normalizing the pixel information of the grayscale image using the gamma correction method; dividing the pixels of the gamma-corrected grayscale image into several pixel units; scanning the corrected pixel blocks using the Prewitt operator to capture the pixel contour information with large grayscale gradient changes; and calculating the HOG feature vector near the contour.
[0143] SIFT feature extraction involves generating a scale space for sensitive images; examining extreme points in the scale space; specifying directional parameters for each extreme point; and extracting the directional parameters of all extreme points to obtain the final SIFT feature parameters for the sensitive image. Regions in the image suspected of containing sensitive features are then fed into an image classification model 20 to determine if the image complies with standards.
[0144] The video summarization model 50 includes a temporal decoder, a perceptron, and a transformer module connected in sequence;
[0145] Perform temporal processing on the videos in the video message information set Y based on the temporal decoder; generate the corresponding segmentation sequence based on the two-layer perceptron;
[0146] Each segmentation sequence is vectorized and parsed through the Transformer module to obtain the sequence feature set R of each segmentation sequence, calculate the tolerance rate between the sequence features in the sequence feature set R, and obtain the segmentation sequence set with the largest tolerance rate based on the tolerance rate.
[0147] From the segmentation sequence set In each segmentation sequence, n pictures are randomly selected to form a video sampling picture set y' of the video to be identified.
[0148] A speech-to-text model 40 converts the video message information set Y into a video text set y through the speech-to-text model 40;
[0149] Sensitive word variant identification model 60, which sequentially inputs text messages in text message information set X into sensitive word variant identification model 60 to obtain sensitive word variant text set X', and determines whether the text in sensitive word variant text set X' complies with regulations based on sensitive word variant text set X';
[0150] When all text messages in the text message information set X are compliant and all images in the image depth feature set z are compliant, it is determined that the 5G rich media message can be sent normally.
[0151] FIG6 is a schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention. As shown in FIG6 , the electronic device 70 includes: a processor 701 (processor), a memory 702 (memory) and a bus 703;
[0152] Among them, the processor 701 and the memory 702 complete mutual communication through the bus 703; the processor 701 is used to call the program instructions in the memory 702 to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining the picture message and video sampling picture set y' in the 5G rich media message, and constructing the picture message information set Z based on the picture message and video sampling picture set y'; constructing the picture classification model 20, and inputting the pictures in the picture message information set Z into the picture classification model 20 in sequence to determine whether the pictures are compliant; constructing the picture feature extraction model 30, and performing texture feature extraction, edge feature extraction and SIFT feature extraction on the sensitive pictures in the picture message information set Z based on the picture feature extraction model 30 to obtain three different feature extraction sets, and fusing the three different feature extraction sets to obtain the picture area of the suspected sensitive features in the picture; wherein, feature extraction includes texture feature extraction, edge feature extraction and SIFT feature extraction; inputting the picture area of the suspected sensitive features in the picture into the picture classification model 20 to determine whether the picture is compliant.
Claims
1. A method for image review of 5G rich media information, characterized in that: The method specifically comprises: Obtain a picture message and a video sample picture set y' in a 5G rich media message, and construct a picture message information set Z based on the picture message and the video sample picture set y'; Constructing a picture classification model, and inputting the pictures in the picture message information set Z into the picture classification model in sequence to determine whether the pictures are compliant; Constructing a picture feature extraction model, performing texture feature extraction, edge feature extraction and SIFT feature extraction on the sensitive pictures in the picture message information set Z based on the picture feature extraction model to obtain three different feature extraction sets, and fusing the three different feature extraction sets to obtain a picture area of suspected sensitive features in the picture; wherein the feature extraction includes texture feature extraction, edge feature extraction and SIFT feature extraction; The image area with suspected sensitive features in the image is input into the image classification model to determine whether the image is compliant.
2. According to the image review method of 5G rich media information according to claim 1, it is characterized in that: The step of obtaining a picture message and a video sample picture set y' in a 5G rich media message, and constructing a picture message information set Z based on the picture message and the video sample picture set y', includes: Get the video message information set Y in the 5G rich media message; Build a video summarization model; The video message information set Y is input into the video summary model to obtain the corresponding video sample picture set y'.
3. The image review method for 5G rich media information according to claim 1 is characterized in that: The image classification model includes a CNN convolutional layer, an LSTM network and an attention mechanism connected in sequence; Extracting a feature vector of the picture message information set Z based on the CNN convolutional layer; Identify the feature vector based on the LSTM network; The attention mechanism sets weights of different regions based on the feature vector, so that the image classification model focuses on feature information of different regions during the classification process.
4. The image review method for 5G rich media information according to claim 1 is characterized in that: The texture feature extraction comprises: At the center of the sensitive image, a pixel value is randomly selected as the center pixel; Collecting neighborhood pixels around the central pixel using a matrix; When the pixel value of the neighborhood is greater than or equal to the central pixel value, the neighborhood pixel value is set to 1, otherwise the neighborhood pixel value is set to 0; After the setting is completed, all thresholds are collected clockwise or counterclockwise from the neighborhood to obtain a binary code, and the binary code is converted into a decimal number; The central pixel value is replaced by the decimal number of the calculated result, and the same operation is performed on all pixel values existing in the sensitive image.
5. The image review method for 5G rich media information according to claim 4 is characterized in that: The edge feature extraction comprises: Convert the original sensitive image into a grayscale image and read the pixel information in the grayscale image; Normalizing the pixel information of the grayscale image using a gamma correction method; Divide the pixels of the gamma-corrected grayscale image into several pixel units; The Prewitt operator is used to scan the corrected pixel blocks to capture the pixel contour information with large grayscale gradient changes; Calculate the HOG feature vector near the contour.
6. The image review method for 5G rich media information according to claim 5 is characterized in that: The SIFT feature extraction includes: Generate a scale space of sensitive images; Checking extreme points in the scale space; Specify the direction parameters for each extreme point; The directional parameter information of all extreme points is extracted to obtain the final SIFT feature parameters of the sensitive image.
7. The image review method for 5G rich media information according to claim 1 is characterized in that:The image region of the image suspected of having sensitive features is obtained by fusing the three different feature extraction sets, including: The three different feature extraction sets are uniformly represented by initial vectorization to obtain an initial fusion vector set; Performing feature fusion on the initial fusion vector set based on a deep residual network, wherein the deep residual network includes a CNN network, a Transition, a RNN network and a residual network unit mapping connected in sequence; Extract hidden layer information from the initial fusion vector set through the CNN network; Obtain the image sequence feature set through the RNN network; Through residual network unit mapping, we sense the slight fluctuations between the output features and obtain a multi-layer feature fusion set of sequence images under unsupervised conditions.
8. The image review method for 5G rich media information according to claim 7 is characterized in that: The step of fusing the three different feature extraction sets to obtain the image region of the image that is suspected to be a sensitive feature also includes: Constructing a sensitive feature region extraction model, wherein the sensitive feature region extraction model includes a CBL layer, a Res Block layer, two SDN4 networks and a CBL network connected in sequence; After obtaining the multi-layer feature fusion set of the sequence image, vector convolution is performed through the CBL layer to obtain the convolution vector; The convolution vectors are connected in series and skipped through two layers of Res Block, where each layer of Res Block is composed of two CBL layers connected in series; The concatenated convolution vectors are respectively sent to two SDN4 networks, and dense connections are formed through CBL and Concat, so as to enclose and superimpose the convolution vectors, retain more features, and improve the overall expression ability of the sensitive feature area extraction model. After processing, the SDN4 network will use an upsampling method to expand the feature vector of the Concat output set; The feature map combinations are spliced through a 5-layer CBL network to finally obtain different types of feature vector sets, and the different feature vector sets are the image regions of suspected sensitive features in the image; The image area with suspected sensitive features in the image is input to determine whether the image is compliant based on the image classification model.
9. A 5G rich media information picture review system, characterized in that: include: The acquisition module is used to obtain the picture message and video sample picture collection in the 5G rich media message y', constructing a picture message information set Z based on the picture message and the video sample picture set y'; A picture classification model, used to input pictures in the picture message information set Z into the picture classification model in sequence to determine whether the pictures are compliant; A picture feature extraction model, used for performing texture feature extraction, edge feature extraction and SIFT feature extraction on the sensitive pictures in the picture message information set Z based on the picture feature extraction model to obtain three different feature extraction sets, and fusing the three different feature extraction sets to obtain a picture area of suspected sensitive features in the picture; wherein the feature extraction includes texture feature extraction, edge feature extraction and SIFT feature extraction; The image area with suspected sensitive features in the image is input into the image classification model to determine whether the image is compliant.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Image classification model and method based on improved convolutional neural network and application thereof
CN110969171A
Picture auditing method and system, electronic equipment and computer readable medium
CN113780321A
Sensitive picture compliance detection method, device, storage medium and equipment
CN114092743A
Method and device for judging compliance of 5G rich media message
CN115186114A
Picture review system and method for 5G rich media information, electronic equipment and medium
CN116206227A
