Iron content prediction method and device, storage medium and electronic device
By using the gray linear regression combination model to predict iron content in the wind turbine gearbox, the problem of low prediction accuracy of traditional machine learning algorithms is solved, the accuracy of iron content prediction is improved, and the economic benefits and maintenance needs of the wind farm are supported.
Patent Information
- Application Number
- CN202410795392.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-09-06
AI Technical Summary
When using machine learning algorithms to predict the iron content of wind turbine gearboxes in the existing technology, the accuracy is low and the need for gearbox failure prediction cannot be effectively addressed.
The iron content data is collected based on a preset time interval and the iron content prediction formula is generated through a gray linear regression combination model to predict the iron content of the target object, replacing the traditional machine learning algorithm.
It improves the accuracy of iron content prediction, provides higher prediction accuracy and reliability, and supports the maintenance of wind farms and the improvement of economic benefits.
Smart Images

Figure CN118609698A
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data, and specifically, to a method and device for predicting iron content, a storage medium, and an electronic device. Background Art
[0002] Wind turbines work in harsh wind farm environments for a long time. Due to the dual influence of the environment and its own structure, the external exciting force and vibration freedom of wind turbines are much higher than other large machines. With the increase of single-machine capacity, the size of wind turbines is increasing, which also increases the probability of wind turbine failure. Whether wind turbines can operate normally directly affects the economic benefits of wind farms. Therefore, it is very necessary to monitor the status and diagnose faults of wind turbines. Gearboxes are important components of wind turbines, and the health of gearboxes directly affects the performance of the entire machine system. According to statistics, the failure rate of gearboxes is the highest among all components of wind turbines, and it also causes the longest downtime. Therefore, strengthening the monitoring of wind turbine gearboxes is of great significance to reducing the daily maintenance costs of wind farms and improving economic benefits.
[0003] The lubricating oil of wind turbine gearboxes carries a lot of characteristic information about early faults such as gearbox wear. As the lubricating oil is used for a longer time, metal particles and other impurities generated by friction on the surface of gear parts will enter the oil, causing the lubricating oil to deteriorate. Through oil monitoring technology, information about the wear status of the gearbox can be obtained, and gearbox faults can be predicted and diagnosed. However, due to the small sample size of gearbox lubricating oil monitoring data and the large number of uncertain factors, the accuracy of traditional machine learning algorithms is often not high.
[0004] There is no effective solution to the problem that the iron content of a target object is predicted by machine learning algorithms in the prior art, resulting in low prediction accuracy. Summary of the invention
[0005] According to one embodiment of the embodiments of the present application, a method for predicting iron content is provided, comprising: collecting iron content data in a target object based on a preset time interval, and arranging multiple iron content data into an iron content data sequence according to the preset time interval; generating an iron content prediction formula according to the iron content data sequence and a grey linear regression combined model, and predicting the iron content of the target object in a target time period according to the iron content prediction formula.
[0006] In an exemplary embodiment, an iron content prediction formula is generated according to the iron content data sequence and the grey linear regression combined model, including: determining a cumulative generation sequence corresponding to the iron content data sequence, and determining a neighboring mean generation sequence corresponding to the cumulative generation sequence; generating the iron content prediction formula according to the neighboring mean generation sequence and the grey linear regression combined model.
[0007] In an exemplary embodiment, the iron content prediction formula is generated according to the adjacent mean generation sequence and the grey linear regression combination model, including: establishing a first matrix corresponding to the adjacent mean generation sequence and a second matrix corresponding to the iron content data sequence; inputting the first matrix and the second matrix into a target formula to calculate the first parameter value and the second parameter value corresponding to the grey linear regression combination model, wherein the target formula is: The B is the first matrix, the y is the second matrix, Used to indicate the first parameter value and the second parameter value; determine the iron content prediction formula according to the first parameter value, the second parameter value and the grey linear regression combined model.
[0008] In an exemplary embodiment, the iron content prediction formula is determined based on the first parameter value, the second parameter value and the grey linear regression combination model, including: inputting the first parameter value and the second parameter value into the grey linear regression combination model, and performing cumulative reduction on the grey linear regression combination model that has input the first parameter value and the second parameter value to generate the iron content prediction formula.
[0009] In an exemplary embodiment, after predicting the iron content of the target object in the target time period according to the iron content prediction formula, the method further includes: sorting a plurality of iron content prediction data based on the preset time interval arrangement to obtain an iron content prediction data sequence, wherein the iron content prediction data is the iron content of the target object in the target time period predicted based on the iron content prediction formula; determining the residual of the iron content data sequence and the iron content prediction data sequence; determining a first mean square error corresponding to the iron content data sequence and a second mean square error corresponding to the residual according to the residual and the iron content data sequence; and determining the prediction accuracy of the iron content prediction formula according to the residual, the first mean square error and the second mean square error.
[0010] In an exemplary embodiment, the prediction accuracy of the iron content prediction formula is determined based on the residual, the first mean square error, and the second mean square error, including: determining a posteriori error ratio of the iron content prediction formula based on the first mean square error and the second mean square error, and determining the error probability of the iron content prediction formula based on the residual, wherein the posteriori error ratio is used to indicate the accuracy of the iron content prediction formula; and detecting the prediction accuracy of the iron content prediction formula based on the posteriori error ratio and the error probability.
[0011] In an exemplary embodiment, the prediction accuracy of the iron content prediction formula is detected according to the posterior difference ratio and the error probability, including: when it is determined that the posterior difference ratio is less than a first threshold value and the error probability is greater than a second threshold value, determining that the prediction accuracy of the iron content prediction formula is a high prediction accuracy; when it is determined that the posterior difference ratio is greater than or equal to the first threshold value and less than a third threshold value, and the error probability is less than or equal to the second threshold value and greater than a fourth threshold value, determining that the prediction accuracy of the iron content prediction formula is a medium prediction accuracy; when it is determined that the posterior difference ratio is greater than or equal to the third threshold value and the error probability is less than or equal to the fourth threshold value, determining that the prediction accuracy of the iron content prediction formula is a low prediction accuracy.
[0012] According to another embodiment of the embodiment of the present application, a device for predicting iron content is also provided, including: an acquisition module, used to collect iron content data in a target object based on a preset time interval, and arrange multiple iron content data into an iron content data sequence according to the preset time interval; a generation module, used to generate an iron content prediction formula based on the iron content data sequence and a gray linear regression combined model, and predict the iron content of the target object in a target time period according to the iron content prediction formula.
[0013] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above method when running.
[0014] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method through the computer program.
[0015] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the method.
[0016] In an embodiment of the present application, the iron content data in the target object is collected based on a preset time interval, and a plurality of iron content data are arranged as an iron content data sequence according to the preset time interval, and an iron content prediction formula is generated according to the iron content data sequence and the gray linear regression combination model, and then the iron content of the target object in the target time period is predicted according to the iron content prediction formula. In other words, the plurality of iron content data of the target object collected based on the preset time interval are arranged as an iron content data sequence, and an iron content prediction formula is generated according to the iron content data sequence and the linear regression combination model, and the iron content prediction formula can predict the iron content of the target object in the target time period. That is, the present application does not use the traditional machine learning algorithm to predict the iron content of the target object, but generates an iron content prediction formula through the linear regression combination model, and then predicts the iron content of the target object. Through the above technical scheme, the problem of low accuracy of prediction caused by predicting the iron content of the target object by a machine learning algorithm in the technology is solved. And then the prediction accuracy of the iron content of the target object can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0018] Figure 1 It is a hardware structure block diagram of a computer terminal of a method for predicting iron content in an embodiment of the present application;
[0019] Figure 2 is a flow chart of a method for predicting iron content according to an embodiment of the present application;
[0020] Figure 3 is a flow chart of a fan gearbox oil monitoring method based on a grey linear regression combination model according to an optional embodiment of the present application;
[0021] Figure 4 It is a structural block diagram of a device for predicting iron content according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices; "plurality" means two or more.
[0024] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or similar computing device or cloud platform or independent physical server or software platform, wherein the above software platform is run through one or more servers. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal of a method for predicting iron content in an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data. In an exemplary embodiment, the computer terminal may also include a transmission device 106 for communication functions and an input and output device 108, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.
[0025] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the methods in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, the above-mentioned methods are implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] In this embodiment, a method for predicting iron content is provided, which is applied to the above-mentioned computer terminal. Figure 2 : is a flow chart of a method for predicting iron content according to an embodiment of the present application, the process comprising the following steps:
[0028] Step S202, collecting iron content data in the target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval;
[0029] Among them, the above-mentioned target object can be: wind turbine gear box oil.
[0030] Step S204, generating an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predicting the iron content of the target object in the target time period according to the iron content prediction formula.
[0031] In an embodiment of the present application, the iron content data in the target object is collected based on a preset time interval, and a plurality of iron content data are arranged as an iron content data sequence according to the preset time interval, and an iron content prediction formula is generated according to the iron content data sequence and the gray linear regression combination model, and then the iron content of the target object in the target time period is predicted according to the iron content prediction formula. In other words, the plurality of iron content data of the target object collected based on the preset time interval are arranged as an iron content data sequence, and an iron content prediction formula is generated according to the iron content data sequence and the linear regression combination model, and the iron content prediction formula can predict the iron content of the target object in the target time period. That is, the present application does not use the traditional machine learning algorithm to predict the iron content of the target object, but generates an iron content prediction formula through the linear regression combination model, and then predicts the iron content of the target object. Through the above technical scheme, the problem of low accuracy of prediction caused by predicting the iron content of the target object by a machine learning algorithm in the technology is solved. And then the prediction accuracy of the iron content of the target object can be improved.
[0032] Optionally, after generating the iron content prediction formula according to the iron content data sequence and the grey linear regression combined model in the above step S204, it includes: determining the cumulative generation sequence corresponding to the iron content data sequence, and determining the adjacent mean generation sequence corresponding to the cumulative generation sequence; generating the iron content prediction formula according to the adjacent mean generation sequence and the grey linear regression combined model.
[0033] The method of generating the iron content prediction formula according to the adjacent mean generation sequence and the grey linear regression combination model includes: establishing a first matrix corresponding to the adjacent mean generation sequence and a second matrix corresponding to the iron content data sequence; inputting the first matrix and the second matrix into the target formula to calculate the first parameter value and the second parameter value corresponding to the grey linear regression combination model, wherein the target formula is: The B is the first matrix, the y is the second matrix, Used to indicate the first parameter value and the second parameter value; determine the iron content prediction formula according to the first parameter value, the second parameter value and the grey linear regression combined model.
[0034] Wherein, the iron content prediction formula is determined according to the first parameter value, the second parameter value and the grey linear regression combination model, including: inputting the first parameter value and the second parameter value into the grey linear regression combination model, and performing cumulative reduction on the grey linear regression combination model into which the first parameter value and the second parameter value have been input, so as to generate the iron content prediction formula.
[0035] It is understandable that after determining the iron content data sequence, (1) the cumulative generation sequence corresponding to the iron content data sequence can be determined. For example: the iron content data sequence is X (0) =(x (0) (1),x (0) (2),...,x (0) (n)), then the cumulative generated sequence is X (1) =(x (1) (1),x (1) (2),...,x (1) (n)).
[0036] Among them, a cumulatively generated sequence (1-AGO sequence, that is, the cumulatively generated sequence of this application): assuming that a sequence is {x1, x2, x3, x4}, the cumulatively generated sequence is {x1, x1+x2, x1+x2+x3, x1+x2+x3+x4}.
[0037] (2) Determine the adjacent mean generation sequence based on the cumulative generation sequence. For example: the cumulative generation sequence is X (1) =(x (1) (1),x (1) (2),...,x (1) (n)), then the sequence generated by the adjacent mean is: Z (1) =(z (1) (1),z (1) (2),...,z (1) (n)), where z (1) (t) = 0.5x (1) (t-1)+0.5x (1) (t)(t=2,3,...,n).
[0038] (3) Establish a first matrix and a second matrix. For example, the first matrix is: The second matrix is:
[0039] (4) Substitute the first matrix and the second matrix into the target formula to generate the first parameter value and the second parameter value, wherein the target formula can be:
[0040] (5) Substitute the first parameter value and the second parameter value into the grey linear regression combination model to determine the 1-AGO sequence of the preset time interval. For example, if the first parameter value is a and the second parameter value is u, then the 1-AGO sequence of the preset time interval is:
[0041] (6) By performing cumulative reduction, a formula for predicting iron content can be generated. For example, the formula for predicting iron content is:
[0042] Through the above steps, an iron content prediction formula can be generated, and then the iron content of the target object within the target time period can be predicted according to the iron content prediction formula.
[0043] Optionally, after predicting the iron content of the target object in the target time period according to the iron content prediction formula in the above step S204, the method further includes: sorting a plurality of iron content prediction data based on the preset time interval to obtain an iron content prediction data sequence, wherein the iron content prediction data is the iron content of the target object in the target time period predicted based on the iron content prediction formula; determining the residual of the iron content data sequence and the iron content prediction data sequence; determining a first mean square error corresponding to the iron content data sequence and a second mean square error corresponding to the residual based on the residual and the iron content data sequence; and determining the prediction accuracy of the iron content prediction formula based on the residual, the first mean square error and the second mean square error.
[0044] Wherein, the prediction accuracy of the iron content prediction formula is determined according to the residual, the first mean square error and the second mean square error, including: determining the posterior difference ratio of the iron content prediction formula according to the first mean square error and the second mean square error, and determining the error probability of the iron content prediction formula according to the residual, wherein the posterior difference ratio is used to indicate the accuracy of the iron content prediction formula; detecting the prediction accuracy of the iron content prediction formula according to the posterior difference ratio and the error probability.
[0045] Wherein, the prediction accuracy of the iron content prediction formula is detected according to the posterior difference ratio and the error probability, including: when it is determined that the posterior difference ratio is less than a first threshold value and the error probability is greater than a second threshold value, determining that the prediction accuracy of the iron content prediction formula is a high prediction accuracy; when it is determined that the posterior difference ratio is greater than or equal to the first threshold value and less than a third threshold value, and the error probability is less than or equal to the second threshold value and greater than a fourth threshold value, determining that the prediction accuracy of the iron content prediction formula is a medium prediction accuracy; when it is determined that the posterior difference ratio is greater than or equal to the third threshold value and the error probability is less than or equal to the fourth threshold value, determining that the prediction accuracy of the iron content prediction formula is a low prediction accuracy.
[0046] It is understandable that the above-mentioned first threshold value can be 0.35, the second threshold value can be 0.95, the third threshold value can be 0.65, and the fourth threshold value can be 0.7. That is, when the posterior difference ratio C<0.35 and the error probability P>0.95, the prediction accuracy of the iron content prediction formula can be determined to be high prediction accuracy, and the iron content prediction formula can be determined to be qualified. When the posterior difference ratio 0.35≤C<0.65 and the error probability 0.95≥P>0.7, the prediction accuracy of the iron content prediction formula can be determined to be medium prediction accuracy, and the iron content prediction formula can be determined to be qualified. When the posterior difference ratio C≥0.65 and the error probability P≤0.7, the prediction accuracy of the iron content prediction formula can be determined to be low prediction accuracy, and the iron content prediction formula can be determined to be unqualified.
[0047] Among them, the medium prediction accuracy can also be divided into the first medium prediction accuracy and the second medium prediction accuracy. For example: when the posterior difference ratio is 0.35≤C<0.5 and the error probability is 0.95≥P>0.8, the prediction accuracy of the iron content prediction formula can be determined to be the first medium prediction accuracy. At this time, the iron content prediction formula can be determined to be qualified. When the posterior difference ratio is 0.5≤C<0.65 and the error probability is 0.8≥P>0.7, the prediction accuracy of the iron content prediction formula can be determined to be the first medium prediction accuracy. At this time, it can be determined that the iron content prediction formula is barely qualified.
[0048] In order to better understand the process of the above-mentioned method for predicting the iron content, the above-mentioned method for predicting the iron content is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0049] An optional embodiment of the present application provides a fan gearbox oil monitoring method based on a grey linear regression combination model. Figure 3 is a flow chart of a fan gearbox oil monitoring method based on a grey linear regression combination model according to an optional embodiment of the present application, such as Figure 3 As shown:
[0050] Step S301, obtaining data on Fe (iron) content in oil;
[0051] Let sequence X (0) =(x (0) (1),x (0) (2),...,x (0) (n)) is an equally spaced data sequence of Fe content (ie, the iron content data sequence of the present application). Time interval t=const (ie, the preset time interval of the present application).
[0052] Step S302, establishing a grey linear regression combination model;
[0053] Step S302-1, calculate X(0) 1-AGO sequence (i.e., the cumulatively generated sequence of the present application);
[0054] X (0) The 1-AGO sequence is X (1) =(x (1) (1),x (1) (2),...,x (1) (n)), where
[0055] Step S302-2, calculating the adjacent mean generation sequence (that is, the adjacent mean generation sequence corresponding to the cumulative generation sequence of the present application);
[0056] In X (0) The sequence X is obtained based on the 1-AGO sequence (1) The adjacent mean of Z generates a sequence: (1) =(z (1) (1),z (1) (2),...,z (1) (n)), where z (1) (t) = 0.5x (1) (t-1)+0.5x (1) (t)(t=2,3,...,n).
[0057] Step S302-3, establish matrix B (i.e., the first matrix of the present application) and y (i.e., the second matrix of the present application);
[0058] according to The model parameter values a, u (ie, the first parameter value and the second parameter value of the present application) can be obtained.
[0059] Step S302-3, 1-AGO sequence at specific time intervals;
[0060] Substituting the parameters a and u into the time response equation of the equally spaced grey linear regression combined model, the 1-AGO sequence at a specific time interval can be obtained:
[0061] Step S302-4, using cumulative reduction to obtain a predicted value for verification;
[0062] Cumulative reduction can obtain the model prediction value for a specific time interval: (i.e. the iron content prediction formula of the present application).
[0063] Step S303, model accuracy detection;
[0064] The posterior difference method is used to evaluate the goodness of fit of the constructed model. (0) For the modeling data column x(0) Fitting a data column to a model The residual of Let the modeling sequence x (0) The mean square error and residual data column e (0) The mean square errors are S1 and S2 respectively, and the calculation formula is:
[0065]
[0066] In the above formula, n is the number of training data.
[0067] Determine the posterior difference ratio C, the calculation formula of the posterior difference ratio C is:
[0068] Determine the small error probability P. The calculation formula for the small error probability P is:
[0069] Table 1 is a table of fitting accuracy of a model determined according to inspection standards of an optional embodiment of the present application, and the fitting accuracy of the model can be determined based on Table 1.
[0070] Table 1
[0071] Accuracy index good qualified Barely qualified Failure P P>0.95 0.8<P≤0.95 0.7<P≤0.8 P≤0.7 C C<0.35 0.35≤C<0.5 0.5≤C<0.65 C≥0.65
[0072] Step S304, predicting the Fe content in the oil after running for a period of time.
[0073]
[0074] In view of the small sample data conditions of the gearbox lubricating oil of the wind turbine generator set, the optional embodiment of the present application uses a gray linear regression combination model to simulate the data of the wear metal Fe content of the gearbox lubricating oil and make a prediction. The gray linear regression combination model has high operability and fitting prediction accuracy, can meet the actual needs of the project, and provide technical support for on-site operation and maintenance and large component early warning.
[0075] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0076] The present application also provides a structural block diagram of an iron content prediction device. Figure 4 is a structural block diagram of a device for predicting iron content according to an embodiment of the present application; Figure 4 As shown, including:
[0077] A collection module 42, configured to collect iron content data in a target object based on a preset time interval, and arrange multiple iron content data into an iron content data sequence according to the preset time interval;
[0078] The generation module 44 is used to generate an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predict the iron content of the target object in the target time period according to the iron content prediction formula.
[0079] Through the above-mentioned device, the iron content data in the target object is collected based on the preset time interval, and the multiple iron content data are arranged into an iron content data sequence according to the preset time interval, and the iron content prediction formula is generated according to the iron content data sequence and the gray linear regression combination model, and then the iron content of the target object in the target time period is predicted according to the iron content prediction formula. In other words, the multiple iron content data of the target object collected based on the preset time interval are arranged into an iron content data sequence, and the iron content prediction formula is generated according to the iron content data sequence and the linear regression combination model, and the iron content prediction formula can predict the iron content of the target object in the target time period. That is, the present application does not use the traditional machine learning algorithm to predict the iron content of the target object, but generates the iron content prediction formula through the linear regression combination model, and then predicts the iron content of the target object. Through the above-mentioned technical scheme, the problem of low accuracy of prediction caused by predicting the iron content of the target object by the machine learning algorithm in the technology is solved. And then the prediction accuracy of the iron content of the target object can be improved.
[0080] In an exemplary embodiment, the generation module 44 is also used to determine the cumulative generation sequence corresponding to the iron content data sequence, and determine the adjacent mean generation sequence corresponding to the cumulative generation sequence; and generate the iron content prediction formula according to the adjacent mean generation sequence and the grey linear regression combined model.
[0081] In an exemplary embodiment, the generating module 44 is further used to establish a first matrix corresponding to the adjacent mean generating sequence and a second matrix corresponding to the iron content data sequence; the first matrix and the second matrix are input into a target formula to calculate a first parameter value and a second parameter value corresponding to the grey linear regression combined model, wherein the target formula is: The B is the first matrix, the y is the second matrix, Used to indicate the first parameter value and the second parameter value; determine the iron content prediction formula according to the first parameter value, the second parameter value and the grey linear regression combined model.
[0082] In an exemplary embodiment, the generating module 44 is further used to input the first parameter value and the second parameter value into the grey linear regression combination model, and to perform cumulative reduction on the grey linear regression combination model having inputted the first parameter value and the second parameter value, so as to generate the iron content prediction formula.
[0083] In an exemplary embodiment, the device also includes: a determination module, which is used to sort multiple iron content prediction data based on the preset time interval to obtain an iron content prediction data sequence, wherein the iron content prediction data is the iron content of the target object in the target time period predicted based on the iron content prediction formula; determine the residual of the iron content data sequence and the iron content prediction data sequence; determine a first mean square error corresponding to the iron content data sequence and a second mean square error corresponding to the residual based on the residual and the iron content data sequence; determine the prediction accuracy of the iron content prediction formula based on the residual, the first mean square error and the second mean square error.
[0084] In an exemplary embodiment, the determination module is also used to determine the posterior difference ratio of the iron content prediction formula based on the first mean square error and the second mean square error, and determine the error probability of the iron content prediction formula based on the residual, wherein the posterior difference ratio is used to indicate the accuracy of the iron content prediction formula; and the prediction accuracy of the iron content prediction formula is detected based on the posterior difference ratio and the error probability.
[0085] In an exemplary embodiment, the determination module is also used to determine that the prediction accuracy of the iron content prediction formula is high prediction accuracy when it is determined that the posterior difference ratio is less than a first threshold and the error probability is greater than a second threshold; determine that the prediction accuracy of the iron content prediction formula is medium prediction accuracy when it is determined that the posterior difference ratio is greater than or equal to the first threshold and less than a third threshold, and the error probability is less than or equal to the second threshold and greater than a fourth threshold; determine that the prediction accuracy of the iron content prediction formula is low prediction accuracy when it is determined that the posterior difference ratio is greater than or equal to the third threshold and the error probability is less than or equal to the fourth threshold.
[0086] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.
[0087] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:
[0088] S1, collecting iron content data in a target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval;
[0089] S2, generating an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predicting the iron content of the target object in a target time period according to the iron content prediction formula.
[0090] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0091] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0092] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0093] S1, collecting iron content data in a target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval;
[0094] S2, generating an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predicting the iron content of the target object in a target time period according to the iron content prediction formula.
[0095] An embodiment of the present application further provides a computer program product, including a computer program, which is used by a processor to execute the steps in any of the above method embodiments.
[0096] Optionally, in this embodiment, the computer program product may be executed by a processor to perform the following steps:
[0097] S1, collecting iron content data in a target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval;
[0098] S2, generating an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predicting the iron content of the target object in a target time period according to the iron content prediction formula.
[0099] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.
[0100] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0101] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0102] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for predicting iron content, characterized in that: include: Collecting iron content data in the target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval; An iron content prediction formula is generated according to the iron content data sequence and the grey linear regression combined model, and the iron content of the target object in the target time period is predicted according to the iron content prediction formula.
2. The method for predicting iron content according to claim 1, characterized in that: The iron content prediction formula is generated according to the iron content data sequence and the grey linear regression combined model, including: Determine a cumulative generation sequence corresponding to the iron content data sequence, and determine an immediately adjacent mean generation sequence corresponding to the cumulative generation sequence; The iron content prediction formula is generated according to the adjacent mean generation sequence and the grey linear regression combination model.
3. The method for predicting iron content according to claim 2, characterized in that: Generating the iron content prediction formula according to the adjacent mean generation sequence and the grey linear regression combination model includes: Establishing a first matrix corresponding to the adjacent mean value generation sequence and a second matrix corresponding to the iron content data sequence; The first matrix and the second matrix are input into the target formula to calculate the first parameter value and the second parameter value corresponding to the grey linear regression combination model, wherein the target formula is: The B is the first matrix, the y is the second matrix, Used to indicate the first parameter value and the second parameter value; The iron content prediction formula is determined according to the first parameter value, the second parameter value and the grey linear regression combined model.
4. The method for predicting iron content according to claim 3, characterized in that: Determining the iron content prediction formula according to the first parameter value, the second parameter value and the grey linear regression combined model includes: The first parameter value and the second parameter value are input into the grey linear regression combination model, and the grey linear regression combination model into which the first parameter value and the second parameter value have been input is subjected to cumulative reduction to generate the iron content prediction formula.
5. The method for predicting iron content according to claim 1, characterized in that: After predicting the iron content of the target object in the target time period according to the iron content prediction formula, the method further includes: Sorting a plurality of iron content prediction data based on the preset time interval arrangement to obtain an iron content prediction data sequence, wherein the iron content prediction data is the iron content of the target object in the target time period predicted based on the iron content prediction formula; determining a residual between the iron content data sequence and the iron content prediction data sequence; Determine, according to the residual and the iron content data sequence, a first mean square error corresponding to the iron content data sequence and a second mean square error corresponding to the residual; The prediction accuracy of the iron content prediction formula is determined according to the residual, the first mean square error, and the second mean square error.
6. The method for predicting iron content according to claim 5, characterized in that: Determining the prediction accuracy of the iron content prediction formula according to the residual, the first mean square error, and the second mean square error includes: Determining a posterior difference ratio of the iron content prediction formula according to the first mean square error and the second mean square error, and determining an error probability of the iron content prediction formula according to the residual, wherein the posterior difference ratio is used to indicate the accuracy of the iron content prediction formula; The prediction accuracy of the iron content prediction formula is detected according to the posterior difference ratio and the error probability.
7. The method for predicting iron content according to claim 6, characterized in that: Detecting the prediction accuracy of the iron content prediction formula according to the posterior difference ratio and the error probability includes: When it is determined that the posterior difference ratio is less than a first threshold value and the error probability is greater than a second threshold value, determining that the prediction accuracy of the iron content prediction formula is a high prediction accuracy; When it is determined that the posterior difference ratio is greater than or equal to the first threshold and less than the third threshold, and the error probability is less than or equal to the second threshold and greater than the fourth threshold, determining that the prediction accuracy of the iron content prediction formula is medium prediction accuracy; When it is determined that the posterior difference ratio is greater than or equal to the third threshold and the error probability is less than or equal to the fourth threshold, it is determined that the prediction accuracy of the iron content prediction formula is low prediction accuracy.
8. A device for predicting iron content, characterized in that: include: A collection module, used for collecting iron content data in a target object based on a preset time interval, and arranging a plurality of iron content data into an iron content data sequence according to the preset time interval; A generation module is used to generate an iron content prediction formula according to the iron content data sequence and the grey linear regression combined model, and predict the iron content of the target object in a target time period according to the iron content prediction formula.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
