Financial news analysis and prediction method and device, electronic equipment and storage medium

By vectorizing financial news data and building a news knowledge base, combined with natural language processing models, we solve the problems of low efficiency, poor accuracy and high maintenance cost of financial news analysis in the existing technology, and achieve efficient and accurate financial news analysis and prediction. , the flexibility to adapt to market changes.

CN118586493APending Publication Date: 2024-09-03SHENZHEN YLINK COMPUTING SYST
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410640923.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing financial news analysis technology relies on manual analysis and frequent model training, has low efficiency and accuracy, is not flexible enough, has high maintenance costs, and cannot quickly adapt to market changes.

Method used

By obtaining and preprocessing financial news data, using vector libraries for vectorization, obtaining labeled data sets to build a news knowledge base, and combining natural language processing models to generate analysis and prediction reports, efficient and accurate financial news analysis can be achieved.

Benefits of technology

Without the need for continuous training and adjustment of the model, market analysis and predictions are provided quickly and accurately, reducing maintenance pressure and operating costs, and improving the timeliness and reliability of analysis results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586493A
    Figure CN118586493A
Patent Text Reader

Abstract

The embodiment of the invention discloses a financial news analysis and prediction method and device, electronic equipment and a storage medium, and relates to the technical field of natural language process.The method comprises the steps that financial news data are obtained and preprocessed, and vectorization is conducted on the financial news data through a vector library to obtain vectorized data; obtaining a data set with a label, and obtaining a label classification mode according to the data set with the label; performing classification analysis on the vectorized data according to the tag classification mode to obtain an analysis result, and constructing a news knowledge base according to the vectorized data and the analysis result; and obtaining a demand instruction, and obtaining an analysis prediction report through the news knowledge base and the natural language processing model based on the demand instruction. According to the method, market analysis and prediction can be rapidly and accurately provided without continuous training and model adjustment, and the problems that in the prior art, manual analysis and frequent model training are relied on, efficiency and accuracy are low, flexibility is not enough, and maintenance cost is high are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of natural language processing technology, and in particular to a financial news analysis and prediction method, device, electronic equipment and storage medium. Background Art

[0002] The current financial market is dynamic and financial news reflects the real-time changes in the market, which has a significant impact on investment decisions. In the traditional financial news analysis and prediction system, manual analysis is dominant. Analysts need to invest a lot of time and energy to read, understand and analyze a large amount of news information to extract valuable content and make predictions. This process is not only time-consuming, but also easily affected by personal experience and emotions, resulting in strong subjectivity in the prediction results, which affects the accuracy of decision-making.

[0003] As AI and machine learning technologies mature, there are many attempts to use AI for financial news analysis in the market. However, these systems generally rely on training specific models. However, model training often requires a large amount of data, and the training process is time-consuming and complicated. If the market environment changes, the model also needs to be readjusted and trained, which increases the system's response time and deployment difficulty.

[0004] As can be seen from the above, existing financial news analysis technologies rely on regular manual or automated training processes, require continuous model training and fine-tuning to adapt to new data, the model training and fine-tuning process consumes a lot of time and computing resources, the processing and feedback speed of news data cannot meet the strict timeliness requirements of the financial industry, when data characteristics or market environment changes, the model needs to be retrained and cannot adapt to new situations quickly, and to maintain the accuracy and reliability of the prediction model, continuous maintenance and updates are required.

[0005] Therefore, there is a need for a financial news analysis and prediction method that does not rely on frequent model training, is efficient and accurate, has strong flexibility, and has low maintenance costs. Summary of the invention

[0006] The embodiments of the present invention provide a financial news analysis and prediction method to solve the problems of the prior art that the prior art relies on manual analysis and frequent model training, has low efficiency and accuracy, is not flexible enough, and has high maintenance costs. The technical solution is as follows:

[0007] According to one aspect of the present invention, a financial news analysis and prediction method includes: acquiring and preprocessing financial news data, vectorizing the financial news data through a vector library to obtain vectorized data; acquiring a labeled data set, and obtaining a label classification pattern according to the labeled data set; the label classification pattern is used to indicate the correspondence between labels and vectorized data; classifying and analyzing the vectorized data according to the label classification pattern to obtain analysis results, and constructing a news knowledge base according to the vectorized data and the analysis results; acquiring demand instructions, and obtaining an analysis and prediction report based on the demand instructions through the news knowledge base and a natural language processing model.

