Social network public opinion situation decision-making method, device, equipment and medium
Through the two-stage case reasoning and local linear regression model, the problem of difficulty in acquiring knowledge and vulnerability of reasoning in social network public opinion governance is solved, and the accuracy of public opinion situation prediction and emergency response efficiency are improved.
Patent Information
- Application Number
- CN202411182316.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The traditional rule-based decision analysis method faces difficulties in acquiring knowledge, weak learning ability, and the existence of a large number of exceptions and rules in social network public opinion governance. Moreover, the learning reasoning method based on statistical probability cannot effectively handle randomness problems, resulting in relatively biased decision-making results. big.
Adopting decision-making technology based on case reasoning, through two-stage case reasoning: the first stage is automatic reasoning based on known typical cases of social network public opinion, and the second stage is based on incremental learning reasoning of network public opinion difference cases, using the K nearest neighbor method and local The linear regression model calculates the decision-making results of public opinion situation.
It improves the accuracy of situation prediction and emergency response processing efficiency of social network public opinion events, overcomes the bottleneck of knowledge acquisition and vulnerability of reasoning, and enhances the comprehensive efficiency and calculation accuracy of decision-making.
Smart Images

Figure CN118709788B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of natural language analysis and processing, and in particular relates to a method, device, equipment and medium for making decisions on public opinion trends in social networks. Background Art
[0002] Social network public opinion is the sum of the comprehensive opinions, attitudes and complex emotions held by the public on public events that have attracted widespread attention within a specific period of time, using social network platforms as the medium of communication. With the rapid development of the Internet and big data technology, social network public opinion has become an important form of public opinion. Social network public opinion spreads quickly and has a wide range of influence. Establishing an effective social network public opinion situation reasoning and decision-making mechanism and technology is of great significance for analyzing and judging social public opinion and guiding public emotions.
[0003] Since social network public opinion is a complex social opinion issue in an open network environment, traditional rule-based, structured problem-solving decision analysis methods face the problems of difficulty in acquiring knowledge, weak learning ability, a large number of exceptions and rules, and semi-structured and unstructured problems in the governance decision-making process of social network public opinion. Decision analysis methods using machine learning require a lot of time for learning and training, and it is difficult to design a feature set that generally reflects the characteristics of social network public opinion. The learning and reasoning method based on statistical probability cannot reasonably deal with the randomness problems that arise in the social network public opinion decision-making process, and has poor interpretability for the influencing factors and decision-making process, which leads to large deviations in decision results when the data samples are unbalanced. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the prior art and provide a social network public opinion situation decision-making method, device, equipment and medium. The method adopts a decision-making technology based on case reasoning, has the ability to extract case implicit knowledge and an incremental learning and reasoning mechanism, avoids the bottleneck problem of traditional artificial intelligence in knowledge acquisition, overcomes the defects of the difficulty in acquiring knowledge and the fragility of reasoning based on rule systems, can quickly screen out similar cases for complex social network public opinion issues and give effective public opinion situation prediction and judgment, can effectively improve the situation prediction accuracy of social network public opinion events and the processing efficiency of emergency response, and provide strong technical support for network public opinion control and governance.
[0005] The object of the present invention is achieved through the following technical solutions:
[0006] A method for determining a social network public opinion situation, the method comprising:
[0007] Input a network public opinion target case to be reasoned and decided, and perform two-stage case reasoning;
[0008] The first stage of case-based reasoning is based on known typical cases of social network public opinion and is automated, including:
[0009] Calculate the comprehensive similarity of conditional feature attributes between the known cases and the target case, and retrieve K online public opinion event cases that are the nearest neighbors to the target case based on the K nearest neighbor method to form a target event nearest neighbor case set;
[0010] Construct a differential case set of known cases and a differential case set of target events;
[0011] The second stage of case reasoning is based on incremental learning and reasoning of public opinion knowledge based on network public opinion difference cases, including:
[0012] Calculate the comprehensive similarity of the conditional feature attributes between the difference case of the target event and each known difference case, and use the K nearest neighbor method to retrieve the K known difference cases that are the nearest neighbors of the difference case of the target event to form a set of nearest neighbor difference cases of the target event;
[0013] By constructing a local linear regression model, the local change rate of the conditional feature attributes of the target case and the local change rate of the conditional feature attributes of the known cases are calculated, and a set of nearest neighbor local change rate difference cases of the target case is constructed;
[0014] After completing the two-stage case reasoning, performing overall similarity calculation based on the target event neighbor case set and the target event neighbor difference case set;
[0015] Based on the overall similarity calculation result, K target event neighbor cases and the target event neighbor difference cases are retrieved respectively, the decision feature attribute mean of the target event neighbor cases and the decision feature attribute mean of the neighbor difference cases are taken and added, and the public opinion situation decision result of the target event is calculated. The public opinion risk level of the target event is determined according to the public opinion situation decision result and the preset level quantification decision feature space.
[0016] Furthermore, the method further comprises:
[0017] In the nearest neighbor local change rate difference case set of the target case, the local change rate of the conditional feature attribute of the target case is retrieved for auxiliary decision making.
[0018] Furthermore, the method of establishing the known case set includes:
[0019] Obtain information on historical events of social network public opinion and establish a case information database of historical events of social network public opinion;
[0020] The features of social network public opinion events are extracted from the information database, a known case set of social network public opinion events is established, and the social network public opinion events are described in the form of case pairs including the conditional feature space of the social network public opinion events and the decision feature space of the social network public opinion situation based on the feature vector quantization representation method.
[0021] Furthermore, the method for establishing the case information database specifically includes:
[0022] Based on the open source information intelligence collection method, we use web crawlers and social website APIs to collect the subject information and key information of social network public opinion historical events in the social network system, encode the social network public opinion historical event information into a specified data structure, and then form a social network public opinion historical event case information database;
[0023] The subject information and key information include one or more of the subject name of the social network public opinion event, the summary description of the social network public opinion event, the type of the social network public opinion event, the original statistical information of the social network public opinion event, the dissemination statistical information of the social network public opinion event, the media volume statistical information of the social network public opinion event, the attitude tendency information of social netizens, the duration of the social network public opinion event, and the situation level and handling decision information of the social network public opinion event.
[0024] Furthermore, the known case collection is established based on a feature vector quantization representation method of text semantic mining, event association analysis and mathematical modeling.
[0025] Furthermore, the calculating of the comprehensive similarity of the conditional feature attributes of the known case and the target case specifically includes:
[0026] According to the importance of conditional feature attributes in the conditional feature space of social network public opinion events, an order relationship is established, and the weight of conditional feature attributes is determined by using a rational valued order relationship analysis method. ;
[0027] Calculate every known case in the case database Conditional feature space and target cases of social network public opinion events The similarity of the conditional feature space of social network public opinion events;
[0028] If the conditional characteristic attribute of the social network public opinion event is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used:
[0029] ;
[0030] in For known cases The symbolic conditional feature attributes in For target case Symbolic conditional feature attributes in ;
[0031] If the conditional feature attribute of the social network public opinion event is a numerical attribute, the Hamming distance is used to calculate the similarity of the numerical attribute:
[0032] ;
[0033] in, For known cases The numeric conditional feature attributes in For target case The numeric conditional feature attributes in They are , The lower and upper bounds of the numerical value range;
[0034] If the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known case is an interval attribute value, the similarity calculation of the exact value matching interval value is adopted:
[0035] ;
[0036] in, They are , , The lower and upper bounds of the value interval, Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of , if the probability of taking values in the interval is the same, then ;
[0037] If the conditional feature attribute of the social network public opinion event is an interval attribute, the interval attribute similarity calculation is used:
[0038] ;
[0039] in, They are , , , The lower and upper bounds of the value interval, Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of , if the probability of taking values in the interval is the same, then ;
[0040] Calculate every known case in the case library With target case The comprehensive similarity of conditional feature attributes is calculated as follows:
[0041] .
[0042] Furthermore, the step of calculating the comprehensive similarity of conditional feature attributes between the difference case of the target event and each known difference case specifically includes:
[0043] Retrieve the difference cases in the difference case set of the target social network public opinion and the difference cases in the difference case set of the known social network public opinion, and retrieve and calculate the similarity of the conditional feature attributes of each target difference case and each known difference case;
[0044] If the conditional feature attribute of the difference case is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used;
[0045] If the conditional feature attribute of the difference case is a numerical attribute, the Hamming distance is used to calculate the similarity of the numerical attribute;
[0046] If the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known difference case is an interval attribute value, the similarity calculation of the exact value matching interval value is adopted;
[0047] If the conditional feature attribute of the difference case is an interval attribute, the interval attribute similarity calculation is used;
[0048] Calculate the comprehensive similarity of conditional feature attributes between each target difference case and each known difference case:
[0049] ;
[0050] in Indicates the comprehensive similarity of conditional feature attributes between the target difference case and the known difference case; Represents the similarity between the target difference case and the known difference case in each conditional feature attribute, and uses the order relationship analysis method of rational assignment to determine the weight .
[0051] On the other hand, the present invention also provides a social network public opinion situation decision-making device, the device comprising:
[0052] A target case input module, wherein the target case input module inputs a network public opinion target case to be reasoned and decided, and performs two-stage case reasoning;
[0053] The first-stage reasoning module calculates the comprehensive similarity of conditional feature attributes between the known cases and the target case, and retrieves K online public opinion event cases that are nearest neighbors to the target case based on the K-nearest neighbor method to form a target event nearest neighbor case set;
[0054] Construct a differential case set of known cases and a differential case set of target events;
[0055] The second-stage reasoning module calculates the comprehensive similarity of the conditional feature attributes of the difference case of the target event and each known difference case, and uses the K nearest neighbor method to retrieve the K known difference cases that are the nearest neighbors of the difference case of the target event to form a set of nearest neighbor difference cases of the target event;
[0056] By constructing a local linear regression model, the local change rate of the conditional feature attributes of the target case and the local change rate of the conditional feature attributes of the known cases are calculated, and a set of nearest neighbor local change rate difference cases of the target case is constructed;
[0057] An overall similarity calculation module, which performs overall similarity calculation based on the target event neighbor case set and the target event neighbor difference case set after completing the two-stage case reasoning;
[0058] A situation decision module, based on the overall similarity calculation result, retrieves K target event neighbor cases and the target event neighbor difference cases respectively, takes the mean of the decision feature attributes of the target event neighbor cases and the mean of the decision feature attributes of the neighbor difference cases and adds them together, calculates the public opinion situation decision result of the target event, and determines the public opinion risk level of the target event according to the public opinion situation decision result.
[0059] On the other hand, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement any of the above-mentioned social network public opinion situation decision methods.
[0060] On the other hand, the present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement any of the above-mentioned social network public opinion situation decision methods.
[0061] The beneficial effects of the present invention are:
[0062] (1) The present invention proposes an automatic reasoning decision-making structure based on two-stage case reasoning. The first stage performs automatic reasoning based on known typical cases of social network public opinion, and the second stage incrementally learns and infers public opinion knowledge based on network public opinion difference cases. It has good case knowledge analysis capabilities and implicit knowledge mining performance, which improves the comprehensive effectiveness of decision-making.
[0063] (2) The interval-type conditional feature attribute similarity calculation model for social network public opinion designed by the present invention fully considers the asymmetry of similarity in practical applications, and distinguishes the similarity calculation between exact values and interval values, as well as the similarity calculation between intervals in a fine-grained manner. It demonstrates a good quantitative representation capability for decision-making condition attributes, and ensures the calculation accuracy of reasoning and decision-making in social network public opinion decision-making.
[0064] (3) The present invention establishes a local weighted linear regression model for the target event of social network public opinion, locally linearizes the attributes that do not have linear characteristics as a whole, and uses the local linear regression model to guide the identification of extended similarity domains. The extended similarity domain is used to generalize the application area of local case adjustment knowledge, which can better meet the application requirements of complex social network public opinion decision analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 This is a general flow chart of social network public opinion situation decision making according to an embodiment of the present invention;
[0066] Figure 2 It is a structural block diagram of a social network public opinion situation decision-making device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0067] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0068] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.
[0069] Since social network public opinion is a complex social opinion issue in an open network environment, traditional rule-based, structured problem-solving decision analysis methods face the problems of difficulty in acquiring knowledge, weak learning ability, a large number of exceptions and rules, and semi-structured and unstructured problems in the governance decision-making process of social network public opinion. Decision analysis methods using machine learning require a lot of time for learning and training, and it is difficult to design a feature set that generally reflects the characteristics of social network public opinion. The learning and reasoning method based on statistical probability cannot reasonably deal with the randomness problems that arise in the social network public opinion decision-making process, and has poor interpretability for the influencing factors and decision-making process, which leads to large deviations in decision results when the data samples are unbalanced.
[0070] In order to solve the above technical problems, the following embodiments of the social network public opinion situation decision method, device, equipment and medium of the present invention are proposed.
[0071] Example 1
[0072] Reference Figure 1 ,like Figure 1 The figure is a flowchart of the method for determining the social network public opinion situation in this embodiment, and the method specifically includes the following steps:
[0073] Step 1: Collect and input historical event information of social network public opinion, and establish a case information database of historical events of social network public opinion.
[0074] Based on the open source information intelligence collection method, web crawlers and social website APIs are used to collect the subject information and key information of historical social network public opinion events in the social network website system, and the information of historical social network public opinion events is encoded into an acceptable data structure. The collected original information of historical social network public opinion events includes: the subject name of the social network public opinion event, the summary description of the social network public opinion event, the type of social network public opinion event, the original statistical information of the social network public opinion event, the dissemination statistical information of the social network public opinion event, the media voice statistical information of the social network public opinion event, the attitude tendency information of social netizens, the duration of the social network public opinion event, the situation level of the social network public opinion event and the handling decision information. On this basis, a case information database of historical social network public opinion events is formed.
[0075] Step 2: Extract the key features of social network public opinion events from the social network public opinion historical event case information database, and establish a known case set of social network public opinion events based on the feature vector quantization representation method of text semantic mining, event association analysis and mathematical modeling.
[0076] The specific process of this step is as follows:
[0077] Step 2.1: Based on the collected historical event information of social network public opinion, a known social network public opinion event is described as a social network public opinion case pair based on the feature vector quantization representation method. The social network public opinion case pair can be expressed as: <conditional feature space of social network public opinion event, decision feature space of social network public opinion situation>, where <, > represent case pairs.
[0078] Step 2.2: The conditional feature space of social network public opinion events is composed of conditional feature vectors of multiple social network public opinion events, including: social network public opinion topic category, social network public opinion event type, number of fans of the original subject of social network public opinion events, number of original posts of social network public opinion events, forwarding rate of the spread of social network public opinion events, comment rate of the spread of social network public opinion events, search rate of the spread of social network public opinion events, emotional tendency intensity of social network public opinion events, and duration of social network public opinion events.
[0079] Step 2.2.1: Extract social network public opinion topic categories from the topic names and summary descriptions of social network public opinion events based on the semantic mining of subject words, such as science and technology public opinion, financial public opinion, education public opinion, and entertainment public opinion.
[0080] Step 2.2.2: Extract the types of social network public opinion events from the summary description of social network public opinion events based on observable event association analysis, such as: single event, coherent event, a group of events, and mixed event.
[0081] Step 2.2.3: Number of original posts on social network public opinion events , the quantitative representation is: , N is the number of original public opinion topic posts on social network public opinion events.
[0082] Step 2.2.4: Number of fans of the original subject of the social network public opinion event , which is quantitatively represented as ,in, Indicates The number of fans of the original public opinion topic poster.
[0083] Step 2.2.5: Forwarding rate of the impact of the spread of public opinion events on social networks , the quantitative representation is: ,in Indicates The number of reposts of original public opinion topic posts.
[0084] Step 2.2.6: Comment rate on the impact of social network public opinion events , the quantitative representation is:
[0085] ,in Indicates The number of comments on an original public opinion topic post.
[0086] Step 2.2.7: Search rate for the impact of the spread of public opinion events on social networks , the quantitative representation is: ,in Indicates The number of searches for original public opinion topic posts.
[0087] Step 2.2.8: Fluctuation of the spread of public opinion events on social networks , the quantitative representation is: ,in The minimum amount of interaction for posting original public opinion topics. The maximum number of interactions for posts on original public opinion topics.
[0088] Step 2.2.9: Emotional intensity of social network public opinion events , the quantitative representation is: , where the variable pemo i Netizens expressed their The number of posts with positive comments on original public opinion topics, variable nemo i Netizens expressed their The number of negative comments made by original public opinion topic posts.
[0089] Step 2.2.10: Duration of social network public opinion events , the quantitative representation is: ,in is the observed fluctuations in the amount of interaction of original public opinion topics. The serial number indicating the interaction volume of original public opinion topic posts. For the The start time of the interaction volume fluctuation. For the The end time of the interaction volume fluctuation.
[0090] Step 2.3: The decision feature space of social network public opinion situation is composed of a decision feature vector The decision feature vector is characterized in the form of level quantization, specifically:
[0091] ;
[0092] The public opinion situation at different levels is quantified as The interval value between or the point value within the interval reflects the strength of the public opinion risk. The decision feature vector is used as the decision-making basis for handling public opinion events.
[0093] Step 2.4: Based on the above steps in step 2, build a collection of known cases of social network public opinion events .
[0094] This embodiment uses a two-stage case-based reasoning method to implement the automatic reasoning process of social network public opinion. The steps of the two-stage case-based reasoning are as follows:
[0095] Step 3: Enter a target case for reasoning decision , perform the first stage of case retrieval and case analysis reasoning, and calculate each known case in the case library With target case On this basis, based on the K nearest neighbor method, the K online public opinion event cases that are closest to the target case are retrieved to form a set of online public opinion target event neighbor cases. .
[0096] The specific process of this step is as follows:
[0097] Step 3.1: Establish an order relationship according to the importance of the conditional feature attributes in the conditional feature space of social network public opinion events, and use the order relationship analysis method of rational assignment to determine the weight of the conditional feature attributes.
[0098] Step 3.1.1: Without loss of generality, the conditional feature attribute set in the conditional feature space of social network public opinion events is:
[0099] ;
[0100] Sort by importance to form a sequence relationship of conditional feature attributes:
[0101] ;
[0102] in, It refers to the most important conditional feature attribute in the conditional feature attribute set. It refers to the second most important conditional feature attribute in the conditional feature attribute set. Represents conditional feature attributes The importance is no less than .
[0103] Step 3.1.2: Given and The relative importance of the two The rational judgment is:
[0104] ,
[0105] in The specific assignments are:
[0106] ;
[0107] Step 3.1.3: Calculate the weight coefficient of the conditional feature attribute
[0108] According to the weight ratio between adjacent conditional feature attributes sorted in order, and the sum of each weight is 1, the conditional feature attribute can be calculated The weights are:
[0109] ;
[0110] The weights of the remaining conditional feature attributes can be calculated using the recursive formula:
[0111] ;
[0112] Step 3.2: Calculate each known case in the case library Conditional feature space and target cases of social network public opinion events The similarity of the conditional feature space of social network public opinion events.
[0113] Step 3.2.1: If the conditional feature attribute of the social network public opinion event is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used, which is: ,in For known cases The symbolic conditional feature attributes in For target case Symbolic conditional feature attributes in .
[0114] Step 3.2.2: If the conditional feature attribute of the social network public opinion event is a numerical attribute, the Hamming distance is used to calculate the similarity of the numerical attribute. The formula is:
[0115] ,in For known cases The numeric conditional feature attributes in For target case The numeric conditional feature attributes in They are , The lower and upper bounds of the range of values.
[0116] Step 3.2.3: If the conditional feature attribute of the target case of social network public opinion is partially observable, the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known case is an interval attribute value, then the similarity calculation of the exact value matching interval value is adopted. The specific formula is:
[0117] ;
[0118] in, They are , , The lower and upper bounds of the value interval, Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of If the probability of taking values in the interval is the same, then .
[0119] Step 3.2.4: If the conditional feature attribute of the social network public opinion event is an interval attribute, the interval attribute similarity calculation is adopted. The specific formula is:
[0120] ;
[0121] in, They are , , , The lower and upper bounds of the value interval, Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of If the probability of taking values in the interval is the same, then .
[0122] Step 3.3: Calculate each known case in the case library With target case The comprehensive similarity of conditional feature attributes is calculated as follows:
[0123] ;
[0124] Step 3.4: Repeat steps 3.2 and 3.3 until all cases in the known case set and the target case complete the calculation of the comprehensive similarity of conditional feature attributes.
[0125] Step 3.5: Based on the comprehensive similarity calculation results, use K most The nearest neighbor method is used to analyze and retrieve K The social network public opinion event cases that are the nearest neighbors to the target case constitute the set of neighbor cases of the social network public opinion target event .
[0126] Step 4: Construct a differential case set of known cases of social network public opinion events .
[0127] The specific process of this step is as follows:
[0128] Step 4.1: For each known case in the known social network public opinion case set ,use K Nearest Neighbors Method to search for its nearest neighbor K Known cases ,CSN represents the known nearest neighbor case.
[0129] Step 4.2: Calculate each known neighbor case With known cases The difference value and construct a known difference case , the conditional feature attribute value of each difference case is the known neighbor case m The conditional feature attribute values and known cases m The decision feature attribute value of each difference case is the difference between the decision feature attribute value of the known neighbor case and the decision feature attribute value of the known case, which can be expressed by the following formula:
[0130] ;
[0131] in, indicates known discrepancy cases, Represents the i-th conditional feature attribute value of the known neighbor case The i-th conditional attribute value of the known case The difference, Represents the mth conditional feature attribute value of a known neighbor case The mth conditional attribute value of the known case The difference, Represents the decision feature attribute value of the known neighbor case Decision feature attribute values of known cases The difference.
[0132] The difference is calculated based on the type of feature attribute (e.g., symbolic, numerical, interval) and refers to the calculation of feature attribute similarity in step 3.2.
[0133] Step 4.3: If each known case in the case library has a known difference case, the construction of the difference set ends, otherwise go to step 4.1 to continue.
[0134] Step 4.4: Construct a differential case set of known cases of social network public opinion events .
[0135] Step 5: Construct a differential case set of social network public opinion target event cases .
[0136] The specific process of this step is as follows:
[0137] Step 5.1: Calculate the nearest neighbor cases for each target event With target case difference value and construct a target difference case , the conditional attribute value of each target difference case is the difference between the m conditional attribute values of the target event's neighboring cases and the m conditional attribute values of the known cases, and the decision feature attribute value of each target difference case is the difference between the decision feature attribute value of the target event's neighboring cases and the decision feature attribute value of the target case, which can be expressed by the following formula:
[0138] ;
[0139] in, represents the target event difference case, Represents the i-th conditional feature attribute value of the target event's neighbor case The i-th conditional attribute value of the target case The difference, Represents the mth conditional feature attribute value of the target event's neighbor case The mth conditional feature attribute value of the target case The difference, Represents the decision feature attribute value of the target event's neighbor cases The decision feature attribute value of the target event case The difference.
[0140] The difference is calculated based on the type of feature attribute (e.g., symbolic, numerical, interval) and refers to the calculation of feature attribute similarity in step 3.2. Since the decision feature attribute value of the target event case still needs to be inferred and calculated, the decision feature attribute variable is retained in the difference.
[0141] Step 5.2: If the target event has a neighbor case With target case If all difference cases have been constructed, the construction of the target difference case set ends, otherwise go to step 5.1 to continue execution.
[0142] Step 5.3: Construct a differential case set of social network public opinion target event cases .
[0143] Step 6: Perform the second phase of differential case retrieval and differential case analysis reasoning to calculate differential cases of target social network public opinion A case study of differences from every known social network opinion The K nearest neighbor method is used to retrieve the K known difference cases of network public opinion events that are nearest to the target difference case, forming a set of nearest difference cases of the network public opinion target event. .
[0144] The specific process of this step is as follows:
[0145] Step 6.1: Retrieve the difference cases in the difference case set of the target social network public opinion and the difference cases in the difference case set of the known social network public opinion, and retrieve and calculate the similarity of the conditional feature attributes of each target difference case and each known difference case.
[0146] Step 6.1.1: If the conditional feature attribute of the difference case is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used, and the specific calculation formula is based on the calculation in step 3.2.1.
[0147] Step 6.1.2: If the conditional feature attribute of the difference case is a numerical attribute, use the Hamming distance to calculate the similarity of the numerical attribute. For specific calculation, refer to the formula in step 3.2.2.
[0148] Step 6.1.3: If the conditional feature attribute of the target difference case is partially observable, the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known difference case is an interval attribute value, then the similarity calculation of the exact value matching interval value is adopted, and the specific calculation is based on the formula in step 3.2.3.
[0149] Step 6.2.4: If the conditional feature attribute of the difference case is an interval attribute, the interval attribute similarity calculation is used, and the specific calculation is based on the formula in 3.2.4.
[0150] Step 6.3: Calculate the comprehensive similarity of the conditional feature attributes of each target difference case and each known difference case. The specific formula is:
[0151] ;
[0152] in Indicates the comprehensive similarity of conditional feature attributes between the target difference case and the known difference case; Represents the similarity between each conditional feature attribute of the target difference case and each conditional feature attribute of the known difference case; since the dimension of the conditional feature vector of the target difference case and the known difference case is the same as that of the conditional feature vector of the known case and the order relationship is consistent, the weight The assignment is the same as step 3.1.
[0153] Step 6.4: Repeat steps 6.2 and 6.3 until the target difference case and all cases in the known difference case set have completed the calculation of the comprehensive similarity of conditional feature attributes.
[0154] Step 6.5: Based on the result of the comprehensive similarity calculation of the conditional feature attributes, use the K nearest neighbor method to analyze and retrieve the K known difference cases of the network public opinion events that are the nearest neighbors to the target difference case, forming a set of nearest neighbor difference cases of the network public opinion target event .
[0155] Step 7: Calculate the target case by building a local linear regression model Local rate of change and known cases of conditional feature attributes Local change rate of conditional feature attributes, constructing target cases The nearest neighbor local change rate difference case collection .
[0156] The specific process of this step is as follows:
[0157] Step 7.1: Retrieval and target cases Nearest Neighbor K Known cases , construct a local weighted linear regression model for the target case, and calculate the local change rate of each conditional feature attribute to the decision feature attribute , the specific formula is as follows:
[0158] ;
[0159] in Represents the partial derivative of the decision feature attribute with respect to the mth conditional feature attribute.
[0160] Step 7.2: Search and known cases Nearest Neighbor K Case Studies , construct a local weighted linear regression model for known cases, and calculate the local change rate of each conditional feature attribute to the decision feature attribute , the specific formula is as follows:
[0161] ;
[0162] in Represents the partial derivative of the decision feature attribute with respect to the mth conditional feature attribute.
[0163] Step 7.3: Use numerical similarity calculation method to further calculate the target case The local rate of change of each vector and the known case The local change rate of each vector is similar to each other, and then the target case is calculated The local rate of change and known cases The comprehensive similarity of the local change rate is calculated as follows:
[0164] ;
[0165] in Indicates the comprehensive similarity between the local change rate of the target case and the local change rate of the known cases; Represents the similarity between the local change rate of each conditional feature attribute of the target case and the local change rate of each conditional feature data of the known case; since the feature vector dimension of the local change rate is the same as the conditional feature vector dimension of the case and the order relationship is consistent, the weight The assignment is the same as step 3.1.
[0166] Step 7.4: Repeat steps 7.2 and 7.3 until the local change rate of the target case and the local change rates of all cases in the known case set complete the calculation of the comprehensive similarity.
[0167] Step 7.5: Based on the comprehensive similarity calculation results, use the K nearest neighbor method to analyze and retrieve the local change rates of the K known cases that are the nearest neighbors to the target case, forming a set of local change rates of the nearest known cases of the target event of online public opinion. .
[0168] Step 8: Calculate the overall similarity based on the constructed set of nearest neighbor cases of the target event of social network public opinion and the set of nearest difference cases of the target event of network public opinion. Determine the public opinion risk level of the event based on the calculated situation decision result of the target event of social network public opinion. In the set of nearest neighbor local change rate difference cases of the target event case of network public opinion, retrieve the influence of the local change rate of the conditional feature attribute of the target case on the situation change of the target event, and provide a decision-making basis for situation development trend prediction and fine-grained emergency disposal.
[0169] The specific process of this step is as follows:
[0170] Step 8.1: For the target event case of social network public opinion to be decided, according to the set of neighboring cases of the target event of social network public opinion The nearest difference case set of the target event of online public opinion , calculate the overall similarity, the specific formula is:
[0171] ;
[0172] in, Represents the overall case similarity of the target event case of social network public opinion, is the similarity between the target case and the nearest neighbor known case, is the similarity between the target difference case and the nearest neighbor known difference case.
[0173] Step 8.2: Based on the overall similarity calculation results, retrieve K neighbor cases of the target event of social network public opinion and the neighbor difference cases of the target event of network public opinion respectively, take the mean of the decision feature attributes of the neighbor cases of the target event of social network public opinion and the mean of the decision feature attributes of the neighbor difference cases and add them together, and calculate the public opinion situation decision result of the target event case of social network public opinion. The specific calculation formula is:
[0174] ;
[0175] in, Represents the decision feature attribute value of the neighboring cases of the target event of social network public opinion, Represents the decision feature attribute value of the neighbor difference case of the target event of social network public opinion.
[0176] Step 8.3: Determine the public opinion risk level of the event based on the calculated situation decision result of the target event of social network public opinion.
[0177] Step 8.4: Set of nearest neighbor local rate difference cases of the target case In the process, the influence of the local change rate of the conditional feature attributes of the target case on the change of the target event situation is retrieved, which provides a decision-making basis for the prediction of situation development trend and fine-grained emergency disposal.
[0178] This embodiment proposes an automatic reasoning decision structure based on two-stage case reasoning. The first stage is based on known typical cases of social network public opinion for automatic reasoning, and the second stage is based on incremental learning and reasoning of public opinion knowledge based on network public opinion difference cases. It has good case knowledge analysis capabilities and implicit knowledge mining performance, and improves the comprehensive efficiency of decision-making. The social network public opinion interval-type conditional feature attribute similarity calculation model designed in this embodiment fully considers the asymmetry of similarity in practical applications, and finely distinguishes the similarity calculation between exact values and interval values and the similarity calculation between intervals. It shows good quantitative characterization capabilities of decision condition attributes and ensures the calculation accuracy of reasoning and decision-making in social network public opinion decision-making. This embodiment establishes a local weighted linear regression model for the target event of social network public opinion, locally linearizes the attributes that do not have linear characteristics as a whole, and uses the local linear regression model to guide the identification of the extended similarity domain. The application area of the local case adjustment knowledge is generalized by using the extended similarity domain, which can better meet the application requirements of complex social network public opinion decision analysis.
[0179] Example 2
[0180] Reference Figure 2 ,like Figure 2 The figure is a structural block diagram of a social network public opinion situation decision-making device provided by this embodiment, and the device specifically includes the following structures:
[0181] The target case input module inputs a target case of online public opinion to be reasoned and decided, and performs two-stage case reasoning;
[0182] The first-stage reasoning module calculates the comprehensive similarity of conditional feature attributes between known cases and target cases, and retrieves K online public opinion event cases that are nearest to the target case based on the K nearest neighbor method to form a set of target event nearest neighbor cases;
[0183] Construct a differential case set of known cases and a differential case set of target events;
[0184] The second stage reasoning module calculates the comprehensive similarity of the conditional feature attributes of the difference case of the target event and each known difference case, and uses the K nearest neighbor method to retrieve the K known difference cases that are the nearest neighbors of the difference case of the target event to form a set of nearest neighbor difference cases of the target event;
[0185] By constructing a local linear regression model, the local change rate of the conditional feature attributes of the target case and the local change rate of the conditional feature attributes of the known cases are calculated, and a set of nearest neighbor local change rate difference cases of the target case is constructed;
[0186] The overall similarity calculation module, after completing the two-stage case reasoning, performs overall similarity calculation based on the target event neighbor case set and the target event neighbor difference case set;
[0187] Situation decision module: The situation decision module retrieves K neighbor cases of the target event and the neighbor difference cases of the target event based on the overall similarity calculation results, takes the mean of the decision feature attributes of the neighbor cases of the target event and the mean of the decision feature attributes of the neighbor difference cases and adds them together, calculates the public opinion situation decision result of the target event, and determines the public opinion risk level of the target event according to the public opinion situation decision result.
[0188] Example 3
[0189] This preferred embodiment provides a computer device, which can implement the steps in any embodiment of the social network public opinion situation decision-making method provided in the embodiments of the present application. Therefore, the beneficial effects of the social network public opinion situation decision-making method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0190] Example 4
[0191] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores multiple instructions, and the instructions can be loaded by a processor to execute the steps of any embodiment of the social network public opinion situation decision method provided by the embodiment of the present invention.
[0192] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0193] Since the instructions stored in the storage medium can execute the steps in any embodiment of the social network public opinion situation decision-making method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any social network public opinion situation decision-making method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0194] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A social network public opinion situation decision-making method, It is characterized in that The method comprises: Input a network public opinion target case to be reasoned and decided, and perform two-stage case reasoning; The first stage of case-based reasoning is based on known typical cases of social network public opinion and is automated, including: Calculate the comprehensive similarity of conditional feature attributes between the known cases and the target case, and retrieve K online public opinion event cases that are the nearest neighbors to the target case based on the K nearest neighbor method to form a target event nearest neighbor case set; The known case collection is established in the following ways: Obtain information on historical events of social network public opinion and establish a case information database of historical events of social network public opinion; Extracting features of social network public opinion events from the information database, establishing a known case set of social network public opinion events, describing social network public opinion events in the form of case pairs including a conditional feature space of social network public opinion events and a decision feature space of social network public opinion trends based on a feature vector quantization representation method, wherein the conditional feature space is composed of conditional feature vectors of multiple social network public opinion events, and the conditional feature vectors of social network public opinion events include one or more of social network public opinion topic categories, social network public opinion event types, the number of fans of the original subject of social network public opinion events, the number of original posts of social network public opinion events, the forwarding rate of the spread of social network public opinion events, the comment rate of the spread of social network public opinion events, the search rate of the spread of social network public opinion events, the emotional tendency strength of social network public opinion events, and the duration of social network public opinion events; Construct a differential case set of known cases and a differential case set of target events; The method of constructing the difference case set of the known cases includes: Use the K nearest neighbor method to search for K known nearest neighbor cases of each known case, calculate the difference value between each known nearest neighbor case and the known case, and construct a corresponding difference case, wherein the conditional feature attribute value of each corresponding difference case is the difference between each conditional feature attribute value of the known nearest neighbor case and the known case; The method of constructing the difference case set of the target event includes: Calculate the difference between each target event neighbor case and the target case and construct a target difference case, where the decision feature attribute value of each target difference case is the difference between the decision feature attribute values of the target event neighbor case and the target case; The second stage of case reasoning is based on incremental learning and reasoning of public opinion knowledge based on network public opinion difference cases, including: Calculate the comprehensive similarity of the conditional feature attributes between the difference case of the target event and each known difference case, and use the K nearest neighbor method to retrieve the K known difference cases that are the nearest neighbors of the difference case of the target event to form a set of nearest neighbor difference cases of the target event; By constructing a local linear regression model, the local change rate of the conditional feature attributes of the target case and the local change rate of the conditional feature attributes of the known cases are calculated, and a set of nearest neighbor local change rate difference cases of the target case is constructed; After completing the two-stage case reasoning, performing overall similarity calculation based on the target event neighbor case set and the target event neighbor difference case set; Based on the overall similarity calculation result, K target event neighbor cases and the target event neighbor difference cases are retrieved respectively, the decision feature attribute mean of the target event neighbor cases and the decision feature attribute mean of the neighbor difference cases are taken and added, and the public opinion situation decision result of the target event is calculated. The public opinion risk level of the target event is determined according to the public opinion situation decision result and the preset level quantification decision feature space.
2. The social network public opinion situation decision-making method according to claim 1, It is characterized in that The method further comprises: In the nearest neighbor local change rate difference case set of the target case, the local change rate of the conditional feature attribute of the target case is retrieved for auxiliary decision making.
3. The social network public opinion situation decision-making method according to claim 1, It is characterized in that The method for establishing the case information database specifically includes: Based on the open source information intelligence collection method, we use web crawlers and social website APIs to collect the subject information and key information of social network public opinion historical events in the social network system, encode the social network public opinion historical event information into a specified data structure, and then form a social network public opinion historical event case information database; The subject information and key information include one or more of the subject name of the social network public opinion event, the summary description of the social network public opinion event, the type of the social network public opinion event, the original statistical information of the social network public opinion event, the dissemination statistical information of the social network public opinion event, the media volume statistical information of the social network public opinion event, the attitude tendency information of social netizens, the duration of the social network public opinion event, and the situation level and handling decision information of the social network public opinion event.
4. The social network public opinion situation decision-making method according to claim 1, It is characterized in that The known case collection is established based on a feature vector quantization representation method of text semantic mining, event association analysis and mathematical modeling.
5. The social network public opinion situation decision-making method according to claim 1, It is characterized in that The calculating of the comprehensive similarity of conditional feature attributes between the known case and the target case specifically includes: According to the importance of conditional feature attributes in the conditional feature space of social network public opinion events, an order relationship is established, and the weight of conditional feature attributes is determined by using a rational valued order relationship analysis method. ; Calculate every known case in the case database Conditional feature space and target cases of social network public opinion events The similarity of the conditional feature space of social network public opinion events; If the conditional characteristic attribute of the social network public opinion event is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used: ; in For known cases The symbolic conditional feature attributes in For target case Symbolic conditional feature attributes in ; If the conditional feature attribute of the social network public opinion event is a numerical attribute, the Hamming distance is used to calculate the similarity of the numerical attribute: ; in, For known cases The numeric conditional feature attributes in For target case The numeric conditional feature attributes in They are , The lower and upper bounds of the numerical value range; If the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known case is an interval attribute value, the similarity calculation of the exact value matching interval value is adopted: ; in, They are , , The lower and upper bounds of the value interval, , Indicates interval attribute value. Two values are combined to form an interval. , Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of , if the probability of taking values in the interval is the same, then ; If the conditional feature attribute of the social network public opinion event is an interval attribute, the interval attribute similarity calculation is used: ; in, They are , , , The lower and upper bounds of the value interval, , Indicates interval attribute value. Two values are combined to form an interval. , Similarity calculation for exact value matching interval, For interval Median value The probability of taking a value of , if the probability of taking values in the interval is the same, then ; Calculate every known case in the case library With target case The comprehensive similarity of conditional feature attributes is calculated as follows: ; in, represents the weight coefficient of the conditional feature attribute, and m represents the known case With target case The number of conditional feature attributes, Indicates known cases The j-th conditional feature attribute of Indicates the target case The j-th conditional feature attribute of .
6. The social network public opinion situation decision-making method according to claim 5, It is characterized in that The calculation of the comprehensive similarity of conditional feature attributes between the difference case of the target event and each known difference case specifically includes: Retrieve the difference cases in the difference case set of the target social network public opinion and the difference cases in the difference case set of the known social network public opinion, and retrieve and calculate the similarity of the conditional feature attributes of each target difference case and each known difference case; If the conditional feature attribute of the difference case is a symbolic attribute, the similarity calculation formula of the symbolic attribute is used; If the conditional feature attribute of the difference case is a numerical attribute, the Hamming distance is used to calculate the similarity of the numerical attribute; If the conditional feature attribute value is a point value in an interval, and the corresponding conditional feature attribute in the known difference case is an interval attribute value, the similarity calculation of the exact value matching interval value is adopted; If the conditional feature attribute of the difference case is an interval attribute, the interval attribute similarity calculation is used; Calculate the comprehensive similarity of conditional feature attributes between each target difference case and each known difference case: ; in Indicates the comprehensive similarity of conditional feature attributes between the target difference case and the known difference case; Represents the similarity between each conditional feature attribute of the target difference case and the known difference case, represents the weight determined by the order relation analysis method using rational assignment, represents the neighboring cases of the target event, Indicates known neighbor cases.
7. A social network public opinion situation decision-making device, It is characterized in that The device comprises: A target case input module, wherein the target case input module inputs a network public opinion target case to be reasoned and decided, and performs two-stage case reasoning; The first-stage reasoning module calculates the comprehensive similarity of conditional feature attributes between the known cases and the target case, and retrieves K online public opinion event cases that are nearest neighbors to the target case based on the K-nearest neighbor method to form a target event nearest neighbor case set; The known case collection is established in the following ways: Obtain information on historical events of social network public opinion and establish a case information database of historical events of social network public opinion; Extracting features of social network public opinion events from the information database, establishing a known case set of social network public opinion events, describing social network public opinion events in the form of case pairs including a conditional feature space of social network public opinion events and a decision feature space of social network public opinion trends based on a feature vector quantization representation method, wherein the conditional feature space is composed of conditional feature vectors of multiple social network public opinion events, and the conditional feature vectors of social network public opinion events include one or more of social network public opinion topic categories, social network public opinion event types, the number of fans of the original subject of social network public opinion events, the number of original posts of social network public opinion events, the forwarding rate of the spread of social network public opinion events, the comment rate of the spread of social network public opinion events, the search rate of the spread of social network public opinion events, the emotional tendency strength of social network public opinion events, and the duration of social network public opinion events; Construct a differential case set of known cases and a differential case set of target events; The method of constructing the difference case set of the known cases includes: Use the K nearest neighbor method to search for K known nearest neighbor cases of each known case, calculate the difference value between each known nearest neighbor case and the known case, and construct a corresponding difference case, wherein the conditional feature attribute value of each corresponding difference case is the difference between each conditional feature attribute value of the known nearest neighbor case and the known case; The method of constructing the difference case set of the target event includes: Calculate the difference between each target event neighbor case and the target case and construct a target difference case, where the decision feature attribute value of each target difference case is the difference between the decision feature attribute values of the target event neighbor case and the target case; The second-stage reasoning module calculates the comprehensive similarity of the conditional feature attributes of the difference case of the target event and each known difference case, and uses the K nearest neighbor method to retrieve the K known difference cases that are the nearest neighbors of the difference case of the target event to form a set of nearest neighbor difference cases of the target event; By constructing a local linear regression model, the local change rate of the conditional feature attributes of the target case and the local change rate of the conditional feature attributes of the known cases are calculated, and a set of nearest neighbor local change rate difference cases of the target case is constructed; An overall similarity calculation module, which performs overall similarity calculation based on the target event neighbor case set and the target event neighbor difference case set after completing the two-stage case reasoning; A situation decision module, based on the overall similarity calculation result, retrieves K target event neighbor cases and the target event neighbor difference cases respectively, takes the mean of the decision feature attributes of the target event neighbor cases and the mean of the decision feature attributes of the neighbor difference cases and adds them together, calculates the public opinion situation decision result of the target event, and determines the public opinion risk level of the target event according to the public opinion situation decision result.
8. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the social network public opinion situation decision method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that The storage medium stores a computer program, which is loaded and executed by a processor to implement the social network public opinion situation decision method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Public opinion information analyzing and prewarning method based on natural language processing
CN107229735A
Public opinion risk monitoring method and system based on natural language processing
CN112395539A
