An overlapping boundary gate and targeted subgraph update public opinion monitoring method and system

By employing overlapping boundary gating and targeted subgraph updates, this approach addresses the challenges of resolving overlapping boundaries across multiple topics and fine-tuning the global model in social media sentiment monitoring systems. It achieves high-precision sentiment recognition and rapid anti-attack capabilities, thereby enhancing the system's security and robustness.

CN123160149APending Publication Date: 2026-11-24JIANGXI POLICE COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611675434.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing social media sentiment monitoring systems struggle to accurately parse edge texts at the boundaries of overlapping topics when processing multi-intent texts, and global model fine-tuning strategies lead to computational overload, catastrophic forgetting, and delayed system warnings.

Method used

The method of overlapping boundary gating and targeted subgraph update is adopted. Features are extracted through feature encoder and sentiment probe network. Cross-domain collaborative probability re-estimation is performed by soft confidence gating and condition-triggered sentiment fusion inference module. The global public opinion monitoring map is decoupled into local subgraphs and targeted incremental gradient descent is combined to defend against sudden anomalies.

Benefits of technology

It improves the accuracy of sentiment perception in texts with overlapping topics, realizes flexible allocation of computing power for hot and cold topics and rapid identification of anti-attack capabilities, reduces the risk of system downtime, and improves the security and robustness of public opinion monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160149A_ABST
    Figure CN123160149A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for monitoring public opinion using overlapping boundary gating and targeted subgraph updates, belonging to the field of natural language processing technology. Addressing the problems of existing hard classification methods struggling to parse edge text and the high overhead of global model fine-tuning due to sudden public opinion events, this method constructs an extended topic topology space, extracts composite features, and calculates multi-objective topology loss to classify obscure text into overlapping areas; it utilizes soft confidence gating to divert text and performs cross-domain collaborative probability re-estimation on edge text; it decouples the global network into local subgraphs and aggregates them based on the adaptive assembly graph network order according to activity intensity; it calculates feature space offset to detect impacts, generates a mask to freeze global parameters, and performs targeted incremental updates only on abnormal subgraphs. This invention effectively improves the sentiment perception accuracy of multi-topic overlapping text, avoids system downtime when facing extreme data impacts, and achieves elastic allocation of computing power and millisecond-level early warning and recovery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer natural language processing and network security technology, and in particular to a method and system for monitoring public opinion by overlapping boundary gating and targeted subgraph updates. Background Technology

[0002] With the development of natural language processing (NLP), social media sentiment monitoring technology has been widely applied in various scenarios such as social governance, brand public relations, and cybersecurity early warning. Currently, most sentiment recognition systems focus on accurately classifying standard online texts with clear intent and a single emotional polarity (e.g., positive, neutral, negative). However, in reality, especially in scenarios involving sudden public events and interactions within online subcultures, the streaming text captured by monitoring systems is often contaminated by complex marginal contexts such as puns, irony, metaphorical disguises, and multi-topic mappings. These interfering factors severely hinder NLP models from effectively extracting the true intent of the text, leading to a significant decline in the model's recognition performance.

[0003] Existing social media sentiment monitoring systems suffer from two major technical shortcomings: First, traditional sentiment analysis methods often employ a single-label classification paradigm, forcibly mapping text to a single category. This "either / or" hard classification mechanism exhibits significant limitations when handling multi-intent text. Distance metrics based on fixed classification centers are prone to misjudgments due to threshold sensitivity, making it difficult to effectively capture the true intent distribution of marginal text at the "overlapping boundary" of topic and sentiment. Second, global model update strategies have serious limitations. When a sudden, organized public opinion attack or major crisis event in cyberspace causes the sentiment polarity of a single topic to reverse instantly within a short period, the system typically needs to rely on retraining or full weight fine-tuning to adapt to the new data distribution. Retraining or fine-tuning the entire model not only incurs enormous computational costs, leading to severe system warning delays and computational overload, but also causes catastrophic forgetting of learned knowledge and poses a risk of system downtime. Therefore, a novel solution is urgently needed that can defend against sudden data distortions through local computational intervention without triggering a global model overload. Summary of the Invention

[0004] The purpose of this invention is to solve the technical problems mentioned in the background section. Addressing the shortcomings of existing hard classification mechanisms in accurately parsing edge text at the boundaries of overlapping multiple topics, and the technical problems of computational overload, catastrophic forgetting, and system warning delays caused by global model fine-tuning strategies when dealing with sudden extreme public opinion shocks, this invention provides a public opinion monitoring method and system based on overlapping boundary gating and targeted subgraph updates.