[0008] In one embodiment, obtaining and preprocessing financial news data is achieved through the following steps: setting up multiple data processing nodes through an automated tool; the data processing nodes include data extraction nodes, conversion nodes, filtering nodes, and aggregation nodes; using the data extraction nodes in the data processing nodes to collect financial news data; and cleaning, filtering, standardizing, and identifying and extracting information from the financial news data through each of the data processing nodes.

[0009] In one of the embodiments, the financial news data is vectorized by a vector library to obtain the vectorized data by the following steps: obtaining a trained vector library; using the vector library to map the financial news data to a specific vector in a mathematical space through natural language processing technology to obtain vectorized data in numerical form; the embedded vector is used to represent the pattern and semantics of a word, phrase or sentence.

[0010] In one of the embodiments, building a news knowledge base based on the vectorized data and analysis results is achieved through the following steps: establishing an index between each of the vectorized data and analysis results in the news knowledge base; when the news knowledge base needs to be used, querying and retrieving through the API of the index, and continuously updating the data in the news knowledge base through a data synchronization mechanism.

[0011] In one of the embodiments, a labeled data set is obtained, and a label classification pattern is obtained according to the labeled data set through the following steps: obtaining a labeled data set; the labels are used to indicate the classification results and sentiment polarity of the data; and using the labeled data set to train a natural language processing model to identify text features corresponding to each label to obtain a label classification pattern.

[0012] In one of the embodiments, obtaining an analysis and prediction report based on the demand instruction through the news knowledge base and the natural language processing model is achieved by the following steps: converting the demand instruction into a demand vector, comparing the numerical vector with the vectorized data stored in the news knowledge base, and obtaining target data whose correlation meets the set conditions; inputting the target data and the demand vector into the natural language model for text data processing to obtain outputs corresponding to multiple labels; the labels include text classification, sentiment analysis, and regression analysis; formatting, merging and comparing the multiple outputs, and obtaining an analysis and prediction report in combination with actual financial news content and data scenarios; the analysis and prediction report includes classification, trend, predicted value and sentiment tendency.

[0013] In one of the embodiments, after obtaining the analysis and prediction report, the method includes the following steps: visualizing the content of the analysis and prediction report to generate reports and prediction results; outputting the reports and prediction results to a target location; the target location includes a system, a database, and a file storage tool.

[0014] According to one aspect of the present invention, a financial news analysis and prediction device includes: a data processing module, which is used to acquire and pre-process financial news data, and vectorize the financial news data through a vector library to obtain vectorized data; a classification pattern acquisition module, which is used to acquire a labeled data set and obtain a label classification pattern according to the labeled data set; a news knowledge base construction module, which is used to classify and analyze the vectorized data according to the label classification pattern to obtain an analysis result, and construct a news knowledge base according to the vectorized data and the analysis result; an analysis and prediction report generation module, which is used to acquire demand instructions and obtain an analysis and prediction report based on the demand instructions through the news knowledge base and a natural language processing model.

[0015] According to one aspect of the present invention, an electronic device includes at least one processor and at least one memory, wherein the memory stores computer-readable instructions; the computer-readable instructions are executed by one or more of the processors, so that the electronic device implements the financial news analysis and prediction method as described above.

[0016] According to one aspect of the present invention, a storage medium stores computer-readable instructions thereon, wherein the computer-readable instructions are executed by one or more processors to implement the financial news analysis and prediction method as described above.

[0017] The beneficial effects brought by the technical solution provided by the present invention are:

[0018] In the above technical scheme, the present invention first obtains and preprocesses financial news data, vectorizes the financial news data through a vector library to obtain vectorized data, then obtains a labeled data set, obtains a label classification pattern according to the labeled data set, and then classifies and analyzes the vectorized data according to the label classification pattern to obtain analysis results, builds a news knowledge base according to the vectorized data and the analysis results, and finally obtains demand instructions. Based on the demand instructions, an analysis and prediction report is obtained through the news knowledge base and a natural language processing model. By combining a natural language processing model and an efficient vectorization method, efficient, accurate and responsive financial news analysis and prediction is achieved, the data processing process is optimized, and the timeliness and reliability of the analysis and prediction results are ensured. Without the need for continuous training and adjustment of the model, market analysis and prediction are provided quickly and accurately, which greatly reduces maintenance pressure and reduces operating costs, thereby effectively solving the problems of the prior art relying on manual analysis and frequent model training, low efficiency and accuracy, lack of flexibility, and high maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in describing the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a financial news analysis and prediction method according to an exemplary embodiment;

