A training method of an opinion root cause analysis model and an opinion root cause analysis method

By extracting features from the training data and performing multiple clustering processes, combined with the construction of a knowledge graph, the problem of low efficiency in public opinion root cause analysis was solved, achieving more efficient and accurate public opinion root cause analysis.

CN117009622BActive Publication Date: 2026-11-20ALIPAY (HANGZHOU) INFORMATION TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310893016.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-19
Publication Date
2026-11-20
Estimated Expiration
2043-07-19

AI Technical Summary

Technical Problem

The lack of effective intelligent identification solutions in existing technologies leads to inefficient and time-consuming root cause analysis of public opinion, and manual intervention is insufficient to meet the demand for rapid and accurate root cause analysis of public opinion.

Method used

By extracting features from multiple training datasets, performing multiple clustering processes, and constructing a knowledge graph, a public opinion root cause analysis model is trained and then analyzed by combining hybrid features and the knowledge graph.

Benefits of technology

It improves the accuracy and efficiency of public opinion root cause analysis, enabling faster and more accurate prediction of public opinion root causes, reducing the impact of noise, and providing richer prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117009622B_ABST
    Figure CN117009622B_ABST
Patent Text Reader

Abstract

The embodiment of the specification discloses a kind of public opinion root cause analysis model training method and root cause analysis method, it is related to natural language processing field.In the present specification, by extracting the multi-modal mixed features of multiple training data, the multiple training data are clustered, and the knowledge graph corresponding to the multiple training data related to public opinion root cause is constructed, so that the public opinion root cause analysis model is trained.Further, when analyzing data is analyzed, the multi-modal mixed features corresponding to the analyzed data are extracted based on the public opinion root cause analysis model and the knowledge graph is constructed, by the way of graph completion to the knowledge graph of analyzed data, the public opinion root cause of analyzed data is predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of natural language processing, and in particular to a training method for a public opinion root cause analysis model and a public opinion root cause analysis method. Background Technology

[0002] Public opinion (referred to as "public sentiment") refers to the social attitudes held by the public, as the subject, towards social managers, enterprises, individuals, and other organizations, and their social and moral orientations, within a specific social space, surrounding the occurrence, development, and changes of mediating social events. It is the sum of beliefs, attitudes, opinions, and emotions expressed by a large number of people regarding various phenomena and issues in society. In the context of digital commercialization and open ecosystems, more and more service providers are offering services to users using mini-programs and / or HTML5 technologies. Behind this thriving digital ecosystem, the number of public opinion issues raised by users regarding mini-programs or / HTML5 is also increasing daily. Public sentiment serves as an effective mechanism for identifying online issues. Rapid and accurate root cause analysis of user-reported public sentiment allows for targeted measures based on these root causes, helping to control the scope and extent of the problem's impact.

[0003] However, there is currently no effective intelligent identification solution for root cause analysis of public opinion. Manual root cause analysis is not only inefficient but also time-consuming. Summary of the Invention

[0004] This specification provides a training method and a root cause analysis method for a public opinion root cause analysis model, which can enhance the accuracy and efficiency of public opinion root cause analysis. The technical solution is as follows:

[0005] Firstly, embodiments of this specification provide a training method for a public opinion root cause analysis model, the method comprising: extracting features from multiple training data to obtain mixed features corresponding to each training data;

[0006] Based on the mixed features corresponding to each of the training data, the multiple training data are subjected to multiple clustering processes to obtain at least one clustering result, and the clustering result is a dataset including at least one of the training data.

[0007] Based on the mixed features corresponding to at least one of the training data included in each of the clustering results, a knowledge graph related to the root causes of public opinion is obtained for each of the clustering results.

[0008] Based on at least one clustering result and the knowledge graph corresponding to each clustering result, train the public opinion root cause analysis model to be trained until the public opinion root cause analysis model is obtained.

[0009] Secondly, embodiments of this specification provide a method for analyzing the root causes of public opinion, the method comprising:

[0010] Obtain the data to be analyzed;

[0011] The data to be analyzed is subjected to feature extraction based on the root cause analysis model to obtain the mixed features corresponding to the data to be analyzed. The root cause analysis model is a model trained using the training method of the root cause analysis model as described in the first aspect.

[0012] Based on the mixed features corresponding to the data to be analyzed, the data to be analyzed is matched with at least one clustering result included in the public opinion root cause analysis model to obtain the target clustering result corresponding to the data to be analyzed.

[0013] Based on the public opinion root cause analysis model and the knowledge graph corresponding to the target clustering results, a knowledge graph related to the public opinion root causes corresponding to the data to be analyzed is obtained.

[0014] Thirdly, embodiments of this specification provide a training device for a public opinion root cause analysis model, the device comprising:

[0015] The feature extraction module is used to extract features from multiple training data to obtain the mixed features corresponding to each training data.

[0016] The multiple clustering module is used to perform multiple clustering processes on the multiple training data according to the mixed features corresponding to each of the training data to obtain at least one clustering result, wherein the clustering result is a dataset including at least one of the training data.

[0017] The graph construction module is used to obtain a knowledge graph related to the root causes of public opinion corresponding to each clustering result based on the mixed features corresponding to at least one of the training data included in each clustering result.

[0018] The model training module is used to train the public opinion root cause analysis model to be trained based on the at least one clustering result and the knowledge graph corresponding to each clustering result, until the public opinion root cause analysis model is obtained.

[0019] Fourthly, embodiments of this specification provide a public opinion root cause analysis device, the device comprising:

[0020] The data acquisition module is used to acquire the data to be analyzed.

[0021] The feature extraction module is used to extract features from the data to be analyzed according to the root cause analysis model of public opinion, and obtain the mixed features corresponding to the data to be analyzed. The root cause analysis model of public opinion is a model trained by the training method of the root cause analysis model of public opinion as described in the first aspect.

[0022] The feature matching module is used to perform feature matching between the data to be analyzed and at least one clustering result included in the public opinion root cause analysis model based on the mixed features corresponding to the data to be analyzed, so as to obtain the target clustering result corresponding to the data to be analyzed.

[0023] The root cause analysis module is used to obtain a knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed, based on the public opinion root cause analysis model and the knowledge graph corresponding to the target clustering results.

[0024] Fifthly, embodiments of this specification provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.

[0025] Sixthly, embodiments of this specification provide a computer program product that stores multiple instructions adapted for loading by a processor and executing the above-described method steps.

[0026] In a seventh aspect, embodiments of this specification provide an electronic device that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to execute the above-described method steps.

[0027] The beneficial effects of the technical solutions provided in some embodiments of this specification include at least the following:

[0028] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results. Attached Figure Description

[0029] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0030] Figure 1 This is a schematic diagram of the architecture of a training method for a public opinion root cause analysis model provided in the embodiments of this specification;

[0031] Figure 2 This is a flowchart illustrating a training method for a public opinion root cause analysis model provided in the embodiments of this specification;

[0032] Figure 3 This is a schematic diagram of a hybrid feature extraction process provided in the embodiments of this specification;

[0033] Figure 4 This is a schematic diagram of a multiple clustering process provided in the embodiments of this specification;

[0034] Figure 5 This is a schematic diagram of a knowledge graph construction process provided in the embodiments of this specification;

[0035] Figure 6 This is a flowchart illustrating a training method for a public opinion root cause analysis model provided in the embodiments of this specification;

[0036] Figure 7 This is a schematic diagram of a training image processing flowchart provided in the embodiments of this specification;

