Information prediction method and device, electronic equipment, storage medium and product
By combining summary, explanation, and prediction network layers in the stock information prediction model, and using large language models to process text data, the problem of inaccurate stock price predictions and lack of explanations is solved, and accurate and transparent stock price predictions are achieved.
Patent Information
- Application Number
- CN202410464125.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-09-03
AI Technical Summary
Existing stock price prediction methods are not accurate enough and lack the ability to provide prediction explanations, and cannot effectively explain the prediction results.
A stock information prediction model based on a large language model is adopted, including a summary network layer, an explanation network layer, and a prediction network layer. Through information extraction, semantic interpretation, and prediction of text data, stock price prediction results and explanations are generated.
Accurate stock price predictions are achieved and human-understandable prediction explanations are provided, enhancing the transparency and credibility of the model.
Smart Images

Figure CN118587015A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an information prediction method, device, electronic device, storage medium and product. Background Art
[0002] In the field of financial technology, stock price prediction has always been a challenging task, which requires not only processing and analyzing large amounts of data, but also explaining the complex dynamics behind the data.
[0003] Traditional stock price prediction methods mainly rely on quantitative analysis and technical analysis. Quantitative analysis refers to the use of historical data and mathematical models to predict the future trend of stock prices, while technical analysis focuses on the use of charts and market trends to predict future stock prices through data such as historical stock prices and trading volumes.
[0004] However, existing forecasting methods are not accurate under complex market conditions. Currently, there is no method that can accurately predict stock prices and provide corresponding forecast explanations. Summary of the invention
[0005] The present invention provides an information prediction method, device, electronic device, storage medium and product, which are used to solve the defect that there is no method in the prior art that can accurately predict stock prices and provide corresponding prediction explanations.
[0006] The present invention provides an information prediction method, comprising: acquiring text data related to stocks; inputting the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model; wherein the stock information prediction model is trained based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
[0007] According to an information prediction method provided by the present invention, a stock information prediction model includes a summary network layer, an interpretation network layer and a prediction network layer; wherein the summary network layer is a neural network layer constructed based on a large language model, and the summary network layer is used to extract information from text data and generate a summary text corresponding to the text data; the interpretation network layer is used to perform semantic interpretation on the summary text and generate a stock price prediction interpretation; the prediction network layer is used to perform information prediction on the summary text and generate a stock price prediction result.
[0008] According to an information prediction method provided by the present invention, text data is input into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model, including: inputting text data into a summary network layer of the stock information prediction model to obtain a summary text corresponding to the text data output by the summary network layer; inputting the summary text into an explanation network layer of the stock information prediction model to obtain a stock price prediction explanation output by the explanation network layer; inputting the summary text into the prediction network layer of the stock information prediction model to obtain a stock price prediction result output by the prediction network layer.
[0009] According to an information prediction method provided by the present invention, before obtaining text data related to stocks, it also includes: obtaining sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data; based on the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanations corresponding to the sample text data, performing supervised learning training on an initial stock information prediction model to obtain a stock information prediction model.
[0010] According to an information prediction method provided by the present invention, after inputting text data into a stock information prediction model and obtaining the stock price prediction results and stock price prediction explanations output by the stock information prediction model, the method further includes: obtaining prediction feedback information; the prediction feedback information includes feedback information on the stock price prediction results and feedback information on the stock price prediction explanations; based on the prediction feedback information, updating sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data; based on the updated sample text data, the sample stock price prediction results corresponding to the updated sample text data, and the sample stock price prediction explanations corresponding to the updated sample text data, training the stock information prediction model to obtain an updated stock information prediction model.
[0011] According to an information prediction method provided by the present invention, text data related to stocks is obtained, including: obtaining original text data related to stocks; performing data cleaning, normalization and structuring on the original text data to obtain text data related to stocks.
[0012] The present invention also provides an information prediction device, comprising: an acquisition module for acquiring text data related to stocks; a prediction module for inputting text data into a stock information prediction model to obtain stock price prediction results and stock price prediction explanations output by the stock information prediction model; wherein the stock information prediction model is trained based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the information prediction methods described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the information prediction method described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the information prediction method described above is implemented.
[0016] The present invention provides an information prediction method, device, electronic device, storage medium and product, which obtain text data related to stocks; input the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model; wherein the stock information prediction model is trained based on sample text data, sample stock price prediction results corresponding to the sample text data and sample stock price prediction explanations corresponding to the sample text data. In the above manner, text data related to stocks is input into the stock information prediction model, and the stock price prediction results and stock price prediction explanations output by the stock information prediction model can be obtained, which can not only accurately predict stock price information, but also provide corresponding stock price prediction explanations for the predicted stock price information, thereby enhancing the transparency and credibility of the model, and the information prediction method is scientific and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 It is a schematic flow chart of the information prediction method provided by the present invention;
[0019] Figure 2 It is a structural schematic diagram of the information prediction device provided by the present invention;
[0020] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0022] See also Figure 1 , Figure 1 : is a flow chart of the information prediction method provided by the present invention. In this embodiment, the information prediction method is applied to the information prediction platform, and the information prediction method specifically includes steps S110 to S120, and each step is specifically as follows:
[0023] S110: Acquire text data related to stocks.
[0024] Specifically, a data processing and integration layer is set on the information prediction platform to provide stock information prediction models with text data related to stocks.
[0025] The data processing and integration layer can collect data that may affect stock prices from various data sources, such as stock market data, news reports, social media, etc., and convert the data from different data sources into text to generate text data related to stocks.
[0026] Specifically, the data processing and integration layer obtains raw text data related to stocks from various data sources, and performs data cleaning, normalization and structuring on the raw text data to ensure the quality and consistency of the data, and generates text data related to stocks.
[0027] It can be understood that the data processing and integration layer is also used to integrate stock-related text data into the stock information prediction model and support the operation of other modules in the information prediction platform.
[0028] S120: Inputting text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model.
[0029] The stock information prediction model is obtained by training based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
[0030] In the field of financial technology, especially in the field of stock price prediction, the interpretability of the model is crucial. Investors and analysts not only need accurate stock prices, but also need to understand the prediction logic corresponding to the predicted stock prices in order to make accurate decisions. However, many advanced models, especially those based on deep learning, are often criticized as "black boxes" and lack sufficient transparency and interpretability.
[0031] In this embodiment, the stock information prediction model outputs stock price prediction results based on text data related to stocks, can accurately predict the changing trend of stock prices, and also outputs stock price prediction explanations that are understandable to humans, so that people can make accurate decisions based on the stock price prediction results and the stock price prediction explanations, which can effectively improve the transparency and credibility of the model, thereby addressing the limitations of traditional methods and the key needs of the modern financial technology field.
[0032] This embodiment provides an information prediction method, which obtains text data related to stocks; inputs the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model; wherein the stock information prediction model is trained based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data. In the above manner, by inputting text data related to stocks into the stock information prediction model, the stock price prediction result and the stock price prediction explanation output by the stock information prediction model can be obtained, which can not only accurately predict stock price information, but also provide corresponding stock price prediction explanations for the predicted stock price information, thereby enhancing the transparency and credibility of the model, and the information prediction method is scientific and efficient.
[0033] In some embodiments, the stock information prediction model includes a summary network layer, an explanation network layer, and a prediction network layer.
[0034] Among them, the summary network layer is a neural network layer built based on a large language model. The summary network layer is used to extract information from text data and generate summary text corresponding to the text data.
[0035] The explanation network layer is used to semantically interpret the summary text and generate stock price prediction explanations.
[0036] The prediction network layer is used to predict information on the summary text and generate stock price prediction results.
[0037] In recent years, with the rise of Large Language Model (LLM), the model is able to extract valuable information from massive unstructured text. However, how to effectively apply LLM to stock price prediction and provide human-understandable explanations remains an unsolved problem.
[0038] Based on this, this embodiment provides a stock information prediction model, which is based on the SEP (Summarize-Explain-Predict) framework. The framework uses self-reflective agents and PPO (Proximal Policy Optimization) methods to train LLM, and combines the advanced text processing capabilities of LLM with advanced machine learning technology. It provides a new perspective for the prediction and analysis of stock prices, so that the model can generate explainable stock prediction information.
[0039] Specifically, the stock information prediction model includes a summary network layer (Summarize module), an explanation network layer (Explain module) and a prediction network layer (Predict module).
[0040] Among them, the summary network layer (Summarize module) is a neural network layer built based on the large language model (LLM). The summary network layer is used to extract information from text data and generate summary text corresponding to the text data.
[0041] Specifically, the summary network layer (Summarize module) is used to process and analyze massive unstructured data, such as text data such as news reports and social media posts, extract key information related to the stock market, and generate summary text corresponding to the text data.
[0042] The working principle of the summary network layer is to use the natural language understanding ability of LLM to identify and extract important information from text data, such as market trends, company financial report announcements, political events, etc., and then generate concise information summary text. The summary text can provide fact-based and highly condensed information for stock price prediction.
[0043] Preferably, the process of generating summary text uses BERTopic algorithm to perform text clustering to identify and summarize representative text information.
[0044] The explanation network layer (Explain module) is used to semantically interpret the summary text and generate stock price prediction explanations.
[0045] Specifically, the explanation network layer (Explain module) is used to semantically interpret the summary text, generate stock price prediction explanations, provide the logic and basis behind each stock price prediction, and increase the interpretability and transparency of the model.
[0046] The working principle of the explanation network layer is to use LLM to build an explanation framework while generating predictions to explain the key factors and logic that affect stock price predictions. This not only helps users understand the prediction results, but also makes the prediction process more transparent, enhancing users' trust in model predictions.
[0047] The prediction network layer (Predict module) is used to predict information on summary text and generate stock price prediction results.
[0048] Specifically, the prediction network layer (Predict module) can combine the summary text provided by the summary network layer (Summarize module) and current market data to make accurate stock price predictions and generate stock price prediction results.
[0049] The working principle of the prediction network layer is to combine the machine learning algorithm and the processing power of LLM to conduct a comprehensive analysis of the information summary text and real-time market data obtained from the summary network layer (Summarize module). The prediction network layer adopts the strategies of supervised learning and reinforcement learning. It can not only train the model based on historical data to predict the changes in stock prices, but also learn from the results of each prediction and optimize the model performance. This method that combines historical data analysis and real-time feedback learning can improve the accuracy and reliability of stock price predictions.
[0050] Preferably, for each prediction, the model uses a self-reflection mechanism, where the LLM can evaluate the model's previous predictions and explanations, and make adjustments based on user feedback to improve the quality of the model's subsequent predictions.
[0051] In some embodiments, text data is input into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model, including: inputting the text data into a summary network layer of the stock information prediction model to obtain a summary text corresponding to the text data output by the summary network layer; inputting the summary text into an explanation network layer of the stock information prediction model to obtain a stock price prediction explanation output by the explanation network layer; inputting the summary text into the prediction network layer of the stock information prediction model to obtain a stock price prediction result output by the prediction network layer.
[0052] Compared with the prior art, the information prediction method provided by this embodiment has at least the following advantages:
[0053] (1) By effectively using large language models (LLMs) to process unstructured text data (such as news, social media posts, etc.), the accuracy of stock price change predictions can be improved. By analyzing the market sentiment and related information contained in these text data, market dynamics that may be overlooked by traditional quantitative analysis methods can be captured.
[0054] (2) Faced with massive amounts of unstructured data, the information prediction method provided in this embodiment provides an effective information extraction and summary generation mechanism, so that unstructured data can be systematically analyzed and used for model prediction. This goal is achieved through the summary network layer (Summarize module), which can extract key information from a large amount of text, providing a solid foundation for prediction.
[0055] (3) The information prediction method provided in this embodiment sets a prediction network layer (Predict module) in the stock information prediction model, so that the model can not only provide a clear and logically coherent explanation for stock price prediction, but also enhance the transparency and credibility of the model through self-reflection and iterative improvement mechanism.
[0056] (4) The information prediction method provided in this embodiment creates an iteratively improved prediction mechanism: the prediction network layer (Predict module) combines the training mechanism of supervised learning and reinforcement learning technology to continuously optimize the prediction ability of the model. This mechanism allows the model to learn from the success and failure of its predictions, and gradually improve the model's prediction accuracy for future stock price changes.
[0057] In some embodiments, before obtaining text data related to stocks, it also includes: obtaining sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data; based on the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanations corresponding to the sample text data, performing supervised learning training on the initial stock information prediction model to obtain a stock information prediction model.
[0058] Optionally, in the initial stage of training, demonstration data of correct predictions can be collected to perform supervised learning on the initial stock information prediction model; at the same time, paired correct and incorrect prediction data are collected for training the reward model so that the model can learn and distinguish between high-quality and low-quality predictions, and use the PPO algorithm to optimize the LLM to maximize the reward of the overall prediction.
[0059] In some embodiments, after inputting text data into a stock information prediction model and obtaining the stock price prediction results and stock price prediction explanations output by the stock information prediction model, it also includes: obtaining prediction feedback information; the prediction feedback information includes feedback information on the stock price prediction results and feedback information on the stock price prediction explanations; based on the prediction feedback information, updating the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanations corresponding to the sample text data; based on the updated sample text data, the sample stock price prediction results corresponding to the updated sample text data, and the sample stock price prediction explanations corresponding to the updated sample text data, training the stock information prediction model to obtain an updated stock information prediction model.
[0060] It can be understood that the information prediction platform is also provided with a user interface for users to interact with the information prediction platform, and provides a user interaction and feedback mechanism, allowing users to provide feedback information through the user interface, and the feedback information provided by users is used to further improve the accuracy and usability of the stock information prediction model.
[0061] Through the user interface, users can query stock price prediction results and stock price prediction explanations, and provide prediction feedback. User feedback will be used to further train and adjust the model. This is a continuous learning and improvement process. This user interaction and feedback mechanism can not only improve user participation and satisfaction, but also enable the model to continuously adapt to user needs and market changes.
[0062] Specifically, after inputting text data into the stock information prediction model and obtaining the stock price prediction results and stock price prediction explanations output by the stock information prediction model, the user can provide prediction feedback information to the information prediction platform through the user interface.
[0063] The prediction feedback information includes feedback information of the stock price prediction results and feedback information of the stock price prediction explanation; wherein, the feedback information of the stock price prediction results includes the accuracy of the stock price prediction results (which can be represented by an accuracy score or an accuracy label), and the feedback information of the stock price prediction explanation includes the rationality and accuracy of the stock price prediction explanation.
[0064] Furthermore, the information prediction platform can update the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanations corresponding to the sample text data according to the prediction feedback information obtained, and train the stock information prediction model based on the updated sample text data, the sample stock price prediction results corresponding to the updated sample text data, and the sample stock price prediction explanations corresponding to the updated sample text data to obtain an updated stock information prediction model.
[0065] Regularly updating the dataset and using the latest dataset to adjust and train the model can improve the performance of the model and the accuracy of predictions.
[0066] Preferably, machine learning techniques, such as cross-validation and hyperparameter tuning, as well as user feedback information, are used to continuously adjust and optimize the model, and the model's cutting-edge nature and competitiveness are maintained by introducing the latest AI research results and technological updates.
[0067] Preferably, to ensure the security and privacy of user data, and to ensure that user information is not accessed and used without authorization during the model prediction process, the latest encryption technology and security protocols can be used in the information prediction platform to ensure the security of data transmission and storage. In addition, by implementing strict data access and processing policies, it is ensured that only authorized personnel can access sensitive data, and the processing of all user data complies with the highest privacy protection standards and laws and regulations to enhance user trust in the platform.
[0068] Since a large amount of unstructured data needs to be stored and processed, a powerful, flexible, and scalable computing environment needs to be configured for the information prediction platform to support the large-scale data processing and complex computing requirements of the SEP framework.
[0069] Specifically, by deploying the information prediction platform on the cloud platform and leveraging the powerful capabilities and flexibility of cloud computing, the information prediction platform can easily expand resources as needed to handle a large number of data analysis and model training tasks.
[0070] The high availability and disaster recovery capabilities of the cloud platform can ensure the stability and reliability of the information prediction platform services.
[0071] In some embodiments, obtaining text data related to stocks includes: obtaining original text data related to stocks; performing data cleaning, normalization and structuring on the original text data to obtain text data related to stocks.
[0072] The present invention also provides an information prediction device, see Figure 2 , Figure 2 2 is a schematic diagram of the structure of the information prediction device provided by the present invention. In this embodiment, the information prediction device includes an acquisition module 210 and a prediction module 220.
[0073] The acquisition module 210 is used to acquire text data related to stocks.
[0074] The prediction module 220 is used to input text data into the stock information prediction model to obtain the stock price prediction result and stock price prediction explanation output by the stock information prediction model.
[0075] The stock information prediction model is obtained by training based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
[0076] In some embodiments, the stock information prediction model includes a summary network layer, an interpretation network layer and a prediction network layer; wherein the summary network layer is a neural network layer constructed based on a large language model, the summary network layer is used to extract information from text data and generate a summary text corresponding to the text data; the interpretation network layer is used to perform semantic interpretation on the summary text and generate a stock price prediction interpretation; the prediction network layer is used to perform information prediction on the summary text and generate a stock price prediction result.
[0077] In some embodiments, the prediction module 220 is used to input text data into the summary network layer of the stock information prediction model to obtain summary text corresponding to the text data output by the summary network layer; input the summary text into the interpretation network layer of the stock information prediction model to obtain the stock price prediction interpretation output by the interpretation network layer; input the summary text into the prediction network layer of the stock information prediction model to obtain the stock price prediction result output by the prediction network layer.
[0078] In some embodiments, the prediction module 220, before being used to obtain text data related to stocks, also includes: obtaining sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data; based on the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanations corresponding to the sample text data, performing supervised learning training on the initial stock information prediction model to obtain a stock information prediction model.
[0079] In some embodiments, the prediction module 220 is used to obtain prediction feedback information; the prediction feedback information includes feedback information of the stock price prediction results and feedback information of the stock price prediction explanation; based on the prediction feedback information, the sample text data, the sample stock price prediction results corresponding to the sample text data, and the sample stock price prediction explanation corresponding to the sample text data are updated; based on the updated sample text data, the sample stock price prediction results corresponding to the updated sample text data, and the sample stock price prediction explanation corresponding to the updated sample text data, the stock information prediction model is trained to obtain an updated stock information prediction model.
[0080] In some embodiments, the acquisition module 210 is used to acquire original text data related to stocks; perform data cleaning, normalization and structuring on the original text data to obtain text data related to stocks.
[0081] The present invention also provides an electronic device, Figure 3is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the information prediction method.
[0082] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0083] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the information prediction method provided by the above methods is implemented.
[0084] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the information prediction methods provided by the above methods.
[0085] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0086] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An information prediction method, characterized in that: include: Get text data related to stocks; Inputting the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model; The stock information prediction model is obtained through training based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
2. The information prediction method according to claim 1, characterized in that: The stock information prediction model includes a summary network layer, an explanation network layer and a prediction network layer; The summary network layer is a neural network layer constructed based on a large language model, and the summary network layer is used to extract information from the text data and generate summary text corresponding to the text data; The interpretation network layer is used to perform semantic interpretation on the summary text to generate the stock price prediction interpretation; The prediction network layer is used to perform information prediction on the summary text to generate the stock price prediction result.
3. The information prediction method according to claim 2, characterized in that: The step of inputting the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model includes: Inputting the text data into the summary network layer of the stock information prediction model to obtain summary text corresponding to the text data output by the summary network layer; Inputting the summary text into the explanation network layer of the stock information prediction model to obtain the stock price prediction explanation output by the explanation network layer; The summary text is input into the prediction network layer of the stock information prediction model to obtain the stock price prediction result output by the prediction network layer.
4. The information prediction method according to claim 1, characterized in that: Before acquiring text data related to stocks, the method further includes: Acquire the sample text data, the sample stock price prediction result corresponding to the sample text data, and the sample stock price prediction explanation corresponding to the sample text data; Based on the sample text data, the sample stock price prediction results corresponding to the sample text data and the sample stock price prediction explanations corresponding to the sample text data, supervised learning training is performed on the initial stock information prediction model to obtain the stock information prediction model.
5. The information prediction method according to claim 1, characterized in that: After inputting the text data into the stock information prediction model and obtaining the stock price prediction result and the stock price prediction explanation output by the stock information prediction model, the method further includes: Acquiring prediction feedback information; the prediction feedback information includes feedback information of the stock price prediction result and feedback information of the stock price prediction explanation; Based on the prediction feedback information, updating the sample text data, the sample stock price prediction result corresponding to the sample text data, and the sample stock price prediction explanation corresponding to the sample text data; Based on the updated sample text data, the sample stock price prediction results corresponding to the updated sample text data, and the sample stock price prediction explanations corresponding to the updated sample text data, the stock information prediction model is trained to obtain an updated stock information prediction model.
6. The information prediction method according to claim 1, characterized in that: The obtaining of text data related to stocks includes: Get raw text data related to stocks; The original text data is subjected to data cleaning, normalization and structuring to obtain text data related to stocks.
7. An information prediction device, characterized in that: include: The acquisition module is used to obtain text data related to stocks; A prediction module, used for inputting the text data into a stock information prediction model to obtain a stock price prediction result and a stock price prediction explanation output by the stock information prediction model; The stock information prediction model is obtained through training based on sample text data, sample stock price prediction results corresponding to the sample text data, and sample stock price prediction explanations corresponding to the sample text data.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the information prediction method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information prediction method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the information prediction method according to any one of claims 1 to 6 is implemented.