[0021] Figure 2 yes Figure 1 A flowchart of data processing in step 110 in the corresponding embodiment;

[0022] Figure 3 yes Figure 1 A flowchart of data vectorization in step 110 in the corresponding embodiment;

[0023] Figure 4 yes Figure 1 Flow chart corresponding to step 170 in the embodiment;

[0024] Figure 5 It is a flowchart of building a news knowledge base in an application scenario;

[0025] Figure 6 yes Figure 5 Schematic diagram of the process of obtaining analysis and prediction reports in corresponding application scenarios;

[0026] Figure 7 yes Figure 5Schematic diagram of using news knowledge base to generate analysis and prediction reports in corresponding application scenarios;

[0027] Figure 8 is a block diagram of a financial news analysis and prediction device according to an exemplary embodiment;

[0028] Fig. 9 is a hardware structure diagram of an electronic device according to an exemplary embodiment;

[0029] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0031] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure refers to the presence of the features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0032] Vector library: refers to a pre-trained model library that can convert text data into numerical vectors. Using natural language processing technology, words or sentences in text information are embedded into a high-dimensional space and mapped to specific vectors. These vectors have semantic information and can represent the meaning of words, phrases, or entire sentences. Vector libraries are pre-trained with a large amount of text data, and can grasp the patterns and semantics of language, and convert text data into useful and information-rich vectors.

[0033] Natural Language Processing (NLP) model: refers to a computer program or system that can process and understand human language. It is designed to analyze, understand, generate or simulate human language. The goal of NLP models is to enable computers to master language in a similar way to humans and perform various tasks such as text classification, sentiment analysis, machine translation, question-answering systems, semantic similarity, etc. NLP models are usually trained using machine learning or deep learning techniques. Learn to extract patterns and features from large amounts of text data to understand language structure and semantics. These models can be based on different types of neural network architectures, such as recurrent neural networks (RNNs), long short-term memory networks (LSTMs), or variational autoencoders (VAEs). They can also use techniques such as attention mechanisms to process sequence data, such as text.

[0034] Sentiment analysis: is a natural language processing technology that aims to identify and understand the emotional tendencies or emotional attitudes contained in text. The main task of sentiment analysis is to judge the sentiment polarity of the text, that is, to determine whether the sentiment expressed in the text is positive, negative or neutral. Sentiment analysis can be divided into sentiment polarity classification, sentiment intensity analysis, and topic sentiment analysis. Sentiment analysis has applications in many fields, including but not limited to: social media analysis, brand monitoring, public opinion monitoring, and user comment analysis.

[0035] Sentiment polarity: refers to the emotional color or emotional tendency contained in text or language, which is usually divided into three types: positive, negative and neutral. The main purpose is to identify and understand the emotional attitude or emotional tendency expressed in the text to help people better understand the text content or make emotion-oriented decisions.

[0036] The present invention provides a financial news analysis and prediction method, which realizes efficient, accurate and responsive financial news analysis and prediction by combining a natural language processing model and an efficient vectorization method, and solves the problems of the prior art that the prior art relies on manual analysis and frequent model training, has low efficiency and accuracy, is not flexible enough, and has high maintenance costs. The financial news analysis and prediction method is suitable for a financial news analysis and prediction device, which can be an electronic device. The financial news analysis and prediction method in the embodiment of the present invention can be applied to a variety of scenarios, such as financial news analysis and prediction.

[0037] See also Figure 1 , an embodiment of the present invention provides a financial news analysis and prediction method, which is applicable to electronic devices.

[0038] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.

[0039] like Figure 1 As shown, the method may include the following steps:

[0040] Step 110, acquiring and preprocessing financial news data, and vectorizing the financial news data through a vector library to obtain vectorized data.

[0041] In one possible implementation, such as Figure 2 As shown, obtaining and preprocessing financial news data may include the following steps:

[0042] Step 210, setting multiple data processing nodes through an automated tool.

[0043] The data processing nodes include data extraction nodes, conversion nodes, filtering nodes, aggregation nodes, etc., which are not limited here.