[0037] Figure 8 This is a flowchart illustrating a method for analyzing the root causes of public opinion provided in the embodiments of this specification.

[0038] Figure 9 This is a flowchart illustrating a method for analyzing the root causes of public opinion provided in the embodiments of this specification.

[0039] Figure 10 This is a schematic diagram of the structure of a training device for a public opinion root cause analysis model provided in the embodiments of this specification;

[0040] Figure 11 This is a schematic diagram of the structure of a public opinion root cause analysis device provided in the embodiments of this specification;

[0041] Figure 12 This is a schematic diagram of the structure of an electronic device provided in the embodiments of this specification. Detailed Implementation

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

[0043] In the description of this specification, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise expressly specified and limited, "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. Those skilled in the art can understand the specific meaning of the above terms in this specification based on the specific circumstances. Furthermore, in the description of this specification, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0044] The present specification will now be described in detail with reference to specific embodiments.

[0045] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in the embodiments of this specification are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the object characteristics, interactive behavior characteristics, and user information involved in this specification were all obtained under full authorization.

[0046] Public opinion (or simply "public sentiment") refers to the social attitudes held by the public, as the subject, towards social managers, enterprises, individuals, and other organizations, and their social and moral orientations, within a specific social space, surrounding the occurrence, development, and changes of mediating social events. It is the sum of beliefs, attitudes, opinions, and emotions expressed by a large number of people regarding various phenomena and issues in society. The root cause of public sentiment can be understood as the reason for the public opinion surrounding a particular product.

[0047] In one embodiment, such as Figure 1 The diagram shown illustrates the architecture of a training method for a public opinion root cause analysis model proposed in this specification. This architecture includes: a public opinion root cause analysis server 101 and multiple electronic devices that transmit training data or data to be analyzed related to public opinion. These electronic devices include at least electronic device 1021, electronic device 1022, and electronic device 1023. It is understood that... Figure 1 The number of public opinion root cause analysis server 101 and electronic devices shown is for illustrative purposes only, and the embodiments in this specification do not impose any limitations on them.

[0048] The public opinion root cause analysis server 101 can be understood as one server or a cluster of multiple servers. The public opinion root cause analysis server 101 is used to receive requests or information through multiple configured interfaces, and to provide corresponding data or services based on the content of the requests. These multiple servers can be multiple physical servers, which are hardware-independent; or multiple servers can be multiple virtual servers, which are deployed in the same hardware resource pool. The deployment methods of the virtual servers include, but are not limited to, VMware, VirtualBox, and Virtual PC.

[0049] Electronic devices include, but are not limited to, physical or virtual servers, mobile stations (MS), mobile terminals, mobile phones, handsets and portable equipment, Bluetooth headsets, smartwatches, etc., and can communicate with one or more core networks via a radio access network (RAN). It is understood that the embodiments in this specification do not limit the types of electronic devices described above.

[0050] In the embodiments of this specification, a display device may also be installed on the electronic device. This display device can be any device capable of displaying functions, such as a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), or a plasma display panel (PDP). Users can use the display device on the electronic device to view error messages when applications or programs malfunction, and to send commands to the electronic device through the display device. For example, commands can be sent to the electronic device by long-pressing, clicking, or double-clicking on the display device. These commands may include sending public opinion data indicating that the target application is experiencing operational errors to the public opinion root cause analysis server 101 via the electronic device.

[0051] The public opinion root cause analysis server 101, electronic devices 1021, 1022, and 1023 can communicate through communication links established based on communication protocols, such as gRPC. gRPC is a high-performance, general-purpose, open-source Remote Procedure Call (RPC) framework primarily designed for mobile application development and based on the HTTP / 2 protocol standard. It is developed based on the Protocol Buffers (PB) serialization protocol and supports numerous programming languages. Alternatively, the communication link can be a wireless or wired communication link. For example, wired communication links include fiber optic cables, twisted-pair cables, or coaxial cables, while wireless communication links include Bluetooth, Wi-Fi, or microwave communication links.

[0052] The public opinion root cause analysis server 101 is used to receive public opinion data sent by users through electronic devices, and to execute a training method for a public opinion root cause analysis model or a public opinion root cause analysis method based on the public opinion data. Public opinion data includes application or program error messages. In the embodiments of this specification, both training data and data to be analyzed are public opinion data. The difference is that the training data for training the public opinion root cause analysis model includes annotation information, which is related to the public opinion root causes of the training data. It is understood that the public opinion root cause analysis server 101, electronic devices 1021, 1022, and 1023 also possess other service capabilities and functions to complete the tasks described in the following embodiments. For example, the public opinion root cause analysis server 101 also provides portal services, resource management services, and CI / CD services, etc.

[0053] In one embodiment, such as Figure 2 The diagram shown illustrates a training method for a public opinion root cause analysis model proposed in this specification. This method can be implemented using a computer program and can run on a training device for a public opinion root cause analysis model based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone utility application.

[0054] Specifically, the training method for this public opinion root cause analysis model includes:

[0055] S102. Extract features from multiple training data to obtain the mixed features corresponding to each training data.

[0056] The training data consists of public opinion data including labeled information related to the root causes of public opinion. The labeled information is manually added, meaning the training data contains public opinion data for which the root cause analysis results are known. This manual trains the public opinion root cause analysis model using training data with known results, thereby enabling root cause analysis of data with unknown root causes. It is understood that the amount of training data in this manual is substantial; for example, the aforementioned training data sets total 50,000 samples.

[0057] In this specification, hybrid features refer to feature information extracted through different feature extraction methods or from different types of information. Because a single feature can only characterize one aspect of the training data, it often fails to comprehensively represent the training data. Therefore, the accuracy of a public opinion root cause analysis model trained based on a single feature is low, and it may even contain significant flaws. However, in the embodiments of this specification, by extracting hybrid features corresponding to each training data point, the ability to represent the training data is enhanced, thereby improving the accuracy of using the public opinion root cause analysis model to perform public opinion root cause analysis on the training data.

[0058] Specifically, in this embodiment, feature extraction is performed based on training data including labeled information to obtain mixed features of image features and text features from the training data. For example... Figure 3 As shown, Figure 3 This is a schematic diagram of a hybrid feature extraction process provided in an embodiment of this specification. This embodiment uses training data 101 as an example. Training data 101 includes a training image 1011 and training text 1012, and training data 101 corresponds to annotation information 102. The annotation information 102 corresponding to training data 101 includes at least an error result 1021, an error code 1022, and an error type 1023. The error type 1023 represents the type of error encountered by the application or program corresponding to the training data 101; for example, error type 1023 is "JS error". The error result 1021 represents the result of the error encountered by the application or program corresponding to the training data 101; for example, error result 1021 is "Cannot read property". The error code 1022 is the code corresponding to the preset error type when the application or program encounters an error; for example, error code 1022 is "H5_AL_PAGE_JSERROR".

[0059] It is understood that the training data 101, including training image 1011 and training text 1012, is for illustrative purposes only. This specification also includes training data consisting only of training images and training data consisting only of training text. The methods for extracting mixed features from the above training data can refer to the procedures for extracting image features 103 and extracting text features 104, respectively.

[0060] The training data 101, including training image 1011 and training text 1012, is preprocessed. Features are then extracted from the preprocessed training image 1011 and training text 1012 respectively, yielding image feature 103 for training image 1011 and text feature 104 for training text 102. Furthermore, image feature 103 and text feature 104 are fused to obtain the fusion feature 105 corresponding to the training data 101.

