A data processing method, a data processing device, a terminal and a storage medium
Through the data processing method, the indicator prediction model and weighted processing technology are used to improve the efficiency and accuracy of indicator prediction, and solve the inefficiency and inaccuracy problems caused by manual calculation in the existing technology.
Patent Information
- Application Number
- CN202011251601.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, indicator prediction mainly relies on manual calculation, resulting in low prediction efficiency and low accuracy, and the calculation results of different statisticians may be different.
Using data processing methods, by obtaining the historical values of target indicators, determining the indicator prediction model (based on preset rules or neural network models), obtaining relevant reference indicator values, calculating weighting coefficients, and performing weighting processing to improve prediction accuracy.
It improves the prediction efficiency and accuracy of indicator values, reduces the investment in human resources, and reduces calculation errors.
Smart Images

Figure CN112365156B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis technology, and in particular to a data processing method, a data processing device, a terminal and a computer-readable storage medium. Background Art
[0002] Indicators refer to the expected indexes, specifications, standards, etc. The indicator values corresponding to the indicators can indicate the development direction of things. Reasonable prediction of the indicator values corresponding to the indicators can control the future development direction of things to a certain extent. For example, enterprises, companies and other operating organizations need to predict the indicator values of operating indicators in the future in order to reasonably arrange operating resources, adjust operating strategies, issue early warnings to subordinate organizations, or issue operating tasks to subordinate organizations. Therefore, how to accurately predict indicators has become a problem that needs to be solved urgently.
[0003] At present, the prediction of indicators mainly relies on manual work, where statisticians calculate the historical indicator values of the indicators to obtain the predicted indicator values of the indicators; for example, statisticians calculate the historical indicator values of the indicators in the previous three months to obtain the predicted indicator values of the indicators in the next three months; the above manual calculation process requires a lot of human resources, has calculation errors, and the predicted indicator values calculated by different statisticians may be different, resulting in low indicator prediction efficiency and inaccurate predicted indicator values. Summary of the invention
[0004] The embodiments of the present invention provide a data processing method, a data processing device, a terminal and a storage medium, which can improve the prediction efficiency of indicator values and enhance the prediction accuracy of indicator values.
[0005] On the one hand, an embodiment of the present invention provides a data processing method, the data processing method comprising:
[0006] Obtaining the data to be processed, where the data to be processed includes historical indicator values corresponding to the target indicator;
[0007] Determine an indicator prediction model according to the type of data to be processed, the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set;
[0008] Use the indicator prediction model to predict the historical indicator values and obtain the initial predicted indicator value corresponding to the target indicator;
[0009] Acquire at least one reference indicator associated with the target indicator, and determine a reference indicator value corresponding to each reference indicator in the at least one reference indicator;
[0010] Determining a weighting coefficient for an initial prediction indicator value based on a reference indicator value corresponding to each reference indicator;
[0011] The initial prediction index value is weighted based on the weighting coefficient to obtain the target prediction index value corresponding to the target index.
[0012] In one aspect, an embodiment of the present invention provides a data processing device, the data processing device comprising:
[0013] An acquisition module is used to acquire data to be processed, where the data to be processed includes historical indicator values corresponding to the target indicator;
[0014] A determination module, used to determine an indicator prediction model according to the type of data to be processed, the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set;
[0015] The prediction module is used to use the indicator prediction model to predict the historical indicator value and obtain the initial prediction indicator value corresponding to the target indicator;
[0016] The determination module is further used to obtain at least one reference indicator associated with the target indicator, and determine a reference indicator value corresponding to each reference indicator in the at least one reference indicator;
[0017] The determination module is further used to determine a weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index;
[0018] The processing module is also used to perform weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index.
[0019] On the one hand, an embodiment of the present invention provides a terminal, which includes a processor, an input interface, an output interface and a memory, wherein the processor, input interface, output interface and memory are interconnected, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the above-mentioned data processing method.
[0020] On the one hand, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the above-mentioned data processing method.
[0021] In an embodiment of the present invention, data to be processed are obtained, and the data to be processed include historical indicator values corresponding to the target indicator; an indicator prediction model is determined according to the type of data to be processed, and the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; the indicator prediction model is used to perform prediction processing on the historical indicator values to obtain an initial prediction indicator value corresponding to the target indicator; at least one reference indicator having an association relationship with the target indicator is obtained, and a reference indicator value corresponding to each reference indicator in at least one reference indicator is determined; a weighting coefficient for the initial prediction indicator value is determined based on the reference indicator value corresponding to each reference indicator; the initial prediction indicator value is weighted based on the weighting coefficient to obtain a target prediction indicator value corresponding to the target indicator, which can improve the prediction efficiency of the indicator value and improve the prediction accuracy of the indicator value. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0023] Figure 1 It is a flowchart of a data processing method provided by an embodiment of the present invention;
[0024] Figure 2 It is a page schematic diagram of a reference indicator acquisition page provided by an embodiment of the present invention;
[0025] Figure 3 is a flow chart of another data processing method provided by an embodiment of the present invention;
[0026] Figure 4 A schematic diagram of a statistics page provided by an embodiment of the present invention is shown;
[0027] Figure 5 is a structural schematic diagram of a data processing device provided by an embodiment of the present invention;
[0028] Figure 6 It is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0030] The embodiments of the present invention involve indicators. Indicators refer to the expected indexes, specifications, standards, etc. The indicator values corresponding to the indicators can indicate the development direction of things. Reasonable prediction of the indicator values corresponding to the indicators can control the future development direction of things to a certain extent. The indicators mentioned in the embodiments of the present invention include but are not limited to at least one of the following: NBEV (New Business Embedded Value, the value created by the new sales business) indicator, the increase rate indicator, the dropout rate indicator, the operating environment indicator, the weather indicator, the temperature indicator, etc. The embodiment of the present invention provides a data processing scheme, in which an indicator prediction model is used to predict the historical indicator values corresponding to the target indicator, and the predicted indicator values corresponding to the target indicator values can be obtained, which can improve the prediction efficiency of the indicator values and improve the prediction accuracy of the indicator values.
[0031] The data processing method provided by the embodiment of the present invention is implemented in a terminal, wherein the terminal may include electronic devices such as a smart phone, a tablet computer, a digital audio and video player, an e-reader, a handheld game console, or a vehicle-mounted electronic device.
[0032] Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the process of the data processing method in this embodiment may include:
[0033] S101: The terminal obtains data to be processed.
[0034] In an embodiment of the present invention, the data to be processed include historical indicator values corresponding to the target indicator; the data to be processed may specifically be input by a terminal user, and the terminal acquires the data to be processed input by the terminal user; for example, a target indicator acquisition page is displayed in the terminal, and the terminal user selects the target indicator in the target indicator acquisition page, and enters the historical indicator value corresponding to the target indicator in the indicator value input box corresponding to the target indicator, then the terminal determines the historical indicator value input by the terminal user as the data to be processed; the data to be processed may specifically be acquired by the terminal from a database of the terminal, and the database of the terminal stores at least one indicator and the historical indicator value of each indicator, and the target indicator is any indicator stored in the database.
[0035] S102: The terminal determines an indicator prediction model according to the type of data to be processed.
[0036] In an embodiment of the present invention, after acquiring the data to be processed, the terminal determines the indicator prediction model according to the type of the data to be processed. Specifically, the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model; the first indicator prediction model is a rule model constructed based on preset rules, and the rule model constructed based on preset rules may include any of the following: monthly trend smoothing model, monthly trend proposal model, same period last year model, first three months average model, first three months same period trend model, grade dropout rate model, etc.; the second indicator prediction model is a neural network model trained according to the training sample set, and the neural network model may include any of the following: Convolutional Neural Networks (CNN) model, Recurrent Neural Network (RNN) model, Deep Neural Network (DNN) model, etc. The types of indicators may include single indicators and comprehensive indicators; single indicators refer to simple indicators that do not depend on other indicators when calculating, such as the length and width of a rectangle are both single indicators; comprehensive indicators refer to complex indicators calculated from at least one single indicator, such as the area of a rectangle, which is a complex indicator calculated from two single indicators (i.e., the length and width of the rectangle). If the type of the data to be processed (i.e., the target indicator) is a single indicator, the terminal determines that the indicator prediction model is the first indicator prediction model or the second indicator prediction model; if the type of the data to be processed (i.e., the target indicator) is a comprehensive indicator, the terminal determines that the indicator prediction model is the first indicator prediction model and the second indicator prediction model.
[0037] In one implementation, the terminal may include a training process for the second indicator prediction model. The terminal obtains a training sample set, the training sample set includes at least one indicator and a historical indicator value corresponding to each indicator in the at least one indicator; the terminal builds an initial indicator prediction model; the terminal iteratively trains the initial indicator prediction model according to the at least one indicator and the historical indicator value corresponding to each indicator to update the parameters in the initial indicator prediction model; when it is detected that the initial indicator prediction model after the parameter update meets the preset conditions, the terminal determines the initial indicator prediction model after the parameter update as the second indicator prediction model, the preset conditions including that the prediction accuracy of the initial indicator prediction model for the historical indicator values in the training sample set is higher than the preset accuracy; for example, the training sample set includes 1 indicator and the historical indicator values of the indicator in April and May, the terminal uses the initial indicator prediction model to predict the historical indicator value 60 of the indicator in April, and obtains the predicted indicator value 63 of the indicator in May, the actual historical indicator value of the indicator in May is 70, the prediction accuracy is 1-[(70-63) / 70]=0.9, which is higher than the preset accuracy of 0.85, and the initial indicator prediction model meets the preset conditions.
[0038] S103: The terminal uses an indicator prediction model to predict the historical indicator value to obtain an initial predicted indicator value corresponding to the target indicator.
[0039] In the embodiment of the present invention, after the terminal determines the indicator prediction model according to the type of data to be processed, the terminal uses the indicator prediction model to perform prediction processing on the historical indicator value to obtain the initial prediction indicator value corresponding to the target indicator.
[0040] In one implementation, the indicator prediction model includes a first indicator prediction model and a second indicator prediction model. The terminal uses the indicator prediction model to predict the historical indicator value to obtain the specific implementation method of the initial prediction indicator value corresponding to the target indicator can be: the terminal uses the first indicator prediction model to predict the historical indicator value to obtain the first prediction indicator value corresponding to the target indicator, and the terminal uses the second indicator prediction model to predict the historical indicator value to obtain the second prediction indicator value corresponding to the target indicator; if the first prediction indicator value and the second prediction indicator value meet the preset screening conditions, the terminal obtains the first model weight corresponding to the first indicator prediction model, and obtains the second model weight corresponding to the second indicator prediction model; the terminal uses the first model weight to weight the first prediction indicator value to obtain the first weighted prediction indicator value, and the terminal uses the second model weight to weight the second prediction indicator value to obtain the second weighted prediction indicator value; the terminal sums the first weighted prediction indicator value and the second weighted prediction indicator value to obtain the initial prediction indicator value. Among them, the first model weight and the second model weight can be empirical values set according to experience; the first model weight can be greater than the second model weight, for example, the first model weight is 0.7 and the second model weight is 0.3; the first model weight can be equal to the second model weight, for example, the first model weight is 0.5 and the second model weight is 0.5; the first model weight can also be less than the second model weight, for example, the first model weight is 0.3 and the second model weight is 0.7. The preset screening condition means that the absolute value of the difference between the first prediction index value and the second prediction index value is less than the difference threshold; if the absolute value of the difference between the first prediction index value and the second prediction index value is less than the difference threshold, it indicates that the difference between the first prediction index value and the second prediction index value is small, and the calculation error of the first indicator prediction model or the second indicator prediction model when predicting the historical indicator value is small; if the absolute value of the difference between the first prediction index value and the second prediction index value is greater than or equal to the difference threshold, it indicates that the difference between the first prediction index value and the second prediction index value is large, and either the first indicator prediction model or the second indicator prediction model may have a large calculation error when predicting the historical indicator value.
[0041] For example, the weight of the first indicator prediction model is 0.3, and the weight of the second indicator prediction model is 0.7; the terminal uses the first indicator prediction model to predict the historical indicator value to obtain a first prediction indicator value of 60 corresponding to the target indicator, and the terminal uses the second indicator prediction model to predict the historical indicator value to obtain a second prediction indicator value of 63 corresponding to the target indicator. The absolute value 3 of the difference between the first prediction indicator value and the second prediction indicator value is less than the difference threshold 5. The first prediction indicator value and the second prediction indicator value meet the preset screening conditions. The terminal uses the first model weight of 0.3 to weight the first prediction indicator value to obtain a first weighted prediction indicator value of 18. The terminal uses the second model weight of 0.7 to weight the second prediction indicator value to obtain a second weighted prediction indicator value of 44.1. The terminal sums the first weighted prediction indicator value and the second weighted prediction indicator value to obtain an initial prediction indicator value of 62.1.
[0042] S104: The terminal obtains at least one reference indicator associated with the target indicator, and determines a reference indicator value corresponding to each reference indicator in the at least one reference indicator.
[0043] In an embodiment of the present invention, the terminal uses an indicator prediction model to predict historical indicator values, obtains an initial prediction indicator value corresponding to the target indicator, obtains at least one reference indicator associated with the target indicator, and determines the reference indicator value corresponding to each reference indicator in the at least one reference indicator.
[0044] In one implementation, the terminal obtains at least one reference indicator associated with the target indicator, and determines the reference indicator value corresponding to each reference indicator in the at least one reference indicator. Figure 2 , Figure 2 20 is a page schematic diagram of a reference indicator acquisition page provided by an embodiment of the present invention. The terminal displays a reference indicator acquisition page 20. A reference indicator list 201 is displayed in the reference indicator acquisition page. The reference indicator list 201 includes at least one reference indicator associated with a target indicator. If a target reference indicator 202 in the reference indicator list is selected (for example, the terminal user clicks on the target reference indicator list 202), the terminal displays an indicator value input box 203 at the target position of the reference indicator acquisition page 20. The target reference indicator 202 is any reference indicator in the reference indicator list 201. The target position may include any of the following: the top position of the target reference indicator 202, the bottom position of the target reference indicator 202, the left position of the target reference indicator 202, and the right position of the target reference indicator 202, such as Figure 2As shown, the indicator input box 203 is located to the right of the target reference indicator 202; when there is an input operation acting on the indicator value input box 203 (for example, the terminal user enters the reference indicator value in the indicator input box 203), the terminal obtains the target reference indicator value corresponding to the target reference indicator 202 in the input indicator value input box 203.
[0045] In another implementation, the terminal obtains at least one reference indicator associated with the target indicator and determines the reference indicator value corresponding to each of the at least one reference indicator. The specific implementation method may be: the terminal obtains at least one reference indicator associated with the target indicator from a database of the terminal, and obtains the reference indicator value corresponding to each of the at least one reference indicator from the database. The reference indicator may include at least one of the following: an operating environment indicator, a weather indicator, and a temperature indicator.
[0046] S105. The terminal determines a weighting coefficient for an initial prediction index value based on a reference index value corresponding to each reference index.
[0047] In an embodiment of the present invention, after the terminal obtains at least one reference indicator associated with the target indicator and determines the reference indicator value corresponding to each reference indicator in the at least one reference indicator, a weighting coefficient for the initial prediction indicator value is determined based on the reference indicator value corresponding to each reference indicator.
[0048] In one implementation, there are two reference indicators associated with the target indicator, namely the first reference indicator and the second reference indicator. The specific implementation method of the terminal determining the weighting coefficient for the initial prediction indicator value based on the reference indicator value corresponding to each reference indicator can be: the terminal obtains the first reference indicator value corresponding to the first reference indicator, the second reference indicator value corresponding to the second reference indicator, and obtains the first reference indicator threshold value corresponding to the first reference indicator, the second reference indicator threshold value corresponding to the second reference indicator, and obtains the first indicator weight corresponding to the first reference indicator and the second indicator weight corresponding to the second reference indicator; the terminal determines the first weighting coefficient based on the ratio between the first reference indicator value and the first reference indicator threshold value, and determines the second weighting coefficient based on the ratio between the second reference indicator value and the second reference indicator threshold value; the terminal uses the first indicator weight to weight the first weighting coefficient to obtain the first target weighting coefficient, and uses the second indicator weight to weight the second weighting coefficient to obtain the second target weighting coefficient; the terminal sums the first target weighting coefficient and the second target weighting coefficient to obtain the weighting coefficient for the initial prediction indicator value. Among them, the first indicator weight and the second indicator weight can be empirical values set according to experience. For example, the target indicator is the NBEV indicator, the first reference indicator is the operating environment indicator, and the second reference indicator is the weather indicator. The correlation between the operating environment indicator and the NBEV indicator is stronger than the correlation between the weather indicator and the NBEV indicator. Then the terminal can set the first indicator weight corresponding to the operating environment indicator to be higher than the second indicator weight corresponding to the weather indicator.
[0049] For example, the terminal obtains a first reference indicator value 63 corresponding to the first reference indicator, a second reference indicator value 48 corresponding to the second reference indicator, a first reference indicator threshold 70 corresponding to the first reference indicator, a second reference indicator threshold 60 corresponding to the second reference indicator, and a first indicator weight 0.7 corresponding to the first reference indicator and a second indicator weight 0.3 corresponding to the second reference indicator; the terminal determines a first weighting coefficient of 0.9 based on the ratio between the first reference indicator value and the first reference indicator threshold, and determines a second weighting coefficient of 0.8 based on the ratio between the second reference indicator value and the second reference indicator threshold; the terminal uses the first indicator weight to weight the first weighting coefficient to obtain a first target weighting coefficient of 0.63, and uses the second indicator weight to weight the second weighting coefficient to obtain a second target weighting coefficient of 0.24; the terminal sums the first target weighting coefficient and the second target weighting coefficient to obtain a weighting coefficient of 0.87.
[0050] S106. The terminal performs weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index.
[0051] In the embodiment of the present invention, after the terminal determines the weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index, the initial prediction index value is weighted based on the weighting coefficient to obtain the target prediction index value corresponding to the target index. For example, the terminal performs weighting on the initial prediction index value 62.1 based on the weighting coefficient 0.87 to obtain the target prediction index value 54.027 corresponding to the target index.
[0052] In an embodiment of the present invention, a terminal obtains data to be processed, and the data to be processed includes historical indicator values corresponding to a target indicator; the terminal determines an indicator prediction model according to the type of data to be processed, and the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; the terminal uses the indicator prediction model to predict the historical indicator values to obtain an initial prediction indicator value corresponding to the target indicator; the terminal obtains at least one reference indicator that has an association with the target indicator, and determines a reference indicator value corresponding to each reference indicator in at least one reference indicator; the terminal determines a weighting coefficient for the initial prediction indicator value based on the reference indicator value corresponding to each reference indicator; the terminal performs weighted processing on the initial prediction indicator value based on the weighting coefficient to obtain a target prediction indicator value corresponding to the target indicator, which can improve the prediction efficiency of the indicator value and improve the prediction accuracy of the indicator value.
[0053] Figure 3 is a flow chart of another data processing method provided by an embodiment of the present invention, such as Figure 3 As shown, the process of the data processing method in this embodiment may include:
[0054] S301: The terminal obtains data to be processed.
[0055] S302: The terminal determines an indicator prediction model according to the type of data to be processed.
[0056] S303: The terminal uses an indicator prediction model to predict the historical indicator value to obtain an initial predicted indicator value corresponding to the target indicator.
[0057] S304: The terminal obtains at least one reference indicator associated with the target indicator, and determines a reference indicator value corresponding to each reference indicator in the at least one reference indicator.
[0058] S305. The terminal determines a weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index.
[0059] S306: The terminal performs weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index.
[0060] The execution process of step S301 in the embodiment of the present invention is similar to Figure 1 The execution process of step S101 in the embodiment shown is the same as that of step S302. Figure 1 The execution process of step S102 in the embodiment shown is the same as that of step S303. Figure 1 The execution process of step S103 in the embodiment shown is the same as that of step S304. Figure 1 The execution process of step S104 in the embodiment shown is the same as that of step S305. Figure 1 The execution process of step S105 in the embodiment shown is the same as that of step S306. Figure 1 The execution process of step S106 in the illustrated embodiment is the same. For the specific execution process, please refer to Figure 1 The illustrated embodiments will not be described in detail here.
[0061] S307: The terminal obtains at least one associated indicator associated with the target indicator, and obtains a prediction indicator value corresponding to each associated indicator in the at least one associated indicator.
[0062] In the embodiment of the present invention, the terminal performs weighted processing on the initial prediction index value based on the weighting coefficient, obtains the target prediction index value corresponding to the target index, obtains at least one associated index associated with the target index, and obtains the prediction index value corresponding to each associated index in the at least one associated index. Figure 3 The difference between the reference indicators mentioned in is that the indicator value of the reference indicator can affect the indicator value of the target indicator. For example, the reference indicator is the operating environment indicator, and the target indicator is the NBEV indicator. The indicator value of the operating environment indicator can affect the indicator value of the NBEV indicator; and the indicator value of the target indicator can be calculated through the indicator value of the associated indicators. For example, the target indicator is the NBEV indicator of the eastern region. There are three associated indicators associated with the NBEV indicator of the eastern region, namely, the NBEV indicator of Shanghai, the NBEV indicator of Jiangsu, and the NBEV indicator of Zhejiang. The indicator value of the NBEV indicator of the eastern region is obtained by adding the indicator values of the NBEV indicator of Shanghai, the NBEV indicator of Jiangsu, and the NBEV indicator of Zhejiang.
[0063] S308: The terminal obtains an operation rule between the target indicator and at least one associated indicator, and calculates the prediction indicator value corresponding to each associated indicator based on the operation rule to obtain the associated prediction indicator value.
[0064] In an embodiment of the present invention, after obtaining at least one associated indicator that has an associated relationship with the target indicator and obtaining the prediction indicator value corresponding to each of the at least one associated indicator, the terminal obtains the operation rules between the target indicator and the at least one associated indicator, and calculates the prediction indicator values corresponding to each associated indicator based on the operation rules to obtain the associated prediction indicator values.
[0065] For example, the target indicator is the NBEV indicator of the eastern region, and the indicators associated with the target indicator are the NBEV indicator of Shanghai, the NBEV indicator of Jiangsu and the NBEV indicator of Zhejiang. The operation rule between the NBEV indicator of the eastern region and the NBEV indicator of Shanghai, the NBEV indicator of Jiangsu and the NBEV indicator of Zhejiang is that the index value of the NBEV indicator of the eastern region is equal to the sum of the index value of the NBEV indicator of Shanghai, the index value of the NBEV indicator of Jiangsu and the index value of the NBEV indicator of Zhejiang; the terminal sums the predicted index value corresponding to the NBEV indicator of Shanghai, the predicted index value corresponding to the NBEV indicator of Jiangsu and the predicted index value corresponding to the NBEV indicator of Zhejiang based on the above operation rule to obtain the associated predicted index value.
[0066] S309: The terminal determines the similarity between the target prediction index value and the associated prediction index value.
[0067] In an embodiment of the present invention, the terminal obtains an operation rule between a target indicator and at least one associated indicator, and calculates the prediction indicator value corresponding to each associated indicator based on the operation rule. After obtaining the associated prediction indicator value, the similarity between the target prediction indicator value and the associated prediction indicator value is determined.
[0068] In one implementation, the specific implementation method of the terminal determining the similarity between the target prediction index value and the associated prediction index value can be: the terminal determines the absolute value of the difference between the target prediction index value and the associated prediction index value; the terminal determines the mean of the target prediction index value and the associated prediction index value; the terminal determines the similarity between the target prediction index value and the associated prediction index value based on the absolute value of the difference between the target prediction index value and the associated prediction index value and the mean of the target prediction index value and the associated prediction index value. For example, the target prediction index value is 60, the associated prediction index value is 64, the absolute value of the difference between the target prediction index value and the associated prediction index value is 4, the mean of the target prediction index value and the associated prediction index value is 62, and the similarity between the target prediction index value and the associated prediction index value is 1-(4 / 62)=0.935.
[0069] S310: The terminal determines the confidence level of the target prediction index value based on the similarity.
[0070] In an embodiment of the present invention, after the terminal determines the similarity between the target prediction index value and the associated prediction index value, the confidence of the target prediction index value is determined based on the similarity. The confidence of the target prediction index value may be a ratio between the similarity between the target prediction index value and the associated prediction index value and a preset similarity threshold. The preset similarity threshold is set based on an empirical value. For example, the preset similarity threshold is 1.1. Alternatively, the confidence of the target prediction index value may also be the similarity between the target prediction index value and the associated prediction index value.
[0071] S311. The terminal obtains a display mode corresponding to the confidence level of the target prediction index value, and displays the target index prediction value and the prediction index values corresponding to each of the associated indicators based on the display mode.
[0072] In an embodiment of the present invention, after the terminal determines the confidence of the target prediction index value based on the similarity, the confidence determines the display mode corresponding to the confidence, and displays the target index prediction value and the prediction index values corresponding to each of the associated indicators based on the display mode.
[0073] In one implementation, if the confidence of the target prediction indicator value is greater than a preset confidence threshold, the display mode corresponding to the confidence is a first display mode, which means that the color of the target indicator prediction value and the prediction indicator value corresponding to each related indicator is set to a first color in the statistical page, and other indicator values except the target indicator prediction value and the prediction indicator value corresponding to each related indicator in the statistical page are displayed in a second color; if the confidence of the target prediction indicator value is less than or equal to the preset confidence threshold, the display mode corresponding to the confidence is a second display mode, which means that the color of the target indicator prediction value and the prediction indicator value corresponding to each related indicator is set to a third color in the statistical page, and other indicator values except the target indicator prediction value and the prediction indicator value corresponding to each related indicator in the statistical page are displayed in the second color. Figure 4 As shown, Figure 4 A schematic diagram of a statistics page provided by an embodiment of the present invention is shown, wherein the statistics page 40 displays 5 indicators and predicted indicator prediction values corresponding to the 5 indicators (including initial predicted indicator values and target predicted indicator values), wherein the first indicator 401 and the second indicator 402 are associated indicators associated with the target indicator 403, and the confidence of the target predicted indicator value is 0.4, which is less than the preset confidence threshold of 0.5; in the statistics page, the terminal displays the first indicator 401, the second indicator 402 and the target indicator 403, as well as the predicted indicator value corresponding to the first indicator 401, the predicted indicator value corresponding to the second indicator 402 and the target predicted indicator value corresponding to the target indicator 403 as a third color (e.g. Figure 4The terminal displays the third indicator 404, the fourth indicator 405, and the predicted indicator value corresponding to the third indicator 404 and the predicted indicator value corresponding to the fourth indicator 405 as a second color (for example Figure 4 By distinguishing the indicator values with confidence greater than the preset confidence threshold from the indicator values with confidence less than or equal to the confidence threshold, it is convenient to distinguish the indicator values with different confidences. The terminal user can intuitively check the distribution of the confidence of each indicator value to adjust the parameters of the indicator prediction model, optimize the indicator prediction model, and further improve the prediction accuracy of the indicator prediction model.
[0074] Furthermore, the terminal can also broadcast the historical indicator value and the target prediction indicator value corresponding to the target indicator, so that the nodes in the blockchain can perform consensus verification on the historical indicator value and the target prediction indicator value; if the received consensus verification result indicates that the historical indicator value and the target prediction indicator value have been verified, the terminal will package the historical indicator value and the target prediction indicator value into a block and publish the block to the blockchain; blockchain refers to a decentralized infrastructure with distributed storage characteristics, specifically a data structure that organizes data blocks in a time sequence in a manner similar to a linked list, which can safely store data that has a sequential relationship and can be verified within the system, and cryptographically ensure that the data cannot be tampered with or forged. In the above manner, when the terminal receives the historical indicator value of the target indicator again, it can obtain the target prediction indicator value corresponding to the historical indicator value of the target indicator from the blockchain, which can ensure the traceability of the target prediction indicator value.
[0075] In an embodiment of the present invention, a terminal obtains data to be processed, and the data to be processed includes historical indicator values corresponding to a target indicator; the terminal determines an indicator prediction model according to the type of data to be processed, and the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; the terminal uses the indicator prediction model to predict the historical indicator values to obtain an initial prediction indicator value corresponding to the target indicator; the terminal obtains at least one reference indicator that has an association with the target indicator, and determines a reference indicator value corresponding to each reference indicator in at least one reference indicator; the terminal determines a weighting coefficient for the initial prediction indicator value based on the reference indicator value corresponding to each reference indicator; the terminal performs weighted processing on the initial prediction indicator value based on the weighting coefficient to obtain a target prediction indicator value corresponding to the target indicator, which can improve the prediction efficiency of the indicator value and improve the prediction accuracy of the indicator value.
[0076] The following will be combined with the attached Figure 5 The data processing device provided by the embodiment of the present invention is described in detail. Figure 5 The data processing device shown is used to execute the present invention Figure 1 , Figure 3 For the convenience of explanation, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed. Figure 1 , Figure 3 The embodiment shown.
[0077] See also Figure 5 , is a structural diagram of a data processing device provided by the present invention. The data processing device 50 may include: an acquisition module 501, a determination module 502, a prediction module 503, and a processing module 504.
[0078] An acquisition module 501 is used to acquire data to be processed, where the data to be processed includes historical indicator values corresponding to the target indicator;
[0079] A determination module 502 is used to determine an indicator prediction model according to the type of data to be processed, where the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, where the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set;
[0080] The prediction module 503 is used to use the indicator prediction model to predict the historical indicator value and obtain the initial prediction indicator value corresponding to the target indicator;
[0081] The determination module 502 is further configured to obtain at least one reference indicator associated with the target indicator, and determine a reference indicator value corresponding to each reference indicator in the at least one reference indicator;
[0082] The determination module 502 is further configured to determine a weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index;
[0083] The processing module 504 is used to perform weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index.
[0084] In one implementation, the indicator prediction model includes a first indicator prediction model and a second indicator prediction model, and the prediction module 503 is specifically used to:
[0085] The first indicator prediction model is used to predict the historical indicator value to obtain a first prediction indicator value corresponding to the target indicator, and the second indicator prediction model is used to predict the historical indicator value to obtain a second prediction indicator value corresponding to the target indicator;
[0086] If the first prediction index value and the second prediction index value meet the preset screening condition, then obtaining a first model weight corresponding to the first index prediction model, and obtaining a second model weight corresponding to the second index prediction model;
[0087] The first prediction index value is weighted by using the first model weight to obtain a first weighted prediction index value, and the second prediction index value is weighted by using the second model weight to obtain a second weighted prediction index value;
[0088] The first weighted prediction index value and the second weighted prediction index value are summed to obtain an initial prediction index value.
[0089] In one implementation, the determination module 502 is specifically configured to:
[0090] Displaying a reference indicator acquisition page, wherein a reference indicator list is displayed on the reference indicator acquisition page, and the reference indicator list includes at least one reference indicator associated with the target indicator;
[0091] If the target reference indicator in the reference indicator list is selected, an indicator value input box is displayed at the target position on the reference indicator acquisition page, and the target reference indicator is any reference indicator in the reference indicator list;
[0092] When there is an input operation acting on the indicator value input box, the target reference indicator value corresponding to the target reference indicator in the input indicator value input box is obtained.
[0093] In one implementation, the at least one reference indicator includes a first reference indicator and a second reference indicator, and the determination module 502 is specifically configured to:
[0094] Obtaining a first reference indicator value corresponding to the first reference indicator, a second reference indicator value corresponding to the second reference indicator, and obtaining a first reference indicator threshold corresponding to the first reference indicator, a second reference indicator threshold corresponding to the second reference indicator, and obtaining a first indicator weight corresponding to the first reference indicator, and a second indicator weight corresponding to the second reference indicator;
[0095] Determining a first weighting coefficient based on a ratio between a first reference indicator value and a first reference indicator threshold, and determining a second weighting coefficient based on a ratio between a second reference indicator value and the second reference indicator threshold;
[0096] The first weighting coefficient is weighted by the first indicator weight to obtain the first target weighting coefficient, and the second weighting coefficient is weighted by the second indicator weight to obtain the second target weighting coefficient;
[0097] The first target weighting coefficient and the second target weighting coefficient are summed to obtain a weighting coefficient.
[0098] In one implementation, the processing module 504 is further configured to:
[0099] Acquire at least one associated indicator associated with the target indicator, and acquire a prediction indicator value corresponding to each associated indicator in the at least one associated indicator;
[0100] Obtaining an operation rule between the target indicator and at least one associated indicator, and calculating the prediction indicator value corresponding to each associated indicator based on the operation rule to obtain the associated prediction indicator value;
[0101] determining the similarity between the target predictor value and the associated predictor value;
[0102] Determine the confidence level of the target prediction indicator value based on the similarity;
[0103] The display mode corresponding to the confidence level of the target prediction indicator value is obtained, and the target indicator prediction value and the prediction indicator values corresponding to each associated indicator are displayed based on the display mode.
[0104] In one implementation, the processing module 504 is specifically configured to:
[0105] Acquire a training sample set, where the training sample set includes at least one indicator and a historical indicator value corresponding to each indicator in the at least one indicator;
[0106] Build an initial indicator prediction model;
[0107] Iteratively training the initial indicator prediction model according to at least one indicator and the historical indicator value corresponding to each indicator to update the parameters in the initial indicator prediction model;
[0108] When it is detected that the initial indicator prediction model after parameter update meets the preset conditions, the initial indicator prediction model after parameter update is determined as the second indicator prediction model. The preset conditions include that the prediction accuracy of the initial indicator prediction model for the historical indicator values in the training sample set is higher than the preset accuracy.
[0109] In one implementation, the processing module 504 is further configured to:
[0110] Broadcast the historical indicator value and the target prediction indicator value corresponding to the target indicator, so that the nodes in the blockchain can perform consensus verification on the historical indicator value and the target prediction indicator value;
[0111] If the received consensus verification result indicates that the nodes in the blockchain have passed the verification of the historical indicator value and the target indicator prediction value, the historical indicator value and the target prediction indicator value are packaged into a block;
[0112] Publishing a block to the blockchain.
[0113] In an embodiment of the present invention, an acquisition module 501 acquires data to be processed, and the data to be processed includes historical indicator values corresponding to a target indicator; a determination module 502 determines an indicator prediction model according to the type of data to be processed, and the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, wherein the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model obtained by training a training sample set; a prediction module 503 uses the indicator prediction model to perform prediction processing on the historical indicator values to obtain an initial prediction indicator value corresponding to the target indicator; the determination module 502 acquires at least one reference indicator having an association relationship with the target indicator, and determines a reference indicator value corresponding to each reference indicator in at least one reference indicator; the determination module 502 determines a weighting coefficient for the initial prediction indicator value based on the reference indicator value corresponding to each reference indicator; the processing module 504 performs weighted processing on the initial prediction indicator value based on the weighting coefficient to obtain a target prediction indicator value corresponding to the target indicator; the prediction efficiency of the indicator value can be improved, and the prediction accuracy of the indicator value can be improved.
[0114] See also Figure 6 , a schematic diagram of the structure of a terminal is provided for an embodiment of the present invention. The terminal includes: at least one processor 601, an input device 603, an output device 602, a memory 605, and at least one communication bus 602. The communication bus 602 is used to realize the connection and communication between these components. The input device 603 can be a control panel or a microphone, etc., and the output device 602 can be a display screen, etc. The memory 605 can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 605 can optionally be at least one storage device located away from the aforementioned processor 601. The processor 601 can be combined with Figure 5 In the described apparatus, a set of program codes is stored in the memory 605, and the processor 601, the input device 603, and the output device 602 call the program codes stored in the memory 605 to perform the following operations:
[0115] Processor 601, used to obtain data to be processed, where the data to be processed includes historical indicator values corresponding to the target indicator;
[0116] Processor 601, used to determine an indicator prediction model according to the type of data to be processed, the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set;
[0117] Processor 601, used to use the indicator prediction model to predict the historical indicator value to obtain an initial prediction indicator value corresponding to the target indicator;
[0118] The processor 601 is further configured to obtain at least one reference indicator associated with the target indicator, and determine a reference indicator value corresponding to each reference indicator in the at least one reference indicator;
[0119] The processor 601 is further configured to determine a weighting coefficient for an initial prediction index value based on a reference index value corresponding to each reference index;
[0120] Processor 601 is used to perform weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index.
[0121] In one implementation, the indicator prediction model includes a first indicator prediction model and a second indicator prediction model, and the processor 601 is specifically configured to:
[0122] The first indicator prediction model is used to predict the historical indicator value to obtain a first prediction indicator value corresponding to the target indicator, and the second indicator prediction model is used to predict the historical indicator value to obtain a second prediction indicator value corresponding to the target indicator;
[0123] If the first prediction index value and the second prediction index value meet the preset screening condition, then obtaining a first model weight corresponding to the first index prediction model, and obtaining a second model weight corresponding to the second index prediction model;
[0124] The first prediction index value is weighted by using the first model weight to obtain a first weighted prediction index value, and the second prediction index value is weighted by using the second model weight to obtain a second weighted prediction index value;
[0125] The first weighted prediction index value and the second weighted prediction index value are summed to obtain an initial prediction index value.
[0126] In one implementation, the processor 601 is specifically configured to:
[0127] Displaying a reference indicator acquisition page, wherein a reference indicator list is displayed on the reference indicator acquisition page, and the reference indicator list includes at least one reference indicator associated with the target indicator;
[0128] If the target reference indicator in the reference indicator list is selected, an indicator value input box is displayed at the target position on the reference indicator acquisition page, and the target reference indicator is any reference indicator in the reference indicator list;
[0129] When there is an input operation acting on the indicator value input box, the target reference indicator value corresponding to the target reference indicator in the input indicator value input box is obtained.
[0130] In one implementation, the at least one reference indicator includes a first reference indicator and a second reference indicator, and the processor 601 is specifically configured to:
[0131] Obtaining a first reference indicator value corresponding to the first reference indicator, a second reference indicator value corresponding to the second reference indicator, and obtaining a first reference indicator threshold corresponding to the first reference indicator, a second reference indicator threshold corresponding to the second reference indicator, and obtaining a first indicator weight corresponding to the first reference indicator, and a second indicator weight corresponding to the second reference indicator;
[0132] Determining a first weighting coefficient based on a ratio between a first reference indicator value and a first reference indicator threshold, and determining a second weighting coefficient based on a ratio between a second reference indicator value and the second reference indicator threshold;
[0133] The first weighting coefficient is weighted by the first indicator weight to obtain the first target weighting coefficient, and the second weighting coefficient is weighted by the second indicator weight to obtain the second target weighting coefficient;
[0134] The first target weighting coefficient and the second target weighting coefficient are summed to obtain a weighting coefficient.
[0135] In one implementation, the processor 601 is further configured to:
[0136] Acquire at least one associated indicator associated with the target indicator, and acquire a prediction indicator value corresponding to each associated indicator in the at least one associated indicator;
[0137] Obtaining an operation rule between the target indicator and at least one associated indicator, and calculating the prediction indicator value corresponding to each associated indicator based on the operation rule to obtain the associated prediction indicator value;
[0138] determining the similarity between the target predictor value and the associated predictor value;
[0139] Determine the confidence level of the target prediction indicator value based on the similarity;
[0140] The display mode corresponding to the confidence level of the target prediction indicator value is obtained, and the target indicator prediction value and the prediction indicator values corresponding to each associated indicator are displayed based on the display mode.
[0141] In one implementation, the processor 601 is specifically configured to:
[0142] Acquire a training sample set, where the training sample set includes at least one indicator and a historical indicator value corresponding to each indicator in the at least one indicator;
[0143] Build an initial indicator prediction model;
[0144] Iteratively training the initial indicator prediction model according to at least one indicator and the historical indicator value corresponding to each indicator to update the parameters in the initial indicator prediction model;
[0145] When it is detected that the initial indicator prediction model after parameter update meets the preset conditions, the initial indicator prediction model after parameter update is determined as the second indicator prediction model. The preset conditions include that the prediction accuracy of the initial indicator prediction model for the historical indicator values in the training sample set is higher than the preset accuracy.
[0146] In one implementation, the processor 601 is further configured to:
[0147] Broadcast the historical indicator value and the target prediction indicator value corresponding to the target indicator, so that the nodes in the blockchain can perform consensus verification on the historical indicator value and the target prediction indicator value;
[0148] If the received consensus verification result indicates that the nodes in the blockchain have passed the verification of the historical indicator value and the target indicator prediction value, the historical indicator value and the target prediction indicator value are packaged into a block;
[0149] Publishing a block to the blockchain.
[0150] In an embodiment of the present invention, the processor 601 obtains data to be processed, and the data to be processed includes historical indicator values corresponding to the target indicator; the processor 601 determines an indicator prediction model according to the type of data to be processed, and the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; the processor 601 uses the indicator prediction model to predict the historical indicator values to obtain an initial prediction indicator value corresponding to the target indicator; the processor 601 obtains at least one reference indicator associated with the target indicator, and determines a reference indicator value corresponding to each reference indicator in at least one reference indicator; the processor 601 determines a weighting coefficient for the initial prediction indicator value based on the reference indicator value corresponding to each reference indicator; the processor 601 performs weighted processing on the initial prediction indicator value based on the weighting coefficient to obtain a target prediction indicator value corresponding to the target indicator; the prediction efficiency of the indicator value can be improved, and the prediction accuracy of the indicator value can be improved.
[0151] The modules described in the embodiments of the present invention may be implemented by a general integrated circuit, such as a CPU (Central Processing Unit), or by an ASIC (Application Specific Integrated Circuit).
[0152] It should be understood that in the embodiment of the present invention, the processor 601 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0153] The bus 602 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 It is represented by only one thick line, but it does not mean that there is only one bus or one type of bus.
[0154] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The computer storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0155] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire data to be processed, wherein the data to be processed includes historical indicator values corresponding to a target indicator; the target indicator is a weather indicator or a temperature indicator; Determine an indicator prediction model according to the type of the data to be processed, the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; Using the indicator prediction model to perform prediction processing on the historical indicator value to obtain an initial prediction indicator value corresponding to the target indicator; Acquire at least one reference indicator associated with the target indicator, and determine the reference indicator value corresponding to each reference indicator in the at least one reference indicator; the acquiring of at least one reference indicator associated with the target indicator, and determining the reference indicator value corresponding to each reference indicator in the at least one reference indicator, comprises: displaying a reference indicator acquisition page, wherein a reference indicator list is displayed in the reference indicator acquisition page, wherein the reference indicator list comprises the at least one reference indicator associated with the target indicator; if a target reference indicator in the reference indicator list is selected, then displaying an indicator value input box at a target position on the reference indicator acquisition page, wherein the target reference indicator is any one of the reference indicators in the reference indicator list; when there is an input operation acting on the indicator value input box, acquiring the target reference indicator value corresponding to the target reference indicator input in the indicator value input box; Determine a weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index; the at least one reference index includes a first reference index and a second reference index; the determining of the weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index includes: obtaining a first reference index value corresponding to the first reference index, a second reference index value corresponding to the second reference index, and obtaining a first reference index threshold value corresponding to the first reference index, a second reference index threshold value corresponding to the second reference index, and obtaining a first index weight corresponding to the first reference index, and a second index weight corresponding to the second reference index; determine a first weighting coefficient based on a ratio between the first reference index value and the first reference index threshold value, and determine a second weighting coefficient based on a ratio between the second reference index value and the second reference index threshold value; perform weighting processing on the first weighting coefficient using the first index weight to obtain a first target weighting coefficient, and perform weighting processing on the second weighting coefficient using the second index weight to obtain a second target weighting coefficient; sum the first target weighting coefficient and the second target weighting coefficient to obtain a weighting coefficient for the initial prediction index value; Performing weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index; Acquire at least one associated indicator associated with the target indicator, and acquire a prediction indicator value corresponding to each associated indicator in the at least one associated indicator; acquire an operation rule between the target indicator and the at least one associated indicator, and calculate the prediction indicator value corresponding to each of the associated indicators based on the operation rule to obtain an associated prediction indicator value; determine the similarity between the target prediction indicator value and the associated prediction indicator value, and determine the confidence of the target prediction indicator value based on the similarity; Obtaining a display mode corresponding to the confidence of the target prediction index value, and displaying the target prediction index value and the prediction index values corresponding to each associated index based on the display mode; wherein, if the confidence of the target prediction index value is greater than a preset confidence threshold, the corresponding display mode is a first display mode; if the confidence of the target prediction index value is less than or equal to the preset confidence threshold, the corresponding display mode is a second display mode; Broadcasting the historical indicator value and the target prediction indicator value corresponding to the target indicator, so that the nodes in the blockchain perform consensus verification on the historical indicator value and the target prediction indicator value; If the received consensus verification result indicates that the nodes in the blockchain have passed the verification of the historical indicator value and the target indicator prediction value, the historical indicator value and the target prediction indicator value are packaged into a block; and the block is published to the blockchain.
2. The method according to claim 1, characterized in that The indicator prediction model includes the first indicator prediction model and the second indicator prediction model, and the use of the indicator prediction model to perform prediction processing on the historical indicator value to obtain the initial prediction indicator value corresponding to the target indicator includes: Using the first indicator prediction model to predict the historical indicator value to obtain a first prediction indicator value corresponding to the target indicator, and using the second indicator prediction model to predict the historical indicator value to obtain a second prediction indicator value corresponding to the target indicator; If the first prediction index value and the second prediction index value meet the preset screening condition, obtaining a first model weight corresponding to the first index prediction model, and obtaining a second model weight corresponding to the second index prediction model; The first model weight is used to perform weighted processing on the first prediction index value to obtain a first weighted prediction index value, and the second model weight is used to perform weighted processing on the second prediction index value to obtain a second weighted prediction index value; The first weighted prediction index value and the second weighted prediction index value are summed to obtain the initial prediction index value.
3. The method according to claim 1, characterized in that The training process of the second indicator prediction model includes: Acquire the training sample set, where the training sample set includes at least one indicator and a historical indicator value corresponding to each indicator in the at least one indicator; Build an initial indicator prediction model; Iteratively training the initial indicator prediction model according to the at least one indicator and the historical indicator value corresponding to each indicator to update the parameters in the initial indicator prediction model; When it is detected that the initial indicator prediction model after parameter update meets the preset conditions, the initial indicator prediction model after parameter update is determined as the second indicator prediction model, and the preset conditions include that the prediction accuracy of the initial indicator prediction model for the historical indicator values in the training sample set is higher than the preset accuracy.
4. A data processing device, characterized in that: The device is used to execute the method according to any one of claims 1 to 3, and the data processing device comprises: An acquisition module is used to acquire data to be processed, wherein the data to be processed includes a historical indicator value corresponding to a target indicator; the target indicator is a weather indicator or a temperature indicator; A determination module, used to determine an indicator prediction model according to the type of the data to be processed, wherein the indicator prediction model includes a first indicator prediction model and / or a second indicator prediction model, wherein the first indicator prediction model is a rule model constructed based on preset rules, and the second indicator prediction model is a neural network model trained according to a training sample set; A prediction module, used to use the indicator prediction model to perform prediction processing on the historical indicator value to obtain an initial prediction indicator value corresponding to the target indicator; The determination module is further configured to obtain at least one reference indicator associated with the target indicator, and determine a reference indicator value corresponding to each reference indicator in the at least one reference indicator; The determination module is further configured to determine a weighting coefficient for the initial prediction index value based on the reference index value corresponding to each reference index; A processing module, configured to perform weighted processing on the initial prediction index value based on the weighting coefficient to obtain a target prediction index value corresponding to the target index; The processing module is further used to obtain a display mode corresponding to the confidence of the target prediction index value, and display the target prediction index value and the prediction index values corresponding to each associated index based on the display mode; wherein, if the confidence of the target prediction index value is greater than a preset confidence threshold, the corresponding display mode is a first display mode; if the confidence of the target prediction index value is less than or equal to the preset confidence threshold, the corresponding display mode is a second display mode; The processing module is also used to broadcast the historical indicator value and the target prediction indicator value corresponding to the target indicator, so that the nodes in the blockchain can perform consensus verification on the historical indicator value and the target prediction indicator value; if the received consensus verification result indicates that the nodes in the blockchain have passed the verification of the historical indicator value and the target prediction indicator value, the historical indicator value and the target prediction indicator value are packaged into a block; and the block is published to the blockchain.
5. A terminal, characterized in that: The terminal comprises: a processor adapted to implement computer instructions; and, A computer-readable storage medium storing computer instructions, wherein the computer instructions are suitable for being loaded by the processor and executing the data processing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are suitable for being loaded by a processor and executing the data processing method according to any one of claims 1 to 3.