[0044] Step 230, using the data extraction node in the data processing node to collect financial news data.

[0045] Specifically, automated crawler programs are used to collect financial news data on the Internet, including news websites, financial blogs, social media and other sources. The collected data is initially cleaned and filtered to remove invalid information such as advertisements, irrelevant content and duplicate messages, and the data format is standardized. Data preprocessing also includes identifying and extracting key information, such as keywords, company names, stock codes, etc., to prepare structured data for subsequent analysis.

[0046] Step 250, cleaning, filtering, standardization, and information identification and extraction are performed on the financial news data through each data processing node.

[0047] Specifically, multiple data processing nodes are set up in the automation tool to prepare and process data. Text data can be obtained from different sources (such as emails, databases, files, etc.) and cleaned, formatted or converted so that the data can be effectively analyzed later.

[0048] Among them, automation tools may include automation tools such as Microsoft Power Automate, which are not limited here.

[0049] Specifically, the data processing node can be a Python node, which allows users to embed and execute Python scripts in the automated process, provides a wide range of customization options and powerful function library support. Through the Python node, data analysis, file operations, Web API interaction, and complex logical operations can be performed, which enhances the processing capabilities of the workflow and is used to perform customized processing work on the data.

[0050] Through the above process, the embodiment of the present invention can build a complex and highly customized automated process on the Microsoft Power Automate platform, effectively liberate manual labor, and focus more on strategic tasks and innovative work, and use automation tools to set data processing nodes, thereby realizing an automated process for data processing and analysis.

[0051] In one possible implementation, such as Figure 3 As shown, vectorizing financial news data through a vector library to obtain vectorized data may include the following steps:

[0052] Step 310, obtaining a trained vector library.

[0053] Step 330, using the vector library to map the financial news data to a specific vector in the mathematical space through natural language processing technology to obtain vectorized data in numerical form.

[0054] Specifically, natural language processing (NLP) techniques, such as word embeddings and sentence embeddings, are used to convert text data into vector expressions in numerical form for easy computer processing. Vectorization is achieved using pre-trained vector libraries, such as Word2Vec, GloVe, or BERT, to ensure that the converted vectors can accurately express the semantics of the original text.

[0055] Among them, the vector library is both a technology and a tool for implementing this technology, which aims to convert words, phrases or sentences in text data into quantifiable numerical vectors for subsequent analysis and model training. These numerical vectors represent the semantic meaning of text information, enabling computers to better understand and process text data. The vector library is both a technology for converting text data into vector form and a combination of pre-trained models and tools that provide such conversion services. It provides useful embedding vectors for natural language processing tasks, which helps to improve and accelerate subsequent deep learning and analysis.

[0056] Specifically, common vector libraries include Word2Vec, GloVe (Global Vectors for Word Representation), BERT (Bidirectional Encoder Representations from Transformers), etc., which are not limited here. These vector libraries have been pre-trained with a large amount of text data, can grasp the patterns and semantics of the language, and convert text data into useful and information-rich vectors.

[0057] Step 130, obtaining a labeled data set, and obtaining a label classification model according to the labeled data set.

[0058] In one possible implementation, a labeled data set is obtained, wherein the labels are used to indicate the classification results and sentiment polarity of the data, and a natural language processing model is trained using the labeled data set to identify text features corresponding to each label to obtain a label classification pattern.

[0059] Step 150, classify and analyze the vectorized data according to the label classification mode to obtain analysis results, and build a news knowledge base based on the vectorized data and the analysis results.

[0060] In one possible implementation, an index is established between each vectorized data and the analysis result in the news knowledge base. When the news knowledge base needs to be used, query and retrieval are performed through the API of the index, and the data in the news knowledge base is continuously updated through a data synchronization mechanism.

[0061] Step 170, obtaining demand instructions, and obtaining an analysis and prediction report based on the demand instructions through a news knowledge base and a natural language processing model.

[0062] In one possible implementation, such as Figure 4 As shown, step 170 may include the following steps:

[0063] Step 410, converting the demand instruction into a demand vector, comparing the numerical vector with the vectorized data stored in the news knowledge base, and obtaining target data whose relevance meets the set conditions.

[0064] Step 430 , input the target data and the demand vector into a natural language model for text data processing to obtain output corresponding to multiple labels.