[0061] In this embodiment, image features 103 and text features 104 are extracted using multiple classifiers. For example, image features 103 are extracted using a ResNET152 residual network model, and text features 104 are extracted using a BERT bidirectional encoder model. Alternatively, text features 104 and image features 103 are extracted using an XGBoost classifier, a LigthGBM classifier, or a GBDT classifier, respectively. Another example is the extraction of image features 103 and text features 104 using a combination of multiple classifiers. For instance, features of training text 1012 are extracted using an XGBoost classifier and a LigthGBM classifier. The XGBoost classifier employs a level-wise splitting strategy, while the LigthGBM classifier employs a leaf-wise strategy. In this embodiment, image features and text features are extracted using different classifiers or combinations of classifiers, improving the accuracy of image and text feature extraction and thus enhancing the expressive power of the mixed features on the training data.

[0062] After obtaining image feature 103 and text feature 104, the image feature 103 and text feature 104 are fused to obtain the mixed feature 105 corresponding to the training data 101. For example, after obtaining the embedding vector representation corresponding to image feature 103 and the embedding vector representation of text feature 104, the two embedding vector representations are fused to obtain a fused vector, which is also the mixed feature 105.

[0063] In one embodiment, Figure 3 The preprocessing shown includes image preprocessing and text preprocessing. Image preprocessing includes steps such as noise reduction, grayscale conversion, threshold segmentation, and text recognition for the training image 1011. For example, the contrastive learning model simCLR is used to train the training images, resulting in image features 103 that bring similar images closer together and push dissimilar images further apart.

[0064] Text preprocessing includes steps such as word cleaning and semantic analysis of the training text 1012. Specifically, semantic analysis is a technique for summarizing and analyzing textual information. By analyzing the textual information, the core key content is extracted. Semantic analysis of the training text 1012 is used to determine the keywords corresponding to the training text 1012, and then feature extraction is performed on the keywords to obtain textual features 104. This can improve the expressive ability of the extracted textual features 104 to represent the training text 1012.

[0065] For example, in training text 1012, the same word can have different meanings in different contexts, thus requiring entity disambiguation. The purpose of entity disambiguation is to assign the same word to different entities based on its context. For instance, JMS in a basketball context can be identified as an NBA player, while in a movie-related context it can be identified as a movie director. Similarly, in practical applications, there may be situations where two words correspond to the same entity, such as "Beijing" and "the capital of the motherland." Although these are two different entities literally, they actually refer to the same entity. Therefore, entity resolution is needed for multiple candidate entities in training text 1012. Co-reference resolution is also an important step in preprocessing. In training text 1012, there are usually many pronouns such as "he," "it," and "they," and preprocessing also needs to determine the entity corresponding to each pronoun. For example, in the training text 1012, "The homepage of the mini-program cannot be opened, it is black screened," the word "it" can be identified as referring to "webpage" rather than "mini-program" after referential resolution. Preprocessing such as entity disambiguation, entity normalization, and referential resolution can improve the expressive power of the extracted text features in representing the training text, thereby improving the expressive power of the resulting mixed feature representation training data.

[0066] S104. Based on the mixed features corresponding to each training data, perform multiple clustering processes on multiple training data to obtain at least one clustering result.

[0067] The clustering result is a dataset that includes at least one training data point. In other words, through multiple clustering processes, multiple training data points are clustered into at least one dataset, and the mixed features of the multiple training data points in each dataset have similarity. Since the embodiments of this specification use mixed features that include at least image features and text features, performing multiple clustering processes on the training data based on the mixed features can improve the clustering effect of clustering multiple training data points and improve the accuracy of the at least one clustering result obtained.

[0068] Specifically, such as Figure 4 As shown, Figure 4 This is a schematic flowchart of a multiple clustering process provided in an embodiment of this specification. Multiple training data include at least training data 2011, training data 2012, training data 2013, etc. And after S102, the mixed features corresponding to each training data are obtained, such as... Figure 4 As shown, training data 2011 corresponds to mixed feature 2021, training data 2012 corresponds to mixed feature 2022, and training data 2013 corresponds to mixed feature 2023.

[0069] Based on the mixed features corresponding to each training data point, clustering is performed on multiple training data points to obtain at least one preliminary clustering result. This at least one preliminary clustering result includes at least preliminary clustering result 2031 and preliminary clustering result 2032. Each preliminary clustering result includes at least one training data point, such as... Figure 4 As shown, the preliminary clustering result 2031 includes at least training data 2011, training data 2013, training data 2015, training data 2016, and training data 2018. This can be understood as... Figure 4 The number of preliminary clustering results and the amount of training data included in each preliminary clustering result are for illustrative purposes only, and this specification does not impose any restrictions on them.

[0070] Furthermore, based on multiple preliminary clustering results, at least one training data included in each preliminary clustering result is clustered to obtain at least one clustering result corresponding to each preliminary clustering result. For example, training data 2011, 2013, 2015, 2016, and 2018, which are at least included in preliminary clustering result 2031, are clustered to obtain multiple clustering results corresponding to preliminary clustering result 2031. These multiple clustering results corresponding to preliminary clustering result 2031 include at least clustering result 2041, clustering result 2042, and clustering result 2043, where clustering result 2042 includes training data 2013 and training data 2015, and clustering result 2043 includes training data 2018. Each clustering result also includes the annotation information corresponding to each training data. For example... Figure 4 As shown, clustering result 2041 includes training data 2011 and training data 2016. Training data 2011 corresponds to annotation information 2051, and training data 2016 corresponds to annotation information. Clustering result 2042 includes at least annotation information 2052, and clustering result 2043 includes at least annotation information 2053. This can be understood as... Figure 4 The number of clustering results and the amount of training data included in each clustering result are for illustrative purposes only, and this specification does not impose any restrictions on them.

[0071] In this embodiment, the method of multiple clustering processes can be a clustering algorithm or a classification algorithm in machine learning, thereby performing clustering processing on multiple training data to obtain multiple clustering results. The clustering processing can also be any applicable clustering algorithm that can be conceived by those skilled in the art, such as K-means clustering, DBSCAN clustering, quantum clustering, or any applicable classification algorithm that can be conceived by those skilled in the art, such as linear regression, logistic regression, KNN, support vector machines, etc.

[0072] S106. Based on the mixed features corresponding to at least one training data included in each clustering result, obtain the knowledge graph related to the root causes of public opinion corresponding to each clustering result.

[0073] A knowledge graph is a semantic network that reveals the relationships between tags. In this specification, the knowledge graph corresponding to each clustering result includes at least one tag related to the root cause of public opinion. This tag related to the root cause of public opinion is obtained through the hybrid features and annotation information corresponding to at least one training data included in each clustering result.

[0074] like Figure 5 As shown, Figure 5 This is a schematic diagram of a knowledge graph construction process provided in the embodiments of this specification. Figure 5 Taking cluster result 301 from multiple clustering results as an example, the method for constructing the knowledge graph corresponding to other clustering results can be found in [link to relevant documentation]. Figure 5 Clustering result 301 includes at least training data 3011 and training data 3012, etc.; the annotation information corresponding to clustering result 302 includes at least annotation information 3021 and annotation information 3022, etc.; the mixed feature 303 corresponding to clustering result 302 includes at least mixed feature 3031 and mixed feature 3032. Among these, training data 3011, annotation information 3021, and mixed feature 3031 correspond one-to-one; training data 3012, annotation information 3022, and mixed feature 3032 correspond one-to-one. It is understandable that... Figure 5 The amount of training data included in the clustering results is for illustrative purposes only, and this specification does not impose any restrictions on it. The training data in the clustering results correspond to the annotation information and mixed features.