[0005] In a first aspect, the present invention provides a method for monitoring public opinion through overlapping boundary gating and targeted subgraph updates, comprising the following steps: Step S1: Obtain streaming social text and associated interaction attribute data, input the streaming social text and associated interaction attribute data into the feature encoder and sentiment probe network for feature extraction and spatial mapping, and output the initial semantic and sentiment distribution features in the extended topic topology space; Step S2: Obtain the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger the diversion, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion reasoning module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence. Step S3: Obtain the global public opinion monitoring map formed by the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local sub-graphs at the independent topic granularity, dynamically evaluate the popularity of each sub-graph based on the preset activity intensity calculation rules, aggregate node features according to the order of the graph attention network based on the popularity, and output the updated public opinion node features. Step S4: Obtain the updated public opinion node features and monitor them within the sliding time window. Calculate the feature space offset to detect sudden abnormal impacts. When an anomaly is detected, generate a global gradient mask matrix. Use the global gradient mask matrix to block the back transmission of global network parameters and perform local incremental gradient descent on the abnormal target subgraph. Output the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

[0006] As an optional implementation of the first aspect of this application, the specific processing steps of step S1 include: acquiring the input streaming social text and the associated interaction attribute data, performing joint encoding using the feature encoder, and outputting a composite feature vector; extracting the topic affiliation probability distribution and the initial sentiment probability vector of the composite feature vector in the semantic space, calculating the norm square of the difference between the topic affiliation probability distribution and the initial sentiment probability vector, and outputting a sentiment inconsistency metric; adding the basic clustering loss function to the sentiment inconsistency metric weighted by the bias penalty weight parameter to construct a multi-objective topological loss function; and by optimizing the multi-objective topological loss function, forcibly classifying the obscure text features that deviate between semantic and sentiment features into the overlapping determination region, and outputting the initial semantic and sentiment distribution features within the extended topic topological space.

[0007] As an optional implementation of the first aspect of this application, step S2, the process of calculating the soft confidence gating state based on the overlapping boundary detection mechanism for traffic diversion triggering includes: obtaining the composite feature vector in the initial semantic and sentiment distribution features, calculating the maximum probability value of the composite feature vector belonging to all preset topic centers, and using the maximum probability value as the soft confidence gating state; comparing the soft confidence gating state with the preset core area judgment threshold; when the soft confidence gating state is greater than the core area judgment threshold, directly mapping the corresponding feature to the nearest topic classification center; when the soft confidence gating state is less than or equal to the core area judgment threshold, determining the corresponding text as edge text, generating a trigger signal, and inputting the edge text features into the conditionally triggered sentiment fusion inference module.

[0008] As an optional implementation of the first aspect of this application, step S2, which involves inputting the edge text features within the overlapping decision region into the conditionally triggered sentiment fusion inference module for cross-domain collaborative probability re-estimation and outputting the corrected final sentiment recognition probability sequence, includes: calculating the spatial distance between the edge text features and a preset number of adjacent local topic centers; smoothing and normalizing the spatial distance using a preset temperature coefficient, and outputting the collaborative attention weights of the edge text features corresponding to each local topic center; weighting and summing the local expert network prediction probabilities corresponding to each local topic center with the corresponding collaborative attention weights, performing multi-expert probability re-estimation, and outputting the corrected final sentiment recognition probability sequence.

[0009] As an optional implementation of the first aspect of this application, step S3, the process of dynamically evaluating the popularity of each subgraph based on the preset activity intensity calculation rule, includes: obtaining the text increment speed of the local subgraph set within a preset time window and the sentiment information entropy under the corresponding topic; weighting the sentiment information entropy using a balance parameter and obtaining an index value; multiplying the obtained index value by the text increment speed to obtain the activity intensity of the local subgraph; and using the activity intensity as the popularity output of the subgraph, wherein the balance parameter is a preset constant.

