A method and system for analyzing public opinion using images and texts
Through the intelligent public opinion analysis method of graphics and text, graph theory and machine learning are used to build an information dissemination network and emotional dissemination model, which solves the problem of rapid spread of rumors on social media, realizes rumor path tracking and emotional impact assessment, and provides scientific Intervention strategies to effectively reduce the spread of rumors and identify deep fake information.
Patent Information
- Application Number
- CN202311542821.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-11-17
AI Technical Summary
Rumors and false information spread rapidly on social media, making it difficult to identify the authenticity of information. Especially after the emergence of deep forgery technology, the multi-modal form of information increases the difficulty of verification, making it difficult to effectively monitor and intervene with existing technologies.
Adopt the intelligent public opinion analysis method of graphics and text, build an information dissemination network through graph theory, analyze user interaction relationships and emotional expressions, combine natural language processing and machine learning, evaluate the credibility and emotional influence of information sources, and integrate multi-modal data modeling , predict the rumor propagation process, and design an adaptive learning system to update the model in real time.
Accurately track rumor propagation paths and key nodes, reveal the dynamic characteristics of information propagation, provide a basis for formulating intervention strategies, effectively reduce the spread of rumors, identify and resist deep forgery information, and maintain high accuracy and efficiency.
Smart Images

Figure CN117421433B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of social media image and text analysis, and in particular to an image and text intelligent public opinion analysis method and system. Background Art
[0002] In the current digital age, the rise of social media has greatly changed the way information is disseminated. The popularity of this medium has enabled information to spread rapidly around the world, but it has also brought about a major challenge: the rapid spread of rumors, false information, and misleading content. Because information on social media often lacks fact-checking, false news and rumors can easily spread rapidly among users.
[0003] In this environment, it becomes extremely difficult to identify the authenticity and source of information. This problem becomes even more complicated with the emergence of deep fake technology, such as synthetic images and videos. In addition, information on social media platforms often exists in multimodal forms, such as combining text and images, which requires ensuring consistency between content in different modes to verify the authenticity of the information.
[0004] In order to effectively address these challenges, we need to deeply understand the dynamics of information dissemination in social networks, including how network structure, user interaction, and emotional expression influence the spread of information. In addition, as the social media environment continues to evolve, systems for monitoring and intervening in rumors also need to have the ability to adaptively learn to cope with new data and environmental changes. Therefore, methods for monitoring and analyzing the spread of information on social media need to consider many factors, including the credibility of information sources, tracking of dissemination paths, quantification of emotional influence, and consistency of cross-modal content. Summary of the invention
[0005] In order to overcome the shortcomings of the existing technology, the present invention proposes a method and system for intelligent public opinion analysis based on graphics and text. The information dissemination network constructed using graph theory can accurately track the propagation path and key nodes of rumors, help understand the diffusion mechanism of rumors, analyze the propagation pattern in social networks, and reveal the dynamic characteristics of information dissemination, providing a basis for formulating intervention strategies.
[0006] To achieve the above object, the present invention provides a method for analyzing public opinion using images and texts, comprising:
[0007] Step S1: extracting the account’s posting history and user interaction data from the social media platform, and using this data to build a scoring model to evaluate the account’s credibility;
[0008] Step S2: Analyze the interactive relationship between users, construct a rumor propagation network diagram, and then apply network analysis technology to determine the key paths of rumor propagation, including key propagation nodes, to provide decision support for subsequent intervention strategies;
[0009] Step S3: Apply natural language processing tools to identify emotional expressions in social media posts, and use machine learning algorithms to estimate the potential influence of these emotional expressions in social networks based on the intensity of emotions and user interaction data, thereby predicting the scope of emotional spread;
[0010] Step S4: Analyze and compare the information in the text and the content of the attached image in the same post to ensure that the information between the two modalities is consistent, so as to detect whether the information has been tampered with or is potentially deceptive;
[0011] Step S5: Integrate text and image data from social media and user behavior data to build a dynamic model that simulates the spread of rumors in social networks and predicts the specific impact of rumors on user behavior, thereby providing a scientific basis for preventing the spread of rumors;
[0012] Step S6: Design an adaptive learning system to update model parameters in real time, adapt to the evolution of the social media environment, and maintain the high accuracy and efficiency of the model in detecting rumors and analyzing sentiment.
[0013] Further, step S1 includes:
[0014] Step S11: Collect historical data of social media accounts, including published content, interactions (such as likes, comments), and follower networks;
[0015] Step S12: extracting account behavior characteristics, such as posting frequency, content consistency, interaction mode, etc., analyzing the user network structure, identifying influential nodes and social relationship graphs;
[0016] Step S13: Using a machine learning algorithm to calculate the credibility score based on the extracted features, combined with time series analysis, to monitor the changing trend of account behavior;
[0017] Step S14: Implement a real-time data monitoring system, continuously update the credibility score, and design a feedback mechanism to adjust the credibility score based on the user's latest behavior.
[0018] Further, step S2 includes:
[0019] Step S21: Use graph theory to construct an information dissemination network, with users as nodes and interactions as edges;
[0020] Step S22: Apply network analysis tools and algorithms to track the key paths and nodes of rumor propagation;
[0021] Step S23: Identify the propagation mode, such as viral propagation or small-scale diffusion, and analyze the influence of key nodes on propagation, such as opinion leaders or key influencers;
[0022] Step S24: Design effective information intervention or rumor-refuting strategies based on the propagation path and pattern, conduct targeted intervention on key nodes and paths, and cut off the spread of rumors at the lowest cost.
[0023] Further, step S3 includes:
[0024] Step S31: using NLP tools to identify and extract emotional expressions in posts;
[0025] Step S32: quantify the intensity and communication potential of emotional expression, and use a machine learning model to predict the communication range based on the emotional intensity and user interaction;
[0026] Step S33: construct an emotion propagation network, analyze how emotions propagate in social networks, and evaluate the group influence and change trend of emotional attitudes;
[0027] Step S34: Adjust the communication model and intervention measures based on the quantitative results of emotional influence. Design strategies to deal with emotional fluctuations and public opinion guidance.
[0028] Further, step S4 includes:
[0029] Step S41: Develop an algorithm to compare and match the consistency of text information and image content;
[0030] Step S42: Performing deep semantic analysis on inconsistent information to identify potential fraudulent intentions;
[0031] Step S43: Using a supervised learning method, training the model to identify and label the consistency of information;
[0032] Step S44: Continuously optimize the consistency detection algorithm based on user feedback and expert verification.
[0033] Furthermore, step S5 further includes:
[0034] Step S51: integrating multimodal data and user behavior data to construct a dynamic model of the social network;
[0035] Step S52: predicting the rumor propagation effect and the reaction of the social network through simulation experiments;
[0036] Step S53: Evaluate the specific impact of specific information or rumors on network dynamics;
[0037] Step S54: Update model parameters based on actual situation feedback to improve prediction accuracy.
[0038] Furthermore, the specific steps of the algorithm of step S13 are as follows:
[0039] Step S131: Write or use an existing API script to collect user data from the social media platform; store the collected data in a database, including post text, number of interactions (likes, comments), and timestamps;
[0040] Step S132: Clean the data: remove duplicate records, correct errors and missing values; text preprocessing: use NLP libraries (such as NLTK or Spacy) to perform word segmentation, stem extraction, and stop word removal.
[0041] Step S133: Write a function to calculate the features of each account, such as the average time between posts, the daily / weekly / monthly pattern of posts and interactions, the sentiment scores in the posts (using a sentiment analysis library such as TextBlob), and store the feature vector of each account for subsequent use;
[0042] Step S134: Select a machine learning framework (such as scikitlearn, TensorFlow, or PyTorch), divide the data set into a training set and a test set, and select and configure an algorithm (such as a random forest classifier):
[0043] from sklearn.ensemble import RandomForestClassifier
[0044] model=RandomForestClassifier(n_estimators=100,random_state=42)`
[0045] Step S135: training model: model.fit(X_train,y_train)`
[0046] Evaluate model performance: model.score(X_test,y_test)`
[0047] Evaluate classification performance using tools such as confusion matrices and ROC curves;
[0048] Step S136: Apply the model to each account feature vector to generate a credibility score; use probability estimation, such as model.predict_proba(X), to give the probability of each account being judged as credible or untrustworthy;
[0049] Step S137: Analyze the time series data using statistical or machine learning methods, such as using Facebook's Prophet library; determine the stability of account behavior and possible trend changes based on model predictions.
[0050] Step S138: Deploy the trained model to a server or cloud platform; implement regular model performance monitoring and update the model with new data.
[0051] Furthermore, it is characterized in that the feedback mechanism is designed as follows:
[0052] Step S141: Setting up an automated script to periodically pull the latest account data using the social media API;
[0053] Step S142: Ensure that the feature extraction script is automatically executed after each data collection; the feature extraction script should update the user feature record in the database.
[0054] Step S143: Set a trigger to automatically run the model for scoring when new data arrives; use the new feature data to update the account's credibility score;
[0055] Step S144: designing a user feedback interface to allow users to provide feedback on the credibility score, implementing a feedback collection API, and storing user feedback;
[0056] Step S145: Write a calibration script to regularly calibrate the model based on new data and user feedback; use the calibrated model to perform scoring and compare with previous scores;
[0057] Step S146: Implement a performance monitoring system to track the accuracy and recall of the model scoring; when performance degrades, automatically notify the administrator;
[0058] Step S147: Design an automated process to automatically retrain the model when performance degrades or at regular time points; ensure that the new model is automatically deployed to the production environment after training is completed.
[0059] Step S148: Use a model version control system (such as MLflow) to track model iterations; ensure that you can quickly roll back to a previous model version if there is a problem with the new model;
[0060] Step S149: Develop a reporting system to generate performance reports regularly; use visualization tools (such as Tableau or PowerBI) to display scoring and feedback results;
[0061] Step S1410: Design maintenance processes, including code review, performance testing, and user feedback evaluation, and regularly optimize code and models.
[0062] A system for a method for analyzing image-text intelligent public opinion is applicable to the method for analyzing image-text intelligent public opinion described above, including a data collection module, a data processing and feature extraction module, a machine learning module, a network analysis module, a cross-modal analysis module, a real-time monitoring module, a front-end display and interactive interface, a back-end service module, and an adaptive learning and updating module, as follows:
[0063] Data collection module: Use the API of social media platforms (such as Twitter API, Facebook GraphAPI) to collect data; store data in a database (such as MySQL, MongoDB).
[0064] Data processing and feature extraction module: Use Python and its libraries (such as Pandas, NumPy) for data cleaning and preprocessing; extract features, such as using NLTK or spaCy for NLP processing, extracting sentiment analysis and text features.
[0065] Machine Learning Module: Use machine learning frameworks (such as TensorFlow, PyTorch) to build and train models; use libraries such as Scikitlearn to implement classifiers or regression models and calculate credibility scores.
[0066] Network analysis module: Use graph theory libraries (such as NetworkX) to build and analyze social network structures; track and analyze information propagation paths
[0067] Cross-modal analysis module: Use deep learning for image processing (such as OpenCV, TensorFlow); combine text and image data for consistency detection;
[0068] Real-time monitoring module: Use stream processing tools (such as Apache Kafka, Apache Storm) for real-time data processing; continuously update models and scores.
[0069] Front-end display and interactive interface: used to display analysis results and receive user feedback; use frameworks (such as React, Angular) for front-end development;
[0070] Backend service module: Use frameworks such as Flask or Django to build backend services; process data requests, connect to databases and machine learning modules
[0071] Adaptive learning and updating module: implements online learning algorithms to adapt to new data; monitors model performance and adjusts the model based on feedback.
[0072] Compared with the prior art, the present invention has the following beneficial effects:
[0073] 1. The present invention provides a method and system for analyzing public opinion with images and texts. By analyzing historical data of social media accounts, including published content, user interactions, and follower networks, the credibility of information sources can be more accurately evaluated. The constructed dynamic model helps predict the spread of rumors and the response of social networks, providing support for the formulation of long-term strategies.
[0074] 2. The present invention provides a method and system for intelligent public opinion analysis based on graphics and text. The information dissemination network constructed using graph theory can accurately track the propagation path and key nodes of rumors, which helps to understand the diffusion mechanism of rumors and effectively track and analyze the propagation path of rumors.
[0075] 3. The present invention provides a method and system for intelligent public opinion analysis using graphics and texts. By analyzing the propagation patterns in social networks, such as viral propagation or small-scale diffusion, the present invention can reveal the dynamic characteristics of information propagation and provide a basis for formulating intervention strategies.
[0076] 4. The present invention provides a method and system for intelligent public opinion analysis based on images and texts. The intervention strategy designed according to the propagation path and pattern can more specifically reduce or cut off the spread of rumors and alleviate their negative impact.
[0077] 5. The present invention provides a method and system for intelligent public opinion analysis based on images and texts. By quantifying the emotional expressions in social media content and analyzing its dissemination potential, it can better understand and manage the dissemination of information driven by emotions. By comparing and matching the consistency of text information and image content, it can more effectively identify and resist deceptive information such as deep fakes. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0079] Figure 1 It is a flow chart of the steps of the present invention;
[0080] Figure 2 It is a schematic diagram of the analysis of extracted information according to the present invention. DETAILED DESCRIPTION
[0081] The technical solution of the present invention will be more clearly and completely explained below through description of preferred embodiments of the present invention in combination with the accompanying drawings.
[0082] Glossary:
[0083] 1.API (Application Programming Interface): Application programming interface is a set of rules and definitions that specify how to interact with certain software applications or tools through program code.
[0084] 2.NLP (Natural Language Processing): Natural language processing is a branch of computer science and artificial intelligence that is dedicated to enabling computers to understand and process human language.
[0085] 3.NLTK(Natural Language Toolkit): A Python library for human language data processing.
[0086] 4. Spacy: A high-level natural language processing library for building information extraction or natural language understanding systems.
[0087] 5. TextBlob: Python library for processing text data and performing tasks such as sentiment analysis.
[0088] 6. scikitlearn, TensorFlow, PyTorch: These are popular frameworks and libraries in the field of machine learning and deep learning. Scikitlearn is mainly used for traditional machine learning algorithms, while TensorFlow and PyTorch are mainly used for deep learning.
[0089] 7. RandomForestClassifier: Random forest classifier is a classification method commonly used in machine learning.
[0090] 8.ROC curve (Receiver Operating Characteristic curve): The receiver operating characteristic curve is a graph used to show the performance of a classification model.
[0091] 9. Prophet: A library for time series forecasting developed by Facebook.
[0092] 10.MLflow: An open source machine learning lifecycle management library.
[0093] 11. Tableau, PowerBI: These are data visualization tools used to convert data into easy to understand graphics.
[0094] 12. Python, Pandas, NumPy: Python is a programming language, Pandas and NumPy are Python libraries used for data processing and scientific computing.
[0095] 13.NetworkX: A Python library for creating, manipulating complex network structures and studying their network dynamics.
[0096] 14.OpenCV (Open Source Computer Vision Library): An open source library for real-time computer vision.
[0097] 15.Apache Kafka,Apache Storm: These are tools for real-time data processing.
[0098] 16. React, Angular: JavaScript frameworks for front-end development.
[0099] 17.Flask, Django: These are Python web frameworks used for backend development.
[0100] like Figure 1 As shown, the present invention is:
[0101] Step S1: extracting the account’s posting history and user interaction data from the social media platform, and using this data to build a scoring model to evaluate the account’s credibility;
[0102] Step S2: Analyze the interactive relationship between users, construct a rumor propagation network diagram, and then apply network analysis technology to determine the key path of rumor propagation, including propagation nodes;
[0103] Step S3: Identify the emotional expressions in social media posts and estimate the potential influence of these emotional expressions in the social network based on the intensity of the emotions and user interaction data, so as to predict the scope of the emotional impact;
[0104] Step S4: Analyze and compare the information in the text and the content of the attached image in the same post to ensure that the information between the two modalities is consistent, so as to detect whether the information has been tampered with or is potentially deceptive;
[0105] Step S5: Integrate text and image data from social media and user behavior data to build a dynamic model to simulate the spread of rumors in social networks and predict the impact of rumors on user behavior, thereby providing a scientific basis for preventing the spread of rumors;
[0106] Step S6: Design an adaptive learning system to update model parameters in real time, adapt to the evolution of the social media environment, and maintain the high accuracy and efficiency of the model in detecting rumors and analyzing sentiment.
[0107] As a specific embodiment, it is as follows:
[0108] 1. Source credibility assessment
[0109] 1.1 Data Collection:
[0110] Get user data from social media platforms via API.
[0111] #Use the API to get user posts
[0112] user_posts=api.get_user_posts(user_id)
[0113] #Get user interactions, such as likes and comments
[0114] user_interactions=api.get_user_interactions(user_id)
[0115] #Get the user's follower network
[0116] user_network=api.get_user_followers(user_id)
[0117] These codes are used to obtain users' posts, interactions, and follower information through social media API interfaces.
[0118] 1.2 Feature extraction:
[0119] Calculate user posting frequency, content consistency, and interaction patterns.
[0120] #Calculate posting frequency
[0121] post_frequency=len(user_posts) / account_age
[0122] # Calculate content consistency
[0123] content_consistency=calculate_consistency(user_posts)
[0124] #Analyze interactive patterns
[0125] interaction_pattern=analyze_interactions(user_interactions)
[0126] These code snippets are used to extract features of users’ posting frequency, content consistency, and user interaction patterns.
[0127] 1.3 Credibility score calculation:
[0128] A machine learning model is used to predict credibility based on the extracted features.
[0129] #Use the trained machine learning model to predict credibility
[0130] credibility_score=trained_model.predict([post_frequency,content_consistency,interaction_pattern])
[0131] This code shows how to use a machine learning model to calculate a user’s credibility score based on extracted features such as posting frequency, content consistency, and interaction patterns.
[0132] 1.4 Real-time monitoring and updating:
[0133] Implement real-time monitoring and use streaming data processing techniques to update credibility scores.
[0134] #Real-time monitoring of user data
[0135] for real_time_data in data_stream:
[0136] update_score(real_time_data)
[0137] This code demonstrates how to use a real-time data stream to monitor and update a user's trustworthiness score.
[0138] 2. Tracking the spread of rumors
[0139] 2.1 Network construction:
[0140] Use graph theory to view users as nodes and interactions as edges.
[0141] #Use NetworkX to build a social network graph
[0142] import networkx as nx
[0143] G = nx.Graph()
[0144] G.add_nodes_from(user_list)
[0145] G.add_edges_from(interaction_list)
[0146] The NetworkX library is used here to build a social network graph, with users as nodes and interactions between users as edges of the graph.
[0147] 2.2 Path Identification:
[0148] Use graph search algorithms to trace the critical path.
[0149] #Use graph algorithms to find the shortest path
[0150] shortest_paths=nx.shortest_path(G, source='rumor_origin', weight='interaction_weight')
[0151] This code uses graph algorithms (such as Dijkstra's algorithm) to find the shortest path for the rumor to spread.
[0152] 2.3 Mode Analysis:
[0153] Identify and analyze the influence of key nodes (such as opinion leaders).
[0154] #Calculate the centrality of nodes in the graph
[0155] centrality_scores=nx.betweenness_centrality(G)
[0156] This code is used to calculate the centrality of each node (user) in a social network to identify key influential nodes.
[0157] 2.4 Intervention strategy formulation:
[0158] Design intervention strategies based on the results of pattern analysis.
[0159] #Design information intervention strategies based on analysis results
[0160] intervention_strategy=design_intervention(centrality_scores)
[0161] This code demonstrates how to design an intervention strategy for rumor spreading based on the centrality scores of nodes.
[0162] 3. Quantification of emotional influence
[0163] 3.1 Emotion Recognition:
[0164] Use NLP tools to perform sentiment analysis.
[0165] #Perform sentiment analysis on user posts
[0166] from textblob import TextBlob
[0167] sentiment_scores=[TextBlob(post).sentiment.polarity for post inuser_posts]
[0168] This code performs sentiment analysis on the user's posts using the TextBlob library and gives a sentiment polarity score for each post.
[0169] 3.2 Impact Rating:
[0170] Predict reach based on sentiment intensity and user engagement.
[0171] #Predict influence based on sentiment scores and interaction patterns
[0172] influence_score=predict_influence(sentiment_scores,interaction_pattern)
[0173] This code shows how to combine sentiment scores and user interaction patterns to predict the influence of a post.
[0174] 3.3 Sentiment Network Analysis:
[0175] Build an emotional communication network and analyze the group influence of emotions.
[0176] #Build and analyze the sentiment propagation network
[0177] sentiment_network=build_sentiment_network(G, sentiment_scores)
[0178] This code is used to build a social network based on sentiment scores and analyze the spread of sentiment in the network.
[0179] 3.4 Strategy Adjustment:
[0180] Adjust your strategy based on the analysis results.
[0181] #Adjust the communication strategy based on the results of sentiment analysis
[0182] adjust_strategy(sentiment_network,current
[0183] _events)
[0184] This code demonstrates how to adjust information dissemination strategies based on sentiment network analysis results.
[0185] 4. Cross-modal content consistency detection
[0186] 4.1 Feature Matching:
[0187] Compare the characteristics of text and image content.
[0188] #Matching features of text and image content
[0189] text_features=extract_text_features(text_data)
[0190] image_features=extract_image_features(image_data)
[0191] consistency_score=compare_features(text_features,image_features)
[0192] This code extracts and compares features of text and image content to determine their consistency.
[0193] 4.2 Semantic Analysis:
[0194] Conduct in-depth analysis of inconsistent information.
[0195] # Perform deep semantic analysis on inconsistent information
[0196] semantic_analysis_results=deep_semantic_analysis(consistency_score)
[0197] This code demonstrates how to perform deep semantic analysis of inconsistent content.
[0198] 4.3 Algorithm training:
[0199] Train the model using supervised learning.
[0200] #Train the model using supervised learning methods
[0201] trained_model=train_model(training_data)
[0202] This code shows how to use the training dataset to train a model to better identify content consistency in the future.
[0203] 4.4 Feedback loop:
[0204] Optimize models based on user feedback.
[0205] #Optimize the model based on user feedback
[0206] for feedback in feedback_loop:
[0207] update_model(trained_model,feedback)
[0208] This code shows how to optimize an existing model based on user feedback.
[0209] 5. Social Network Dynamics Modeling
[0210] 5.1 Data Integration:
[0211] Fusion of multimodal data.
[0212] #Integrate different types of data
[0213] integrated_data=integrate_data(text_data,image_data,interaction_data)
[0214] This code is used to integrate data from different sources, such as text, images, and interaction data, to build a comprehensive social network model.
[0215] 5.2 Model simulation:
[0216] Predict the effects through simulation experiments.
[0217] #Predicting the reaction of social networks through simulation experiments
[0218] simulation_results=simulate_model(integrated_data)
[0219] This code shows how to use aggregated data to simulate how a social network reacts to a specific event or information.
[0220] 5.3 Impact Assessment:
[0221] Assess the impact of information on the network.
[0222] #Evaluate the impact of information on social networks
[0223] impact_score=assess_impact(simulation_results)
[0224] This code is used to evaluate the impact of a particular piece of information or event on social network dynamics.
[0225] 5.4 Model iteration:
[0226] Update model parameters based on the feedback.
[0227] #Update model parameters based on actual feedback
[0228] update_model_parameters(model,real_world_data)
[0229] This code shows how to update and optimize the model parameters based on actual data and feedback.
[0230] 6. Adaptive learning and updating mechanism
[0231] 6.1 Continuous Learning:
[0232] Design models to fit new data.
[0233] #Online learning of the model on new data
[0234] for new_data in data_stream:
[0235] update_model_online(model,new_data)
[0236] This code shows how to enable the model to continuously learn and adapt to new data streams.
[0237] 6.2 Performance Monitoring:
[0238] Monitor model performance.
[0239] #Monitor the performance of the model
[0240] monitor_performance(model)
[0241] This code is used to track and monitor the performance of the model to ensure its accuracy and efficiency.
[0242] 6.3 Parameter Tuning:
[0243] Adjust hyperparameters regularly.
[0244] #Adjust model hyperparameters
[0245] tune_hyperparameters(model,validation_data)
[0246] This code shows how to use the validation dataset to tune the model's hyperparameters to improve its performance.
[0247] 6.4 Update strategy deployment:
[0248] Automate the deployment of new policies.
[0249] #Automatically deploy new strategies and model updates
[0250] deploy_strategy(model,new_policy)
[0251] This code shows how to automatically deploy new strategies and model updates in response to changes in the social media environment.
[0252] As a specific embodiment, step S1 is as follows:
[0253] We first obtain user authorization through the developer interface (API) of the social media platform, and then collect content posted by specific accounts, such as text posts, pictures, and interaction data between users, such as likes, comments, and reposts. The data collection process is automatic and completed by custom software designed by us (commonly known as crawlers), and the collected data is stored in a high-performance distributed database system in real time.
[0254] Our system extracts valuable information from this raw data. For text content, we use BERT, an advanced natural language processing model, to extract text features. The BERT model is able to understand the deep meaning of words in the text through a large corpus obtained through pre-training, which is crucial for understanding the content of user posts. At the same time, we also analyze user behavior patterns, such as the frequency of posting and the interaction between their posts and others. In addition, we use social network analysis tools such as Gephi to conduct in-depth analysis of users' social relationship graphs to find nodes that have important influence in social networks.
[0255] Next, we use the XGBoost algorithm to process these features and give each account a credibility score. The XGBoost algorithm is a tree-based optimization machine learning algorithm that can automatically handle nonlinear relationships between various features and has high processing efficiency for large-scale data sets. Through the trained model, we can give each account a credibility score, which reflects the credibility of the content published by the account.
[0256] Finally, to ensure that our rating system reflects the latest social media trends, we designed a real-time monitoring system. This system is built on Apache Kafka and can continuously receive data streams from social media. At the same time, using Spark Streaming, a real-time data processing technology, we can quickly analyze this data and update the credibility score of the account. In addition, we also integrated an online learning algorithm so that our model can update itself while continuously receiving new data to ensure the accuracy of the rating.
[0257] Through these steps, we can build an intelligent system that can understand the deep meaning of social media content and adjust in real time according to the dynamics of social networks, which is particularly important in the modern era of information explosion and frequent false news. Our system will provide users with a fast and accurate credibility assessment tool to help them identify and filter out untrustworthy information sources.
[0258] like Figure 2 As shown in FIG. 1 , it is a schematic diagram of step S2 and step S3 of the present invention. In the center of the image is an icon representing a celebrity account, surrounded by different icons representing tweets, comments, reposts, and likes. The flow from these social media interaction elements to the database is represented by arrows, symbolizing the data collection process on a specific topic in the past six months. Multiple arrows are drawn from the central character avatar, pointing to different icons and elements, indicating data flow and interaction. In the lower left corner, there is a mobile phone interface showing data and scores, which lists several user names and their corresponding scores, such as "2,5" and "2,4". The entire layout clearly shows the steps from social media to data storage.
[0259] As a specific embodiment, the following is an embodiment of intervening in the rumor propagation path and mode:
[0260] Suppose a piece of false information appears on social media and the rumor spreads quickly among a specific group of users.
[0261] Here are the steps:
[0262] Constructing an information dissemination network (step S21):
[0263] Using graph theory, we create a network graph with users as nodes and their interactions (e.g., retweets, comments) as edges.
[0264] The collected data includes users’ publishing behavior, forwarding links, comment interactions, etc.
[0265] Tracking critical paths and nodes (step S22):
[0266] Use network analysis tools, such as social network analysis software (e.g. Gephi or NetworkX), to identify the paths along which rumors spread.
[0267] Identify key nodes, such as highly active users or influencers with a large number of followers.
[0268] Identify the propagation mode (step S23):
[0269] Analyze the spread pattern of rumors, such as whether they spread virally or are concentrated in specific groups.
[0270] Assess the influence of key nodes and understand their role in rumor propagation.
[0271] Implement intervention strategy (step S24):
[0272] Targeted intervention: Targeted information intervention is carried out at key nodes, such as influencers or core communities. For example, accurate information is provided to them through private messages or public responses.
[0273] Rumor dissemination: Official rumor dissemination information is released on social media platforms, using the same dissemination mechanism as the original rumor, such as through the same social groups or using similar hashtags.
[0274] Partner Assistance: Work with social media platforms to leverage their algorithms and influence to promote disinformation.
[0275] Monitoring and adjustment: Continuously monitor the intervention effects and adjust the intervention strategy based on real-time data.
[0276] Through the above steps, we can effectively identify and intervene in the spread of rumors, minimize the impact of false information, and maintain the health of the social media environment. At the same time, this approach can help us understand and respond to similar situations that may occur in the future.
[0277] As a specific implementation method, a system of a graphic and text intelligent public opinion analysis method is applicable to the above-mentioned graphic and text intelligent public opinion analysis method, including a data collection module, a data processing and feature extraction module, a machine learning module, a network analysis module, a cross-modal analysis module, a real-time monitoring module, a front-end display and interactive interface, a back-end service module and an adaptive learning and updating module, which are as follows:
[0278] Data collection module: collect data using the API of social media platforms; store data in a database;
[0279] Data processing and feature extraction module: Use Python and its libraries for data cleaning and preprocessing; extract sentiment analysis and text features.
[0280] Machine Learning Module: Use the machine learning framework to build and train models; use Scikitlearn to implement classifiers or regression models and calculate credibility scores;
[0281] Network analysis module: Use graph theory library to construct and analyze social network structure; track and analyze information dissemination paths;
[0282] Cross-modal analysis module: Use deep learning for image processing; combine text and image data for consistency detection;
[0283] Real-time monitoring module: Use stream processing tools for real-time data processing; continuously update models and scores;
[0284] Front-end display and interactive interface: used to display analysis results and receive user feedback; use frameworks for front-end development;
[0285] Backend service module: Use frameworks such as Flask or Django to build backend services; process data requests, connect to databases and machine learning modules;
[0286] Adaptive learning and updating module: implements online learning algorithms to adapt to new data; monitors model performance and adjusts the model based on feedback
[0287] The above specific implementations are only descriptions of the preferred implementations of the present invention, and do not limit the protection scope of the present invention. Without departing from the design concept and spirit of the present invention, various modifications, substitutions and improvements made by ordinary technicians in this field to the technical solution of the present invention based on the text description and drawings provided by the present invention should all fall within the protection scope of the present invention. The protection scope of the present invention is determined by the claims.
Claims
1. A method for analyzing public opinion using images and texts, characterized in that: include: Step S1: extract the account posting history and user interaction data from the social media platform, and use this data to build a scoring model to evaluate the credibility of the account; the details are as follows: Step S11: Collect historical data of social media accounts, including published content, interactions, and follower networks; Step S12: extracting account behavior features, analyzing user network structure, identifying influential nodes and social relationship graphs; Step S13: Use machine learning algorithms to calculate credibility scores based on the extracted features, and combine time series analysis to monitor the changing trends of account behaviors; the details are as follows: Step S131: Write or use an existing API script to collect user data from the social media platform; store the collected data in a database, including post text, interaction number, and timestamp; Step S132: remove duplicate records, correct errors and missing values; use the NLP library to perform word segmentation, stem extraction, and stop word removal; Step S133: Calculate the features of each account and store the feature vector of each account for subsequent use; Step S134: Select a machine learning framework, divide the data set into a training set and a test set, and select and configure the algorithm: Step S135: training the model, evaluating the model performance, and using confusion matrix and ROC curve tools to evaluate the classification performance; Step S136: Apply the model to each account feature vector to generate a credibility score; Using probability estimation, give the probability of each account being judged as trustworthy or untrustworthy; Step S137: Analyze the time series data, including historical data, using statistical or machine learning methods to determine the stability and possible trend changes of account behavior based on the model prediction of step S135; Step S138: deploy the trained model to a server or cloud platform; implement regular model performance monitoring and update the model with new data; Step S14: The real-time data monitoring system continuously updates the credibility score and adjusts the credibility score according to the user's latest behavior through a feedback mechanism; Step S2: Analyze the interactive relationship between users, construct a rumor propagation network diagram, and then apply network analysis technology to determine the key path of rumor propagation, including propagation nodes; Step S3: Identify the emotional expressions in social media posts and estimate the potential influence of these emotional expressions in the social network based on the intensity of the emotions and user interaction data, so as to predict the scope of the emotional impact; Step S4: Analyze and compare the information of the text and the content of the attached image in the same post to ensure that the information between the two modalities is consistent, so as to detect whether the information has been tampered with or is potentially deceptive; Step S5: Integrate text and image data from social media and user behavior data to build a dynamic model to simulate the spread of rumors in social networks and predict the impact of rumors on user behavior, thereby providing a scientific basis for preventing the spread of rumors; Step S6: Design an adaptive learning system to update model parameters in real time, adapt to the evolution of the social media environment, and maintain the high accuracy and efficiency of the model in detecting rumors and analyzing sentiment.
2. According to claim 1, the method for analyzing public opinion through pictures and texts is characterized in that: Step S2 includes: Step S21: Use graph theory to construct an information dissemination network, with users as nodes and interactions as edges; Step S22: Track the key paths and nodes of rumor propagation through network analysis tools and algorithms; Step S23: Identify the propagation mode and analyze the influence of key nodes on the propagation; Step S24: Carry out information intervention or rumor-refuting strategies based on the propagation path and pattern, conduct targeted intervention on key nodes and paths, and cut off the spread of rumors at the lowest cost.
3. According to claim 1, the method for analyzing public opinion through pictures and texts is characterized in that: Step S3 includes: Step S31: using NLP tools to identify and extract emotional expressions in posts; Step S32: quantify the intensity and communication potential of emotional expression, and predict the communication range based on the emotional intensity and user interaction; Step S33: construct an emotion propagation network, analyze how emotions propagate in social networks, and evaluate the group influence and change trend of emotional attitudes; Step S34: Adjust the communication model and intervention measures based on the quantitative results of emotional influence, and design strategies to deal with emotional fluctuations and public opinion guidance.
4. According to claim 1, the method for analyzing public opinion through pictures and texts is characterized in that: Step S4 includes: Step S41: using a consistency detection algorithm to compare and match the consistency of text information and image content; Step S42: Performing deep semantic analysis on inconsistent information to identify potential fraudulent intentions; Step S43: using a supervised learning method to train a consistency detection algorithm to identify and mark the consistency of information; Step S44: Continuously optimize the consistency detection algorithm based on user feedback and expert verification.
5. According to claim 1, the method for analyzing public opinion through pictures and texts is characterized in that: Step S5 also includes: Step S51: integrating multimodal data and user behavior data to construct a dynamic model of the social network; Step S52: predicting the rumor propagation effect and the reaction of the social network through simulation experiments; Step S53: Evaluate the specific impact of specific information or rumors on network dynamics; Step S54: Update model parameters based on actual situation feedback to improve prediction accuracy.
6. The method for analyzing public opinion using pictures and texts according to claim 1, characterized in that: The feedback mechanism is designed as follows: Step S141: Setting up an automated script to periodically pull the latest account data using the social media API; Step S142: ensuring that the feature extraction script is automatically executed after each data collection; The feature extraction script should update the user feature record in the database; Step S143: Set a trigger to automatically run the model for scoring when new data arrives; use the new feature data to update the account's credibility score; Step S144: designing a user feedback interface to allow users to provide feedback on the credibility score, implementing a feedback collection API, and storing user feedback; Step S145: Write a calibration script to regularly calibrate the model based on new data and user feedback; use the calibrated model to perform scoring and compare with previous scores; Step S146: Implement a performance monitoring system to track the accuracy and recall of the model scoring; when performance degrades, automatically notify the administrator; Step S147: Design an automated process to automatically retrain the model when performance degrades or at regular time points; Ensure that new models are automatically deployed to the production environment after training is completed; Step S148: Use the model version control system to track model iterations; if a problem occurs with the new model, ensure that it can be quickly rolled back to the previous model version; Step S149: Develop a reporting system to generate performance reports regularly; Use visualization tools to present scoring and feedback results; Step S1410: Design maintenance processes, including code review, performance testing, and user feedback evaluation, and regularly optimize code and models.
7. A system for a method for analyzing public opinion using images and texts, applicable to a method for analyzing public opinion using images and texts as described in any one of claims 1 to 6, characterized in that: It includes data collection module, data processing and feature extraction module, machine learning module, network analysis module, cross-modal analysis module, real-time monitoring module, front-end display and interactive interface, back-end service module and adaptive learning and update module, as follows: Data collection module: collect data using the API of social media platforms; store data in a database; Data processing and feature extraction module: use Python and its libraries for data cleaning and preprocessing; extract sentiment analysis and text features; Machine Learning Module: Use the machine learning framework to build and train models; use Scikitlearn to implement classifiers or regression models and calculate credibility scores; Network analysis module: Use graph theory library to construct and analyze social network structure; Track and analyze information dissemination paths; Cross-modal analysis module: Use deep learning for image processing; combine text and image data for consistency detection; Real-time monitoring module: uses stream processing tools for real-time data processing; Continuously update models and scores; Front-end display and interactive interface: used to display analysis results and receive user feedback; use frameworks for front-end development; Backend service module: Use Flask or Django framework to build backend services; process data requests, connect to databases and machine learning modules; Adaptive learning and updating module: implements online learning algorithms to adapt to new data; Monitor model performance and adjust the model based on feedback.
Citation Information
Patent Citations
Microblog rumor recognizing method and system based on propagation structures
CN106354845A
Public opinion propagation force analysis method
CN112395513A
Method for discovering network public opinion theme and concerned user groups thereof
CN114003815A
Chinese rumor detection method based on graph convolution
CN115017887A
Social network rumor detection method based on emotion perception and graph convolutional network
CN116431760A