[0075] Furthermore, based on the annotation information and hybrid features corresponding to clustering result 301, a knowledge graph is constructed, resulting in Knowledge graph 304 corresponding to clustering result 301. Knowledge graph 304 includes multiple labels related to the root causes of public opinion, such as... Figure 5 As shown, the knowledge graph 304 includes the feedback intention (Cls intention3041), application identifier (App id 3042), error type (Type 3044), error code (Code 3045), image feature (Image 3046), text feature (Content 3047), and feedback topic (Dm subject 3048) corresponding to the clustering result 301, and there is a hierarchical relationship between the multiple tags. It is understandable that... Figure 5 The knowledge graph 304 corresponding to the clustering results is for illustrative purposes only, and this specification does not impose any restrictions on it.

[0076] Specifically, firstly, the multiple mixed features corresponding to clustering result 301 are fused to obtain the fused feature corresponding to clustering result 301. The fusion method can be to calculate the average value of the fused features represented by multiple vectors to obtain the fused feature corresponding to clustering result 301.

[0077] Secondly, after obtaining the fusion features and annotation information 302 corresponding to clustering result 301, the entity meanings of the fusion features and annotation information 302 corresponding to clustering result 301 are extracted to generate their respective labels, as well as the hierarchical relationships between multiple labels. Entity extraction, also known as named entity recognition (NER), refers to automatically identifying named entities from fusion features and annotation information. For example, for annotation information 3021, the error result ErrorMag, error code Code, and error type Type included in annotation information 3021 can be directly used as entities to generate labels. For the text "The homepage of the mini-program is black and cannot be opened", entity extraction can obtain the entities "homepage", "black screen", and "mini-program identifier ID" as labels. After obtaining multiple labels, since multiple labels are a series of discrete named entities, it is necessary to determine the association relationships between multiple labels through relation extraction. Only by linking multiple labels through relations can a network-structured knowledge graph be formed. For example, taking the text "The homepage of the mini program is black and cannot be opened" as an example, the three tags "mini program ID", "homepage" and "black screen" are in a progressive relationship.

[0078] Finally, based on multiple labels and the relationships between them, a knowledge graph corresponding to the clustering results is generated. The annotation information 302 is also converted into a vector representation similar to the fusion features. Then, the similarity between multiple vector representations is calculated, and vectors with similarity greater than a threshold are identified as similar vectors. Combining the relationships between multiple labels and the similarity between multiple vectors, the multiple labels corresponding to each vector are connected and arranged to generate a knowledge graph like... Figure 5 The knowledge graph 304 corresponding to clustering result 301 shown.

[0079] It is understood that this specification may also include other methods for obtaining knowledge graphs based on the mixed features corresponding to at least one training data included in the clustering results, such as constructing them using some known knowledge graph construction models.

[0080] S108. Based on at least one clustering result and the knowledge graph corresponding to the clustering result, train the public opinion root cause analysis model to be trained until the public opinion root cause analysis model is obtained.

[0081] In this embodiment, a knowledge base can be constructed based on the knowledge graphs corresponding to each clustering result. A knowledge base can be understood as a knowledge-based and intelligent system composed of multiple knowledge graphs; it is a structured, easy-to-operate, easy-to-use, comprehensive, and organized knowledge cluster. The constructed knowledge base can provide greater assistance in training the public opinion root cause analysis model and in performing public opinion root cause analysis on the data to be analyzed.

[0082] The public opinion root cause model to be trained includes at least multiple classifiers for feature extraction from each training data set, clustering algorithms or models for multiple clustering processes of each training data set, and algorithms or models for constructing a knowledge graph. The public opinion root cause model to be trained is then trained using at least one clustering result and the corresponding knowledge graph until a preset number of training rounds are reached, or the training effect meets expectations. This yields a public opinion root cause analysis model, which is then used to perform public opinion root cause analysis on the data to be analyzed.

[0083] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0084] In one embodiment, such as Figure 6 The diagram shown illustrates a training method for a public opinion root cause analysis model proposed in this specification. This method can be implemented using a computer program and can run on a training device for a public opinion root cause analysis model based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone utility application.

[0085] Specifically, the training method for this public opinion root cause analysis model includes:

[0086] S202. Obtain multiple training data sets, each including training images and / or training text.

[0087] Multiple training data sets are acquired, including any legitimate acquisition method, whether active or passive. For example, user-uploaded public opinion data via electronic devices can be labeled by technical personnel to obtain training data containing the labeling information. Each training data set includes training images and / or training text. In other words, the training data is divided into three types: first training data including both training images and training text, second training data including only training images, and third training data including only training text.

[0088] S204. Based on multiple training data, extract the image features and text features corresponding to each training data.

[0089] In one embodiment, based on target training data that includes at least training images, threshold segmentation is performed on the training images in the target training data to obtain segmented images corresponding to the training images in the target training data; based on target training data that includes at least segmented images, image features and text features corresponding to target training data that includes at least segmented images are extracted.

[0090] like Figure 7 As shown, Figure 7 This is a schematic flowchart illustrating a training image processing method provided in an embodiment of this specification. The training image 401 included in the target training data is processed into grayscale to obtain a grayscale image 402 corresponding to training image 401. Threshold segmentation is performed on grayscale image 402 to obtain a binary image 403. Contour drawing is performed on binary image 403 to obtain a contour image 404 with the contour corresponding to the labeled text content. Contour image 404 is segmented to obtain a segmented image 405. OCR text recognition is performed on segmented image 405 to obtain the text region 406 corresponding to training image 401. Based on the text region 406 corresponding to training image 401 and training image 401, the image features and text features corresponding to the training data are obtained.

[0091] In this embodiment, the training images in the training data are preprocessed and subjected to text recognition to obtain text recognition results that effectively reflect the image features. This removes the interference of a large amount of background information in the training images on the text recognition results and improves the accuracy of text feature and image feature extraction.

[0092] In one embodiment, the method for obtaining image features and text features is as follows: based on target training data that includes at least segmented images, image features and text features corresponding to the target training data that includes at least segmented images are extracted using multiple feature classifiers. For example, image features 103 are extracted using a ResNET152 residual network model, and text features 104 are extracted using a BERT bidirectional encoder model. Another example is the extraction of text features 104 and image features 103 using an XGBoost feature classifier, a LigthGBM feature classifier, or a GBDT classification system. Yet another example is the extraction of image features 103 and text features 104 using a combination of multiple feature classifiers. For example, feature extraction is performed on training text 1012 using an XGBoost feature classifier and a LigthGBM feature classifier. The XGBoost feature classifier employs a level-wise splitting strategy, while the LigthGBM feature classifier employs a leaf-wise strategy. In this embodiment, image features and text features are extracted using different feature classifiers or combinations of feature classifiers, improving the accuracy of image and text feature extraction and thus enhancing the expressive power of the mixed features on the training data.

[0093] Since training data is divided into different types, the methods for feature extraction for different types of training data are not entirely the same. Specifically, based on the first training data, which includes training images and training text, image features and text features of the training images and text features of the training text are extracted from the first training data; based on the image features and text features of the training images and text features of the training text, a mixed feature of the first training data is obtained.

[0094] For example, based on second training data including training images, image features and text features of the training images in the second training data are extracted; based on the image features and text features of the training images in the second training data, the mixed features of the second training data are obtained. For the method steps of extracting image features and text features, see S102 and... Figure 3 This will not be elaborated upon here.

