Financial research report chart analysis method and system based on context awareness
By training the target detection model and semantic correlation analysis, a detailed chart summary is generated, which solves the problem of chart semantic extraction in financial research reports, improves the accuracy of analysis, and assists investors to make more reasonable decisions.
Patent Information
- Application Number
- CN202410355398.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing chart analysis methods for financial research reports are difficult to accurately extract chart semantics, and the information conveyed by charts is not detailed and cannot effectively assist investors in making decisions.
Use a pre-built financial research report data set to train the target detection model, extract chart data and extract text, generate chart summaries through semantic correlation analysis and associated data, and combine with visual perception scoring to improve analysis accuracy.
It improves the accuracy of chart analysis and summary and can more effectively assist investors in making decisions.
Smart Images

Figure CN118536478A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a context-aware financial research report chart analysis method and system. Background Art
[0002] In the financial field, investment research analysts need to spend a lot of time analyzing current financial trends, including detailed reviews of financial news, balance sheets, and research reports. Among these materials, financial research reports, as official and comprehensive compilations of information, are often key resources for investment deliberations. In order to be able to reflect market dynamics and economic events in a timely manner, financial research reports are usually information-intensive and contain a large amount of financial data, charts, and statistical information to support their analysis and conclusions. In the analysis of financial research reports, chart extraction and summarization are crucial for interpreting key information. If there is a system to assist investors in analyzing research report charts, investors can make more reasonable decisions more efficiently.
[0003] Existing financial research report chart analysis methods mainly summarize charts by analyzing chart elements. However, charts in financial research reports are bitmaps and lack metadata, which makes it difficult for existing financial research report chart analysis methods to accurately extract chart semantics. In addition, the information conveyed by charts is not always detailed or accurate. They often depict trends without revealing specific values. Therefore, existing financial research report chart analysis methods cannot accurately analyze and summarize charts, and thus cannot assist investors in making reasonable decisions. Summary of the invention
[0004] In order to solve the above-mentioned problems in the prior art, the present invention provides a context-aware financial research report chart analysis method and system, which can more accurately analyze and summarize the charts in the financial research report.
[0005] In order to achieve the above technical objectives, the technical solutions adopted by the embodiments of the present invention include:
[0006] In a first aspect, the present invention provides a context-aware financial research report chart analysis method, comprising:
[0007] A pre-built financial research report dataset is used to train the target detection model, and the trained target detection model is used to extract each chart data in the financial research report dataset, where the chart data includes the chart and the corresponding chart title;
[0008] Extract the text from the financial research report dataset and divide the text into sentences to obtain several sentences;
[0009] Performing semantic relevance analysis on the chart title and the sentences to obtain at least one target sentence that satisfies a preset semantic relevance with the chart title;
[0010] Associating a chart title and a corresponding chart with at least one target sentence to obtain associated data;
[0011] Generate graphical summaries from linked data.
[0012] In addition, the context-aware financial research report chart analysis method of the present invention may also have the following additional technical features:
[0013] Furthermore, in a context-aware financial research report chart analysis method of the present invention, extracting text from a financial research report data set and dividing the text into sentences includes:
[0014] Use optical character recognition technology to extract text and detect punctuation in the text in a financial research report dataset;
[0015] Divide the text into sentences based on the punctuation marks in the text.
[0016] Furthermore, in the present invention, a semantic correlation analysis is performed on the chart title and the sentence, and at least one target sentence having a preset semantic correlation with the chart title is obtained, including:
[0017] Use the pre-trained language model to vectorize the chart title and each sentence to obtain the chart title vector and several sentence vectors;
[0018] Calculate the cosine similarity between the chart title vector and each sentence vector;
[0019] A sentence corresponding to a sentence vector whose cosine similarity to the chart title vector is greater than a first preset threshold is determined as at least one target sentence.
[0020] Further, in the present invention, generating a chart summary based on the associated data includes:
[0021] Feed the contextual data into a large language model to generate a graphical summary.
[0022] Furthermore, in the present invention, the context-aware financial research report chart analysis method further includes:
[0023] A visual perception score is calculated based on the associated data.
[0024] Furthermore, in the present invention, calculating the visual perception score according to the associated data includes:
[0025] Performing saliency detection on the graphs in the associated data to obtain a saliency map corresponding to the graphs in the associated data;
[0026] Binarizing the saliency map according to a second preset threshold value to obtain salient pixels in the saliency map;
[0027] The ratio of salient pixels to all pixels in the saliency map is calculated to obtain the visual perception score.
[0028] Furthermore, in the present invention, the target detection model is a YOLO model.
[0029] Furthermore, in the present invention, the construction of the financial research report dataset includes:
[0030] Convert each page of the collected research report documents into images;
[0031] The location and category of the charts in each image are labeled, and the labeled images are used as a financial research report dataset.
[0032] Furthermore, in the present invention, before converting each page of the collected research report document into an image, the construction of the financial research report dataset further includes:
[0033] Filter out documents without charts and encrypted documents in research report documents.
[0034] In a second aspect, an embodiment of the present invention proposes a context-aware financial research report chart analysis system, comprising:
[0035] Object detection module, extraction module, semantic association module and summary module;
[0036] The target detection module is used to train the target detection model using the pre-built financial research report data set, and use the trained target detection model to extract various chart data in the financial research report data set, where the chart data includes the chart and the corresponding chart title;
[0037] The extraction module is used to extract text from the financial research report dataset and divide the text into sentences to obtain several sentences;
[0038] The semantic association module is used to perform semantic correlation analysis on the chart title and the sentence, obtain at least one target sentence that satisfies the preset semantic correlation with the chart title, and associate the chart title and the corresponding chart with the at least one target sentence to obtain associated data;
[0039] The summary module is used to generate graphical summaries based on the associated data.
[0040] The beneficial effects of the present invention are embodied in that a target detection model is trained using a pre-constructed financial research report data set, and each chart data in the financial research report data set is extracted using the trained target detection model, and then the text in the financial research report data set is extracted and the text is divided into sentences, and a semantic correlation analysis is performed on the chart title and the sentence, and after obtaining at least one target sentence that satisfies a preset semantic correlation with the chart title, the chart title and the corresponding chart are associated with the at least one target sentence to obtain associated data, and then a chart summary is generated according to the associated data containing the semantic context information corresponding to the chart consisting of the chart title and the text sentence, thereby improving the accuracy of the chart analysis summary and being able to assist investors in making reasonable decisions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flowchart of a specific embodiment of a context-aware financial research report chart analysis method provided by the present invention;
[0042] Figure 2 A schematic diagram of a financial research report data set construction process according to a specific embodiment of a financial research report chart analysis method based on context awareness provided by the present invention;
[0043] Figure 3 A schematic diagram of the process of text extraction and sentence segmentation of a financial research report data set in a specific embodiment of a context-aware financial research report chart analysis method provided by the present invention;
[0044] Figure 4 A schematic diagram of a visual perception scoring calculation process of a specific embodiment of a context-aware financial research report chart analysis method provided by the present invention;
[0045] Figure 5 A schematic structural diagram of a specific embodiment of a context-aware financial research report chart analysis system provided by the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] Existing financial research report chart analysis methods mainly summarize charts by analyzing chart elements. However, the charts in financial research reports are bitmaps and lack metadata, which makes it difficult for existing financial research report chart analysis methods to accurately extract chart semantics. In addition, the information conveyed by the charts is not always detailed or accurate. They often depict trends without revealing specific values. Therefore, the existing financial research report chart analysis methods cannot accurately analyze and summarize charts, and thus cannot assist investors in making reasonable decisions. To this end, an embodiment of the present invention proposes a financial research report chart analysis method and system based on context perception, which uses a pre-constructed financial research report data set to train a target detection model, and uses the trained target detection model to extract each chart data in the financial research report data set, then extracts the text in the financial research report data set and divides the text into sentences, and performs semantic relevance analysis on the chart title and the sentence, obtains at least one target sentence that meets the preset semantic relevance with the chart title, and then associates the chart title and the corresponding chart with the at least one target sentence to obtain associated data, and then generates a chart summary according to the associated data containing the semantic context information corresponding to the chart, which is composed of the chart title and the text sentence, thereby improving the accuracy of the chart analysis summary and assisting investors in making reasonable decisions.
[0048] Reference Figure 1 , a context-aware financial research report chart analysis method in an embodiment of the present invention includes:
[0049] S101. Use a pre-built financial research report data set to train a target detection model, and use the trained target detection model to extract each chart data in the financial research report data set.
[0050] The chart data includes the chart and the corresponding chart title.
[0051] Specifically, the present invention uses a pre-constructed financial research report data set to train a target detection model, so that the target detection model can accurately locate and classify charts in the financial research report, and can identify and extract chart titles corresponding to the charts.
[0052] It is understandable that the chart title is the key to understanding the content and context of the chart, and it summarizes the data set displayed by the chart or the analysis theme expressed. Therefore, the embodiment of the present invention uses a trained target detection model to extract each chart and the corresponding chart title in the financial research report data set, which can enhance the interpretability of the chart data and provide richer chart information for further chart analysis.
[0053] Optionally, in some embodiments, the target detection model is a YOLO (You Only Look Once) model. The embodiment of the present invention uses a pre-built financial research report data set to train a YOLO model, and uses the trained YOLO model to extract various chart data in the financial research report data set, including charts, chart types, and chart titles.
[0054] The core idea of the YOLO model is to convert the target detection task into an inference problem of a single neural network. It divides the input image into SxS grids, each of which is responsible for detecting the target in the image. In each grid, YOLO predicts a fixed number of bounding boxes and the category probabilities of the corresponding targets. The output of the entire network is a SxSx(Bx5+C) tensor, where B is the number of bounding boxes predicted for each grid, 5 represents the information of each bounding box (center coordinates, width, height, confidence), and C is the number of categories. By processing the output tensor, YOLO can output the location, category, and confidence of all detected targets in the image.
[0055] It is understandable that the embodiment of the present invention adopts the YOLO model, and end-to-end training can be used in the model training process, thereby improving the generalization ability of the model. At the same time, when the embodiment of the present invention adopts the YOLO model to detect and extract various chart data in the financial research report data set, it can simultaneously identify the types and positions of multiple charts, thereby improving the extraction efficiency of chart data, and the YOLO model has higher target detection accuracy than other target detection models, thereby improving the accuracy of chart data extraction, thereby improving the accuracy of subsequent chart analysis and summary.
[0056] Optionally, refer to Figure 2 In some embodiments, the construction of the financial research report dataset includes:
[0057] Step S21, converting each page of the collected research report document into a picture;
[0058] Step S22: annotate the position and category of the charts in each image, and use the annotated images as a financial research report dataset.
[0059] Among them, the collected research report documents can come from different companies or financial institutions, and there may be a variety of different formats and layout styles, such as traditional annual financial statements and modern digital research reports. It is understandable that the multimodal information in financial research reports not only includes detailed text descriptions, but also contains a variety of visual charts. These charts play a vital role in conveying complex data and revealing potential trends. They can show the relationship, proportion and development trend between data in an intuitive way, and can often reveal subtle differences and complex patterns that are difficult to capture in text descriptions. The research report documents collected in the embodiment of the present invention can come from a wide range of industries and markets, that is, the context-aware financial research report chart analysis method of the embodiment of the present invention can be widely applied to the analysis and summary of different research report charts.
[0060] Specifically, for step S21, the embodiment of the present invention converts the collected research report documents into image format page by page, and fixes the content of each page of the document into an image, so that multiple document pages that may originally involve different formats and layouts become a unified visual input image, which is convenient for subsequent image processing and analysis.
[0061] For step S22, the charts in each image converted in step S21 are annotated, and the specific locations and categories of these charts are recorded. The categories of charts include line charts, bar charts, pie charts, combination charts, etc. The embodiment of the present invention annotates the chart types of each research report document, so that the target detection model subsequently trained using the financial research report data set can recognize the presentation methods of various charts, so that the target detection model can maintain consistent effect and accuracy when processing the visual information in different research report documents.
[0062] Optionally, continue to refer to Figure 2 In some embodiments, the construction of the financial research report dataset further includes:
[0063] Step S20: Screen out documents without charts and encrypted documents in the research report documents.
[0064] Specifically, in order to ensure that each research report document contains chart elements, the embodiment of the present invention first performs data cleaning on the collected research report documents before step S21, and screens out documents without charts in the research report documents. Since encrypted documents cannot perform chart data extraction and analysis operations, the embodiment of the present invention also screens out encrypted documents in the research report documents. Through step S20, the embodiment of the present invention filters out abnormal data that is not conducive to subsequent chart analysis and summary, and improves the effect of target detection model training, making the extracted chart data more accurate.
[0065] S102. Extract text from the financial research report data set and divide the text into sentences to obtain a number of sentences.
[0066] Specifically, the embodiment of the present invention processes a financial research report data set, detects and identifies text in the financial research report, converts it into machine-readable text, and further performs structured segmentation on the continuous text content according to sentences to obtain multiple sentences.
[0067] It is understandable that the embodiment of the present invention can provide clearer data units by dividing the text in the financial research report into multiple sentences, so that the semantic information of the text can be captured more finely in the subsequent process, and the accuracy of the subsequent semantic correlation association can be improved. At the same time, the embodiment of the present invention divides the continuous text into an ordered sequence of sentences, which can improve the accuracy and efficiency of the subsequent text analysis.
[0068] Optionally, refer to Figure 3 In some embodiments, step S102 of extracting text from the financial research report dataset and dividing the text into sentences may include the following steps:
[0069] Step S31: extract text from the financial research report data set and detect punctuation marks in the text using optical character recognition technology.
[0070] Step S32: divide the text into sentences according to the punctuation marks in the text.
[0071] Specifically, for step S31, an embodiment of the present invention uses optical character recognition technology (such as PaddleOCR) to optically recognize characters in a financial research report dataset, accurately detect, identify, and extract text content, and detect punctuation marks in the text. Among them, PaddleOCR is an open source OCR (Optical Character Recognition) tool library developed by Baidu based on the PaddlePaddle deep learning framework. It can be understood that the embodiment of the present invention uses optical character recognition technology to extract text and detect punctuation marks in the text in a financial research report dataset, which can cope with text recognition of financial research report documents in different languages, and can meet the needs of various text recognition tasks.
[0072] For step S32, the embodiment of the present invention determines the beginning and end of the sentence according to the terminal symbols in the punctuation marks (such as period, question mark, exclamation mark), thereby identifying the boundaries of the sentence, and divides the text extracted in step S31 into multiple sentences. It can also retain the grammatical structure and logical order within the sentence without changing the semantic information of the sentence, thereby providing more detailed text semantic information for the subsequent process without affecting the accuracy of the semantic information.
[0073] S103: Perform semantic relevance analysis on the chart title and the sentences to obtain at least one target sentence that satisfies a preset semantic relevance with the chart title.
[0074] Specifically, the embodiment of the present invention analyzes the semantic relevance between the chart title and each sentence, and identifies at least one target sentence in the financial research report document that satisfies the preset semantic relevance with the chart title, and the chart title corresponds to the chart, that is, the at least one target sentence is the text context related to the chart. It can be understood that the embodiment of the present invention can match the text context related to the chart through step S103, and the use of the text context can enhance the interpretability of the chart, can better understand the data and analysis results represented by the chart, and provide information assistance for the subsequent generation of chart summaries.
[0075] Optionally, in some embodiments, step S103 may include:
[0076] 1) Use the pre-trained language model to vectorize the chart title and each sentence to obtain the chart title vector and several sentence vectors;
[0077] 2) Calculate the cosine similarity between the chart title vector and each sentence vector;
[0078] 3) Determine a sentence corresponding to a sentence vector whose cosine similarity with the chart title vector is greater than a first preset threshold as at least one target sentence.
[0079] Specifically, the language model is a text2vec model. Some embodiments of the present invention use a pre-trained text2vec model to perform deep vectorization processing on the chart title and each sentence, converting the chart title and each sentence into a vector representation in a high-dimensional space. It can be understood that these vectors capture the semantic features of the chart title and sentence, so that the machine can understand and process natural language.
[0080] After the chart title and each sentence are vectorized, some embodiments of the present invention analyze the semantic association between the document text and the chart title by sequentially calculating the cosine similarity between the chart title vector and each sentence vector, quantitatively evaluating the semantic proximity of the two texts, and identifying at least one target sentence in the document text that has the strongest semantic relevance to the chart title (cosine similarity is greater than a first preset threshold).
[0081] S104: Associating the chart title and the corresponding chart with at least one target sentence to obtain associated data.
[0082] It is understandable that the existing financial research report chart analysis method mainly summarizes the chart by analyzing the chart elements, and the information conveyed by the chart is not always detailed or accurate. They often depict trends without revealing specific values, and require text descriptions to supplement the explanation, resulting in the inability of the existing financial research report chart analysis method to comprehensively and accurately analyze and summarize the chart. Therefore, the embodiment of the present invention associates the chart title and the corresponding chart with at least one target sentence for subsequent chart analysis and summary. According to step S103, it can be seen that the above-mentioned at least one target sentence is a text context related to the chart, and the associated data generated by the embodiment of the present invention has text context information related to the chart, and the chart summary obtained using the associated data is more comprehensive and accurate.
[0083] S105. Generate a chart summary based on the associated data.
[0084] It can be understood that, according to step S104, since the associated data includes text context information related to the chart, the chart summary generated by the embodiment of the present invention based on the associated data is more comprehensive and accurate.
[0085] Optionally, in some embodiments, step S105 may include:
[0086] The contextual data is fed into a Large Language Model (LLM) to generate a graphical summary.
[0087] It is understandable that a large language model is an advanced artificial intelligence algorithm trained on a large amount of data, and is a powerful tool for understanding and generating natural language text. The embodiment of the present invention inputs the associated data into a large language model to generate a comprehensive summary. These summaries not only include the key data points and trends shown in the charts, but also provide the analysis and explanation behind them in combination with the contextual information of the charts. Furthermore, in order to achieve high-quality output, the embodiment of the present invention uses prompt engineering to guide the large language model to generate specific text by designing language prompts, more effectively focusing the attention of the large language model on the data interpretation of the chart, and combining the information in at least one target sentence in the associated data to generate content. The summary generated by the large language model not only has sufficient information, but also is fluent in language expression, and can provide users with accurate and easy-to-understand data interpretation.
[0088] Optionally, in some embodiments, the context-aware financial research report chart analysis method may further include:
[0089] Calculate visual perception scores based on the associated data.
[0090] Specifically, the visual perception score helps users effectively identify and prioritize key information by calculating the visual salience of charts. The visual perception score evaluates the salience and information density of charts based on the visual features of elements in the chart, such as contrast, color, and spatial distribution, thereby providing users with a quantitative way to determine which charts contain more important information and improving the effectiveness of assisting investors in making reasonable decisions.
[0091] Further, refer to Figure 4 , calculating the visual perception score based on the associated data may include the following steps:
[0092] Step S41: Perform saliency detection on the chart in the associated data to obtain a saliency map corresponding to the chart in the associated data.
[0093] Step S42: binarize the saliency map according to a second preset threshold value to obtain salient pixels in the saliency map.
[0094] Step S43: Calculate the ratio of salient pixels to all pixels in the saliency map to obtain a visual perception score.
[0095] For step S41, the embodiment of the present invention uses the BASNet model to perform saliency detection on the chart in the associated data to obtain a saliency map corresponding to the chart in the associated data. The BASNet model uses a bilateral attention network and a semi-supervised learning method, which can quickly and accurately detect and obtain a saliency map corresponding to the chart in the associated data.
[0096] For step S42, specifically, the embodiment of the present invention binarizes the saliency map obtained in step S41 according to the second preset threshold, and divides each pixel in the saliency map into 1 and 0, wherein the saliency pixels are marked as 1 and the insignificant pixels are marked as 0.
[0097] For step S43, the embodiment of the present invention calculates the ratio of significant pixels to all pixels in the saliency map. This ratio quantifies the visual prominence of the chart and serves as a visual perception score corresponding to the chart to help users quickly judge the visual appeal and information importance of the icon.
[0098] It can be understood that step S101 of the embodiment of the present invention mentions extracting multiple chart data from the financial research report data set, and steps S102-S105 are the analysis and processing process of a single chart data. The embodiment of the present invention repeats steps S102-S105 to analyze and process each chart data in step S101 to complete the analysis and processing of all chart data.
[0099] In summary, the embodiment of the present invention adopts the context-aware financial research report chart analysis method of the above steps S101-S105, by using a pre-constructed financial research report data set to train a target detection model, and using the trained target detection model to extract each chart data in the financial research report data set, and then extracting the text in the financial research report data set and dividing the text into sentences, and performing semantic relevance analysis on the chart title and sentences, and after obtaining at least one target sentence that meets the preset semantic relevance with the chart title, the chart title and the corresponding chart are associated with the at least one target sentence to obtain associated data, and then a chart summary is generated according to the associated data containing the semantic context information corresponding to the chart consisting of the chart title and the text sentence, thereby improving the accuracy of the chart analysis summary and being able to assist investors in making reasonable decisions.
[0100] Next, a context-aware financial research report chart analysis system proposed according to an embodiment of the present invention is described with reference to the accompanying drawings.
[0101] Figure 5 The present invention is a schematic diagram of a financial research report chart analysis system based on context awareness according to an embodiment of the present invention.
[0102] The system specifically includes:
[0103] Object detection module 501, extraction module 502, semantic association module 503 and summary module 504;
[0104] The target detection module 501 is used to train a target detection model using a pre-built financial research report data set, and extract various chart data in the financial research report data set using the trained target detection model, where the chart data includes a chart and a corresponding chart title;
[0105] The extraction module 502 is used to extract text from the financial research report data set and divide the text into sentences to obtain a number of sentences;
[0106] The semantic association module 503 is used to perform semantic correlation analysis on the chart title and the sentence, obtain at least one target sentence that satisfies the preset semantic correlation with the chart title, and associate the chart title and the corresponding chart with the at least one target sentence to obtain associated data;
[0107] The summary module 504 is used to generate a graphical summary based on the associated data.
[0108] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0109] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0110] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0111] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0112] In the description of the embodiments of the present invention, it should be understood that the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "center", "top", "bottom", "top", "bottom", "inside", "outside", "inner side", "outer side" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Among them, "inside" refers to an internal or enclosed area or space. "Periphery" refers to the area surrounding a specific component or a specific area.
[0113] In the description of the embodiments of the present invention, the terms "first", "second", "third", "fourth" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third", "fourth" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0114] In the description of the embodiments of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", and "assemble" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0115] In the description of the embodiments of the present invention, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0116] In the description of the embodiments of the present invention, it is to be understood that "-" and "~" represent the range between two values, and the range includes the endpoints. For example: "AB" represents a range greater than or equal to A and less than or equal to B. "A~B" represents a range greater than or equal to A and less than or equal to B.
[0117] In the description of the embodiments of the present invention, the term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.
[0118] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A context-aware financial research report chart analysis method, characterized in that: include: Using a pre-built financial research report data set to train a target detection model, and using the trained target detection model to extract various chart data in the financial research report data set, the chart data including charts and corresponding chart titles; Extracting text from the financial research report dataset and dividing the text into sentences to obtain a plurality of sentences; Performing semantic relevance analysis on the chart title and the sentence to obtain at least one target sentence that satisfies a preset semantic relevance with the chart title; Associating the chart title and the corresponding chart with the at least one target sentence to obtain associated data; A graphical summary is generated based on the associated data.
2. A context-aware financial research report chart analysis method according to claim 1, characterized in that: The extracting text from the financial research report data set and dividing the text into sentences comprises: Extracting the text from the financial research report dataset and detecting punctuation marks in the text using optical character recognition technology; The text is divided into sentences according to punctuation marks in the text.
3. The context-aware financial research report chart analysis method according to claim 1, characterized in that: The performing semantic relevance analysis on the chart title and the sentence to obtain at least one target sentence that satisfies a preset semantic relevance with the chart title comprises: Using a pre-trained language model to vectorize the chart title and each of the sentences to obtain a chart title vector and a plurality of sentence vectors; Calculating the cosine similarity between the chart title vector and each of the sentence vectors; The sentence corresponding to the sentence vector whose cosine similarity to the chart title vector is greater than a first preset threshold is determined as the at least one target sentence.
4. The context-aware financial research report chart analysis method according to claim 1, characterized in that: Generating a chart summary according to the associated data includes: The associated data is input into a large language model to generate the graphical summary.
5. The context-aware financial research report chart analysis method according to claim 1, characterized in that: The method further comprises: A visual perception score is calculated based on the associated data.
6. A context-aware financial research report chart analysis method according to claim 5, characterized in that: Calculating the visual perception score according to the associated data includes: Performing saliency detection on the chart in the associated data to obtain a saliency map corresponding to the chart in the associated data; Binarizing the saliency map according to a second preset threshold value to obtain salient pixels in the saliency map; The ratio of the salient pixels to all pixels in the saliency map is calculated to obtain the visual perception score.
7. The context-aware financial research report chart analysis method according to claim 1, characterized in that: The target detection model is the YOLO model.
8. The context-aware financial research report chart analysis method according to claim 1, characterized in that: The construction of the financial research report dataset includes: Convert each page of the collected research report documents into images; The positions and categories of the charts in each picture are marked, and the marked pictures are used as the financial research report dataset.
9. A context-aware financial research report chart analysis method according to claim 8, characterized in that: Before converting each page of the collected research report documents into images, the construction of the financial research report dataset further includes: The documents without charts and encrypted documents in the research report documents are filtered out.
10. A context-aware financial research report chart analysis system, characterized in that: include: Object detection module, extraction module, semantic association module and summary module; The target detection module is used to train a target detection model using a pre-constructed financial research report data set, and extract various chart data in the financial research report data set using the trained target detection model, wherein the chart data includes a chart and a corresponding chart title; The extraction module is used to extract text from the financial research report data set and divide the text into sentences to obtain a plurality of sentences; The semantic association module is used to perform semantic correlation analysis on the chart title and the sentence to obtain at least one target sentence that satisfies a preset semantic correlation with the chart title, and associate the chart title and the corresponding chart with the at least one target sentence to obtain association data; The summary module is used to generate a graphical summary based on the associated data.
Citation Information
Cited By
News broadcasting method based on artificial intelligence and related device
CN121075311A
Text data governance method based on large model
CN121503443A
A large model-based text data governance method
CN121503443B