[0010] As an optional implementation of the first aspect of this application, step S3, which involves aggregating node features according to the order of the heat-adaptive allocation graph attention network and outputting the updated public opinion node features after on-demand allocation of computing power, includes: dynamically allocating network layers according to the local subgraph corresponding to the heat, wherein the number of network layers is positively correlated with the heat; calculating the attention coefficient between the target node and its neighbor node set in each allocated network layer; performing a product summation operation on the attention coefficient, the preset weight matrix, and the neighbor node features, and using the exponential linear unit activation function for nonlinear transformation to aggregate and obtain the updated node features, until the aggregation of all allocated layers is completed, and outputting the updated public opinion node features after on-demand allocation of computing power.

[0011] As an optional implementation of the first aspect of this application, in step S4, the process of calculating the feature space offset to detect sudden abnormal impacts, generating a global gradient mask matrix when an anomaly is detected, using the global gradient mask matrix to block the backpropagation of global network parameters and performing local incremental gradient descent on the abnormal target subgraph, and outputting the updated network parameters for targeted defense to monitor and warn of public opinion includes: within the sliding time window, calculating the distance between the feature mean center in the current time window and the feature mean center in the previous time window as the feature space offset; when the feature space offset is greater than a preset instability alarm threshold, determining... Upon encountering a sudden abnormal impact, the abnormal subgraph that triggers the offset is located; the global gradient mask matrix is ​​generated, and the mask values ​​of nodes within the abnormal subgraph and their adjacent nodes in the global gradient mask matrix are set to an update-allowed state, while the mask values ​​of the remaining nodes in the global network are set to a frozen state; during backpropagation, the global gradient mask matrix is ​​multiplied element-wise with the global gradient to block the parameter backpropagation of frozen nodes. The global gradient is the gradient calculated during backpropagation, and local incremental gradient descent is performed only on the relevant nodes of the abnormal subgraph using a local learning rate, outputting the network parameters updated by the targeted defense.

[0012] Secondly, embodiments of this application provide an overlapping boundary gating and targeted subgraph update public opinion monitoring system, including: An extended topology space mapping module is used to acquire streaming social text and related interaction attribute data. The streaming social text and related interaction attribute data are input into a feature encoder and a sentiment probe network for feature extraction and spatial mapping, and the initial semantic and sentiment distribution features within the extended topic topology space are output. The condition-triggered splitting inference module is used to obtain the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger splitting, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion inference module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence. The adaptive order aggregation update module is used to obtain the global public opinion monitoring map formed by the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local subgraphs at the independent topic granularity, dynamically evaluate the popularity of each subgraph based on the preset activity intensity calculation rules, and aggregate node features according to the order of the graph attention network based on the popularity, and output the updated public opinion node features. The targeted incremental defense early warning module is used to acquire the updated public opinion node features and monitor them within a sliding time window. It calculates the feature space offset to detect sudden abnormal impacts. When an anomaly is detected, it generates a global gradient mask matrix, uses the global gradient mask matrix to block the back transmission of global network parameters, performs local incremental gradient descent on the abnormal target subgraph, and outputs the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

[0013] Thirdly, embodiments of this application provide an electronic device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of the method described in the first aspect.

[0014] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. Improved accuracy in sentiment perception of multi-topic overlapping text: This invention extracts composite representations through a feature encoder and cluster optimizer, uses a multi-objective topological loss function to forcibly separate single-intent text from marginal text, and combines a gating mechanism with a cross-domain expert network for fusion inference. This mechanism effectively avoids the false positive problem caused by traditional methods that rely solely on a single center for forced attribution, and significantly improves the model's ability to capture intent from multi-topic overlapping text containing irony, puns, metaphors, and other contaminating elements.

[0016] 2. Achieved flexible attention allocation and optimized understanding of public opinion on both popular and unpopular topics: This invention decouples the massive global public opinion monitoring map into independent subgraphs and calculates the popularity of each subgraph based on its activity level, flexibly assembling network layers as needed. This completely improves upon the serious shortcomings of traditional models, which waste computational power on unpopular topics and lack sufficient feature extraction depth on popular topics.

[0017] 3. Achieved rapid identification of sudden public opinion events and robust system protection under attack resistance: This invention innovatively integrates a targeted adversarial defense module into the graph node update mechanism. It identifies sudden polarity reversals by calculating spatial offset within a time window, and generates a gradient mask at the bottom layer to forcibly freeze the remaining 99% of the topic network parameters in the system, allowing only the target subgraph to perform millisecond-level incremental convergence using small batches of sudden data. This completely solves the system downtime and catastrophic forgetting threats caused by the "global retraining" required by existing technologies when facing attacks, reduces additional GPU memory overhead, and improves the security and robustness against cyberbullying of large-scale public opinion monitoring systems. Attached Figure Description

