Hot event-driven investment risk assessment method and system
Through the investment risk assessment method driven by hot events, natural language processing technology and risk cognitive models are used to automatically assess investment risks, solving the problems of incomplete data acquisition and low efficiency in the existing technology, and achieving more efficient and accurate risk assessment. Evaluate.
Patent Information
- Application Number
- CN202410596374.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-10-01
AI Technical Summary
Existing investment risk assessment methods are difficult to achieve comprehensiveness and real-time data in the era of information explosion. Their efficiency is limited by manual screening, high-value expert knowledge cannot be effectively abstractly modeled, and background knowledge and timing knowledge are not sufficiently mined. , resulting in limited evaluation efficiency and effectiveness.
Adopting a hot event-driven investment risk assessment method, by establishing a hot event category system and a risk perception model, extracting multi-source news data and constructing a hot event database, using natural language processing technology to automatically assess investment risks, combined with the entropy method and sigmoid The function is adjusted exponentially.
It improves the efficiency and accuracy of investment risk assessment, effectively reuses expert knowledge, provides more comprehensive and objective risk assessment results, and improves the work efficiency of analysts.
Smart Images

Figure CN118735689A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a hot event-driven investment risk assessment method and system, and belongs to the technical field of natural language processing. Background Art
[0002] Investment risk assessment aims to analyze and determine the investment risks of countries and regions around the world, and use dynamic data such as news and social media to comprehensively and real-time monitor possible sources of risk in international investment from multiple dimensions, thereby helping companies quickly understand, timely evaluate, identify and respond to overseas investment risks.
[0003] Investment risk assessment is an important and complex task that requires experts from multiple related fields to conduct comprehensive analysis of international development trends in order to determine risks.
[0004] The current common investment risk assessment methods have high reliability, but they also have the following problems:
[0005] (1) The sources of dynamic data are relatively fixed, which is not conducive to the comprehensiveness and real-time nature of data acquisition in the context of explosive growth of information;
[0006] (2) Information location based on manual screening or traditional retrieval is limited in efficiency and may miss some information;
[0007] (3) High-value expert knowledge has not been effectively abstracted and modeled, resulting in a large amount of duplication of effort by evaluators when analyzing different data;
[0008] (4) The mining and association of background knowledge and temporal knowledge in the data are insufficient, which is not conducive to a three-dimensional grasp of the multiple influencing factors of risk assessment.
[0009] Therefore, in the era of big data, existing technical solutions limit the efficiency and effectiveness of analysts in conducting investment risk assessments. Summary of the invention
[0010] In view of the problems existing in the prior art, the purpose of the present invention is to provide a hot event driven investment risk assessment method and system. The present invention can assist analysts to conduct investment risk assessment more intelligently and efficiently, model the authoritative research results and expert knowledge in the field into a hot event driven risk cognition model, and use natural language processing technology to extract hot event information from multi-source news streams, and input it into the risk cognition model and assessment engine to complete the automatic assessment of investment risk.
[0011] A hot event-driven investment risk assessment method includes the following steps:
[0012] S1. Establish a hot event classification system, that is, refer to authoritative research in the field of investment analysis and evaluation to define the categories of events that affect investment risks;
[0013] S2. Establish a hot event-driven investment risk assessment cognitive model. This model maps various hot events in S1 to various indicators of the investment risk assessment index system and sets indicator weights, making expert knowledge in the field of investment risk assessment configurable and reusable.
[0014] S3. Build a national risk basic indicator database for the target country. This basic indicator database is generated based on the data fusion of multiple authoritative institutions and contains the basic risk indicator values of major countries in the world in multiple dimensions in recent decades;
[0015] S4. Collect news data from multiple sources, i.e., select the information of the data source to be collected and configure the data capture strategy for the target country, and on this basis, perform regular news collection, page analysis and news basic content extraction on the configured data source, so as to build a dynamic news library;
[0016] S5, establish an information extraction engine and build a hot event library. The information extraction engine extracts information such as news categories, events in the news, event-related entities (such as countries), event sentiment polarity, etc. from the dynamic news library of S4, clusters events using the extracted event-related information, and determines whether event clusters belong to hot spots based on frequency thresholds, thereby building a hot event library;
[0017] S6. Build an investment risk assessment engine driven by hot events. This assessment engine calculates the static risk index prior value based on the national risk basic indicator library in S3, and calculates the dynamic risk index update value based on the investment risk assessment cognitive model in S2 and the time-series hot events in S5, thereby quantifying the impact of hot events on investment risks and evaluating and adjusting a country's investment risk index on a daily basis.
[0018] Furthermore, the hot event classification system in S1 includes 10 major categories and 35 minor categories of events, and an event argument system is defined for all minor categories of events.
[0019] Furthermore, the specific steps of establishing the hot event-driven investment risk assessment cognitive model in S2 are as follows:
[0020] S2.1. Refer to the research results of authoritative institutions and scholars at home and abroad to build an investment risk evaluation index system;
[0021] S2.2. Establish a mapping relationship between each indicator in the investment risk assessment index system and several sub-categories of events in the hot event category system, and determine the weight of each investment risk assessment indicator to obtain a risk assessment cognitive model, including establishing a mapping between each event category in S1 and each first-level investment risk assessment indicator in S2.1, and determining the weight of each investment risk assessment indicator.
[0022] Furthermore, the national risk basic indicator library in S3 is generated based on data fusion from multiple authoritative institutions, and contains indicator values of 193 major countries in the world in multiple dimensions in recent decades, which serve as the national risk basic indicator values of each dimension.
[0023] Furthermore, the specific steps of collecting news data from multiple sources in S4 are as follows:
[0024] S4.1. Configuring news data sources for target countries. The data sources supported by the present invention include two categories: news sites and WeChat public accounts. News sites include mainstream news media in multiple countries at home and abroad.
[0025] S4.2. Collect news data regularly and store the collected results in the database to form a dynamic news library.
[0026] Furthermore, the specific steps of S5 establishing an information extraction engine and building a hot event library are as follows:
[0027] S5.1. Construct a knowledge system based on domain expert knowledge, defining news category system, entity category system, event category and event argument system;
[0028] S5.2, construct a text classifier, which takes news text as input and uses a universal text classification model (UTC) to automatically identify news categories;
[0029] S5.3. Construct a knowledge extractor, which takes news text fragments as input and uses the universal information extraction method (UIE) to extract event information and event sentiment polarity in the news, and also extracts important entity information such as countries, people, places, and institutions in the news;
[0030] S5.4. Build a hot event knowledge base, denoise the events extracted in S5.3, cluster the extracted events based on a method that combines structured event information and DBSCAN clustering. Each cluster represents the same event. When the cluster size exceeds the set threshold, the event is considered a hot event and stored in the hot event library; cluster hot events by time slices to explore the development context of the events.
[0031] Furthermore, the specific steps of constructing the hot event-driven investment risk assessment engine in S6 are as follows:
[0032] S6.1. Calculate the risk index prior based on the national risk basic index value in S3, map the national risk basic index to the first-level index of the investment risk assessment index system in S2.1, and perform weighted average and normalization on the basic index values mapped under each first-level index, so as to calculate the static risk index prior value;
[0033] S6.2. Calculate the risk index update based on time-series hot events. By quantifying the impact of news hot events in S5 on investment risk, the investment risk index of each country is evaluated and adjusted at the daily level. The specific steps are as follows:
[0034] S6.2.1. To evaluate the risk score of a single event, first obtain detailed information about the event from the hot event database, including the event type, related countries, etc. Then, based on the risk perception model in Section 2.2, map the event to the primary indicator and evaluate the direction and degree of impact on the investment risk of the related country; the direction of impact is determined based on the emotional polarity of the event, and the degree of impact is determined based on the proportion of events of this type to all events on that day, thereby calculating the impact score of a single event on the investment risk of its related target country;
[0035] S6.2.2. Evaluate the risk value of the first-level indicator. The updated value of a first-level indicator is obtained by averaging the risk scores of all hot events under the indicator. At the same time, the sigmoid function is used to adjust the updated value to keep the index within the specified range.
[0036] S6.2.3. Update the overall investment risk index. The overall index is calculated by weighting all updated primary indicators, where the weights of the primary indicators are calculated using the entropy method.
[0037] An investment risk assessment system driven by hot events, including:
[0038] The investment risk assessment cognitive model is used to associate various hot events in the hot event classification system with the corresponding indicators of the investment risk assessment indicator system and set the weight of each indicator;
[0039] Multi-source news collector, including data source configuration module and data collection module, used to collect dynamic news data from multiple sources;
[0040] Dynamic news library, used to store news information collected by the news collector, including basic content such as news title, author, release time, text, as well as event information and entity information extracted from news text;
[0041] The National Risk Basic Index Database is generated based on the data integration of multiple authoritative institutions and contains the basic risk index values of major countries in the world in recent decades in multiple dimensions;
[0042] Information extraction engine, used to automatically identify news categories and automatically extract knowledge such as events, event sentiment polarity, and important entities in news;
[0043] Hot events knowledge base, used to store basic information of hot events extracted from news, as well as the development context of hot events;
[0044] The hot event-driven risk assessment engine evaluates and adjusts a country's investment risk index on a daily basis based on hot event information extracted from dynamic news;
[0045] The system front-end module is used to provide users with an interactive interface, visualize investment risks through maps, line charts, radar charts, timelines and other statistical charts, and display basic information, background information and risk scores of hot events;
[0046] The system backend module is used to periodically perform tasks such as news information extraction, hot event processing, and investment risk index update. At the same time, it obtains detailed information on news, events, and investment risks in various countries / regions based on user input on the front end.
[0047] The present invention also provides a server, characterized in that it 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 above method.
[0048] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0049] The advantages of the present invention are as follows:
[0050] (1) Abstract and model the expert knowledge of investment risk assessment into a hot event system and a risk cognition model. The information extraction engine and risk assessment engine are used to automatically extract hot events and dynamically update the investment risk index, effectively reusing high-value expert knowledge and improving the work efficiency of assessment analysts.
[0051] (2) The multi-source news collector provided by the present invention can improve the coverage of dynamic data, and the entity information and development context associated with hot events can be used as background knowledge for risk assessment, thereby assisting analysts to conduct more comprehensive, objective and accurate investment risk assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A framework for investment risk assessment methods driven by hot events.
[0053] Figure 2 Provide an example of a cognitive model for risk assessment;
[0054] (a) Mapping of event categories and risk assessment indicators, (b) weights of risk assessment indicators.
[0055] Figure 3 Identify flow charts for hot events. DETAILED DESCRIPTION
[0056] The present invention is further described in detail below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention but not to limit the scope of the present invention.
[0057] Terminology explanation:
[0058] Investment risk evaluation index system: refers to the different dimensions / aspects / aspects that need to be considered in the investment risk assessment process, such as economy, environment, etc., and each dimension corresponds to an indicator; the present invention further subdivides the large indicators, for example, subdividing the environmental dimension into natural resources, environmental governance, etc., thereby obtaining a two-level indicator system, called the investment risk evaluation index system, referred to as the evaluation index system or indicator system.
[0059] First-level indicators: The investment risk assessment index system consists of two levels, in which the large indicators of the first level (such as economy, environment, etc.) are called first-level indicators, and the corresponding fine-grained indicators of the second level (such as natural resources, environmental governance, etc.) are called second-level indicators.
[0060] Investment Risk Index: The Investment Risk Index (IRI) is used to measure the risk level of Chinese enterprises investing in other countries. The larger the value of a country's investment risk index, the higher the investment risk and the worse the investment environment in that country. Conversely, the lower the value, the better the investment environment. It can be referred to as the "risk index".
[0061] Event argument system: Event arguments refer to the elements involved in the occurrence of an event, which are mainly composed of entities; argument roles refer to the roles played by event arguments in the event. Each event type will predefine multiple different argument roles. For example, equity pledge events have argument roles such as pledger, pledgee, pledged shares, etc. The event argument system in this invention mainly refers to the definition of argument roles for each type of event.
[0062] UTC: Universal Text Classification (UTC), used to identify the type of news.
[0063] UIE: Universal Information Extraction (UIE) is a method used to extract knowledge from text, including knowledge elements such as entities, relations, and events.
[0064] The embodiment of the present invention proposes a hot event driven investment risk assessment method, the main process steps are as follows: Figure 1 As shown, it includes: 1) establishing a hot event classification system; 2) establishing a hot event-driven investment risk assessment cognitive model; 3) building a national risk basic indicator library; 4) configurable multi-source news collection; 5) extracting news hot events; 6) building a hot event-driven investment risk assessment engine. The specific implementation methods of each step are detailed below.
[0065] 2.1 Establish a hot event classification system
[0066] The event classification system is defined with reference to authoritative research in the field of investment risk assessment. The constructed hot event classification system includes multiple major categories and 35 minor categories of events, and an argument system is defined for all minor categories of events. The major categories of events are: economic events, foreign trade events, infrastructure events, environmental events, security events, etc. The following Table 1 shows the classification of some event categories.
[0067] Table 1 is an example of the hot event classification system (partial)
[0068]
[0069]
[0070] 2.2 Establishing a cognitive model for investment risk assessment driven by hot events
[0071] This model maps the various hot events in Section 2.1 to various indicators of investment risk assessment and sets the indicator weights, making the expert knowledge in the field of investment risk assessment configurable and reusable. The establishment of a hot event-driven investment risk assessment cognitive model mainly includes the following two specific steps.
[0072] 2.2.1 Constructing an evaluation index system for investment risks
[0073] This paper starts from the perspective of Chinese enterprises' direct investment in foreign countries, refers to the research results of authoritative institutions and scholars at home and abroad, summarizes various risk factors that enterprises may face in the process of investment and operation, and constructs an evaluation index system including multiple primary indicator dimensions such as economy, foreign trade, infrastructure, and 51 secondary indicator dimensions.
[0074] On this basis, the Investment Risk Index (IRI) is used to measure the risk level of Chinese companies' investments in the country. The larger the value of the index is, the higher the investment risk is and the worse the investment environment is. Conversely, the lower the value is, the better the investment environment is.
[0075] 2.2.2 Constructing a risk assessment cognitive model
[0076] The risk assessment cognitive model is an important way to externalize and reuse expert knowledge. The present invention constructs a risk assessment cognitive model driven by hot events. First, it is necessary to establish a mapping between the event categories in Section 2.1 and the first-level indicators of the risk assessment indicator system in Section 2.2.1, and then set the weights of each risk assessment indicator. Figure 2 An example of a cognitive model of risk assessment is given, starting from Figure 2 As can be seen in (a), the model associates one or more event categories with each first-level risk assessment indicator. For example, the first-level indicator "security situation" is associated with "security incidents", and the first-level indicator "economic risk" is associated with "economic incidents" and "foreign trade incidents". Figure 2 As shown in (b), a weight is set for each first-level risk assessment indicator, for example, the weight of "security situation" is 0.32, the weight of "environmental risk" is 0.14, etc. The higher the weight, the greater the impact of the change of the indicator on the risk index.
[0077] The present invention provides a default risk assessment cognitive model, and supports users to customize and configure multiple different cognitive models and replace the default model as needed, so that it can flexibly adapt to different sub-fields, specific tasks and user preferences.
[0078] 2.3 Building a national risk basic indicator database
[0079] The present invention downloads and collects basic index data of different countries from the websites of multiple authoritative institutions for constructing a national basic database. The data source, time span, covered countries, indicator categories, etc. are specifically described as follows.
[0080] (1) Data source
[0081] The data sources are mainly the websites of relevant international authoritative institutions and index evaluation institutions. Relevant files and data packages are downloaded from these websites, and specific indicator data are obtained through analysis and processing.
[0082] (2) Time span
[0083] The data spans from 1949 to 2024.
[0084] (3) Countries covered
[0085] The data covers 193 major countries and regions.
[0086] (4) Indicator Dimension
[0087] All indicators are divided into multiple dimensions, including economy, health care, environment, education, public affairs, infrastructure, society, etc. Each dimension can be further divided into multiple subcategories. There are 1,846 subcategories in total. Table 2 below shows the situation of some indicator dimensions.
[0088] Table 2 shows some indicators
[0089]
[0090] The raw data obtained from the data source needs to go through the following two steps:
[0091] a) Use Google Translate interface to translate foreign indicator data into Chinese
[0092] b) According to the country name, country code, country alias / abbreviation mapping table, the indicator data of different dimensions belonging to the same country are aggregated together to obtain the index value of each dimension for each country.
[0093] After the above processing steps, the construction of the national basic database is completed. The national basic database in the present invention contains a total of 6,721,618 risk basic indicator values.
[0094] 2.4 Configurable multi-source news collection
[0095] This step completes the configuration of the news data source and the collection of news data. The present invention mainly uses news data from news sites and WeChat public accounts, so the configuration and collection of these two types of data sources are described.
[0096] 2.4.1 News data source configuration
[0097] Use JSON format to configure the news site data source. Specifically, create a folder for each news site data source. The task.json file in this folder specifies the crawler configuration. Take the collection of globalbiodefense.com as an example. The data source configuration file is as follows:
[0098]
[0099] The configuration items are described as follows:
[0100] a)should_download_media: whether to download the image.
[0101] b)is_dynamic_page: whether it is a dynamically generated page.
[0102] c)use_proxy: Whether to crawl pages through a proxy server.
[0103] d)use_random_user_agent: whether to use a random user agent.
[0104] e) allowed_domains: A list of domains allowed to be crawled, used to limit the target websites that the crawler crawls.
[0105] f)denied_domains: A list of domains that are denied crawling, set to a subdomain of allowed_domain.
[0106] g)wanted_url_patterns: regular expression, the pattern of the URL you want to crawl.
[0107] h) denied_url_patterns: regular expression, pattern of rejected URLs. The content of the pages corresponding to these URLs will not be crawled, nor will the hyperlinks in them be tracked.
[0108] i)start_urls: starting url list.
[0109] j)do_content_extraction: whether to extract the title, author, release time, and article content.
[0110] The configuration of the WeChat public account data source needs to be combined with the WeChat client and the JSON configuration file. First, when you need to add a data source, use WeChat on your mobile phone or computer to add a new WeChat public account to the list of public accounts you follow. The crawler program will automatically traverse to the newly added WeChat public account; at the same time, set the following task.json file to configure the storage address.
[0111]
[0112]
[0113] The configuration items are described as follows:
[0114] db_name: The database where the collected news is stored (in this case, the crawl_news-db database).
[0115] collection_name: The data collection where the collected news is stored.
[0116] mongodb_config: Configuration file for connecting to the MongoDB database.
[0117] 2.4.2 News Data Collection
[0118] For news sites, we built a distributed network news collection system based on scrapy through secondary development. The collection system consists of several distributed collection nodes and a storage system. The collection nodes can be flexibly deployed according to the websites to be collected. There are two main types of data collection nodes: (1) General network news collection nodes, which are mainly for fully public news sites. They obtain the homepage of the site and the homepage of each branch channel by accessing the URL of the news site, obtain the hyperlinks in the page by parsing the page structure, and then access the hyperlinks to obtain each page and more branch channels or even links to other sites, and iteratively obtain network news pages. Through multiple scheduled startups every day, dynamic real-time monitoring of major news sites is achieved, and new news content is discovered and collected in a timely manner. (2) Proxy server news collection nodes, which are mainly for websites that are not fully open to the public. They use a browser driven by program code to access the website news list page and switch between various branch channels; a proxy server is set between the browser and the server to intercept HTTP requests containing news metadata, obtain the article metadata list returned by the server, and obtain the article page according to the URL.
[0119] For WeChat official accounts, a distributed collection system for WeChat official accounts was built based on scrapy secondary development. Each collection node consists of two modules: (1) PC-side WeChat, which realizes regular communication with Tencent WeChat server. By building a process that simulates manual operation, it realizes the reading of multiple WeChat official account articles, thereby performing polling data collection. (2) Proxy server, by setting up a proxy server between WeChat and the server, it intercepts the necessary parameter information in the HTTP request and obtains the metadata list of official account articles. The working node collects through two working modes: (1) Real-time breadth collection for batch public accounts, real-time monitoring of new article information pushed by WeChat, and when a public account pushes a new article, a traversal collection of the latest articles of all WeChat public accounts followed at the current time node is performed. (2) In-depth collection for specific public accounts, in-depth collection of historical articles published by them, and the collection of articles published several years ago can be as far as possible.
[0120] Establish a scheduled task to collect incremental news from the configured data source, parse the collected results, extract basic news content, and store the news URL, title, author, release time, article content, etc. into the database to form a dynamic news library.
[0121] 2.5 Extracting hot news events
[0122] The news in the dynamic news library mainly exists in the form of unstructured text. In order to better support the automatic assessment of investment risks, it is also necessary to extract structured knowledge from the news text, including hot events, news classification, important entities (such as countries) and other information. In the present invention, the information extraction engine is used to complete the extraction of knowledge such as news hot events. The engine includes four parts: knowledge system, text classifier, knowledge extractor, and hot event processing.
[0123] 2.5.1 Knowledge System
[0124] The knowledge system is based on the knowledge of domain experts and defines news category system, entity category system, event category and event argument system.
[0125] The news category system refers to the definition method of commonly used news classification tasks and divides news into multiple categories: finance, international affairs, sports, agriculture, education, science and technology, military, tourism, automobiles, culture, real estate, health, environment, etc.
[0126] The entity category system is defined based on the actual usage needs of investment risk assessment, and includes seven types of entities: country, location, organization, person, facility, law, and product.
[0127] The event categories and event argument system are consistent with the hot event category system defined in Section 2.1, including multiple major categories and 35 minor categories of events, and an argument system is defined for all minor categories of events.
[0128] 2.5.2 Text Classifier
[0129] The text classifier takes news text as input and uses the universal text classification model UTC to automatically identify news categories. The text classifier is constructed through the following two steps.
[0130] Step 1: Fine-tuning the text classification model
[0131] To improve the performance of the UTC model on a specific news classification task, the model is first fine-tuned using a small amount of task-related data.
[0132] Specifically, the basic model selects the utc-large pre-trained model released by PaddleNLP. A small amount of manually labeled news classification data is used to fine-tune the model. The present invention selects and labels 416 news articles from the collected news to control the amount of labeled data for each category of news to be roughly balanced. The model is fine-tuned and trained on the training set divided by the labeled data, iterated 20 times, and the optimal model is obtained for news text classification.
[0133] Step 2: Start the text classification service
[0134] Deploy the text classification service using Docker, including loading the fine-tuned UTC model and providing a text classification prediction interface. The service is called regularly to classify the collected news.
[0135] 2.5.3 Knowledge Extractor
[0136] The knowledge extractor takes news text fragments as input, uses the universal information extraction method UIE to extract event information and event sentiment polarity in the news, and extracts important entity information related to the event, such as countries, people, places, and institutions. Among them, the extraction of national entities is mainly used to establish the relationship between events and countries, which is one of the foundations for national investment risk analysis; the extraction of entities such as people, places, and institutions is mainly used to enrich the background knowledge of events, which is convenient for comprehensive display of event information and assisting user evaluation and analysis.
[0137] The knowledge extractor is constructed through the following two steps.
[0138] Step 1: Fine-tune the knowledge extraction model
[0139] In order to improve the extraction performance of the UIE model on the defined event category system and entity category system, it is first necessary to fine-tune the model using a small amount of task-related data.
[0140] Specifically, the base model uses the uie-base pre-trained model released by PaddleNLP. A small amount of labeled data for entity recognition and event extraction is obtained to fine-tune the model. Using the manual labeling method, 305 news articles were selected and labeled from the collected news, and the number of labels for each category of entities and events was controlled to be roughly balanced. The model was fine-tuned on the training set divided by the labeled data, iterated 20 times, and the optimal model was obtained for news knowledge extraction.
[0141] Step 2: Start the knowledge extraction service
[0142] The knowledge extraction service is deployed in a Docker-based manner, including loading the fine-tuned UIE model and providing a knowledge extraction prediction interface. The input of the knowledge extractor is a piece of news text, and the output is the entity information, event information list, and event sentiment polarity contained in the text. In actual use, the service is called regularly to extract knowledge from the collected news.
[0143] 2.5.4 Hot Event Handling
[0144] Knowledge extractors can be used to extract a large amount of event information from the news. It is necessary to further identify hot events from these events to provide direct support for investment risk assessment; at the same time, the development context of hot events should be explored to provide indirect background knowledge for risk assessment.
[0145] (1) Identification of hot events
[0146] The main idea of realizing hot event identification is to cluster the extracted event information in units of days. Each cluster represents the same event. When the cluster size exceeds the set threshold (such as 10), the event is considered a hot event and imported into the hot event database. Figure 3 The principle block diagram is given. Among them, event clustering adopts a method based on DBSCAN clustering and structured event information clustering. The DBSCAN clustering method clusters the news text fragments corresponding to the event. Specifically, the FastText method is used to obtain the vector representation of the text fragment as the input of the DBSCAN algorithm, and the cosine similarity is used to measure the distance between the event text vectors; the two hyperparameters of the DBSCAN algorithm are set as: the minimum number of neighborhood points is set to 10, and the neighborhood radius is set between 0.3-0.5. The method based on structured event information clustering uses the extracted structured knowledge, including event type, trigger words, argument type and argument value, etc., and judges whether two extracted knowledge points to the same event based on heuristic rules. For example, when the event type, subject and object argument, and time (or place) argument of the two pieces of knowledge are the same, it can be judged that the corresponding events are the same event. The clustering results of the two methods are combined to obtain event clusters, and events whose cluster size exceeds the set threshold are determined as hot events.
[0147] The purpose of fusing the structured information in the hot event clusters is to obtain more comprehensive event knowledge. For example, the time of the event is extracted from news A and the location of the event is extracted from news B. By fusing the two, more comprehensive event information can be obtained. If there is a knowledge conflict during the fusion process, a voting method is used to consider that the knowledge with the highest frequency is more likely to be correct. Finally, the news text describing the hot event and the structured information of the event are stored in the database to form a hot event library.
[0148] (2) Exploring the development context of the event
[0149] The development context of events can help users understand the background knowledge of hot events in a more three-dimensional and intuitive way, thereby indirectly improving the effect of risk assessment. The present invention uses a time slice clustering method to mine the main development stages and development context of events.
[0150] Specifically, we first use the above clustering algorithm to cluster events within a period of time (for example, 60 days). In the clustering results, each cluster usually contains sub-events at different stages of the same event. Then, we arrange the events in the cluster according to the time of occurrence, and project the event occurrence time onto the timeline. If the event has obvious development stages, there will be corresponding event-intensive areas on the timeline. These areas are the various stages of the event we want to obtain.
[0151] Secondly, we use the agglomerative hierarchical clustering method to obtain event-intensive time segments. First, we treat each event as a time segment, and merge the two closest segments each time until the distance between any two segments is greater than a pre-set threshold. At this point, the clustering of time segments is completed, and then we set the density threshold to filter and obtain the event-intensive area.
[0152] Finally, a representative event is determined from each event-intensive area (i.e., event progress set). Specifically, the importance of the event is measured using indicators such as the authority of the event source news site, release time, and number of reposts, and the one with the highest importance is selected as the representative event of this development stage.
[0153] 2.6 Build an investment risk assessment engine driven by hot events
[0154] Build an investment risk assessment engine driven by hot events to realize the calculation and dynamic update of the investment risk index (IRI). The assessment of the investment risk index consists of two parts: risk index prior based on static basic data and risk index update based on dynamic time series data. The risk index prior is obtained by weighting the annual assessment scores of all primary and secondary indicators in the national risk basic indicator library; the risk index update uses the hot event stream extracted from multi-source news to evaluate the impact of each hot event on various indicators of a specific country, so as to realize real-time dynamic national investment risk update.
[0155] 2.6.1 Risk Index Priors Based on National Risk Basic Indicators
[0156] The static prior value of the investment risk index mainly refers to the relevant analysis framework of relevant institutions, and maps each dimension in the national risk basic indicator library to the first-level indicator of the investment risk evaluation indicator system in Section 2.2.1. On this basis, the risk basic indicator values mapped by each first-level indicator are weighted averaged and normalized to obtain an index value between 0 and 100 as the risk index prior value. The following Table 4 shows the mapping relationship between each dimension in the national risk basic indicator library and the first-level indicator of the investment risk evaluation indicator system.
[0157] Table 4 is an example of the mapping relationship between the dimensions in the national risk basic indicator database and the first-level indicators of the investment risk assessment indicator system.
[0158]
[0159] 2.6.2 Risk Index Update Based on Time Series Hot Events
[0160] We use the basic indicator values calculated above as prior knowledge, and then use the hot event stream extracted in Section 2.5 as posterior data to evaluate and adjust a country's investment risk index at the daily level.
[0161] (1) Quantitative assessment of risk scores for individual events
[0162] When quantitatively evaluating a hot event, we first obtain detailed information about the event from the hot event database, including the event type, related countries, etc., and then correspond it to the first-level indicator based on the risk perception model in Section 2.2, and evaluate the direction and degree of its impact on investment risk. The direction of investment risk impact refers to the positive or negative impact of the event on the investment risk indicator. We determine the direction of the impact of a single event on investment risk by expert definition and model extraction. For the quantitative assessment of the degree of impact, the proportion of current events to the day's events is used as the basic weight, and news fluctuations are used to distinguish between the assessment of ongoing events and sudden events. The impact value / risk score of an event on the first-level investment risk indicator of a related target country is calculated as follows:
[0163]
[0164] Sentiment event The emotional polarity of the event determines the direction of risk impact; C t and C t-1 are the total number of events in the target country on the current day and the previous day; C t,j and C t-1,j are the number of events under the jth first-level indicator of the country on the current day and the previous day, respectively, where the jth first-level indicator is the first-level indicator corresponding to the current event; τ j It is the time attenuation coefficient of the j-th first-level indicator, which is calculated based on the impact of the event on the first-level indicator in the past week.
[0165] (2) Quantitative assessment of the risk value of the first-level indicator
[0166] For a certain first-level indicator of a target country, all events related to the country that can be mapped to the first-level indicator are screened from the hot event database; on this basis, the updated value of the first-level indicator of the target country is obtained by averaging the risk scores of all screened hot events, and the sigmoid function is used to adjust the updated value to keep the index within the specified range. The specific calculation method is shown in the following formula:
[0167]
[0168] Where update t,j is the updated value of the first-level indicator j on the day, score t,j is the risk value of the first-level indicator j after adjustment on the day, and the corresponding score t-1,j is the risk value of the first-level indicator j on the previous day.
[0169] (3) Calculation of overall index
[0170] The overall index is calculated by weighting the risk values of all the updated first-level indicators. The weight of the first-level indicators is calculated using the entropy method. The entropy is mainly used to measure uncertainty. The smaller the uncertainty of the data, the smaller the entropy, and the greater the amount of information. According to the above characteristics, the randomness and disorder of an event can generally be judged by calculating the size of the entropy value, and the degree of dispersion of a certain indicator can also be judged by the size of the entropy value. The greater the dispersion of the indicator, the greater the impact (weight) of the indicator on the comprehensive evaluation.
[0171] In the calculation of investment risk index, suppose there are m countries and n primary indicators. Then X ij is the score of the jth primary indicator of the ith country, Y j is the weight of the jth first-level indicator. The first-level indicators of all dimensions of all countries constitute the matrix X = |X ij | (m×n) , after normalization, we get X′=|X′ ij | (m×n) .
[0172] a) Calculate the weight of the index value W ij
[0173]
[0174] b) Calculate the information entropy e of index j j
[0175]
[0176] c) Calculate the information redundancy d of index j j
[0177] d j =1-e j
[0178] d) Calculate the weight Y of indicator j j
[0179]
[0180] Finally, add the weight of the first-level indicator to the first-level indicator risk value obtained in the previous step to obtain the overall investment risk index, as shown in the following formula.
[0181]
[0182] There are other alternatives for step S1 of constructing a hot event category system: other event category systems may be used.
[0183] For step S2.1 of constructing an investment risk assessment system, there are other alternatives: other risk assessment systems can be used.
[0184] For step S5.2 of building a text classifier, there are other alternatives: other text classification models besides UTC can be used.
[0185] For step S5.3 of building a knowledge extractor, there are other alternatives: other information extraction models besides UIE can be auditioned.
[0186] The present invention also provides an investment risk assessment system driven by hot events, which is characterized by comprising
[0187] The investment risk assessment cognitive model is used to associate various hot events in the hot event classification system with the corresponding indicators of the investment risk assessment indicator system and set the weight of each indicator;
[0188] Multi-source news collector, used to collect news data from selected data sources and build a dynamic news library;
[0189] The national risk basic indicator library is used to store the national risk basic indicator values in multiple dimensions;
[0190] An information extraction engine is used to extract event-related information from the dynamic news library, cluster the events in the dynamic news library according to the event-related information, obtain multiple event clusters, and determine whether each event cluster belongs to a hot spot, thereby building a hot event library;
[0191] A risk assessment engine driven by hot events, used to calculate a static risk index prior value of the target country based on the national risk basic indicator library, update the static risk index prior value based on the investment risk assessment cognitive model and the hot events at each time point in the hot event library to obtain a dynamic risk index update value, and calculate the investment risk assessment result of the target country based on the dynamic risk index update value;
[0192] The system front-end module is used to provide users with an interactive interface, visualize investment risks, and display basic information, background information and risk scores of hot events;
[0193] The system backend module is used to periodically extract news information, process hot events, update investment risk index, and obtain news, events, and investment risk information of various countries / regions based on user input on the front end.
[0194] The present invention also provides a server, characterized in that it 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 above method.
[0195] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0196] Although the specific embodiments of the present invention are disclosed for the purpose of illustration, the purpose is to help understand the content of the present invention and implement it accordingly, those skilled in the art will understand that various substitutions, changes and modifications are possible without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the content disclosed in the best embodiment, and the scope of the present invention is subject to the scope defined in the claims.
Claims
1. A hot event driven investment risk assessment method, the steps of which are include: S1. Establish a hot event classification system; S2, associating various hot events in the hot event classification system with corresponding indicators of the investment risk evaluation indicator system and setting the weight of each indicator to obtain an investment risk evaluation cognitive model driven by hot events, S3. Build a national risk basic indicator database for target countries; S4, collecting news data from the selected data source and building a dynamic news library; S5, extracting event-related information from the dynamic news library using an information extraction engine, clustering the events in the dynamic news library according to the event-related information to obtain multiple event clusters, and determining whether each event cluster belongs to a hot spot, thereby constructing a hot event library; S6. Construct an investment risk assessment engine driven by hot events. The investment risk assessment engine calculates a static risk index prior value of the target country based on the national risk basic indicator library, updates the static risk index prior value based on the investment risk assessment cognitive model and the hot events at each time point in the hot event library to obtain a dynamic risk index update value, and calculates the investment risk assessment result of the target country based on the dynamic risk index update value.
2. The method according to claim 1, It is characterized in that The method for establishing the investment risk assessment cognitive model is: first, referring to the research results of authoritative institutions and scholars at home and abroad, constructing an investment risk assessment index system; then establishing a mapping relationship between each investment risk assessment index in the investment risk assessment index system and several small categories of events in the hot event category system and determining the weight of each investment risk assessment index to obtain the risk assessment cognitive model.
3. The method according to claim 2, It is characterized in that The method for calculating the investment risk assessment result of the target country is: S6.
1. The investment risk assessment engine maps the national risk basic indicator values in the national risk basic indicator library to the primary indicators in the investment risk assessment indicator system, and performs weighted averaging and normalization on the national risk basic indicator values mapped under each of the primary indicators, thereby calculating the static risk index prior value of the target country; S6.
2. By quantifying the impact of the hot event information in the hot event database on investment risk, the static risk index prior value of the target country is updated to obtain a dynamic risk index update value. The specific steps are as follows: S6.2.
1. Obtain information on each hot event from the hot event database, correspond the hot event to the primary indicator in the investment risk assessment index system based on the investment risk assessment cognitive model, and evaluate the direction and degree of impact of the hot event on the target country's investment; wherein the direction of impact is determined based on the sentiment polarity of the hot event, and the degree of impact is determined based on the proportion of hot events of the same type as the hot event to all hot events on the day; and the investment risk impact score of the hot event on the target country is calculated based on the direction and degree of impact of the hot event on the target country's investment; S6.2.
2. Calculate the updated value of the dynamic risk index of the first-level indicator based on the average of the investment risk impact scores of all hot events under the first-level indicator on the target country, and use the sigmoid function to adjust the updated value of the dynamic risk index of the first-level indicator to keep it within the specified range; S6.2.
3. The updated values of the dynamic risk index of each primary indicator are weighted and calculated to obtain the overall investment risk index as the investment risk assessment result for the target country.
4. The method according to claim 1, It is characterized in that The method for constructing the hot event library is: S5.
1. Construct a knowledge system, which includes a news category system, an entity category system, an event category system, and an event argument system defined based on domain expert knowledge; S5.2, constructing a text classifier, wherein the text classifier uses a text classification model to identify news categories from input news text; S5.3, constructing a knowledge extractor, wherein the knowledge extractor extracts event information, event sentiment polarity, and event-related entities from an input news text segment using an information extraction method; S5.4, clustering the events extracted in step S5.3, each cluster represents the same event, and when the cluster size exceeds a set threshold, the events in the cluster are determined to be hot events and stored in the hot event library.
5. The method according to claim 4, It is characterized in that The hot events in the hot event database are clustered by time slices to explore the development context of the events.
6. The method according to claim 1, It is characterized in that The hot event classification system includes: economic events, foreign trade events, infrastructure events, environmental events, and security events; each major event category includes several minor events, and an event argument system is defined for each minor event category.
7. The method according to claim 1, It is characterized in that The event-related information includes news categories, events in the news, event-related entities, and event sentiment polarity; the selected data source is determined according to the target country, news data is collected, and a dynamic news library is constructed.
8. An investment risk assessment system driven by hot events, It is characterized in that include The investment risk assessment cognitive model is used to associate various hot events in the hot event classification system with the corresponding indicators of the investment risk assessment indicator system and set the weight of each indicator; Multi-source news collector, used to collect news data from selected data sources and build a dynamic news library; The national risk basic indicator library is used to store the national risk basic indicator values in multiple dimensions; An information extraction engine is used to extract event-related information from the dynamic news library, cluster the events in the dynamic news library according to the event-related information, obtain multiple event clusters, and determine whether each event cluster belongs to a hot spot, thereby building a hot event library; A risk assessment engine driven by hot events, used to calculate a static risk index prior value of the target country based on the national risk basic indicator library, update the static risk index prior value based on the investment risk assessment cognitive model and the hot events at each time point in the hot event library to obtain a dynamic risk index update value, and calculate the investment risk assessment result of the target country based on the dynamic risk index update value; The system front-end module is used to provide users with an interactive interface, visualize investment risks, and display basic information, background information and risk scores of hot events; The system backend module is used to periodically extract news information, process hot events, update investment risk index, and obtain news, events, and investment risk information of various countries / regions based on user input on the front end.
9. A server, It is characterized in that The method 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 each step in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Enterprise risk assessment method and device, computer equipment and storage medium
CN119398504A