[0095] In this embodiment, feature extraction is performed using different processes for different types of training data. This ensures that the image features and text features corresponding to the training data are obtained. Based on the image features and text features, the mixed features corresponding to the training data are obtained, thereby improving the expressive power of the mixed features on the training data.

[0096] S206 obtains the mixed features of the training data based on the image and text features corresponding to each training data.

[0097] See S102 and Figure 3 This will not be elaborated upon here.

[0098] S208. Perform the first clustering process based on the image features in the mixed features corresponding to each training data to obtain at least one preliminary clustering result.

[0099] The initial clustering result is a dataset including at least one training data point. Based on the image features in the mixed features corresponding to each training data point, a first clustering process is performed to obtain at least one initial clustering result. See [link to documentation]. Figure 4 As shown. In Figure 4 In this process, a first clustering process is performed on multiple training data to obtain at least one preliminary clustering result. This at least one preliminary clustering result includes at least preliminary clustering result 2031 and preliminary clustering result 2032. Each preliminary clustering result includes at least one training data point, such as... Figure 4 As shown, the preliminary clustering result 2031 includes at least training data 2011, training data 2013, training data 2015, training data 2016, and training data 2018.

[0100] S210. Based on the mixed features of Chinese characters corresponding to at least one training data included in each preliminary clustering result, perform a second clustering process to obtain at least one clustering result corresponding to each preliminary clustering result.

[0101] Furthermore, based on multiple preliminary clustering results and the mixed feature Chinese character features corresponding to at least one training data included in each preliminary clustering result, clustering processing is performed on at least one training data included in each preliminary clustering result to obtain at least one clustering result corresponding to each preliminary clustering result. For example, as Figure 4 As shown, a second clustering process is performed on the preliminary clustering result 2031 to obtain multiple clustering results corresponding to the preliminary clustering result 2031. These multiple clustering results corresponding to the preliminary clustering result 2031 include at least clustering result 2041, clustering result 2042, and clustering result 2043.

[0102] In one embodiment, the clustering algorithm corresponding to the first clustering process is DBSCAN clustering, and the clustering algorithm corresponding to the second clustering process is K-means clustering. In this embodiment, performing multiple clustering processes on the training data based on mixed features can improve the clustering effect of clustering multiple training data and improve the accuracy of at least one clustering result.

[0103] S212. Based on the mixed features corresponding to at least one training data included in each clustering result, obtain multiple labels related to the root causes of public opinion corresponding to each clustering result.

[0104] like Figure 5As shown, a knowledge graph is constructed based on the annotation information and hybrid features corresponding to clustering result 301, resulting in Knowledge graph 304. First, multiple hybrid features corresponding to clustering result 301 are fused to obtain the fused features corresponding to clustering result 301. Second, after obtaining the fused features and annotation information 302 corresponding to clustering result 301, entity meanings are extracted from the fused features and annotation information 302 to generate corresponding labels, as well as the hierarchical relationships between multiple labels. See details... Figure 5 This will not be elaborated upon here.

[0105] S214. Based on the multiple labels corresponding to each clustering result, obtain the knowledge graph corresponding to each clustering result.

[0106] Finally, based on multiple labels and the relationships between them, a knowledge graph corresponding to the clustering results is generated. For example... Figure 5 As shown, the knowledge graph 304 includes multiple tags related to the root causes of public opinion, including at least the feedback intention Cls intention3041, application identifier App id 3042, error type Type3044, error code Code3045, image feature Image3046, text feature Content3047, and feedback topic Dm subject3048 corresponding to the clustering result 301, and there is a hierarchical relationship between the multiple tags.

[0107] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0108] In one embodiment, such as Figure 8The diagram shown is a flowchart of a public opinion root cause analysis method proposed in this specification. This method can be implemented using a computer program and can run on a public opinion root cause analysis device based on the von Neumann architecture. This computer program can be integrated into applications or run as a standalone tool application.

[0109] Specifically, this root cause analysis method for public opinion includes:

[0110] S302. Obtain the data to be analyzed.

[0111] Acquire the data to be analyzed, which can be obtained through any legitimate method, whether active or passive. For example, when a user encounters a runtime error while using a mini-program, they can upload the corresponding public opinion data via their electronic device.

[0112] S304. Based on the root cause analysis model of public opinion, feature extraction is performed on the data to be analyzed to obtain the mixed features corresponding to the data to be analyzed.

[0113] This public opinion root cause analysis model is based on Figures 2-6 The steps shown are to train the root cause analysis model of public opinion, and the processor extracts features from the data to be analyzed based on the root cause analysis model to obtain the mixed features corresponding to the data to be analyzed. For example... Figure 8 As shown, Figure 8 This is a flowchart illustrating a public opinion root cause analysis method provided in an embodiment of this specification. The public opinion root cause analysis model obtains a mixed feature 502 corresponding to the data to be analyzed 501. This mixed feature 502 includes image features and text features corresponding to the data to be analyzed 501.

[0114] S306. Based on the mixed features corresponding to the data to be analyzed, perform feature matching between the data to be analyzed and at least one clustering result included in the public opinion root cause analysis model to obtain the target clustering result corresponding to the data to be analyzed.

[0115] The public opinion root cause analysis model includes at least one clustering result, and each clustering result corresponds to a fusion feature. The method for obtaining the fusion feature corresponding to each clustering result is as follows: each clustering result includes at least one training data corresponding to a mixed feature. The average value of the at least one mixed feature corresponding to the clustering result is calculated to obtain the fusion feature corresponding to each clustering result, which is also the central feature.

[0116] like Figure 9As shown, the public opinion root cause analysis model includes at least clustering results 5031 and 5032, etc., and clustering result 5031 includes at least training data 5041 and 5042, etc. The fusion feature corresponding to clustering result 5031 is obtained through the mixed features corresponding to training data 5041 and 5042 respectively. Clustering results 5031 and 5032 are then matched with the data to be analyzed 501 to obtain the target clustering result 5031 most similar to the data to be analyzed. For example, the feature matching method is as follows: the mixed feature 502 is matched with the fusion feature corresponding to clustering result 5031 and the fusion feature corresponding to clustering result 5032 respectively, and the clustering result with the smallest calculated value is taken as the target clustering result corresponding to the data to be analyzed 501. It can be understood that... Figure 9 The clustering result 5031 is used as the target clustering result of the data 501 to be analyzed, which is only for illustration.

[0117] S308. Based on the knowledge graph corresponding to the root cause analysis model and the target clustering results, obtain the knowledge graph related to the root cause of public opinion corresponding to the data to be analyzed.

[0118] Specifically, based on the mixed features corresponding to the public opinion root cause analysis module and the data to be analyzed, an initial knowledge graph corresponding to the data to be analyzed is obtained; based on the knowledge graph corresponding to the target clustering results, the initial knowledge graph is predicted and completed to obtain a knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed.

[0119] The root cause analysis module constructs a knowledge graph based on the mixed features corresponding to the data to be analyzed, resulting in an initial knowledge graph for the data. This initial knowledge graph is incomplete, including missing tags related to root causes of public opinion or missing relationships between multiple tags. This embodiment completes the initial knowledge graph through graph completion, thereby obtaining a complete knowledge graph for the data to be analyzed, and further using the knowledge graph to derive the root causes of public opinion related to the data.