[0018] Figure 1 This is a flowchart of a public opinion monitoring method for overlapping boundary gating and targeted subgraph updating provided by an embodiment of the present invention; Figure 2 This is a schematic diagram illustrating the construction of an extended topic topology space network structure in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the principle of the overlapping boundary soft confidence gating and fusion inference mechanism in an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the principle of independent topic graph decoupling and adaptive assembly in an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the principle of spatial offset calculation within the sliding time window in an embodiment of the present invention. Figure 6 This is a schematic diagram illustrating the principle of generating a mask to block the global network and performing targeted incremental update defense in an embodiment of the present invention; Figure 7 This is a comparison chart showing the robustness of this system under normal conditions and under extreme sudden impacts in this embodiment. Figure 8 This is a schematic diagram of the structure of an overlapping boundary gating and targeted subgraph update public opinion monitoring system provided in an embodiment of the present invention. Detailed Implementation

[0019] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0020] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0021] Example 1 This invention proposes a method for monitoring public opinion using overlapping boundary gating and targeted subgraph updates. The method mainly consists of four steps: First, constructing an extended topology space based on sentiment deviation; second, triggering cross-domain collaborative network fusion of edge intentions through gating; third, decoupling the macrograph and adaptively assembling the GAT network; fourth, constructing a defense module that utilizes spatial offset detection and blocks global gradient backpropagation at the bottom layer to achieve targeted incremental updates of sudden distorted data. A flowchart of the method is shown below. Figure 1 .

[0022] Step S1: Obtain streaming social text and associated interaction attribute data, input the streaming social text and associated interaction attribute data into the feature encoder and sentiment probe network for feature extraction and spatial mapping, and output the initial semantic and sentiment distribution features in the extended topic topology space.

[0023] In this step, an extended topic topology space evaluation network was designed and constructed. This network consists of a feature encoder and a sentiment probe network. The feature encoder is responsible for extracting composite representations from the input streaming data; it consists of a 12-layer bidirectional Transformer encoder, a 3-layer MLP, and a feature fusion layer. The Transformer is responsible for deep semantic encoding of the text sequence, and the fully connected layers are responsible for projecting interaction attributes such as likes and shares. Each fully connected layer is followed by a batch normalization (BN) layer and a GELU activation function. A schematic diagram of the extended topic topology space network structure constructed in the first step of this invention is shown below. Figure 2 .

[0024] The process of the encoder extracting composite features is shown in formula (1): In formula (1), This represents the i-th piece of social text input. Indicates the associated interactive attributes, This represents the extracted composite feature vector. This represents the encoder function.

[0025] The initial sentiment probability vector is extracted using a sentiment probe, and the clustering distance with the preset topic center is calculated. To identify texts containing subtle irony, this invention constructs a sentiment inconsistency measurement function, the calculation process of which is shown in formula (2): In formula (2), This represents the probability distribution of topic affiliation in the semantic space of a text. This represents the initial sentiment probability vector. This represents a measure of emotional inconsistency. This indicates the calculation of the square of the Frobenius norm. A larger value indicates a more severe deviation between semantics and sentiment. The multi-objective topological loss function for this part is shown in formula (3): In formula (3), The updated total loss function, Based on the clustering loss function, The bias penalty weights are used as parameters. By optimizing the gradient descent updater, the network spatially divides the network into high-confidence single-topic center regions (…). ) and multi-category overlapping determination area ( ).

[0026] Step S2: Obtain the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger the diversion, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion inference module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence.

[0027] In this step, a condition-triggered sentiment fusion reasoning module was constructed. A schematic diagram illustrating the principle of the overlapping boundary soft confidence gating and fusion reasoning mechanism in the second step of this invention is shown below. Figure 3 A soft confidence gating function was designed, and its calculation method is shown in formula (4): In formula (4), Output for gated state. A threshold is determined for the core area. When... When this occurs, a single-channel direct mapping split is triggered, directly mapping the features to the nearest center sentiment classifier. When the cross-domain collaborative reasoning network is triggered, the network consists of an attention calculation module and a fusion prediction module. The attention calculation module calculates the distance-normalized attention weights to the m nearest topic centers (neighborhood centers), as shown in formula (5): In formula (5), To show the distance between the input feature and the j-th neighborhood center, The temperature coefficient is used to control the smoothness of the probability distribution. Let be the collaborative weight of the j-th center. Then, probability reestimation is performed, as shown in formula (6): In formula (6), Let be the predicted probability output by the j-th local expert network. This is the final corrected probability sequence for emotion recognition.

