Campus network security emergency management method and system based on public opinion monitoring
Through graph-based multi-word expression processing and concept-level sentiment analysis, we solve the public opinion management problems caused by campus network security incidents, achieve high efficiency and low complexity of sentiment analysis and opinion mining, and improve the accuracy and real-time performance of public opinion monitoring. .
Patent Information
- Application Number
- CN202410937073.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Campus network security incidents may trigger public opinion reactions. Traditional opinion mining methods are difficult to achieve a balance between minimizing computational complexity and emotional relevance, and deep learning has shortcomings in the semantic deconstruction of natural language texts.
Using graph-based multi-word expression processing methods and concept-level sentiment analysis knowledge base SenticNet, by monitoring campus website content, extracting multi-word expressions and sentiment analysis, constructing network security data sets, calculating perceptual paths to identify emotion-bearing concepts, and Capture valuable emotional information while respecting user privacy.
It realizes the effective identification of emotion-carrying concepts, monitors the direction of public opinion related to campus safety, minimizes data processing and calculation consumption, provides real-time network public opinion monitoring and opinion mining, and improves the efficiency and accuracy of public opinion management.
Smart Images

Figure CN118469353B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of network security, and specifically relates to a campus network security emergency management method and system based on public opinion monitoring. Background Art
[0002] Campus network security incidents may trigger public opinion reactions and have a negative impact on the school's reputation. Discovering and handling network security incidents through the campus network security emergency management system, timely public opinion management and crisis public relations will help maintain the order and image of the school. Multi-word expression is a key issue in the development of large-scale, language-sound natural language processing technology. The relationship between multi-word expression and words and morphology has rarely been explored so far. Although deep learning has achieved context modeling in natural language texts, there is a problem that deep learning is still far from the semantic deconstruction of texts; the large amount of user-posted content on campus websites provides valuable opportunities for opinion mining, but traditional opinion mining methods lack automatic and sustainable use of data-driven, and it is difficult to strike a balance between minimizing computational complexity and emotional relevance. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a campus network security emergency management method and system based on public opinion monitoring. The relationship between multi-word expressions and words and morphology has rarely been explored so far. Although deep learning has realized context modeling in natural language texts, there is a problem that deep learning is still far from the semantic deconstruction of texts. This solution adopts the knowledge base SenticNet of concept-level sentiment analysis and proposes a graph-based multi-word expression processing method for effectively and quickly identifying emotion-bearing concepts in open English texts and summarizing these concepts as primitives for high-level sentiment reasoning tasks; the content posted by a large number of users on campus websites provides valuable opportunities for opinion mining, but traditional opinion mining methods lack automatic and sustainable use of data-driven, and it is difficult to strike a balance between minimizing computational complexity and sentiment relevance. This solution proposes a sustainable campus website opinion mining method to extract danger-related emotions from network texts, monitor the direction of public opinion related to campus safety, capture valuable sentiment information under the condition of respecting user privacy, effectively analyze public opinions, and minimize the computational consumption of data processing.
[0004] The technical solution adopted by the present invention is as follows: The present invention provides a campus network security emergency management method based on public opinion monitoring, the method comprising the following steps:
[0005] Step S1: monitoring the campus website and extracting blog posts from the communication posts on the campus website;
[0006] Step S2: normalize the blog post and output the processed text;
[0007] Step S3: concept extraction, extracting concepts from the text and detecting multi-word expressions in the text;
[0008] Step S4: sentiment analysis and opinion mining, initializing and smoothing the perception path, constructing a cybersecurity dataset consisting of dangerous primitive labels that represent the spread of hate speech and have the risk of manipulating public opinion, and calculating and minimizing the cost function;
[0009] Step S5: Evaluate the blog posts, calculate the perception paths of all multi-word expressions and the network security dataset, and arrange the perception paths in ascending order of the perception path length, generate a path sequence, calculate the perception path mean, the shortest perception path length, and the average of the first n perception path lengths in the path sequence, and if the perception path mean is less than or the shortest path length is less than Or the average length of the first n perceived paths in the path sequence is less than , the post is pushed to manual verification; otherwise, the post is discarded, and step S1 is repeated to capture and verify the next post, so as to realize real-time network public opinion monitoring. The formula used is as follows;
[0010] ;
[0011] In the formula, A Boolean result indicating whether to push the post to manual review. 1 means push, 0 means do not push. represents the mean of the perception path, represents the shortest perceptual path length, represents the average length of the first n perceived paths in the path sequence, , and Respectively represent the push threshold, Indicates or operates.
[0012] Furthermore, in step S2, the blog post is standardized, which specifically includes the following steps:
[0013] Step S21: Delete special characters, punctuation marks, and emoticons in the posted blog post;
[0014] Step S22: Deleting the user handle and URL in the posted blog post;
[0015] Step S23: process the tags; identify and extract the attribute tags, and retain the attribute tags separately;
[0016] Step S24: Output the normalized blog post as text.
[0017] Furthermore, in step S3, concept extraction specifically includes the following steps:
[0018] Step S31: Boundary disambiguation: deconstruct the text into sentences and sentences into clauses according to the ending punctuation marks;
[0019] Step S32: Detect a multi-word expression in a clause, where the multi-word expression is a phrase object formed by two or more words;
[0020] Step S33: word segmentation and part-of-speech tagging;
[0021] Step S34: capturing the object concept; using the POS-based bigram algorithm, sequentially judging the multi-word expressions, extracting the object concept, and incorporating the separately retained attribute tags into the object concept;
[0022] Step S35: normalizing the multi-word expression; performing stem extraction on the multi-word expression;
[0023] Step S36: Capturing event concepts; the sentiment dictionary is an unweighted directed graph used to quickly detect multi-word concepts. An event concept extraction algorithm is used to search for matches between verbs and object concepts based on the sentiment dictionary. The event concept is captured while ensuring that the verbs and object concepts have corresponding meanings in the sentiment dictionary.
[0024] Step S37: The object concept and the event concept form a concept.
[0025] Furthermore, in step S33, word segmentation and part-of-speech tagging specifically include the following steps:
[0026] Step S331: word form normalization: decompose the clause into individual words, remove word form changes of the words, and normalize the words into corresponding prototypes;
[0027] Step S332: Processing negative prefixes: mis-, dis-, un-, normalizing the words containing the negative prefixes to the corresponding negative forms;
[0028] Step S333: normalizing micro-variants; normalizing the words with colloquial and networked deformations in the blog posts into corresponding prototypes;
[0029] Step S334: tag the vocabulary with parts of speech.
[0030] Furthermore, in step S34, the object concept is captured, which specifically includes the following steps:
[0031] Step S341: If the multi-word expression includes a verb, the multi-word expression is discarded;
[0032] Step S342: if the multi-word expression is a combination of an adjective and a noun, the multi-word expression is identified as an object concept;
[0033] Step S343: if the multi-word expression is a combination of nouns, the multi-word expression is identified as an object concept;
[0034] Step S344: stop words refer to words that do not have specific meanings and cannot provide useful information in the text processing process. Stop words are composed of articles, pronouns, and prepositions. If a multi-word expression is a combination of adjectives and stop words, the multi-word expression is discarded;
[0035] Step S345: If the multi-word expression is a combination of nouns and adjectives, the adjectives are discarded and only the nouns are identified as object concepts;
[0036] Step S346: If the multi-word expression is a combination of nouns and stop words, the adjectives are discarded and only the nouns are identified as object concepts;
[0037] Step S347: If the multi-word expression is a combination of stop words and adjectives, the multi-word expression is discarded;
[0038] Step S348: If the multi-word expression is a combination of stop words and nouns, the adjectives are discarded and only the nouns are recognized as object concepts.
[0039] Furthermore, in step S4, sentiment analysis and opinion mining specifically include the following steps:
[0040] Step S41: Initialize the sensing path. The specific operations are as follows:
[0041] Step S411: Determine the starting primitive ; Use basic algebra to convert multi-word expressions into primitives and record them as starting primitives ;
[0042] Step S412: Determine the end primitive ; Construct a cybersecurity dataset consisting of dangerous primitive labels that indicate the spread of hate speech and the risk of manipulating public opinion, and label dangerous primitives as end primitives ;
[0043] Step S413: Calculate the penalty distance matrix representing all perceptual paths existing between concepts. The calculation formula is as follows:
[0044] ;
[0045] In the formula, represents the penalty distance matrix, Indicates concept, Indicates concept, express and The square of the Euclidean distance between Represents the penalty factor used to adjust the nearest neighbor distance. express of The set of nearest neighbors;
[0046] Step S42: Smooth the perception path; find the starting primitive based on the penalty distance matrix and end primitive The shortest perceptual path between them is obtained by using Dijkstra algorithm, and the weights of the concepts passed through on the shortest perceptual path are parameterized to make the distances between concepts equal;
[0047] Step S43: Cost function optimization: Calculate the cost function, iterate and converge the cost function through the EM optimization algorithm, and the formula used is as follows:
[0048] ;
[0049] In the formula, Indicates adjustment through EM optimization algorithm and The value of minimizes the cost function, represents the set of all concepts that the perception path passes through, represents the weight matrix indicating whether each concept is a concept passed through the perception path, express No. OK, represents the squared norm, represents the Kronecker delta function, represents the regularization coefficient used to smooth the perceptual path, represents the number of concepts passed through in the perception path, Represents the jth concept in the perception path.
[0050] The present invention provides a campus network security emergency management system based on public opinion monitoring, the system comprising a campus website monitoring module, a blog posting normalization module, a concept extraction module, a sentiment analysis and opinion mining module and a blog posting evaluation module;
[0051] The campus website monitoring module monitors the campus website and extracts the posted blog posts from the communication posts on the campus website;
[0052] The blog post normalization module removes special characters, punctuation marks, emoticons, user handles and URLs in the blog post, processes tags and outputs the normalized blog post as text;
[0053] The concept extraction module detects multi-word expressions in clauses and captures object concepts and event concepts;
[0054] The sentiment analysis and opinion mining module initializes and smoothes the perception path, and calculates and minimizes the cost function;
[0055] The blog post evaluation module calculates the perceived path average, the shortest perceived path length, and the average of the perceived path lengths of the first n paths in the path sequence, determines whether to push the blog post to manual verification, and starts the campus website monitoring module to capture and verify the next blog post, thereby realizing real-time network public opinion monitoring.
[0056] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0057] (1) The relationship between multi-word expressions and words and morphology has rarely been explored so far. Although deep learning has achieved context modeling in natural language texts, there is still a problem that deep learning is still far from the semantic deconstruction of texts. This scheme adopts SenticNet, a knowledge base for concept-level sentiment analysis, and proposes a graph-based multi-word expression processing method for effectively and quickly identifying sentiment-laden concepts in open English texts and summarizing these concepts as primitives for high-level sentiment reasoning tasks.
[0058] (2) The large amount of user-posted content on campus websites provides a valuable opportunity for opinion mining. However, traditional opinion mining methods lack automatic and sustainable data-driven utilization and have difficulty in striking a balance between minimizing computational complexity and sentiment relevance. This scheme proposes a sustainable campus website opinion mining method that extracts danger-related emotions from online texts, monitors public opinion trends related to campus safety, captures valuable sentiment information while respecting user privacy, effectively analyzes public opinion, and minimizes the computational cost of data processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A flow chart of a campus network security emergency management method based on public opinion monitoring provided by the present invention.
[0060] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0062] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0063] Example 1, see Figure 1 The present invention provides a campus network security emergency management method based on public opinion monitoring, the method comprising the following steps:
[0064] Step S1: monitoring the campus website and extracting blog posts from the communication posts on the campus website;
[0065] Step S2: normalize the blog post and output the processed text;
[0066] Step S3: concept extraction, extracting concepts from the text and detecting multi-word expressions in the text;
[0067] Step S4: sentiment analysis and opinion mining, initializing and smoothing the perception path, constructing a cybersecurity dataset consisting of dangerous primitive labels that represent the spread of hate speech and have the risk of manipulating public opinion, and calculating and minimizing the cost function;
[0068] Step S5: Evaluate the blog posts, calculate the perception paths of all multi-word expressions and the network security dataset, and arrange the perception paths in ascending order of the perception path length, generate a path sequence, calculate the perception path mean, the shortest perception path length, and the average of the first n perception path lengths in the path sequence, and if the perception path mean is less than or the shortest path length is less than Or the average length of the first n perceived paths in the path sequence is less than , the post is pushed to manual verification; otherwise, the post is discarded, and step S1 is repeated to capture and verify the next post, so as to realize real-time network public opinion monitoring. The formula used is as follows;
[0069] ;
[0070] In the formula, A Boolean result indicating whether to push the post to manual review. 1 means push, 0 means do not push. represents the mean of the perception path, represents the shortest perceptual path length, represents the average length of the first n perceived paths in the path sequence, , and Respectively represent the push threshold, Indicates or operates.
[0071] Example 2, see Figure 1 This embodiment is based on the above embodiment. In step S2, the blog post is standardized, which specifically includes the following steps:
[0072] Step S21: Delete special characters, punctuation marks, and emoticons in the posted blog post;
[0073] Step S22: Deleting the user handle and URL in the posted blog post;
[0074] Step S23: Processing tags: identifying and extracting tags through the character “#”, and retaining the tags separately;
[0075] Step S24: Output the normalized blog post as text.
[0076] Example 3, see Figure 1 This embodiment is based on the above embodiment. In step S3, concept extraction specifically includes the following steps:
[0077] Step S31: boundary disambiguation; deconstructing the text into sentences and deconstructing the sentences into clauses according to the ending punctuation marks;
[0078] Step S32: Detect a multi-word expression in a clause, where the multi-word expression is a phrase object formed by two or more words;
[0079] Step S33: word segmentation and part-of-speech tagging;
[0080] Step S34: Capture the object concept; stop words refer to words that do not have a specific meaning and cannot provide useful information in the text processing process. Stop words are composed of articles, pronouns, and prepositions. According to the part of speech, a POS-based bigram algorithm is used to judge multi-word expressions in turn and extract object concepts;
[0081] Step S35: normalizing the multi-word expression; performing stem extraction on the multi-word expression;
[0082] Step S36: Capturing event concepts; the sentiment dictionary is an unweighted directed graph used to quickly detect multi-word concepts. An event concept extraction algorithm is used to search for matches between verbs and object concepts based on the sentiment dictionary. The event concept is captured while ensuring that the verbs and object concepts have corresponding meanings in the sentiment dictionary.
[0083] Step S37: The object concept and the event concept form a concept.
[0084] Example 4, see Figure 1 This embodiment is based on the above embodiment. In step S33, word segmentation and part-of-speech tagging specifically include the following steps:
[0085] Step S331: word form normalization: decomposing the clause into individual words, removing word form changes of the words, and normalizing the words to their original forms;
[0086] Step S332: Processing negative prefixes: processing negative prefixes: mis-, dis-, un-, and normalizing the words containing the negative prefixes to the corresponding negative forms;
[0087] Step S333: normalizing micro-variants: normalizing the words with micro-variants in the blog post to the corresponding standard form;
[0088] Step S334: tag the vocabulary with parts of speech.
[0089] Example 5, see Figure 1 This embodiment is based on the above embodiment. In step S34, the object concept is captured, which specifically includes the following steps:
[0090] Step S341: If the multi-word expression includes a verb, the multi-word expression is discarded;
[0091] Step S342: if the multi-word expression is a combination of an adjective and a noun, the multi-word expression is identified as an object concept;
[0092] Step S343: if the multi-word expression is a combination of nouns, the multi-word expression is identified as an object concept;
[0093] Step S344: If the multi-word expression is a combination of adjectives and stop words, the multi-word expression is discarded;
[0094] Step S345: If the multi-word expression is a combination of nouns and adjectives, the adjectives are discarded and only the nouns are identified as object concepts;
[0095] Step S346: If the multi-word expression is a combination of nouns and stop words, the adjectives are discarded and only the nouns are identified as object concepts;
[0096] Step S347: If the multi-word expression is a combination of stop words and adjectives, the multi-word expression is discarded;
[0097] Step S348: If the multi-word expression is a combination of stop words and nouns, the adjectives are discarded and only the nouns are identified as object concepts;
[0098] The relationship between multi-word expressions and words and morphology has rarely been explored so far. Although deep learning has achieved context modeling in natural language texts, there is a problem that deep learning is still far from the semantic deconstruction of texts. This scheme adopts SenticNet, a knowledge base for concept-level sentiment analysis, and proposes a graph-based multi-word expression processing method for effectively and quickly identifying sentiment-laden concepts in open English texts and summarizing these concepts as primitives for high-level sentiment reasoning tasks.
[0099] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S4, sentiment analysis and opinion mining specifically include the following steps:
[0100] Step S41: Initialize the sensing path. The specific operations are as follows:
[0101] Step S411: Determine the starting primitive ; Use basic algebra to convert multi-word expressions into primitives and record them as starting primitives ;
[0102] Step S412: Determine the end primitive ; Construct a cybersecurity dataset consisting of dangerous primitive labels that indicate the spread of hate speech and the risk of manipulating public opinion, and label dangerous primitives as end primitives ;
[0103] Step S413: Calculate the penalty distance matrix representing all perceptual paths existing between concepts. The calculation formula is as follows:
[0104] ;
[0105] In the formula, represents the penalty distance matrix, Indicates concept, Indicates concept, express and The square of the Euclidean distance between Represents the penalty factor used to adjust the nearest neighbor distance. express of The set of nearest neighbors;
[0106] Step S42: Smooth the perception path; find the starting primitive based on the penalty distance matrix and end primitive The shortest perceptual path between them is obtained by using Dijkstra algorithm, and the weights of the concepts passed through on the shortest perceptual path are parameterized to make the distances between concepts equal;
[0107] Step S43: Cost function optimization: Calculate the cost function, iterate and converge the cost function through the EM optimization algorithm, and the formula used is as follows:
[0108] ;
[0109] In the formula, Indicates adjustment through EM optimization algorithm and The value of minimizes the cost function, represents the set of all concepts that the perception path passes through, represents the weight matrix indicating whether each concept is a concept passed through the perception path, express No. OK, represents the squared norm, represents the Kronecker delta function, represents the regularization coefficient used to smooth the perceptual path, represents the number of concepts passed through in the perception path, represents the jth concept in the perception path;
[0110] The large amount of user-posted content on campus websites provides a valuable opportunity for opinion mining. However, traditional opinion mining methods lack automatic and sustainable use of data-driven methods and find it difficult to strike a balance between minimizing computational complexity and sentiment relevance. This paper proposes a sustainable campus website opinion mining method that extracts danger-related emotions from online texts, monitors public opinion trends related to campus safety, captures valuable sentiment information while respecting user privacy, effectively analyzes public opinion, and minimizes the computational consumption of data processing.
[0111] Embodiment 7, see Figure 1 This embodiment is based on the above embodiment. In step S2, the python code for normalizing the posting blog is as follows:
[0112] Import
[0113] import numpy as np
[0114] import emoji
[0115] import spacy
[0116] from tadm import tadm
[0117] from sklearn.feature_extraction.text import TfidfVectorizer
[0118] class TextPreprocessor:
[0119] def _init_ (self, stopwords=None):
[0120] self.vectorizer = ifidfVectorizer(lowercase=Falsemax features=8000,
[0121] Min_df=10,ngram_range=(1,3),tokenizer-None)
[0122] self.stopwords = stopwords
[0123] self.vectorizer fitted=False
[0124] self.nlp=spacy.load('en_core_web_sm',disable=['parser','ner'])
[0125] def _delete_urls(self,texts):
[0126] print('Deleting URLs...')
[0127] pattern = re.compile(‘(\w+\.com? / ?.+)|(http\S+)’)
[0128] return [re.sub(pattern,'',text) for text in texts]
[0129] def _delete_double_space(self,texts):
[0130] print('Deleting double space...')
[0131] pattern =re.compile(' +')
[0132] return [re.sub(pattern,’’text) for text in texts]
[0133] def _delete_punctuation(self,texts):
[0134] print('Deleting Punctuation...’)
[0135] pattern =re.compile('[^a-2 ]')
[0136] return [re.sub(pattern,’’,text) for text in texts]
[0137] def _delete_stopwords(self,texts):
[0138] print('Deleting stopwords...')
[0139] return [[w for w in text.split('')if w not in self.stopwords] fortext in tqdm(texts)]
[0140] def _delete_numbers(self,texts):
[0141] print('Deleting numbers...')
[0142] return [''.join([w for w in text if not w.isdigit()]) for text intqdm(texts)]
[0143] def _decode_emojis(self,texts):
[0144] print('Decoding emojis...')
[0145] return [emoji.demojize(text,language='en') for text in texts]
[0146] def _lemmatize(self,texts):
[0147] print('Lemmatizing...')
[0148] Lemmatized_texts=[]
[0149] for text in tqdm(texts)
[0150] doc = self.nlp(text)
[0151] lemmatized texts.append(''.join([token.lemma_ for token in doc]))
[0152] return lemmatized_texts
[0153] def transform(self,texts,mode='train'):
[0154] texts = texts.copy()
[0155] print('Deleting Nans...')
[0156] texts =texts[~texts.isnull()]
[0157] texts = texts[~texts.duplicated()]
[0158] If mode =’train’:
[0159] self,train idx= texts.index
[0160] else:
[0161] self.test_idx= texts.index
[0162] capitalized=[np.sum([t.isupper() for t in text.split()]) for text innp.array(texts.values)]
[0163] texts = [text.lower() for text in texts]
[0164] texts=self._delete_urls(texts)
[0165] texts=self._delete_punctuation(texts)
[0166] texts = self._delete_double_space(texts)
[0167] texts= self._decode_emojis(texts)
[0168] texts= self._delete_stopwords(texts)
[0169] texts= self._delete_numbers(texts)
[0170] texts = self.lemmatize(texts)
[0171] if not self.vectorizer_fitted:
[0172] self.vectorizer_fitted = True
[0173] print('Fitting vectorizer...')
[0174] self.vectorizer.fit(texts)
[0175] x= self.vectorizer.transform(texts)
[0176] return x.
[0177] Embodiment 8, see Figure 1 This embodiment is based on the above embodiment. In step S22, the user handle has a specific format of: @username.
[0178] Embodiment 9, see Figure 1 This embodiment is based on the above embodiment. In step S22, the URL is a uniform resource locator contained in the posting content.
[0179] Embodiment 10, see Figure 1 This embodiment is based on the above embodiment. In step S23, the specific format of the attribute tag is "#attribute tag#".
[0180] Example 11, see Figure 1 This embodiment is based on the above embodiment. In step S31, the ending punctuation mark is specifically a period, a question mark, or an exclamation mark.
[0181] Example 12, see Figure 1 This embodiment is based on the above embodiment. In step S331, the word form normalization specifically normalizes the words with -ing, -ful, -able suffixes and en-, re-, co- prefixes to their original forms.
[0182] Example 13, see Figure 1 This embodiment is based on the above embodiment. In step S332, in this embodiment, the word is "distrust", and the processing of the negation prefix is to normalize "distrust" to "NOT trust".
[0183] Example 14, see Figure 1 This embodiment is based on the above embodiment. In step S332, in this embodiment, the vocabulary is "mistrust", and the processing of the negation prefix is to normalize "mistrust" to "NOT trust".
[0184] Example 15, see Figure 1 This embodiment is based on the above embodiment. In step S333, in this embodiment, the vocabulary is "gooooooood", and the micro-variant normalization is to normalize "gooooooood" to "good".
[0185] Example 16, see Figure 1 This embodiment is based on the above embodiment. In step S333, in this embodiment, the word is "horrrible", and the micro-variant normalization is to normalize "horrrible" to "horrible".
[0186] Embodiment 17, see Figure 1 This embodiment is based on the above embodiment. In step S34, the pseudo code of the pos-based binary graph algorithm is as follows:
[0187] Data: NounPhrase
[0188] Result: Valid object concepts
[0189] Split the NounPhrase into bigrams;
[0190] Initialize concepts to Null;
[0191] for each NounPhrase do
[0192] while For every bigram in the NounPhrase do
[0193] POS Tag the Bigram ;
[0194] if adj noun then
[0195] add to Concepts: noun, adj+noun
[0196] else if noun noun then
[0197] add to Concepts: noun+noun
[0198] else if stopword noun then
[0199] add to Concepts: noun
[0200] else if adj stopword then
[0201] continue
[0202] else
[0203] Add to Concepts : entire bigram
[0204] end
[0205] repeat until no more bigrams left ;
[0206] end
[0207] end。
[0208] Example 18, refer to Figure 1 This embodiment is based on the above embodiment. In step S343, the combination of nouns is specifically a multi-word expression such as egg sandwich, ice cream, and chocolate biscuit.
[0209] Embodiment 19, see Figure 1 This embodiment is based on the above embodiment. In step S35, in this embodiment, the multi-word expression is "angry", which does not exist in SenticNet. The stem extraction deletes the suffixes -y, -ed, and -ish, and normalizes "angry" to "anger".
[0210] Embodiment 20, see Figure 1 , this embodiment is only different from the multi-word expression of the above embodiment. In this embodiment, the multi-word expression is "scared". This word already exists in SenticNet, so stem extraction is not performed and "scared" is directly output.
[0211] Example 21, see Figure 1 This embodiment is based on the above embodiment. In step S36, the sentiment dictionary specifically adopts SenticNet.
[0212] Example 22, see Figure 1 This embodiment is based on the above embodiment. In step S36, the pseudo code of the event concept extraction algorithm is as follows:
[0213] Data: Natural language sentences
[0214] Result: List of concepts
[0215] Find the number of verbs in the sentence;
[0216] for every clause do
[0217] extract VerbPhrases and NounPhrases;
[0218] lemmatize VERB ;for every NounPhrase with the associated verb do
[0219] find forms of objects that exist in SenticNet;
[0220] link all objects to lemmatized verb to get events;
[0221] end
[0222] repeat until no more clauses are left;
[0223] end.
[0224] Embodiment 23, see Figure 1 This embodiment is based on the above embodiment. In step S411, in this embodiment, the multi-word expression is "bring enemy to standstill", and the multi-word expression is converted into the primitive "OBSTRUCT (ENEMY)".
[0225] Example 24, see Figure 1 , this embodiment is based on the above embodiment, and the present invention provides a campus network security emergency management system based on public opinion monitoring, the system includes a campus website monitoring module, a blog post normalization module, a concept extraction module, a sentiment analysis and opinion mining module and a blog post evaluation module;
[0226] The campus website monitoring module monitors the campus website and extracts the posted blog posts from the communication posts on the campus website;
[0227] The blog post normalization module removes special characters, punctuation marks, emoticons, user handles and URLs in the blog post, processes tags and outputs the normalized blog post as text;
[0228] The concept extraction module detects multi-word expressions in clauses and captures object concepts and event concepts;
[0229] The sentiment analysis and opinion mining module initializes and smoothes the perception path, and calculates and minimizes the cost function;
[0230] The blog post evaluation module calculates the perceived path average, the shortest perceived path length, and the average of the perceived path lengths of the first n paths in the path sequence, determines whether to push the blog post to manual verification, and starts the campus website monitoring module to capture and verify the next blog post, thereby realizing real-time network public opinion monitoring.
[0231] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0232] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
[0233] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A campus network security emergency management method based on public opinion monitoring, characterized by: The method comprises the following steps: Step S1: monitoring the campus website and extracting blog posts from the communication posts on the campus website; Step S2: normalize the blog post and output the processed text; Step S3: concept extraction, extracting concepts from the text and detecting multi-word expressions in the text; Step S4: sentiment analysis and opinion mining, initializing and smoothing the perception path, constructing a cybersecurity dataset consisting of dangerous primitive labels that represent the spread of hate speech and have the risk of manipulating public opinion, and calculating and minimizing the cost function; Step S5: Evaluate the blog posts, calculate the perception paths of all multi-word expressions and the network security dataset, and arrange the perception paths in ascending order of the perception path length, generate a path sequence, calculate the perception path mean, the shortest perception path length, and the average of the first n perception path lengths in the path sequence, and if the perception path mean is less than or the shortest path length is less than Or the average length of the first n perceived paths in the path sequence is less than , the post is pushed to manual verification; otherwise, the post is discarded, and step S1 is repeated to capture and verify the next post, so as to realize real-time network public opinion monitoring. The formula used is as follows; ; In the formula, A Boolean result indicating whether to push the post to manual review. 1 means push, 0 means do not push. represents the mean of the perception path, represents the shortest perceptual path length, represents the average length of the first n perceived paths in the path sequence, , and Respectively represent the push threshold, To indicate or operate; In step S3, concept extraction specifically includes the following steps: Step S31: Boundary disambiguation: deconstruct the text into sentences and sentences into clauses according to the ending punctuation marks; Step S32: Detect a multi-word expression in a clause, where the multi-word expression is a phrase object formed by two or more words; Step S33: word segmentation and part-of-speech tagging; Step S34: capturing the object concept; using the POS-based bigram algorithm, sequentially judging the multi-word expressions, extracting the object concept, and incorporating the separately retained attribute tags into the object concept; Step S35: normalizing the multi-word expression; performing stem extraction on the multi-word expression; Step S36: Capturing event concepts; the sentiment dictionary is an unweighted directed graph used to quickly detect multi-word concepts. An event concept extraction algorithm is used to search for matches between verbs and object concepts based on the sentiment dictionary. The event concept is captured while ensuring that the verbs and object concepts have corresponding meanings in the sentiment dictionary. Step S37: The object concept and the event concept form a concept; In step S4, sentiment analysis and opinion mining specifically include the following steps: Step S41: Initialize the sensing path. The specific operations are as follows: Step S411: Determine the starting primitive ; Use basic algebra to convert multi-word expressions into primitives and record them as starting primitives ; Step S412: Determine the end primitive ; Construct a cybersecurity dataset consisting of dangerous primitive labels that indicate the spread of hate speech and the risk of manipulating public opinion, and label dangerous primitives as end primitives ; Step S413: Calculate the penalty distance matrix representing all perceptual paths existing between concepts. The calculation formula is as follows: ; In the formula, represents the penalty distance matrix, Indicates concept, Indicates concept, express and The square of the Euclidean distance between Represents the penalty factor used to adjust the nearest neighbor distance. express of The set of nearest neighbors; Step S42: Smooth the perception path; find the starting primitive based on the penalty distance matrix and end primitive The shortest perceptual path between them is obtained by using Dijkstra algorithm, and the weights of the concepts passed through on the shortest perceptual path are parameterized to make the distances between concepts equal; Step S43: Cost function optimization: Calculate the cost function, iterate and converge the cost function through the EM optimization algorithm, and the formula used is as follows: ; In the formula, Indicates adjustment through EM optimization algorithm and The value of minimizes the cost function, represents the set of all concepts that the perception path passes through, represents the weight matrix indicating whether each concept is a concept passed through the perception path, express No. OK, represents the squared norm, represents the Kronecker delta function, represents the regularization coefficient used to smooth the perceptual path, represents the number of concepts passed through in the perception path, Represents the jth concept in the perception path.
2. According to claim 1, a campus network security emergency management method based on public opinion monitoring is characterized in that: In step S2, the blog post is normalized, which specifically includes the following steps: Step S21: Delete special characters, punctuation marks, and emoticons in the posted blog post; Step S22: deleting the user handle and URL in the posted blog post; Step S23: process tags; identify and extract attribute tags, and retain the attribute tags separately; Step S24: Output the normalized blog post as text.
3. According to claim 2, a campus network security emergency management method based on public opinion monitoring is characterized in that: In step S33, word segmentation and part-of-speech tagging specifically include the following steps: Step S331: word form normalization: decompose the clause into individual words, remove word form changes of the words, and normalize the words into corresponding prototypes; Step S332: Processing negative prefixes: mis-, dis-, un-, normalizing the words containing the negative prefixes to the corresponding negative forms; Step S333: normalizing micro-variants; normalizing the words with colloquial and networked deformations in the blog posts into corresponding prototypes; Step S334: tag the vocabulary with parts of speech.
4. According to claim 3, a campus network security emergency management method based on public opinion monitoring is characterized in that: In step S34, the object concept is captured, which specifically includes the following steps: Step S341: If the multi-word expression includes a verb, the multi-word expression is discarded; Step S342: if the multi-word expression is a combination of an adjective and a noun, the multi-word expression is identified as an object concept; Step S343: if the multi-word expression is a combination of nouns, the multi-word expression is identified as an object concept; Step S344: stop words refer to words that do not have specific meanings and cannot provide useful information in the text processing process. Stop words are composed of articles, pronouns, and prepositions. If a multi-word expression is a combination of adjectives and stop words, the multi-word expression is discarded; Step S345: If the multi-word expression is a combination of nouns and adjectives, the adjectives are discarded and only the nouns are identified as object concepts; Step S346: If the multi-word expression is a combination of nouns and stop words, the adjectives are discarded and only the nouns are identified as object concepts; Step S347: If the multi-word expression is a combination of stop words and adjectives, the multi-word expression is discarded; Step S348: If the multi-word expression is a combination of stop words and nouns, the adjectives are discarded and only the nouns are recognized as object concepts.
5. A campus network security emergency management system based on public opinion monitoring, used to implement a campus network security emergency management method based on public opinion monitoring as described in any one of claims 1 to 4, characterized in that: It includes campus website monitoring module, blog post normalization module, concept extraction module, sentiment analysis and opinion mining module and blog post evaluation module; The campus website monitoring module monitors the campus website and extracts the posted blog posts from the communication posts on the campus website; The blog post normalization module removes special characters, punctuation marks, emoticons, user handles and URLs in the blog post, processes tags and outputs the normalized blog post as text; The concept extraction module detects multi-word expressions in clauses and captures object concepts and event concepts; The sentiment analysis and opinion mining module initializes and smoothes the perception path, and calculates and minimizes the cost function; The blog post evaluation module calculates the perceived path average, the shortest perceived path length, and the average of the perceived path lengths of the first n paths in the path sequence, determines whether to push the blog post to manual verification, and starts the campus website monitoring module to capture and verify the next blog post, thereby realizing real-time network public opinion monitoring.
Citation Information
Patent Citations
Microblog emotional evolution analysis method and system
CN103559176A
Evaluation object extraction method based on domain dictionary and semantic roles
CN104268160A
Public opinion analysis method
CN111914087A
Passenger transport passenger emotion analysis method
CN112016331A