[0120] Knowledge graph completion, also known as link prediction, involves several labels (target nodes) generated from mixed features in the initial knowledge graph that lacks root causes of public opinion. These targets are matched with the initial knowledge graph corresponding to the data to be analyzed, based on multiple labels in the knowledge graph corresponding to the target clustering result. Matched nodes, which are similar to the target nodes, are then selected from the knowledge graph corresponding to the target clustering result. The similarity between the target nodes and the matched nodes is further calculated, and the top N most similar matched nodes in the knowledge graph corresponding to the target clustering result are selected. Finally, based on these N matched nodes, the initial knowledge graph is predicted and completed. Here, N is a value that can be set as needed, for example, N = 5.

[0121] like Figure 9 As shown, after obtaining the target clustering result 5032 corresponding to the data to be analyzed 501, a preliminary knowledge graph 506 corresponding to the data to be analyzed 501 is obtained based on the public opinion root cause analysis model. Further, the preliminary knowledge graph 506 is completed based on the knowledge graph 5051 corresponding to the target clustering result, thus obtaining the knowledge graph 507 corresponding to the data to be analyzed 501. Through knowledge graph 507, the public opinion root causes corresponding to the data to be analyzed 501 can be obtained. For example, if the data to be analyzed 501 includes the text content "The homepage of the mini-program is black and cannot be opened," then through... Figure 9 The steps shown ultimately result in the root cause corresponding to the data to be analyzed, 501, being either "the mini-program version does not match the phone model" or "the mini-program is being updated".

[0122] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0123] The following are embodiments of the apparatus described in this specification, which can be used to execute the embodiments of the methods described in this specification. For details not disclosed in the apparatus embodiments of this specification, please refer to the embodiments of the methods described in this specification.

[0124] Please see Figure 10 This diagram illustrates a structural schematic of a training apparatus for a public opinion root cause analysis model provided in an exemplary embodiment of this specification. The training apparatus for the public opinion root cause analysis model can be implemented as all or part of the apparatus through software, hardware, or a combination of both. The training apparatus for the public opinion root cause analysis model includes a feature extraction module 1001, a multiple clustering module 1002, a graph construction module 1003, and a model training module 1004.

[0125] The feature extraction module 1001 is used to extract features from multiple training data to obtain mixed features corresponding to each training data.

[0126] The multiple clustering module 1002 is used to perform multiple clustering processes on the multiple training data according to the mixed features corresponding to each of the training data to obtain at least one clustering result, wherein the clustering result is a dataset including at least one of the training data.

[0127] The graph construction module 1003 is used to obtain a knowledge graph related to the root causes of public opinion corresponding to each clustering result based on the mixed features corresponding to at least one of the training data included in each clustering result.

[0128] The model training module 1004 is used to train the public opinion root cause analysis model to be trained based on the at least one clustering result and the knowledge graph corresponding to each clustering result, until the public opinion root cause analysis model is obtained.

[0129] In one embodiment, the feature extraction module 1001 includes:

[0130] A data acquisition unit is used to acquire the plurality of training data, each of the training data including training images and / or training text;

[0131] The feature extraction unit is used to extract image features and text features corresponding to each of the multiple training data based on the training data.

[0132] The hybrid extraction unit is used to obtain the hybrid features of the training data based on the image features and text features corresponding to each training data.

[0133] In one embodiment, the hybrid extraction unit includes:

[0134] The threshold segmentation subunit is used to perform threshold segmentation processing on the training images in the target training data based on target training data that includes at least training images, so as to obtain the segmented images corresponding to the training images in the target training data.

[0135] The hybrid extraction subunit is used to extract image features and text features corresponding to the target training data, which includes at least the segmented image, based on the target training data.

[0136] In one embodiment, the hybrid extraction subunit is specifically used to extract image features and text features corresponding to the target training data, which includes at least the segmented image, through multiple feature classifiers based on the target training data.

[0137] In one embodiment, the feature extraction unit includes:

[0138] The first extraction subunit is used to extract image features and text features of training images and text features of training text from the first training data, which includes training images and training text.

[0139] The first hybrid subunit is used to obtain the hybrid features of the first training data based on the image features and text features of the training images and the text features of the training text in the first training data.

[0140] In one embodiment, the feature extraction unit includes:

[0141] The second extraction subunit is used to extract image features and text features of the training images in the second training data, which includes training images, based on the second training data.

[0142] The second hybrid subunit is used to obtain the hybrid features of the second training data based on the image features and text features of the training images in the second training data.

[0143] In one embodiment, the hybrid features corresponding to the training data include image features and text features corresponding to the training data;

[0144] Multiple clustering module 1002 includes:

[0145] The first clustering unit is used to perform a first clustering process based on the image features in the mixed features corresponding to each of the training data to obtain at least one preliminary clustering result, wherein the preliminary clustering result is a dataset including at least one of the training data.

[0146] The second clustering unit is used to perform second clustering processing based on the mixed feature Chinese character features corresponding to at least one of the training data included in each of the preliminary clustering results, to obtain at least one clustering result corresponding to each of the preliminary clustering results.

[0147] In one embodiment, the map construction module 1003 includes:

[0148] The tag generation unit is used to obtain multiple tags related to the root causes of public opinion corresponding to each clustering result based on the mixed features corresponding to at least one of the training data included in each clustering result.

[0149] The graph construction unit is used to obtain the knowledge graph corresponding to each clustering result based on multiple labels corresponding to each clustering result.

[0150] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0151] It should be noted that the training device for the public opinion root cause analysis model provided in the above embodiments is only illustrated by the division of the above functional modules when executing the training method of the public opinion root cause analysis model. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the training device for the public opinion root cause analysis model provided in the above embodiments and the training method embodiments of the public opinion root cause analysis model belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0152] Please see Figure 11 This diagram illustrates the structure of a public opinion root cause analysis device provided in an exemplary embodiment of this specification. The public opinion root cause analysis device can be implemented as all or part of a device through software, hardware, or a combination of both. The public opinion root cause analysis device includes a data acquisition module 1101, a feature extraction module 1102, a feature matching module 1103, and a root cause analysis module 1104.

[0153] Data acquisition module 1101 is used to acquire data to be analyzed;

[0154] The feature extraction module 1102 is used to extract features from the data to be analyzed according to the public opinion root cause analysis model to obtain the mixed features corresponding to the data to be analyzed. The public opinion root cause analysis model is a model trained by the training method of the public opinion root cause analysis model as described in any one of the above claims.

[0155] The feature matching module 1103 is used to perform feature matching between the data to be analyzed and at least one clustering result included in the public opinion root cause analysis model based on the mixed features corresponding to the data to be analyzed, so as to obtain the target clustering result corresponding to the data to be analyzed.

[0156] The root cause analysis module 1104 is used to obtain a knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed, based on the public opinion root cause analysis model and the knowledge graph corresponding to the target clustering results.

[0157] In one embodiment, the root cause analysis module 1104 includes:

[0158] The first analysis unit is used to obtain an initial knowledge graph corresponding to the data to be analyzed based on the mixed features corresponding to the public opinion root cause analysis module and the data to be analyzed.

[0159] The second analysis unit is used to predict and complete the initial knowledge graph based on the knowledge graph corresponding to the target clustering result, so as to obtain the knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed.

[0160] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0161] It should be noted that the public opinion root cause analysis device provided in the above embodiments is only illustrated by the division of the above functional modules when executing the public opinion root cause analysis method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the public opinion root cause analysis device and the public opinion root cause analysis method embodiments provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0162] The example numbers in this specification are for descriptive purposes only and do not represent the superiority or inferiority of the examples.