[0028] Step S3: Obtain the global public opinion monitoring map composed of the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local subgraphs at the independent topic granularity, dynamically evaluate the popularity of each subgraph based on the preset activity intensity calculation rules, aggregate node features according to the order of the graph attention network based on the popularity, and output the public opinion node features updated after the computing power is allocated as needed.

[0029] In this step, an adaptive order sentiment rule mining network at the independent topic granularity was designed and constructed. A schematic diagram illustrating the principle of independent topic graph decoupling and adaptive GAT order assembly in the third step of this invention is shown below. Figure 4 Decouple the global public opinion map from the set of independent local subgraphs. Calculate the activity intensity of each subgraph, as shown in formula (7): In formula (7), Represents independent local subgraphs The degree of local activity This indicates the rate of text increment within a time window. This represents the sentiment information entropy under this topic. To balance the parameters, an adaptively assigned Graph Attention Network (GAT) with L layers is used, where the number of layers L is positively correlated with the activity intensity. GAT mines entity co-occurrence features through node feature aggregation, and its [missing information - likely a specific layer number or parameter]... l Layer to l The feature update formula for +1 layer is shown in formula (8): In formula (8), For the updated node features, For the first l Features of neighboring nodes of a layer For nodes i The set of neighboring nodes, Attention coefficient The weight matrix is ​​denoted by , and ELU is the exponential linear unit. This mechanism ensures on-demand allocation of computing power, resulting in a model set after adaptive computing power allocation.

[0030] Step S4: Obtain the updated public opinion node features and monitor them within the sliding time window. Calculate the feature space offset to detect sudden abnormal impacts. When an anomaly is detected, generate a global gradient mask matrix. Use the global gradient mask matrix to block the back transmission of global network parameters and perform local incremental gradient descent on the abnormal target subgraph. Output the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