[0065] Step 450, formatting, merging and comparing the multiple outputs, and obtaining an analysis and forecast report in combination with the actual financial news content and data scenario.

[0066] In one possible implementation, after obtaining the analysis and prediction report, the content in the analysis and prediction report is visualized, a report and prediction results are generated, and the report and prediction results are output to a target location, which includes a system, a database, a file storage, and a visualization tool.

[0067] Specifically, each output is first collected and uniformly formatted, and then the outputs of each model are merged or compared according to business logic and needs. The various outputs are coordinated through comprehensive management components, and a complete analysis view or report is constructed. The key results of each output are comprehensively extracted, including classification, trend, predicted value and sentiment tendency, etc. These results are combined with the actual news content and data context to generate text summaries or visual displays, and generate the final financial news analysis and forecast report. Finally, these analysis summaries are displayed through the interface, and detailed report downloads are provided or the reports are sent directly to other systems through the API interface.

[0068] Through the above process, the present invention first obtains and preprocesses financial news data, vectorizes the financial news data through a vector library to obtain vectorized data, then obtains a labeled data set, obtains a label classification mode according to the labeled data set, and then classifies and analyzes the vectorized data according to the label classification mode to obtain an analysis result, builds a news knowledge base according to the vectorized data and the analysis result, and finally obtains a demand instruction, and obtains an analysis and prediction report based on the demand instruction through the news knowledge base and a natural language processing model. By combining a natural language processing model and an efficient vectorization method, efficient, accurate and responsive financial news analysis and prediction is achieved, the data processing process is optimized, and the timeliness and reliability of the analysis and prediction results are ensured. Without the need for continuous training and adjustment of the model, market analysis and prediction are provided quickly and accurately, which greatly reduces maintenance pressure and reduces operating costs, thereby effectively solving the problems of the prior art relying on manual analysis and frequent model training, low efficiency and accuracy, lack of flexibility, and high maintenance costs.

[0069] In one application scenario, Figure 5 The schematic diagram of the process of building a news knowledge base is shown. Figure 6 The flowchart for obtaining the analysis and forecast report is shown. Figure 7 A schematic diagram showing the use of news knowledge base to generate analysis and prediction reports.

[0070] like Figure 5 As shown, first, the source data is obtained. The automated crawler program is responsible for collecting financial news data on the Internet as source data, including news websites, financial blogs, social media and other sources. Then the source data is preliminarily cleaned, filtered and preprocessed. The first step is to delete advertisements, the second step is to delete irrelevant content, the third step is to delete duplicate information, and the fourth step is to standardize the data format.

[0071] Among them, preprocessing refers to identifying and extracting key information, including keywords, company names, stock codes, etc., preprocessing the cleaned data, and preparing structured data for subsequent analysis.

[0072] Furthermore, the preprocessed data is imported into the vector library for vectorization. The preprocessed data is imported into the trained vector library. Word2Vec, GloVe or BERT can be used to convert the data into vectors in numerical form. Finally, the vectorized data is classified, regressed or sentimentally analyzed and stored to obtain a news knowledge base.

[0073] Among them, the vector library mainly uses natural language processing (NLP) technology, such as word embeddings and sentence embeddings, to convert text data into vector expressions in numerical form for easy computer processing.

[0074] like Figure 6 As shown, firstly, the financial news data is collected and processed, then the data is vectorized in combination with the vector library, and then the model is used to classify, regress or sentimentally analyze the vectorized data to finally form a news knowledge base. Finally, the instructions and the data of the news knowledge base are input into the big model, and the result is the output of the financial analysis and forecast report.

[0075] like Figure 7 As shown, the demand instruction for generating an analysis report is input, combined with the news knowledge base, and the prediction report is obtained by predicting the two through the model.

[0076] Through the above process, the embodiment of the present invention provides a novel financial news analysis method, which does not rely on frequent model training, but uses existing models and vector libraries to realize rapid collection and processing of financial news data, and converts information into predictive analysis in real time, thereby greatly improving the analysis efficiency. At the same time, the historical information in the news knowledge base provides sufficient information for the model, ensuring that the system can maintain rapid response and high accuracy even in a changing market environment. In this way, a more flexible financial news analysis and prediction method with greatly improved efficiency and accuracy is created.

[0077] The following is an embodiment of the device of the present invention, which can be used to execute the financial news analysis and prediction method involved in the present invention. For details not disclosed in the embodiment of the device of the present invention, please refer to the method embodiment of the financial news analysis and prediction method involved in the present invention.