[0163] This specification also provides a computer storage medium that can store multiple instructions adapted to be loaded and executed by a processor as described above. Figure 1 - Figure 9 The training method or root cause analysis method of the public opinion root cause analysis model in the illustrated embodiment can be found in the following document for the specific execution process: Figure 1 - Figure 9 The specific details of the illustrated embodiments will not be elaborated here.

[0164] This specification also provides a computer program product that stores at least one instruction, said at least one instruction being loaded and executed by the processor as described above. Figure 1 - Figure 9 The training method or root cause analysis method of the public opinion root cause analysis model in the illustrated embodiment can be found in the following document for the specific execution process: Figure 1 - Figure 9 The specific details of the illustrated embodiments will not be elaborated here.

[0165] Please see Figure 12 This document provides a schematic diagram of the structure of an electronic device as an embodiment of the present specification. Figure 12 As shown, the electronic device 1200 may include: at least one processor 1201, at least one network interface 1204, a user interface 1203, a memory 1205, and at least one communication bus 1202.

[0166] The communication bus 1202 is used to realize the connection and communication between these components.

[0167] The user interface 1203 may include a display screen and a camera. Optionally, the user interface 1203 may also include a standard wired interface and a wireless interface.

[0168] The network interface 1204 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0169] The processor 1201 may include one or more processing cores. The processor 1201 connects to various parts of the server 1200 via various interfaces and lines, and performs various functions and processes data of the server 1200 by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1205, and by calling data stored in the memory 1205. Optionally, the processor 1201 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 1201 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor 1201.

[0170] The memory 1205 may include random access memory (RAM) or read-only memory. Optionally, the memory 1205 may include a non-transitory computer-readable storage medium. The memory 1205 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1205 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 1205 may also be at least one storage device located remotely from the aforementioned processor 1201. Figure 12 As shown, the memory 1205, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for training a public opinion root cause analysis model or conducting public opinion root cause analysis.

[0171] exist Figure 12In the illustrated electronic device 1200, the user interface 1203 is mainly used to provide an input interface for the user and to acquire user input data; while the processor 1201 can be used to call the training application of the public opinion root cause analysis model stored in the memory 1205, and specifically perform the following operations:

[0172] Feature extraction is performed on multiple training data to obtain the mixed features corresponding to each training data;

[0173] Based on the mixed features corresponding to each of the training data, the multiple training data are subjected to multiple clustering processes to obtain at least one clustering result, and the clustering result is a dataset including at least one of the training data.

[0174] Based on the mixed features corresponding to at least one of the training data included in each of the clustering results, a knowledge graph related to the root causes of public opinion is obtained for each of the clustering results.

[0175] Based on at least one clustering result and the knowledge graph corresponding to each clustering result, train the public opinion root cause analysis model to be trained until the public opinion root cause analysis model is obtained.

[0176] In one embodiment, the processor 1201 performs feature extraction on multiple training data to obtain mixed features corresponding to each training data, specifically by:

[0177] Acquire the plurality of training data, each of the training data including training images and / or training text;

[0178] Based on the multiple training data, extract the image features and text features corresponding to each training data;

[0179] Based on the image features and text features corresponding to each of the training data, the hybrid features of the training data are obtained.

[0180] In one embodiment, the processor 1201 performs the step of extracting image features and text features corresponding to each of the plurality of training data, specifically:

[0181] Based on target training data that includes at least training images, threshold segmentation is performed on the training images in the target training data to obtain segmented images corresponding to the training images in the target training data.

[0182] Based on the target training data that includes at least the segmented images, extract the image features and text features corresponding to the target training data that includes at least the segmented images.

[0183] In one embodiment, the processor 1201 executes the step of extracting image features and text features corresponding to the target training data that includes at least the segmented image, based on the target training data that includes at least the segmented image. Specifically, the following is performed:

[0184] Based on target training data including at least the segmented images, image features and text features corresponding to the target training data including at least the segmented images are extracted using multiple feature classifiers.

[0185] In one embodiment, the processor 1201 performs the step of extracting image features and text features corresponding to each of the plurality of training data, specifically:

[0186] Based on the first training data, which includes training images and training text, extract the image features and text features of the training images and the text features of the training text from the first training data.

[0187] Based on the image features and text features of the training images and the text features of the training text in the first training data, the mixed features of the first training data are obtained.

[0188] In one embodiment, the processor 1201 performs the step of extracting image features and text features corresponding to each of the plurality of training data, specifically:

[0189] Based on the second training data, which includes training images, extract the image features and text features of the training images in the second training data;

[0190] Based on the image features and text features of the training images in the second training data, the hybrid features of the second training data are obtained.

[0191] In one embodiment, the hybrid features corresponding to the training data include image features and text features corresponding to the training data;

[0192] Processor 1201 executes the step of performing multiple clustering processes on the multiple training data according to the mixed features corresponding to each of the training data to obtain at least one clustering result, specifically:

[0193] A first clustering process is performed on the image features in the mixed features corresponding to each of the training data to obtain at least one preliminary clustering result, wherein the preliminary clustering result is a dataset including at least one of the training data;

[0194] Based on the mixed features of Chinese characters corresponding to at least one of the training data included in each of the preliminary clustering results, a second clustering process is performed to obtain at least one clustering result corresponding to each of the preliminary clustering results.

[0195] In one embodiment, the processor 1201 executes the process of obtaining a knowledge graph related to the root causes of public opinion corresponding to each clustering result by using the mixed features corresponding to at least one of the training data included in each clustering result. Specifically, the process is as follows:

[0196] Based on the mixed features corresponding to at least one of the training data included in each of the clustering results, multiple labels related to the root causes of public opinion are obtained for each of the clustering results.

[0197] Based on the multiple labels corresponding to each clustering result, a knowledge graph corresponding to each clustering result is obtained.

[0198] In one embodiment, the processor 1201 can be used to invoke a public opinion root cause analysis application stored in the memory 1205, and specifically perform the following operations:

[0199] Obtain the data to be analyzed;

[0200] The data to be analyzed is subjected to feature extraction based on the public opinion root cause analysis model to obtain the mixed features corresponding to the data to be analyzed. The public opinion root cause analysis model is a model trained using the training method of the public opinion root cause analysis model described above.

[0201] Based on the mixed features corresponding to the data to be analyzed, the data to be analyzed is matched with at least one clustering result included in the public opinion root cause analysis model to obtain the target clustering result corresponding to the data to be analyzed.

[0202] Based on the public opinion root cause analysis model and the knowledge graph corresponding to the target clustering results, a knowledge graph related to the public opinion root causes corresponding to the data to be analyzed is obtained.

[0203] In one embodiment, processor 1201 executes the step of obtaining a knowledge graph related to the root causes of public opinion based on the knowledge graph corresponding to the root cause analysis model and the target clustering results, specifically executing:

[0204] Based on the hybrid features corresponding to the public opinion root cause analysis module and the data to be analyzed, an initial knowledge graph corresponding to the data to be analyzed is obtained;

[0205] Based on the knowledge graph corresponding to the target clustering results, the initial knowledge graph is predicted and completed to obtain the knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed.