[0031] In this step, a targeted defense loss and update mechanism to combat extreme public opinion shocks was designed. The principle diagram for calculating the spatial offset within the sliding time window in the fourth step of this invention is shown below. Figure 5 The feature space offset of a specific topic is calculated within a dynamic sliding time window, and the calculation method is shown in formula (9): In formula (9), This indicates the feature space offset. This represents the center of the mean of the features within the current time window. This represents the center of the mean within the previous time window. When... ( When a sudden distortion attack is detected (such as encountering an extreme public opinion surge), a local defense mechanism is triggered. A mask matrix is ​​generated for targeted defense, as shown in formula (10): In formula (10), For the mask matrix, For network nodes, To trigger the abnormal subgraph of the offset, Let be the adjacent nodes of the target subgraph. Use a mask to freeze the global computational power and perform local incremental gradient descent, as shown in equation (11): In formula (11), and For the network parameters before and after the update, For local learning rate, This is for element-wise multiplication. This is the global gradient. This mechanism allows the model to isolate unaffected networks through a mask, only affecting anomalous subgraphs. Reconstructing decision boundaries from disturbed data streams effectively reduces the negative impact of polarity reversal on system availability.

[0032] The schematic diagram of the principle of generating a mask to block the global network and performing targeted incremental update defense in step S4 of this invention is as follows: Figure 6 As shown. Upon receiving an anomaly alarm and locating the distorted target sub-image. Then, the system generates a mask matrix M; for the target subgraph... nodes The corresponding mask value is set to 1 to open the gradient, and the corresponding mask value is set to 0 for the remaining 99% of global nodes to freeze the parameters. After the latest burst distortion data stream is input, the system performs local incremental gradient descent update on the target subgraph based on the element-wise product of the mask matrix M and the global gradient as shown in Equation (11), and outputs millisecond-level anomaly defense alarm to restore the monitoring to normal.

[0033] Example verification 1. Social media sentiment analysis and extreme data impact defense test results In the testing, the public Weibo Public Opinion Dataset (Weibo-POD) and the public Twitter Sarcasm & Sentiment Dataset (Twitter-SSD) were selected as validation datasets. Specifically, Weibo-POD selected 200,000 Chinese texts of varying lengths, including variations such as event reversals, cyberbullying, and irony, of which 160,000 were used for training and 40,000 for testing; Twitter-SSD selected 150,000 English texts containing multi-contextual and implicit expressions, of which 120,000 were used for training and 30,000 for testing.

[0034] The TD-OGON network designed in this invention uses AdamW as the optimizer during training, sets the basic network training epochs to 50, employs early stopping to prevent overfitting, and sets the text encoder learning rate to [value missing]. The learning rate of the graph attention network is set to... The dimension of the composite feature vector extracted from the network was set to 768; the deviation penalty weight was set to 0.25; the temperature coefficient in the formula was set to 0.15; and the sliding time window was set to 500 milliseconds.

[0035] To verify the effectiveness of this invention in identifying routine public opinion (including marginal text), a mixed dataset was selected for daily analysis. To verify its defense against sudden public opinion shocks, a "Sudden Polarity Reversal Attack (SPRA)" was simulated during the testing phase. This involved injecting a large number of artificially constructed, disguised negative comments into a specific subgraph of the test set within a specific time window. The attack intensity was divided into three levels: 10% (mild surge), 20% (moderate cyberbullying), and 30% (extreme reversal). The robustness comparison results of this invention under routine conditions and extreme sudden shocks are shown below. Figure 7 As shown. When encountering sudden shocks from extreme polarity reversal data, existing technologies trigger global large-scale model fine-tuning, which can easily lead to computing power overload and memory overflow, resulting in system crashes, recovery delays exceeding 2000ms, and increased false alarm rates. This invention, on the other hand, listens for offset mutations and generates masks to isolate global computing power, consuming only local memory to perform targeted incremental updates, thereby achieving a defense response of approximately 124ms and maintaining Macro-F1 stability.

[0036] 2. Evaluation of performance and robustness results Micro-average F1-Score (Macro-F1) was used to quantitatively evaluate the model's sentiment assessment accuracy. Additionally, for defense against sudden attacks, the model recovery latency (ms) and GPU memory overhead (GB) were recorded during the impact. Tables 1 and 2 show the test results of this invention on Weibo-POD and Twitter-SSD, respectively.

[0037] As shown in Tables 1 and 2, the method of this invention achieves an extremely high Macro-F1 recognition rate without the addition of sudden attacks, indicating that the extended topology and collaborative reasoning mechanism effectively eliminate the obstacles to judging ambiguous text in daily life. With increasing attack intensity, the recognition rate of the Baseline model (the standard GAT model without targeted defense mechanisms) drops significantly, resulting in huge memory overhead and a recovery delay of over 2000ms. It is noteworthy that, compared to the case without targeted defense mechanisms, the F1 score of this invention remains stable, and the recovery delay is reduced by more than 90%, while memory overhead is kept to a very low level.

[0038] For example, as shown in Table 1, under a 20% SPRA impact, the present invention improves the Macro-F1 performance on Weibo-POD by 13.72% compared to the non-fusion defense mechanism, with a recovery latency of only 124.6ms and a memory overhead of only 0.48 GB. This demonstrates that the defense mechanism of the present invention can effectively reduce the negative impact of sudden data flows on the global network and significantly improve system security.

[0039] Table 1. Performance and robustness evaluation results of the present invention on the Weibo-POD dataset. Table 2. Performance and robustness evaluation results of the present invention on the Twitter-SSD dataset. Example 2 Please see Figure 8 The diagram shown is a structural schematic of an overlapping boundary gating and targeted subgraph update public opinion monitoring system proposed in the second embodiment of this application. The system includes the following key modules: The extended topology space mapping module 100 is used to acquire streaming social text and related interactive attribute data, input the streaming social text and related interactive attribute data into the feature encoder and sentiment probe network for feature extraction and spatial mapping, and output the initial semantic and sentiment distribution features in the extended topic topology space. The condition-triggered diversion reasoning module 200 is used to acquire the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger diversion, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion reasoning module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence. The adaptive order aggregation update module 300 is used to obtain the global public opinion monitoring map composed of the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local subgraphs at the independent topic granularity, dynamically evaluate the popularity of each subgraph based on the preset activity intensity calculation rules, aggregate node features according to the order of the graph attention network based on the popularity, and output the public opinion node features updated after the computing power is allocated as needed. The targeted incremental defense early warning module 400 is used to acquire the updated public opinion node features and monitor them within a sliding time window, calculate the feature space offset to detect sudden abnormal impacts, generate a global gradient mask matrix when an anomaly is detected, use the global gradient mask matrix to block the back transmission of global network parameters and perform local incremental gradient descent on the abnormal target subgraph, and output the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

[0040] The overlapping boundary gating and targeted subgraph update public opinion monitoring system in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network-attached storage (NAS), personal computers (PCs), etc. This application embodiment does not impose specific limitations.

[0041] The overlapping boundary gating and targeted subgraph update public opinion monitoring system in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0042] This application provides an overlapping boundary gating and targeted subgraph updating public opinion monitoring system that can achieve... Figure 1 The various processes implemented in the method embodiment of the overlapping boundary gating and targeted subgraph update public opinion monitoring method will not be described again here to avoid repetition.