[0078] See also Figure 8 , an embodiment of the present invention provides a financial news analysis and prediction device 800.

[0079] The device 800 includes but is not limited to: a data processing module 810 , a classification pattern acquisition module 830 , a news knowledge base construction module 850 and an analysis and prediction report generation module 870 .

[0080] The data processing module 810 is used to obtain and pre-process financial news data, and vectorize the financial news data through a vector library to obtain vectorized data.

[0081] The classification mode acquisition module 830 is used to acquire a labeled data set and obtain a label classification mode according to the labeled data set.

[0082] The news knowledge base construction module 850 is used to perform classification analysis on the vectorized data according to the label classification mode to obtain analysis results, and to construct a news knowledge base according to the vectorized data and the analysis results.

[0083] The analysis and prediction report generation module 870 is used to obtain demand instructions and obtain an analysis and prediction report based on the demand instructions through a news knowledge base and a natural language processing model.

[0084] It should be noted that the financial news analysis and prediction provided in the above embodiments are only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the financial news analysis and prediction device will be divided into different functional modules to complete all or part of the functions described above.

[0085] In addition, the financial news analysis and prediction device and the financial news analysis and prediction method provided in the above embodiments belong to the same concept, and the specific manner in which each module performs operations has been described in detail in the method embodiment and will not be repeated here.

[0086] Fig. 9 The present invention schematically illustrates the structure of an electronic device according to an exemplary embodiment.

[0087] It should be noted that the electronic device is only an example adapted to the present invention and cannot be considered to provide any limitation on the scope of use of the present invention. The electronic device cannot be interpreted as requiring dependence on or having Fig. 9 One or more components of exemplary electronic device 2000 are shown.

[0088] The hardware structure of the electronic device 2000 may vary greatly due to differences in configuration or performance, such as Fig. 9 As shown, the electronic device 2000 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .

[0089] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the electronic device 2000 .

[0090] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Of course, in other examples adapted by the present invention, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, etc. Fig. 9 As shown, this is not intended to be a specific limitation.

[0091] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.

[0092] Among them, the operating system 251 is used to manage and control various hardware devices and application programs 253 on the electronic device 2000 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0093] The application program 253 is a computer-readable instruction that performs at least one specific task based on the operating system 251, and may include at least one module ( Fig. 9 (not shown), each module may respectively contain computer-readable instructions for the electronic device 2000. For example, the financial news analysis and prediction device may be regarded as an application 253 deployed on the electronic device 2000.

[0094] The data 255 may be signal information, etc., stored in the memory 250 .

[0095] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through at least one communication bus to read the computer-readable instructions stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the financial news analysis and prediction method is completed by the central processor 270 reading a series of computer-readable instructions stored in the memory 250.

[0096] In addition, the present invention can also be implemented by hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present invention is not limited to any specific hardware circuits, software, or a combination of the two.

[0097] See also Fig.10In an embodiment of the present invention, an electronic device 4000 is provided. The electronic device 4000 may include: a desktop computer, a laptop computer, a server, etc. with sensor recognition capability.

[0098] exist Fig.10 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.

[0099] The data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0100] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception, etc. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.

[0101] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0102] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 4000, but is not limited to this.

[0103] The memory 4003 stores computer-readable instructions, and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002 .

[0104] The computer-readable instructions are executed by one or more processors 4001 to implement the financial news analysis and prediction methods in the above-mentioned embodiments.

[0105] In addition, an embodiment of the present invention provides a storage medium on which computer-readable instructions are stored. The computer-readable instructions are executed by one or more processors to implement the financial news analysis and prediction method as described above.

[0106] A computer program product is provided in an embodiment of the present invention. The computer program product includes computer-readable instructions. The computer-readable instructions are stored in a storage medium. One or more processors of an electronic device read the computer-readable instructions from the storage medium, load and execute the computer-readable instructions, so that the electronic device implements the financial news analysis and prediction method as described above.

[0107] Compared with the related art, the present invention has the following beneficial effects:

