A method and device for generating explainable financial objects integrating emotions, industrial chain and logic
By constructing a causal logic library and an industry chain knowledge base, combined with sentiment analysis, interpretable financial objects and reasoning paths are generated, which solves the problems of poor interpretability and insufficient dynamics in knowledge reasoning in the financial field, and improves the reliability of reasoning results. Reliability and accuracy.
Patent Information
- Application Number
- CN202011435564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-07
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-12-07
AI Technical Summary
Existing technologies have poor interpretability, lack of dynamics and conductivity in knowledge reasoning and subject matter generation in the financial field, and fail to fully integrate emotional and industrial chain factors, resulting in unreliable reasoning results.
By building a causal logic library and an industry chain knowledge base, combined with sentiment analysis, we identify causal relationships and entity transmission chains between events, generate interpretable financial objects and reasoning paths, and use the BERT+BiLSTM+CRF model to extract causal relationships. and conduct sentiment analysis at the entity attribute level.
It improves the dynamics and credibility of the reasoning process, achieving accurate impact predictions on financial event trends and interpretable analysis of market product trends.
Smart Images

Figure CN112507691B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an interpretable subject matter generation device that integrates emotion, industrial chain and logic of facts, and explores an association reasoning for financial subject matters based on constructed logical reasoning knowledge. The present invention belongs to the field of natural language processing and is an interpretable knowledge reasoning and subject matter generation method and device for the financial field. Background Art
[0002] The financial sector is a very important branch of modern economic development. With the continuous expansion of the scale of the financial market, the construction of the financial market has made great progress and plays an important role in the development of the entire market system. Nowadays, with the rapid development of networking and informatization, various events such as stock index futures, national policies, and international capital flows will have a very important impact on it. For example, domestic and foreign capital markets and derivatives markets are constantly hot, such as "crude oil limit down", "Chile earthquake", "US stock market crash", "Huaxin Futures violates laws and regulations", "Futures companies boycott Wenhua Finance", etc. These events involve multiple financial institutions, people, products and other entities, which will affect the trend of market changes. Through public opinion analysis, finding the transmission relationship between these events is of great significance to the impact on the trend of market products (treasury bond futures, stock index futures). Moreover, in different periods, the changes in the result events brought about by the changes in different cause events are also different. It is not necessarily considered to be comprehensive only through manual comprehensive analysis of these impacts. At the same time, it is often difficult for manual quantitative description of the degree of influence of the cause event on the result event.
[0003] Limited by the current level of natural language processing technology, there are still the following deficiencies in interpretable knowledge reasoning and target object generation around logical reasoning:
[0004] 1. Poor interpretability. There are no quantitative indicators in the knowledge reasoning process, event deduction cannot be explicitly quantified, and the reasoning path cannot be visualized, which makes the interpretability of the entire reasoning process very weak.
[0005] 2. Reasoning is not fully based on the rules that combine the logic of the evolution of facts and the logic of industrial chain reasoning, and the dynamics, evolution and conductivity are not sufficient.
[0006] 3. The reasoning rules are insufficient and fail to integrate factors such as emotions, popularity, and topics to make the reasoning results more credible.
[0007] 4. There is a relative lack of exploration of applications based on domain logic graphs. The logic of evolution can be combined with the logic of industrial chain reasoning, and can support the generation of knowledge reasoning paths and target generation, but the application of these technologies is relatively insufficient. Summary of the invention
[0008] In view of the above-mentioned technical problems existing in the prior art, the purpose of the present invention is to propose a method and device for generating explainable objects that integrate emotions, industrial chains and logical reasoning.
[0009] The present invention mainly extracts and analyzes information in the financial field, discovers related clues, models the transmission association, digs out the law of market changes, and finally assists decision-making. The main idea of the present invention is to extract and reason about information in the financial field, find the transmission relationship between these events and entities, and dig and predict the impact of financial event trends. Based on the constructed logical reasoning knowledge and the integration of industrial chain reasoning logic, a kind of association reasoning for financial objects is explored. For the user input string, after the modules of associated event recognition, event-related entity recognition, event evolution path reasoning, industrial chain reasoning, etc., combined with the results of sentiment analysis and the knowledge of domain experts, event impact queries are provided, and finally explainable objects and reasoning paths are generated.
[0010] The technical solution adopted by the present invention is as follows:
[0011] A method for generating explainable financial objects integrating emotions, industrial chains and logic of facts, comprising the following steps:
[0012] Use the causal relationship between events to establish a logical library of events;
[0013] Based on the logic library, the input events are identified and linked to obtain the causal event evolution chain;
[0014] The causal event evolution chain is associated with the industrial chain knowledge base, and the entity industrial chain transmission chain is obtained through the association reasoning of the upstream and downstream entities;
[0015] Conduct attribute-level sentiment analysis on entities in the physical industry chain transmission chain;
[0016] Based on the results of the logical library, industrial chain knowledge base and sentiment analysis, the impact of financial objects is inferred, and the financial objects and their associated reasoning results are generated.
[0017] Furthermore, the causal relationship between events is used to establish a logical library of events, wherein the causal relationship between events is obtained by at least one of the following two methods:
[0018] The first method is to extract causal relationships based on rules: by collecting and organizing causal trigger words, a rule template based on trigger words is constructed, and the rule template is used to realize the causal relationship extraction at the clause level;
[0019] The second method is to extract causal relationships based on a sequence labeling model: the model structure used is BERT+BiLSTM+CRF, the sequence label used is the BIO label system, and the label types are mainly causes, causal trigger words, and results.
[0020] Furthermore, the event recognition and event linking of the input events based on the event logic library to obtain the causal event evolution chain includes:
[0021] Perform event recognition on the character sequence input by the user, obtain related similar events from the logical library, set a similarity threshold, retain events above the threshold, and form a target event set;
[0022] Based on the target event set, perform deep configuration, set the iteration depth, iteratively find the corresponding result event, and find the next result event in the result event, and finally obtain a causal logic event chain with a clear path, that is, a causal event evolution chain;
[0023] The causal event evolution chain is a logical chain with quantitative indicators. The quantitative indicators refer to the calculation and ranking of the strength of the correlation between the cause event and the result event by means of the importance of the event, the frequency of the event, the influence of the logical trigger, the strength of the causal relationship and the number of occurrences.
[0024] Furthermore, the causal event evolution chain is associated with the industrial chain knowledge base, and the entity industrial chain transmission chain is obtained through the association reasoning of the upstream and downstream entities, including:
[0025] The causal event evolution chain is associated with the industrial chain knowledge base, and entity filtering is performed at the same time, and entity recognition and entity linking are performed on the entity filtering results;
[0026] The industrial chain is deduced according to the entity reasoning rules. Based on the entity association relationship in the industrial chain knowledge base, the depth of iterative deduction is set to form an entity industrial chain. Finally, the transmission weights between entities that have been quantitatively statistically updated in the industrial chain knowledge base are combined to form a four-tuple set of <entity subject, association description, associated entity, association strength>, thereby establishing the entity industrial chain transmission chain.
[0027] Furthermore, by performing attribute-level sentiment analysis on entities in the entity industry chain transmission chain, a four-tuple set of <entity subject, entity attribute, entity sentiment determination result, sentiment score> is formed to complete entity association integrating sentiment.
[0028] Furthermore, the influence reasoning of the financial subject matter is performed based on the results of the logic library, the industrial chain knowledge base and the sentiment analysis to generate the financial subject matter and the associated reasoning results of the financial subject matter, including:
[0029] Based on the conduction chain of the entity industry chain and the results of sentiment analysis, combined with the knowledge of domain experts, the final influencing entities are reasoned and analyzed, and the conduction weights and attribute sentiment scores updated by the entity association quantitative statistics are combined to form an entity association network of <entity subject, entity attribute, attribute sentiment, sentiment score><entity association description><associated entity, association strength, entity attribute, attribute sentiment, sentiment score>; combined with the list of targets concerned in the field, the entities in the entity association network are screened and filtered to obtain the final target results and the judgment of the favorable / unfavorable situation of the target.
[0030] Furthermore, the inference of the impact of the financial subject matter is performed based on the results of the logic library, the industrial chain knowledge base and the sentiment analysis to generate the financial subject matter and the associated inference results of the financial subject matter, and further includes:
[0031] For the input events, the causal logic reasoning module is completed based on the logic library, and then based on the starting node event and subsequent influencing events, the impact reasoning of the subject matter is performed according to the industrial chain knowledge base, logic library, entity association network and inference rules of the impact path to obtain the association reasoning result of the subject matter.
[0032] A device for generating an explainable financial object integrating emotion, industrial chain and logic of facts using the above method comprises:
[0033] The causal logic reasoning module is used to establish a logic library of events based on the causal relationship between events, and to identify and link the input events based on the logic library to obtain a causal event evolution chain;
[0034] The industrial chain logic reasoning module is used to associate the causal event evolution chain with the industrial chain knowledge base, and obtain the entity industrial chain transmission chain through the association reasoning of the upstream and downstream entities;
[0035] The target object reasoning generation module conducts attribute-level sentiment analysis on entities in the physical industrial chain transmission chain, performs impact reasoning on financial targets based on the logic library, industrial chain knowledge base and sentiment analysis results, and generates financial targets and related reasoning results of financial targets.
[0036] Compared with the prior art, the present invention has the following advantages:
[0037] 1. The present invention constructs a large-scale causal logic knowledge base and an industrial chain logic knowledge base, which improves the logical reasoning ability of the existing logic knowledge base.
[0038] 2. The present invention makes full use of the rules that combine the logic of evolution of facts and the logic of industrial chain reasoning to perform reasoning, which fully reflects the dynamics, evolution and conductivity of the reasoning process.
[0039] 3. The present invention fully integrates factors such as sentiment analysis of events and entity attributes, alleviates the unreliability of trend influence in the knowledge reasoning process, and makes the reasoning results more credible.
[0040] 4. The present invention proposes a method based on the combination of event evolution logic and industrial chain reasoning logic, which supports the generation of knowledge reasoning paths and target objects, thereby mining the transmission relationship between events, the public opinion information of events, and the impact of the event on the trend of tradable products in the market. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a system structure diagram of the present invention.
[0042] Figure 2 This is a flowchart of causal logic reasoning.
[0043] Figure 3 This is the logic reasoning flow chart of the industrial chain.
[0044] Figure 4 Generate a flowchart for subject matter reasoning. DETAILED DESCRIPTION
[0045] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited to the following embodiments.
[0046] like Figure 1 As shown, the present invention mainly includes a causal logic reasoning module, an industrial chain logic reasoning module and a target object reasoning generation module. The concepts involved in the present invention include:
[0047] An entity refers to the object discussed in the actual descriptive text and is an instance of a concept.
[0048] Entity recognition refers to the process of named entity recognition based on the industry chain knowledge base, which identifies the entity type you want to obtain from the event.
[0049] Entity linking is the process of linking input events based on the constructed entity attribute table and mapping relationship, identifying the entity type and the attribute category under each type of entity, and forming multiple types of entities and corresponding attribute tables of different dimensions.
[0050] The industrial chain knowledge base refers to a type of industrial reasoning knowledge base that is oriented towards specific industries and uses the relationships between upstream and downstream industries, main products, and upstream and downstream products to link industry, company, product and other nodes.
[0051] The logic library of events refers to the causal logic library, which is a logical knowledge base formed by combining the causal logical relationships between events, revealing the evolution between events.
[0052] Explainable association reasoning rules refer to the influence reasoning of the subject matter based on the starting node event and subsequent influencing events, according to the industrial chain knowledge base, the logic library, the entity association network and the reasoning rules of the influence path, to obtain the association reasoning results of the subject matter.
[0053] Financial underlying assets refer to products that can be traded. For example, the underlying asset of stocks is a listed company. In futures, for example, the underlying asset of corn is corn futures. In addition, there are also stock index options, sugar options and other option underlying assets.
[0054] 1.Causal logic reasoning module
[0055] Figure 2 The causal logic reasoning flow chart of the causal logic reasoning module includes the following steps:
[0056] 1. Construction of the logic library
[0057] Causal logic knowledge is a type of knowledge that is centered on events and is formed by combining logical relationships between events. The goal of this type of knowledge is to reveal the evolution between events. The main considerations for event relationships are sequential relationships and causal relationships. In the application of causal knowledge, highly credible causal knowledge can be used to predict events by using the causal relationships between events and the correlations between attributes. It is widely used in decision support, event prediction, question-answering systems, cause analysis, and other scenarios.
[0058] According to whether the causal description sentence contains causal trigger words (such as: cause, cause, ... because ... so, etc.), the causal triple (cause, causal trigger word, result) can be divided into two types: explicit causality and implicit causality. The following two methods are mainly used to extract causal logic knowledge, and the implementation methods of the present invention are not limited to the following implementation methods:
[0059] 1) Extraction based on rules. This method mainly collects and organizes causal trigger words and constructs a rule template based on trigger words to realize a clause-level causal extraction model. Among them, a clause is the shortest text description sentence in the text segmented by commas, semicolons, periods, question marks, and exclamation marks. The results of rule extraction are shown in Table 1.
[0060] Table 1 - Rule template and extraction result examples
[0061]
[0062] 2) Extraction based on sequence labeling model. The present invention adopts the model structure of BERT+BiLSTM+CRF. In the design of sequence labels, the sequence labels of the model adopt the BIO label system, and the label types are mainly cause, trigger, and effect. In the construction of the data set, the present invention adopts the method of template pre-labeling + manual correction to construct an explicit causal data set. Based on the rule model, the candidate sentences and their pre-labeled triplets are identified, and then the pre-labeled data are manually corrected, and each sentence is labeled with (longest cause description, trigger word, longest result description) and (shortest cause description, trigger word, shortest result description). The training sequence labeling model finally used 10,000 data sets, of which 7,000 were training sets, 2,000 were test sets, and 1,000 were validation sets. After being recognized by the sequence labeling model, a series of sequence labels will be obtained. By finding the cause, trigger, and effect labels, multiple cause sequence sets and result sequence sets are obtained. Then, a causal triple extraction template based on the sequence labeling results is constructed by adopting methods such as the proximity principle for extraction. The correspondence between the cause description, trigger word, and result description is analyzed to extract the causal triple results.
[0063] Based on these implementation methods, the present invention finally constructed and accumulated a large-scale logical library of 24 million causal logics.
[0064] 2. Event identification and event linking
[0065] The present invention firstly performs a process of standardization for input events, wherein the event standardization is characterized in that the original events are segmented, part-of-speech tagged, and entity recognized, and the corresponding function words, punctuation marks, and time words are removed in combination with the part-of-speech tag and the stop word list, and finally a standardized event character sequence is obtained. Then, based on the logic library of things, event recognition is performed on the standardized events. The currently identified events are taken as event nodes, matched with historical events in the logic library of things, and keywords matching with the current events are obtained from the logic library of things, and then the current events and historical events are matched (that is, the events matched are events of the same type as the current events).
[0066] According to an embodiment of the present invention, event linking is a process of aggregating and evolving events according to the correlation between matched events, and obtaining an evolution chain between events with causal relationships, that is, Figure 1The causal event evolution chain is obtained in the causal event evolution chain, which includes upstream cause events directly or indirectly related to the current event, and downstream result events directly or indirectly related to the current event. Among them, events are divided into the following categories: objective events that objectively state facts, prediction events containing prediction words (such as: "high probability of occurrence", "almost impossible to occur", etc.), trigger events with trigger words (such as: "cause", "trigger") and other different types of events. At the same time, events are sorted by importance, including important events, hot events, public opinion events, etc. By obtaining historical events in the logic library of events, various events with causal relationships are reasoned and evolved according to the influence relationship between events, and a causal event map with the current event as the central node is generated to complete the event linking process.
[0067] 3. Obtaining the evolution chain of causal events
[0068] The causal event evolution chain is mainly aimed at event recognition from the character sequence input by the user, obtaining similar events related to this from the underlying accumulated logic library, setting a similarity threshold, and retaining events above the threshold to form a target event set. Secondly, based on the target event set, the depth of the iteration is set (such as the expansion depth of the result event, that is, the number of levels of the result event), iteratively finding the corresponding result event, and finding the next result event in the result event, and finally obtaining a causal logic event chain with a clear path.
[0069] The causal event evolution chain described in the present invention is a logical chain with quantitative indicator factors. The quantitative indicators are calculated and ranked on the strength of the correlation between the cause event and the result event by means of factors such as the importance of the event, the frequency of the event, the influence of the logical trigger, the strength of the causal relationship, and the number of occurrences, so as to form the final causal event evolution chain.
[0070] Figure 2 The "causal logic pair" here refers to the set of causal pairs of cause events and result events. Through the causal event evolution chain, a series of causal logic pair events with strong and weak correlations can be obtained. By combining the subsequent industrial chain knowledge base, entity association network and inference rules of the impact path, the impact reasoning of the final subject matter is carried out.
[0071] 2. Industrial Chain Logical Reasoning Module
[0072] Figure 3 The industrial chain logic reasoning flow chart of the industrial chain logic reasoning module includes the following contents:
[0073] 1. Industry chain knowledge base
[0074] The industrial chain knowledge base refers to a type of industrial reasoning knowledge base that is formed by associating nodes such as industries, companies, and products by using the upstream and downstream relationships of the industry, main products, and upstream and downstream relationships of products. By constructing an industrial chain knowledge graph, the basic information, operating conditions, financial conditions, risk information, and associated relationships of industries, companies, products, and other full-dimensional data are integrated and mined at the same time, and the information of the upstream and downstream of the industrial chain is integrated to provide financial institutions with the industrial chain transmission chain and the trend prediction of the target object. Among them, the upstream and downstream of products have obvious transmission correlation relationships. There are a large number of upstream, midstream, and downstream relationships and mutual value exchanges in the industrial chain. The upstream links deliver products or services to the downstream links, and the downstream links feedback information to the upstream links. The knowledge graph can be used to study the vertical applications such as industrial chain transmission and event-driven, discover important events, and analyze information sentiment.
[0075] The industrial chain refers to a chain-like relationship framework that includes value chains, enterprise chains, and supply and demand chains, which are connected and combined according to specific logical relationships and layout relationships. The essence of the industrial chain is to describe a group of enterprises with some kind of internal connection. It is a relatively macro concept with two-dimensional attributes: structural attributes and value attributes. There are a large number of upstream and downstream relationships and mutual value exchanges in the industrial chain. The upstream links deliver products or services to the downstream links, and the downstream links feed back information to the upstream links.
[0076] The accumulation of industrial chain data means that multiple methods need to be adopted to extract and process industrial chain data. All extracted and accumulated data need to be filled into the constructed industrial chain logical framework. Only in this way can the accumulated data enrich the entire industrial chain knowledge base and play a better role in future tasks.
[0077] The industrial chain data mentioned above mainly refers to the acquisition of information, including the interpretation of major events, key information about industries, events, products, and the upstream and downstream relationships between industries, companies, etc. At the same time, a module for automatically connecting to authoritative data sources from multiple channels is added, covering the industrial chain data of massive industry research, and continuously updating and expanding it.
[0078] 2. Entity Recognition and Entity Linking
[0079] 1) Entity Recognition
[0080] Entity recognition refers to the use of external domain entity libraries to perform entity recognition on entity description statements, and for the events found, perform industry chain entity recognition on the events to form related entities. This includes: the name collection of commodity futures available for trading on major exchanges, companies, stocks, industries, sectors, etc. available for trading, and products, companies, industries, people, etc. in the industry chain.
[0081] 2) Entity Linking
[0082] Entity linking is mainly done by linking the input events based on the constructed entity attribute table and mapping relationship. The first step is to identify the entity type and the attribute category under each type of entity. It is mainly done manually and by rule expansion to form multiple types of entities and their corresponding attribute tables of different dimensions. For example: the entity supply and demand relationship includes macro, supply, demand, inventory, processing profit, and the attributes of product entities in dimensions such as cost and price. Finally, based on the results of entity recognition and the matching of the entity attribute table, it is mapped to the corresponding entity in the entity relationship library to complete the entity linking process.
[0083] 3. Wandering in the physical industry chain
[0084] In this embodiment, the core indicators between causal events are aggregated to construct the entity industry chain transmission chain at the core of the industry chain, and the causal event evolution chain is associated with the industry chain knowledge base. At the same time, the entity filtering operation is performed, and the filtering is performed according to the filtering rules. Then, the entity identification and entity linking process is performed for the entity filtering results. Finally, the industry chain is derived according to the entity reasoning rules. Based on the entity association relationship in the industry chain knowledge base, the depth of iterative derivation is set (such as the level to which the entity association relationship is derived), and the entity industry chain is formed. Finally, the transmission weights between entities that have been quantitatively statistically updated in the industry chain knowledge base are combined to form a four-tuple set of <entity subject, association description, associated entity, and association strength>, and the establishment of the entity industry chain transmission chain is finally completed. The association strength is the transmission weight between entities that have been quantitatively statistically updated. The transmission weight between entities refers to the percentage obtained by combining external economic indicator data (for example: raw material composition ratio data, consumption ratio between industries, etc.). The present invention is to associate events with the industry chain knowledge base, and further extend the association logic of events to the association logic in the financial field. Finally, based on the accumulated industry chain knowledge base and the association reasoning rules, the association inference of the upstream and downstream entities is completed. By deducing and judging the knowledge base of the industrial chain associated with the entity, the association reasoning between the upstream and downstream of the entity is completed, and finally a complete entity industrial chain transmission chain is obtained.
[0085] 3. Object Reasoning Generation Module
[0086] Figure 4 The target object reasoning generation flow chart of the target object reasoning generation module includes the following contents:
[0087] 1. Entity association integrating emotions
[0088] The present invention performs attribute-level sentiment judgment on events. In order to be more detailed on the basis of sentence-level analysis, it is necessary to extract object subject information from the text, and determine whether each attribute expresses a positive or negative sentiment based on the context of the text to complete attribute-level sentiment analysis. Attribute-level sentiment analysis focuses on associated entities and their attributes, and the goal is to mine and discover the opinion information of the text on entities and their attributes, so as to generate a complete triple opinion summary about the target entity and its attributes.
[0089] The format of the triplet can be expressed as: (e, a, s,)
[0090] e represents the target entity of sentiment analysis, for example: it can be a specific instance.
[0091] a represents the associated attribute in entity e.
[0092] s represents the sentiment contained in the opinion on attribute a of entity e. Opinion sentiment can be divided into three categories: positive (commendatory), negative (derogatory) and neutral. At the same time, the results of sentiment analysis can be converted into evaluation levels from 1 to 5 through regression algorithms.
[0093] The attribute-level sentiment analysis, i.e., attribute-level sentiment classification and regression, refers to sentiment analysis of specific attributes, judging whether it is commendatory, derogatory, or neutral, and combining multiple methods to assign a numerical sentiment score to the attribute. For example, sentiment can be assigned through degree adverbs. There are two types of degree adverbs: one is that it can enhance the sentiment of the sentiment word itself, i.e., sentiment enhancing words, such as "very good" will have a stronger sentiment degree than "good", and "very good" will have a stronger intensity than "very good". The other is sentiment weakening words, such as: "not so good" is a commendatory tendency, but the sentiment intensity is much weaker than "good". If an enhancing word appears, it is necessary to increase the sentiment score based on the original assignment. Similarly, if a weakening word appears, the corresponding sentiment score is reduced.
[0094] In the constructed causal event evolution chain, such as the events "soybean price change trend (increase or decrease)", "soybean production change (increase or decrease)", and "soybean consumption change (increase or decrease)", based on the industrial chain knowledge base and combined with the entity industrial chain results, sentiment judgment is performed on the related entities and sentiment scores are given to form a four-tuple set of <entity subject, entity attribute, entity sentiment judgment result, sentiment score> to complete the entity association with integrated sentiment.
[0095] 2. Generation of object reasoning paths based on causal logic and industrial chain logic
[0096] 1) Target generation and filtering
[0097] The physical industrial chain is constructed based on the industrial chain logic reasoning module, integrating the association results of sentiment analysis, and acquiring the target objects according to the association reasoning rules.
[0098] The association reasoning rules are based on the entity industry chain transmission chain and entity attribute sentiment judgment results, combined with the domain expert knowledge, to reason and analyze the final influencing entity, combined with the entity association quantitative statistical update transmission weight and attribute sentiment score, to form an entity association network of <entity subject, entity attribute, attribute sentiment, sentiment score><entity association description><associated entity, association strength, entity attribute, attribute sentiment, sentiment score>, thereby completing the inference and generation process of influencing entities. Finally, combined with the list of subject matters concerned in the field, the entities in the entity association network are screened and filtered to obtain the final subject matter results and the favorable / unfavorable judgment of the subject matter.
[0099] 2) Object Reasoning Path Generation
[0100] The reasoning of the impact path of financial entities can make possible judgments on the impact of the target entity based on the entities associated with the event and the associated paths. While giving the impact on the target entity, it also provides results such as the reasoning path and the impact type.
[0101] The realization of the target object reasoning generation module is to integrate the sentiment analysis results, and obtain the related target objects, target object types, target trends, and logical impact paths based on the heuristic and greedy strategies. For the input events, the causal logic reasoning module is completed based on the logical library, and then based on the starting node events and subsequent impact events, the impact reasoning of the target objects is carried out according to the industrial chain knowledge base, logical library, entity association network, and the reasoning rules of the impact path to obtain the associated reasoning results of the target objects.
[0102] In terms of reasoning, the present invention first models the sequential dependencies of entities and the complex relationships of paths between entity pairs, makes a possible judgment on the impact of entities based on interpretability, and scores the impact contributions of entities under different paths. The rule-based path reasoning method needs to be combined with the industrial chain knowledge base to obtain related entities and impact paths based on the existing logical knowledge, domain knowledge, and the relationship between entities.
[0103] Taking the "fall in rebar prices" as an example, the following effects are obtained through reasoning using the method implemented by the present invention:
[0104] 1) Reasoning analysis of the "fall in rebar prices" event
[0105] Based on the processing results of the primary event causal logic and the industrial chain logic, the reoccurrence of the event "rebar price drop" led to the "cost-side iron ore plummet". The sentiment direction of the two events is negative. Further, through these two events, entity recognition and linking are performed, and they are linked to the industrial chain logic diagram with "iron ore" and "rebar" as the core. The sentiment judgment of the attribute "price" of the "rebar" event entity is negative, and the sentiment judgment result of the entity attribute "cost" of "iron ore" is also negative. Finally, after combining the domain expert knowledge, sentiment judgment results, association rule reasoning, and influence path rule reasoning, the present invention can finally give a "bad news" and "good news" trend prediction result for each industrial chain entity node.
[0106] 2) Reasoning effect of the "fall in rebar prices" event
[0107] Taking the event of "rebar price drop" as an example, we study the impact of this event on the entire industry entity and the subject matter. The intermediate knowledge in logical reasoning and concept description is shown in Table 2.
[0108] Table 2- "Rebar price decline" related knowledge set
[0109]
[0110] Examples of the results of related entities and influencing reasoning paths are shown in Table 3. The present invention uses different types such as "product" and "company" to distinguish different types of influencing entities. By limiting the depth of causal logic and industrial chain logic to one layer for reasoning, the "good / bad" situation of the final target object is given, and the results of the logical reasoning path are organized in a directed arrow splicing manner.
[0111] Table 3- "Rebar price decline" single-layer logic impact reasoning results
[0112]
[0113] The present invention is based on the joint reasoning of the industrial chain knowledge base and the logic library of things and principles, unifies the two strategies of industrial chain logic reasoning and causal logic influence reasoning, and integrates the advantages of both. In specific implementation, the present invention is based on the logic library of things and principles, obtains the causal event evolution chain of the event, and then performs entity recognition on each event in the causal event evolution chain, and associates the event with the industrial chain knowledge base, and obtains the favorable and unfavorable impact results of the subject matter in the generation mode of industrial chain logic reasoning, combined with the knowledge of domain experts and the results of sentiment analysis. Moreover, by quantifying the causal and correlation strength indicators of each reasoning path of the causal event evolution chain and the industrial chain-related entity chain, the measurability and interpretability of the knowledge reasoning process become stronger, and finally generate interpretable financial subject matter and reasoning paths.
[0114] Based on the same inventive concept, another embodiment of the present invention provides an electronic device (computer, server, smart phone, etc.), which includes a memory and a processor, the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing each step in the method of the present invention.
[0115] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, disk, CD), which stores a computer program. When the computer program is executed by a computer, it implements the various steps of the method of the present invention.
[0116] The specific embodiments and drawings of the present invention disclosed above are intended to help understand the content of the present invention and implement it accordingly. It can be understood by those skilled in the art that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention. The present invention should not be limited to the contents disclosed in the embodiments and drawings of this specification, and the scope of protection of the present invention shall be subject to the scope defined in the claims.
Claims
1. A method for generating explainable financial objects that integrates emotions, industrial chains, and logic, characterized in that: The following steps are involved: Use the causal relationship between events to establish a logical library of events; Based on the logic library, the input events are identified and linked to obtain the causal event evolution chain; The causal event evolution chain is associated with the industrial chain knowledge base, and the entity industrial chain transmission chain is obtained through the association reasoning of the upstream and downstream entities; Conduct attribute-level sentiment analysis on entities in the physical industry chain transmission chain; Based on the results of the logic library, the industry chain knowledge base and sentiment analysis, the impact reasoning of the financial subject matter is carried out to generate the financial subject matter and the associated reasoning results of the financial subject matter; The said inference of the impact of the financial subject matter is performed based on the results of the logic library, the industrial chain knowledge base and the sentiment analysis, and the financial subject matter and the associated inference results of the financial subject matter are generated, including: Based on the conduction chain of the entity industry chain and the results of sentiment analysis, combined with the knowledge of domain experts, the final influencing entities are reasoned and analyzed, and the conduction weights and attribute sentiment scores updated by the entity association quantitative statistics are combined to form an entity association network of <entity subject, entity attribute, attribute sentiment, sentiment score><entity association description><associated entity, association strength, entity attribute, attribute sentiment, sentiment score>; combined with the list of targets concerned in the field, the entities in the entity association network are screened and filtered to obtain the final target results and the judgment of the favorable / unfavorable situation of the target.
2. The method according to claim 1, characterized in that The causal relationship between events is used to establish a logical library of events, wherein the causal relationship between events is obtained by at least one of the following two methods: The first method is to extract causal relationships based on rules: by collecting and organizing causal trigger words, a rule template based on trigger words is constructed, and the rule template is used to realize the causal relationship extraction at the clause level; The second method is to extract causal relationships based on a sequence labeling model: the model structure used is BERT+BiLSTM+CRF, the sequence label used is the BIO label system, and the label types are mainly causes, causal trigger words, and results.
3. The method according to claim 1, characterized in that The event recognition and event linking of the input events based on the event logic library are performed to obtain a causal event evolution chain, including: Perform event recognition on the character sequence input by the user, obtain related similar events from the logical library, set a similarity threshold, retain events above the threshold, and form a target event set; Based on the target event set, perform deep configuration, set the iteration depth, iteratively find the corresponding result event, and find the next result event in the result event, and finally obtain a causal logic event chain with a clear path, that is, a causal event evolution chain; The causal event evolution chain is a logical chain with quantitative indicators. The quantitative indicators refer to the calculation and ranking of the strength of the correlation between the cause event and the result event by means of the importance of the event, the frequency of the event, the influence of the logical trigger, the strength of the causal relationship and the number of occurrences.
4. The method according to claim 1, characterized in that: The causal event evolution chain is associated with the industrial chain knowledge base, and the entity industrial chain transmission chain is obtained through the association reasoning of the upstream and downstream entities, including: The causal event evolution chain is associated with the industrial chain knowledge base, and entity filtering is performed at the same time, and entity recognition and entity linking are performed on the entity filtering results; The industrial chain is deduced according to the entity reasoning rules. Based on the entity association relationship in the industrial chain knowledge base, the depth of iterative deduction is set to form an entity industrial chain. Finally, the transmission weights between entities that have been quantitatively statistically updated in the industrial chain knowledge base are combined to form a four-tuple set of <entity subject, association description, associated entity, association strength>, thereby establishing the entity industrial chain transmission chain.
5. The method according to claim 1, characterized in that By performing attribute-level sentiment analysis on entities in the entity industry chain transmission chain, a four-tuple set of <entity subject, entity attribute, entity sentiment determination result, sentiment score> is formed to complete entity association integrating sentiment.
6. The method according to claim 1, characterized in that The method of performing the influence reasoning of the financial subject matter according to the result of the logic library, the industrial chain knowledge library and the sentiment analysis, and generating the financial subject matter and the associated reasoning result of the financial subject matter, also includes: For the input events, the causal logic reasoning module is completed based on the logic library, and then based on the starting node event and subsequent influencing events, the impact reasoning of the subject matter is performed according to the industrial chain knowledge base, logic library, entity association network and inference rules of the impact path to obtain the association reasoning result of the subject matter.
7. A device for generating an explainable financial object that integrates emotion, industrial chain and logic of facts by using the method described in any one of claims 1 to 6, characterized in that: include: The causal logic reasoning module is used to establish a logic library of events based on the causal relationship between events, and to identify and link the input events based on the logic library to obtain a causal event evolution chain; The industrial chain logic reasoning module is used to associate the causal event evolution chain with the industrial chain knowledge base, and obtain the entity industrial chain transmission chain through the association reasoning of the upstream and downstream entities; The target object reasoning generation module conducts attribute-level sentiment analysis on entities in the physical industrial chain transmission chain, performs impact reasoning on financial targets based on the logic library, industrial chain knowledge base and sentiment analysis results, and generates financial targets and related reasoning results of financial targets.
8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the method according to any one of claims 1 to 6 is implemented.