[0043] Optionally, this application embodiment also provides an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the various processes of the above-described embodiment of the overlapping boundary gating and targeted subgraph update public opinion monitoring method and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0044] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described embodiment of the overlapping boundary gating and targeted subgraph update public opinion monitoring method, and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0045] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0046] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0047] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0048] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for monitoring public opinion using overlapping boundary gating and targeted subgraph updates, characterized in that, Includes the following steps: Step S1: Obtain streaming social text and associated interaction attribute data, input the streaming social text and associated interaction attribute data into the feature encoder and sentiment probe network for feature extraction and spatial mapping, and output the initial semantic and sentiment distribution features in the extended topic topology space; Step S2: Obtain the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger the diversion, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion reasoning module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence. Step S3: Obtain the global public opinion monitoring map formed by the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local sub-graphs at the independent topic granularity, dynamically evaluate the popularity of each sub-graph based on the preset activity intensity calculation rules, aggregate node features according to the order of the graph attention network based on the popularity, and output the updated public opinion node features. Step S4: Obtain the updated public opinion node features and monitor them within the sliding time window. Calculate the feature space offset to detect sudden abnormal impacts. When an anomaly is detected, generate a global gradient mask matrix. Use the global gradient mask matrix to block the back transmission of global network parameters and perform local incremental gradient descent on the abnormal target subgraph. Output the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

2. The method according to claim 1, characterized in that, The specific processing steps of step S1 include: The input streaming social text and the associated interaction attribute data are obtained, and the feature encoder is used to perform joint encoding to output a composite feature vector. Extract the topic affiliation probability distribution and the initial sentiment probability vector of the composite feature vector in the semantic space, calculate the norm square of the difference between the topic affiliation probability distribution and the initial sentiment probability vector, and output the sentiment inconsistency measure. The basic clustering loss function is added to the sentiment inconsistency metric weighted by the bias penalty weighting parameter to construct a multi-objective topological loss function; By optimizing the multi-objective topological loss function, implicit text features that deviate from semantic and sentiment features are forcibly included in the overlapping determination region, and the initial semantic and sentiment distribution features within the extended topic topological space are output.

3. The method according to claim 1, characterized in that, In step S2, the process of calculating the soft confidence gating state based on the overlapping boundary detection mechanism for traffic splitting triggering includes: Obtain the composite feature vector from the initial semantic and sentiment distribution features, calculate the maximum probability value of the composite feature vector belonging to all preset topic centers, and use the maximum probability value as the soft confidence gating state. The soft confidence gating state is compared with a preset core area determination threshold; When the soft confidence gating state is greater than the core area determination threshold, the corresponding feature is directly mapped to the nearest topic classification center; When the soft confidence gating state is less than or equal to the core area determination threshold, the corresponding text is determined to be edge text, a trigger signal is generated, and the edge text features are input to the condition-triggered sentiment fusion reasoning module.

4. The method according to claim 3, characterized in that, In step S2, the process of inputting edge text features within the overlapping decision region into the conditionally triggered sentiment fusion inference module for cross-domain collaborative probability re-estimation and outputting the corrected final sentiment recognition probability sequence includes: Calculate the spatial distance between the edge text features and a preset number of adjacent local topic centers; The spatial distance is smoothed and normalized using a preset temperature coefficient, and the collaborative attention weights of the edge text features corresponding to each local topic center are output. The predicted probabilities of the local expert network corresponding to each local topic center are weighted and summed with the corresponding collaborative attention weights. Multi-expert probability re-estimation is then performed to output the corrected final sentiment recognition probability sequence.