[0108] 1. The present invention first obtains and preprocesses financial news data, vectorizes the financial news data through a vector library to obtain vectorized data, then obtains a labeled data set, obtains a label classification mode according to the labeled data set, and then classifies and analyzes the vectorized data according to the label classification mode to obtain an analysis result, builds a news knowledge base according to the vectorized data and the analysis result, and finally obtains a demand instruction, and obtains an analysis and prediction report based on the demand instruction through a news knowledge base and a natural language processing model. By combining a natural language processing model and an efficient vectorization method, efficient, accurate and responsive financial news analysis and prediction is achieved, the data processing process is optimized, and the timeliness and reliability of the analysis and prediction results are ensured. Without the need for continuous training and adjustment of the model, market analysis and prediction are provided quickly and accurately, which greatly reduces maintenance pressure and reduces operating costs, thereby effectively solving the problems of the prior art relying on manual analysis and frequent model training, low efficiency and accuracy, lack of flexibility, and high maintenance costs.

[0109] 2. The present invention does not rely on model training and fine-tuning, but instead uses already trained, stable large-scale language processing models (such as GPT) and prediction models that can process natural language, understand financial news content and analyze market dynamics.

[0110] 3. The present invention uses data flow orchestration tools, such as Microsoft's Power Automate, to automate the collection and processing of news data. It processes the collected financial news data in real time through predefined nodes and flow charts, and passes it to the existing model for analysis. By comprehensively utilizing the latest data and the deep learning capabilities of the model, it provides efficient and accurate analysis of financial news and predicts market trends based on this.

[0111] 4. The present invention can collect, process and analyze financial news data in real time through engineering, can dynamically read and process relevant data according to demand, and then pass the processed data to a large language processing model for analysis. This innovative method enables more flexible processing of different types of data and achieves real-time analysis and prediction, which can meet the timeliness requirements of the financial industry, provide timely and accurate analysis results and predictions, and provide better support for decision-making.

[0112] 5. The present invention can dynamically modify the structure and process of the system as needed. By modifying the structure and number of processes, and dynamically adjusting the codes and prompt words in the nodes, it can more flexibly adapt to changes in data characteristics and market environment. This flexibility enables timely response to new situations and provides accurate analysis and predictions. There is no need to retrain the model. By adjusting the configuration of processes and nodes, it can quickly adapt to different needs and changes, providing users with a more flexible and customizable financial news analysis solution with strong reliability. By using a trained model and process orchestration to ensure real-time data processing, reliability and stability have been greatly improved.

[0113] 6. The present invention utilizes a general large model and combines it with engineering, which does not require frequent model training and fine-tuning. Compared with traditional methods that require a lot of time and computing resources for training, our solution greatly reduces maintenance costs. We can achieve stable operation of the system and reduce the need for continuous maintenance and model updates. This not only reduces maintenance costs, but also improves the reliability and stability of the system. At the same time, our solution can also flexibly adapt to changes in data characteristics and market environment, further reducing maintenance costs and providing users with more efficient and economical financial news analysis solutions.

[0114] 7. The present invention has a wide range of applications and can play an important role in the following important financial industry fields: Investment banks: used to support real-time monitoring and analysis of market dynamics, assist in the formulation of investment decisions, and provide and optimize trading strategies; Securities companies: can provide securities analysts with instant market information summaries and trend forecasts to improve analysis efficiency and accuracy; Asset management: help asset managers grasp the market direction in real time and make faster asset allocation and risk management decisions; Risk management: real-time analysis of international financial news, predict potential market risks, and help risk managers make timely responses; Retail banks and financial technology companies: use the system to provide customized investment advice and enhance the user experience of retail customers; Financial news and media organizations: automatically generate financial news summaries and analysis reports to improve the efficiency and professionalism of news output; Market regulators: monitor and analyze public opinion in the financial market, promptly detect abnormal behavior, and assist in regulatory work; Education and research institutions: provide data support for research in finance and economics, and strengthen the combination of theory and market practice.

[0115] 8. The present invention utilizes advanced AI technology and vector library, which not only improves the efficiency and quality of financial news analysis, but also provides structured decision support for various financial sub-fields, helping various financial institutions to optimize resource allocation, improve service levels and competitiveness.

[0116] 9. The present invention combines automated data collection and preprocessing, efficient vectorization methods, and advanced models and data flow orchestration to create an efficient, accurate and responsive financial news analysis and prediction method, which not only optimizes the data processing process, but also ensures the timeliness and reliability of the analysis and prediction results. It is a powerful auxiliary tool for financial decision makers.