[0206] This specification describes a method for training a public opinion root cause analysis model. This model involves extracting multimodal mixed features from multiple training datasets, clustering them, and constructing a knowledge graph related to the root causes of public opinion events corresponding to each training dataset. Further, when performing root cause analysis on the data to be analyzed, the model extracts multimodal mixed features and constructs a knowledge graph. The root causes of public opinion events related to the data to be analyzed are then predicted by completing the knowledge graph. However, noise exists in the training datasets. When constructing the knowledge graph, this noise is often added as normal nodes, affecting the accuracy of predicting the root causes of public opinion events through graph completion. Therefore, this specification effectively identifies and removes noise from the training datasets through clustering, improving the accuracy of knowledge graph construction and further enhancing the accuracy of predicting root causes of public opinion events. Compared to methods that predict root causes of public opinion events solely through clustering, this specification highly integrates clustering and knowledge graph construction. Predicting root causes based on this integrated method is more efficient and yields richer prediction results.

[0207] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0208] The above-disclosed embodiments are merely preferred embodiments of this specification and should not be construed as limiting the scope of this specification. Therefore, any equivalent variations made in accordance with the claims of this specification shall still fall within the scope of this specification.

Claims

1. A training method for a public opinion root cause analysis model, the method comprising: Feature extraction is performed on multiple training data to obtain mixed features corresponding to each training data; wherein, the mixed features corresponding to the training data include image features and text features corresponding to the training data; Based on the mixed features corresponding to each of the training data, the multiple training data are subjected to multiple clustering processes to obtain at least one clustering result, and the clustering result is a dataset including at least one of the training data. Based on the mixed features corresponding to at least one of the training data included in each of the clustering results, a knowledge graph related to the root causes of public opinion is obtained for each of the clustering results. Based on at least one clustering result and the knowledge graph corresponding to each clustering result, train the public opinion root cause analysis model to be trained until the public opinion root cause analysis model is obtained. The step of performing multiple clustering processes on the multiple training data based on the mixed features corresponding to each of the training data to obtain at least one clustering result includes: A first clustering process is performed on the image features in the mixed features corresponding to each of the training data to obtain at least one preliminary clustering result, wherein the preliminary clustering result is a dataset including at least one of the training data; Based on the mixed feature Chinese character features corresponding to at least one of the training data included in each of the preliminary clustering results, a second clustering process is performed to obtain at least one clustering result corresponding to each of the preliminary clustering results; The method further includes: Obtain the data to be analyzed; Based on the root cause analysis model of public opinion, feature extraction is performed on the data to be analyzed to obtain the mixed features corresponding to the data to be analyzed. Based on the mixed features corresponding to the data to be analyzed, the data to be analyzed is matched with at least one clustering result included in the public opinion root cause analysis model to obtain the target clustering result corresponding to the data to be analyzed. Based on the root cause analysis model of public opinion and the hybrid features corresponding to the data to be analyzed, an initial knowledge graph corresponding to the data to be analyzed is obtained; Based on the knowledge graph corresponding to the target clustering result, the initial knowledge graph is predicted and completed to obtain the knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed.

2. The training method for the public opinion root cause analysis model according to claim 1, wherein the step of extracting features from multiple training data to obtain mixed features corresponding to each training data includes: Acquire the plurality of training data, each of the training data including training images and / or training text; Based on the multiple training data, extract the image features and text features corresponding to each training data; Based on the image features and text features corresponding to each of the training data, the hybrid features of the training data are obtained.

3. The training method for the public opinion root cause analysis model according to claim 2, wherein extracting image features and text features corresponding to each of the plurality of training data includes: Based on target training data that includes at least training images, threshold segmentation is performed on the training images in the target training data to obtain segmented images corresponding to the training images in the target training data. Based on the target training data that includes at least the segmented images, extract the image features and text features corresponding to the target training data that includes at least the segmented images.

4. The training method for the public opinion root cause analysis model according to claim 3, wherein extracting image features and text features corresponding to the target training data (which at least includes the segmented images) based on the target training data (which at least includes the segmented images) includes: Based on target training data including at least the segmented images, image features and text features corresponding to the target training data including at least the segmented images are extracted using multiple feature classifiers.

5. The training method for the public opinion root cause analysis model according to claim 2, wherein extracting image features and text features corresponding to each of the plurality of training data includes: Based on the first training data, which includes training images and training text, extract the image features and text features of the training images and the text features of the training text from the first training data. Based on the image features and text features of the training images and the text features of the training text in the first training data, the mixed features of the first training data are obtained.

6. The training method for the public opinion root cause analysis model according to claim 2 or 5, wherein extracting image features and text features corresponding to each of the plurality of training data includes: Based on the second training data, which includes training images, extract the image features and text features of the training images in the second training data; Based on the image features and text features of the training images in the second training data, the hybrid features of the second training data are obtained.

7. The training method for the public opinion root cause analysis model according to claim 1, wherein obtaining a knowledge graph related to the public opinion root cause corresponding to each of the clustering results based on the mixed features corresponding to at least one of the training data included in each of the clustering results includes: Based on the mixed features corresponding to at least one of the training data included in each of the clustering results, multiple labels related to the root causes of public opinion are obtained for each of the clustering results. Based on the multiple labels corresponding to each clustering result, a knowledge graph corresponding to each clustering result is obtained.

8. A training device for a public opinion root cause analysis model, the device comprising: The feature extraction module is used to extract features from multiple training data to obtain mixed features corresponding to each training data; wherein, the mixed features corresponding to the training data include image features and text features corresponding to the training data; The multiple clustering module is used to perform multiple clustering processes on the multiple training data according to the mixed features corresponding to each of the training data to obtain at least one clustering result, wherein the clustering result is a dataset including at least one of the training data. The graph construction module is used to obtain a knowledge graph related to the root causes of public opinion corresponding to each clustering result based on the mixed features corresponding to at least one of the training data included in each clustering result. The model training module is used to train the public opinion root cause analysis model to be trained based on the at least one clustering result and the knowledge graph corresponding to each clustering result, until the public opinion root cause analysis model is obtained. The multiple clustering module includes: The first clustering unit is used to perform a first clustering process based on the image features in the mixed features corresponding to each of the training data to obtain at least one preliminary clustering result, wherein the preliminary clustering result is a dataset including at least one of the training data. The second clustering unit is used to perform second clustering processing based on the mixed feature Chinese character features corresponding to at least one of the training data included in each of the preliminary clustering results, to obtain at least one clustering result corresponding to each of the preliminary clustering results; The device further includes: The data acquisition module is used to acquire the data to be analyzed. The feature extraction module is used to extract features from the data to be analyzed based on the root cause analysis model of public opinion, and obtain the mixed features corresponding to the data to be analyzed. The feature matching module is used to perform feature matching between the data to be analyzed and at least one clustering result included in the public opinion root cause analysis model based on the mixed features corresponding to the data to be analyzed, so as to obtain the target clustering result corresponding to the data to be analyzed. The root cause analysis module includes: The first analysis unit is used to obtain an initial knowledge graph corresponding to the data to be analyzed based on the hybrid features corresponding to the public opinion root cause analysis model and the data to be analyzed. The second analysis unit is used to predict and complete the initial knowledge graph based on the knowledge graph corresponding to the target clustering result, so as to obtain the knowledge graph related to the root causes of public opinion corresponding to the data to be analyzed.

9. A computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the method steps of any one of claims 1 to 7.

10. A computer program product storing a plurality of instructions adapted for loading by a processor and executing the method steps of any one of claims 1 to 7.

11. An electronic device, comprising: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Public opinion processing method and device for news events, storage medium and computer equipment

    CN112650923A

  • Financial product price influence factor conduction analysis method and system

    CN114445226A