5. The method according to claim 1, characterized in that, Step S3, the process of dynamically evaluating the heat of each subgraph based on the preset activity intensity calculation rules, includes: Obtain the text increment rate of the local subgraph set within a preset time window and the sentiment information entropy under the corresponding topic; The emotional information entropy is weighted using a balance parameter and an exponential value is obtained. The resulting exponential value is multiplied by the text increment rate to obtain the activity intensity of the local subgraph. The activity intensity is then used as the heat output of the subgraph. The balance parameter is a preset constant.

6. The method according to claim 5, characterized in that, In step S3, the process of aggregating node features according to the order of the adaptive heat distribution graph attention network and outputting the updated public opinion node features after on-demand allocation of computing power includes: The number of network layers is dynamically allocated to the corresponding local subgraph based on the heat level, and the number of network layers is positively correlated with the heat level. In each assigned network layer, the attention coefficient between the target node and its set of neighboring nodes is calculated. The attention coefficients, preset weight matrix, and neighbor node features are multiplied and summed, and then nonlinearly transformed using the exponential linear unit activation function to aggregate and obtain updated node features. This process is repeated until all allocation layers are aggregated, and the updated public opinion node features are output.

7. The method according to claim 1, characterized in that, In step S4, the process of calculating the feature space offset to detect sudden abnormal impacts, generating a global gradient mask matrix when an anomaly is detected, using the global gradient mask matrix to block the backpropagation of global network parameters, performing local incremental gradient descent on the abnormal target subgraph, and outputting the updated network parameters for targeted defense to monitor and warn of public opinion situations includes: Within the sliding time window, the distance between the feature mean center in the current time window and the feature mean center in the previous time window is calculated and used as the feature space offset. When the feature space offset is greater than the preset instability alarm threshold, it is determined that a sudden abnormal impact has occurred, and the abnormal subgraph that triggered the offset is located. Generate the global gradient mask matrix, set the mask values ​​of the nodes in the abnormal subgraph and their adjacent nodes in the global gradient mask matrix to the update-allowed state, and set the mask values ​​of the remaining nodes in the global network to the frozen state. During backpropagation, the global gradient mask matrix is ​​multiplied element-wise with the global gradient to block the backpropagation of parameters from frozen nodes. The global gradient is the gradient calculated during backpropagation. Local incremental gradient descent is performed only on the relevant nodes of the abnormal subgraph using the local learning rate, and the updated network parameters of the targeted defense are output.

8. A public opinion monitoring system with overlapping boundary gating and targeted subgraph updates, characterized in that, The system includes: An extended topology space mapping module is used to acquire streaming social text and related interaction attribute data. The streaming social text and related interaction attribute data are input into a feature encoder and a sentiment probe network for feature extraction and spatial mapping, and the initial semantic and sentiment distribution features within the extended topic topology space are output. The condition-triggered splitting inference module is used to obtain the initial semantic and sentiment distribution features, calculate the soft confidence gating state based on the overlapping boundary detection mechanism to trigger splitting, input the edge text features in the overlapping judgment area to the condition-triggered sentiment fusion inference module for cross-domain collaborative probability re-estimation, and output the corrected final sentiment recognition probability sequence. The adaptive order aggregation update module is used to obtain the global public opinion monitoring map formed by the final sentiment recognition probability sequence mapping, decouple the global public opinion monitoring map into a set of local subgraphs at the independent topic granularity, dynamically evaluate the popularity of each subgraph based on the preset activity intensity calculation rules, and aggregate node features according to the order of the graph attention network based on the popularity, and output the updated public opinion node features. The targeted incremental defense early warning module is used to acquire the updated public opinion node features and monitor them within a sliding time window. It calculates the feature space offset to detect sudden abnormal impacts. When an anomaly is detected, it generates a global gradient mask matrix, uses the global gradient mask matrix to block the back transmission of global network parameters, performs local incremental gradient descent on the abnormal target subgraph, and outputs the updated network parameters for targeted defense to monitor and warn of the public opinion situation.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the steps of the overlapping boundary gating and targeted subgraph update public opinion monitoring method as described in any one of claims 1-7.

10. A readable storage medium, characterized in that, The program or instructions are stored on the readable storage medium, and when the program or instructions are executed by the processor, they implement the steps of the overlapping boundary gating and targeted subgraph update public opinion monitoring method as described in any one of claims 1-7.