[0117] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0118] The above descriptions are only partial implementations of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A financial news analysis and prediction method, It is characterized in that The method comprises: Acquire and preprocess financial news data, and vectorize the financial news data through a vector library to obtain vectorized data; Obtain a labeled data set, and obtain a label classification mode according to the labeled data set; the label classification mode is used to indicate the corresponding relationship between the label and the vectorized data; Performing classification analysis on the vectorized data according to the label classification mode to obtain analysis results, and constructing a news knowledge base according to the vectorized data and the analysis results; Obtain demand instructions, and obtain an analysis and prediction report based on the demand instructions through the news knowledge base and the natural language processing model.

2. The financial news analysis and prediction method according to claim 1, It is characterized in that The obtaining and preprocessing of financial news data includes: Setting multiple data processing nodes through an automated tool; the data processing nodes include data extraction nodes, conversion nodes, filtering nodes, and aggregation nodes; Collect financial news data using a data extraction node in the data processing node; The financial news data is cleaned, filtered, standardized, and information identified and extracted through each of the data processing nodes.

3. The financial news analysis and prediction method according to claim 1, It is characterized in that The step of vectorizing the financial news data through a vector library to obtain vectorized data includes: Get the trained vector library; The financial news data is mapped to a specific vector in a mathematical space using the vector library through natural language processing technology to obtain vectorized data in numerical form; the embedded vector is used to represent the pattern and semantics of a word, phrase or sentence.

4. The financial news analysis and prediction method according to claim 3, It is characterized in that The step of constructing a news knowledge base according to the vectorized data and the analysis results includes: Establishing an index between each of the vectorized data and the analysis result in a news knowledge base; When the news knowledge base needs to be used, query and retrieval are performed through the index API, and the data in the news knowledge base is continuously updated through the data synchronization mechanism.

5. The financial news analysis and prediction method according to claim 1, It is characterized in that The step of obtaining a labeled data set and obtaining a label classification mode according to the labeled data set includes: Obtain a dataset with labels; the labels are used to indicate the classification results and sentiment polarity of the data; The labeled data set is used to train a natural language processing model to identify text features corresponding to each label, and obtain a label classification model.

6. The financial news analysis and prediction method according to claim 1, It is characterized in that The obtaining of the analysis and prediction report based on the demand instruction through the news knowledge base and the natural language processing model includes: Converting the demand instruction into a demand vector, comparing the numerical vector with the vectorized data stored in the news knowledge base, and obtaining target data whose relevance meets the set conditions; Inputting the target data and the demand vector into a natural language model for text data processing to obtain outputs corresponding to a plurality of labels; the labels include text classification, sentiment analysis, and regression analysis; The multiple outputs are formatted, merged and compared, and an analysis and forecast report is obtained in combination with actual financial news content and data scenarios; the analysis and forecast report includes classification, trend, predicted value and sentiment tendency.

7. The financial news analysis and prediction method according to claim 1, It is characterized in that After obtaining the analysis and prediction report, the method includes: Visualize the contents of the analysis and forecast report to generate reports and forecast results; The report and forecast results are output to a target location; the target location includes a system, a database, a file storage, and a visualization tool.

8. A financial news analysis and prediction device, It is characterized in that The device comprises: A data processing module, used for acquiring and preprocessing financial news data, and vectorizing the financial news data through a vector library to obtain vectorized data; A classification mode acquisition module is used to acquire a labeled data set and obtain a label classification mode according to the labeled data set; A news knowledge base construction module, used to classify and analyze the vectorized data according to the label classification mode to obtain analysis results, and to construct a news knowledge base according to the vectorized data and the analysis results; The analysis and prediction report generation module is used to obtain demand instructions and obtain an analysis and prediction report based on the demand instructions through the news knowledge base and the natural language processing model.

9. An electronic device, It is characterized in that include: at least one processor and at least one memory, wherein: The memory has computer-readable instructions stored thereon; The computer-readable instructions are executed by one or more of the processors, so that the electronic device implements the financial news analysis and prediction method according to any one of claims 1 to 7.

10. A storage medium having computer-readable instructions stored thereon, It is characterized in that The computer-readable instructions are executed by one or more processors to implement the financial news analysis and prediction method according to any one of claims 1 to 7.

Citation Information

Cited By

  • Electronic component supply chain supply and demand management method

    CN119863087A