Coal mill coal interruption diagnosis method and system based on machine learning
The machine learning-based logistic regression model is used to diagnose the coal breakage of the coal mill, which solves the problems of low manual diagnosis efficiency and low accuracy in the existing technology, achieves efficient and accurate coal breakage fault detection, and reduces processing costs.
Patent Information
- Application Number
- CN202410989384.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-09-24
AI Technical Summary
The existing coal breakage diagnosis technology for coal mills relies on manual inspection, which is inefficient and inaccurate, resulting in high troubleshooting time and cost.
Using a method based on machine learning, the operating parameters of the coal mill are obtained in real time and input into the pre-trained logistic regression model to perform coal outage diagnosis. Historical data is used for model training and evaluation to improve the accuracy and efficiency of diagnosis.
It achieves efficient and accurate diagnosis of coal-cutting faults in coal mills, reduces the time and uncertainty of manual inspections, improves diagnostic accuracy, and reduces troubleshooting costs.
Smart Images

Figure CN118690339A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of coal mill fault detection, and in particular to a coal mill coal failure diagnosis method and system based on machine learning. Background Art
[0002] In the field of energy and industrial production, coal mills are coal-fired systems in thermal power plants, and their stable operation is crucial to ensuring the supply of electricity. However, in actual operation, coal mill failures are prone to occur, which seriously affects power generation efficiency and equipment safety. In addition, the time and cost required to handle coal mill failures are high, causing huge economic losses to the company. Therefore, it is particularly important to diagnose coal mill failures.
[0003] In the existing coal mill coal shortage diagnosis technology, manual inspection of the coal mill is required. If an abnormality is found in the coal mill, it is necessary to diagnose whether the coal mill has a coal shortage fault based on manual work experience.
[0004] The efficiency of diagnosing the coal mill manually is low, and the diagnostic accuracy is also low. Summary of the invention
[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a method and system for diagnosing coal shortage in a coal mill based on machine learning to solve the problem of low accuracy in diagnosing coal shortage in a coal mill brought about by the prior art.
[0006] In order to achieve the above objectives, this application provides the following technical solutions:
[0007] The first aspect of the present application provides a coal mill coal shortage diagnosis method based on machine learning, comprising:
[0008] Obtain the operating parameters of the coal mill to be diagnosed in real time;
[0009] The operating parameters are input into a pre-trained prediction model to obtain a coal failure diagnosis result of the coal mill to be diagnosed; wherein the prediction model is pre-trained using historical data of a sample coal mill; and the prediction model is constructed based on a logistic regression algorithm;
[0010] The coal shortage diagnosis result of the coal mill to be diagnosed is fed back to the front end.
[0011] Optionally, in the above-mentioned coal mill coal shortage diagnosis method based on machine learning, the training method of the prediction model includes:
[0012] Acquire characteristic parameters and historical data of a sample coal mill; wherein the historical data at least includes a training set;
[0013] Performing weighted calculation on the characteristic parameters using a weighted formula to obtain weighted parameters;
[0014] Using a mapping function to classify and calculate the weighted parameters to obtain mapping parameters;
[0015] Based on the mapping parameters and the preset loss function, construct a prediction model;
[0016] Inputting the training set into the prediction model to obtain the coal breaking training result corresponding to the training set;
[0017] Based on the coal-breaking training result, judging whether the loss function of the prediction model converges;
[0018] If the loss function of the prediction model converges, the prediction model is determined as a trained prediction model;
[0019] If the loss function of the prediction model has not converged, the parameters of the prediction model are adjusted, and the process of inputting the training set into the newly constructed prediction model is returned to obtain the coal-breaking training result corresponding to the sample coal mill.
[0020] Optionally, in the above-mentioned coal mill coal shortage diagnosis method based on machine learning, it also includes:
[0021] extracting a prediction set from the historical data of the sample coal mill;
[0022] Inputting the prediction set into a pre-trained prediction model to obtain a coal failure prediction result corresponding to the prediction set;
[0023] Based on the coal failure prediction result, evaluating the pre-trained prediction model;
[0024] If the pre-trained prediction model passes the evaluation, it is determined that the pre-trained prediction model meets the actual prediction requirements;
[0025] If the pre-trained prediction model fails the evaluation, it is determined that the pre-trained prediction model does not meet the actual prediction requirements.
[0026] Optionally, in the above-mentioned coal mill coal shortage diagnosis method based on machine learning, the pre-trained prediction model is evaluated based on the coal shortage prediction result, including:
[0027] Based on the coal shortage prediction result, respectively calculate the accuracy, precision and recall rate of the pre-trained prediction model;
[0028] Determine whether the accuracy rate, the precision rate, and the recall rate are all greater than a preset threshold;
[0029] If the accuracy rate, the precision rate, and the recall rate are all greater than the preset threshold, it is determined that the pre-trained prediction model passes the evaluation;
[0030] If the accuracy rate, the precision rate, and the recall rate are all not greater than the preset threshold, it is determined that the pre-trained prediction model has failed the evaluation.
[0031] Optionally, in the above-mentioned coal-breakage diagnosis method for a coal mill based on machine learning, the coal-breakage prediction result includes at least predicted coal-breakage data and predicted non-coal-breakage data, and based on the coal-breakage prediction result, respectively calculating the accuracy, precision and recall rate of the pre-trained prediction model, including:
[0032] Acquire the prediction set; wherein the prediction includes at least real coal outage data and actual non-coal outage data;
[0033] Extracting predicted real coal outage data corresponding to the real coal outage data from the predicted coal outage data, and extracting predicted actual non-coal outage data corresponding to the real non-coal outage data from the predicted non-coal outage data;
[0034] Calculate a first sum of the predicted real coal outage data and the predicted actual non-coal outage data, and divide the first sum by the prediction set to obtain the accuracy of the pre-trained prediction model;
[0035] Calculate the second sum of the predicted real coal outage data and the first error data, and divide the predicted real coal outage data by the second sum to obtain the accuracy rate of the pre-trained prediction model; wherein the first error data refers to the data in the predicted coal outage result corresponding to the actual non-coal outage data;
[0036] Calculate the third sum of the predicted real coal outage data and the second error data, and divide the predicted real coal outage data by the third sum to obtain the recall rate of the pre-trained prediction model; wherein the second error data refers to the data in the predicted non-coal outage data corresponding to the real coal outage data.
[0037] The second aspect of the present application provides a coal mill coal shortage diagnosis system based on machine learning, comprising:
[0038] A parameter acquisition unit, used for acquiring the operating parameters of the coal mill to be diagnosed in real time;
[0039] A parameter input unit is used to input the operating parameters into a pre-trained prediction model to obtain a coal failure diagnosis result of the coal mill to be diagnosed; wherein the prediction model is pre-trained using historical data of a sample coal mill; and the prediction model is constructed based on a logistic regression algorithm;
[0040] The feedback unit is used to feed back the coal shortage diagnosis result of the coal mill to be diagnosed to the front end.
[0041] Optionally, in the above-mentioned coal mill coal shortage diagnosis system based on machine learning, it also includes:
[0042] An acquisition unit, used for acquiring characteristic parameters and historical data of a sample coal mill; wherein the historical data at least includes a training set;
[0043] A weighted calculation unit, used to perform weighted calculation on the characteristic parameters using a weighted formula to obtain a weighted parameter;
[0044] A classification calculation unit, used for performing classification calculation on the weighted parameters using a mapping function to obtain mapping parameters;
[0045] A model building unit, used to build a prediction model based on the mapping parameters and a preset loss function;
[0046] A first input unit is used to input the training set into the prediction model to obtain a coal-breaking training result corresponding to the training set;
[0047] A first judgment unit, used for judging whether the loss function of the prediction model converges based on the coal-breaking training result;
[0048] A first determining unit, configured to determine the prediction model as a trained prediction model if the loss function of the prediction model converges;
[0049] An adjustment unit is used to adjust the parameters of the prediction model if the loss function of the prediction model has not converged, and return to execute the step of inputting the training set into the newly constructed prediction model to obtain the coal-breaking training result corresponding to the sample coal mill.
[0050] Optionally, in the above-mentioned coal mill coal shortage diagnosis system based on machine learning, it also includes:
[0051] An extraction unit, used for extracting a prediction set from the historical data of the sample coal mill;
[0052] A second input unit is used to input the prediction set into a pre-trained prediction model to obtain a coal failure prediction result corresponding to the prediction set;
[0053] An evaluation unit, used for evaluating the pre-trained prediction model based on the coal failure prediction result;
[0054] A second determination unit, configured to determine whether the pre-trained prediction model meets actual prediction requirements if the pre-trained prediction model passes the evaluation;
[0055] The third determining unit is configured to determine that the pre-trained prediction model does not meet actual prediction requirements if the pre-trained prediction model fails the evaluation.
[0056] Optionally, in the above-mentioned coal mill short-circuit diagnosis system based on machine learning, the evaluation unit includes:
[0057] A first calculation unit is used to calculate the accuracy, precision and recall of the pre-trained prediction model based on the coal failure prediction result;
[0058] A second judgment unit, used to judge whether the accuracy rate, the precision rate and the recall rate are all greater than a preset threshold;
[0059] A fourth determination unit, configured to determine that the pre-trained prediction model passes the evaluation if the accuracy rate, the precision rate, and the recall rate are all greater than the preset threshold;
[0060] The fifth determination unit is used to determine that the pre-trained prediction model has not passed the evaluation if the accuracy, the precision and the recall are not greater than the preset threshold.
[0061] Optionally, in the above-mentioned coal-breakage diagnosis system for coal mill based on machine learning, the coal-breakage prediction result at least includes predicted coal-breakage data and predicted non-coal-breakage data, and the first calculation unit includes:
[0062] A data acquisition unit, used for acquiring the prediction set; wherein the prediction includes at least real coal failure data and actual non-coal failure data;
[0063] an extraction unit, configured to extract predicted real coal failure data corresponding to the real coal failure data from the predicted coal failure data, and to extract predicted actual non-coal failure data corresponding to the real non-coal failure data from the predicted non-coal failure data;
[0064] A second calculation unit is used to calculate a first sum of the predicted real coal failure data and the predicted actual non-coal failure data, and divide the first sum by the prediction set to obtain the accuracy of the pre-trained prediction model;
[0065] A third calculation unit is used to calculate a second sum of the predicted real coal failure data and the first error data, and divide the predicted real coal failure data by the second sum to obtain the accuracy rate of the pre-trained prediction model; wherein the first error data refers to the data in the predicted coal failure result corresponding to the actual non-coal failure data;
[0066] The fourth calculation unit is used to calculate the third sum of the predicted real coal outage data and the second error data, and divide the predicted real coal outage data by the third sum to obtain the recall rate of the pre-trained prediction model; wherein, the second error data refers to the data in the predicted non-coal outage data corresponding to the real coal outage data.
[0067] The present application provides a coal mill coal-breakage diagnosis method based on machine learning, which obtains the operating parameters of the coal mill to be diagnosed in real time, and then inputs the operating parameters into a pre-trained prediction model to obtain the coal-breakage diagnosis result of the coal mill to be diagnosed, wherein the prediction model is pre-trained using the historical data of the sample coal mill, and the prediction model is constructed based on a logistic regression algorithm, and finally the coal-breakage diagnosis result of the coal mill to be diagnosed is fed back to the front end. Therefore, the prediction model can accurately predict whether the coal mill is out of coal, and as the historical data of the coal mill continues to increase, the historical data can continue to be added to the training set of the prediction model, thereby providing a more accurate prediction model, and can further improve the accuracy of diagnosing coal-breakage in the coal mill. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0069] Figure 1 A schematic diagram of a process flow of a coal mill coal shortage diagnosis method based on machine learning provided in an embodiment of the present application;
[0070] Figure 2 A flowchart of a prediction model training method provided in an embodiment of the present application;
[0071] Figure 3 A schematic diagram of a flow chart of a method for evaluating a prediction model provided in an embodiment of the present application;
[0072] Figure 4 A schematic diagram of a flow chart of another prediction model evaluation method provided in another embodiment of the present application;
[0073] Figure 5 A structural schematic diagram of a coal mill coal shortage diagnosis system based on machine learning provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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 are within the scope of protection of this application.
[0075] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0076] The present application embodiment provides a coal mill coal shortage diagnosis method based on machine learning, such as Figure 1 As shown, the specific steps include:
[0077] S101. Obtain operating parameters of the coal mill to be diagnosed in real time.
[0078] Specifically, the operating parameters of the coal mill to be diagnosed may include the sound pressure level of the coal mill to be diagnosed, the coal mill outlet pressure, the coal mill outlet temperature, the coal mill inlet pressure, the coal mill inlet temperature, the motor current, the inlet and outlet pressure difference, and other parameters related to coal failure.
[0079] It should be noted that in order to efficiently monitor the coal mill to be diagnosed in real time, so as to promptly learn whether the coal mill to be diagnosed is out of coal, and then promptly repair the coal mill to be diagnosed, it is only necessary to ensure that the operating parameters of the coal mill to be diagnosed can be reported in real time. The system can then read and predict the operating parameters of the coal mill to be diagnosed in real time.
[0080] S102, inputting the operating parameters into a pre-trained prediction model to obtain a coal shortage diagnosis result of the coal mill to be diagnosed.
[0081] The prediction model is pre-trained using historical data of sample coal mills.
[0082] It should be noted that the prediction model is constructed based on the logistic regression algorithm, which shortens the training and prediction time of the prediction model, thereby enabling efficient coal shortage diagnosis of the coal mill to be diagnosed, thereby improving timeliness.
[0083] Optionally, the present application embodiment provides a method for training a prediction model, such as Figure 2 As shown, the following steps are included:
[0084] S201. Obtain characteristic parameters and historical data of a sample coal mill.
[0085] The historical data may include a training set. It should be noted that the essence of the historical data is a combination of data under normal working conditions of the coal mill, data under coal shortage conditions, and some data similar to coal shortage conditions. It should also be noted that the embodiment of the present application also divides the historical data into a training set and a prediction set, which can effectively evaluate and improve the model and ensure its reliability and generalization ability in practical applications.
[0086] It should also be noted that the characteristic parameters refer to the characteristics that have the greatest impact on the coal shortage in the coal mill, which are consistent with the operating parameters of step S101.
[0087] S202: Perform weighted calculation on the characteristic parameters using a weighted formula to obtain weighted parameters.
[0088] It is understandable that in order to subsequently optimize the performance of the prediction model and improve the accuracy of the prediction, a weighted formula can be used to perform weighted calculations on the feature parameters.
[0089] Specifically, the weighted formula is: Z = W T X+B.
[0090] Among them, W represents the weight of the feature parameter, W T represents the transpose of the weight, converting the weight from a column vector to a row vector, X represents the feature parameter, and B represents the bias term.
[0091] S203: Using a mapping function to classify and calculate the weighted parameters to obtain mapping parameters.
[0092] It is understandable that in order to enable the prediction model to flexibly perform classification prediction on coal mill failure, the Sigmoid function (mapping function) can be used to transform the linear combination (Z = W T The result of X+B) is mapped to a probability value between 0 and 1, thereby obtaining a smooth probability output method, namely the mapping parameter.
[0093] Specifically, the expression of the mapping function is:
[0094]
[0095] Here, e is the base of natural logarithms, that is, Euler's number.
[0096] S204: construct a prediction model based on the mapping parameters and the preset loss function.
[0097] It should be noted that the prediction model is constructed based on the logistic regression algorithm in the embodiment of the present application. Therefore, after weighting and classifying the characteristic parameters of the sample coal mill, it is necessary to construct a prediction model based on the loss function so as to predict the coal shortage situation.
[0098] Therefore, the expression of the loss function is:
[0099] The loss is used to minimize the difference between the predicted value and the actual value. (That is, the mapping parameter). When the actual value of y is 0, the predicted value The closer it is to 0, the smaller L is. When the actual value of y is 1, the predicted value The closer it is to 1, the smaller L is.
[0100] S205. Input the training set into the prediction model to obtain the coal-breaking training results corresponding to the training set.
[0101] Specifically, the prediction model is trained through the training set to obtain a training result, so that a prediction model with a minimum loss function can be obtained based on the training result.
[0102] S206. Based on the coal-breaking training results, determine whether the loss function of the prediction model converges.
[0103] It is understandable that the smaller the loss function of the prediction model, the better the robustness of the model. Therefore, in the embodiment of the present application, it is necessary to judge whether the loss function of the prediction model converges based on the coal-breaking training results. If it is judged that the loss function of the prediction model converges, it means that the training results of the prediction model meet the expected requirements, so it is necessary to execute step S207. If it is judged that the loss function of the prediction model does not converge, it means that iterative training of the prediction model is required, and then step S208 is executed.
[0104] S207: Determine the prediction model as a trained prediction model.
[0105] Specifically, when the loss function of the prediction model converges, it means that the prediction model has been trained successfully. Next, we only need to evaluate the performance of the prediction model and then put it into use in actual scenarios.
[0106] S208. Adjust the parameters of the prediction model.
[0107] Specifically, when the loss function of the prediction model has not converged, it is necessary to continuously adjust the parameters of the prediction model so that a prediction model with a minimum loss function can be obtained, and return to execute step S205 until the loss function of the prediction model converges.
[0108] Specifically, the weighting parameters and mapping parameters in the prediction model are adjusted, and then the prediction model is rebuilt with the adjusted parameters, and then the training set is input into the prediction model for training to obtain the training results.
[0109] Optionally, after the prediction model is trained, the performance of the prediction model needs to be evaluated to further ensure that the prediction model can accurately predict the coal shortage of the coal mill. Therefore, in another embodiment of the application, a prediction model evaluation method is also provided, such as Figure 3 As shown, the following steps are included:
[0110] S301. Extract a prediction set from historical data of a sample coal mill.
[0111] It should be noted that in order to evaluate the performance of the prediction model and distinguish it from the training set to avoid obtaining the same training results and thus being unable to evaluate the performance, in an embodiment of the present application, the historical data is divided into a training set and a prediction set in advance. At this time, it is only necessary to extract the prediction set from the historical data of the sample coal mill.
[0112] S302: Input the prediction set into a pre-trained prediction model to obtain a coal shortage prediction result corresponding to the prediction set.
[0113] Specifically, the prediction model is predicted through the prediction set to obtain the prediction result, so that the prediction model can be evaluated based on the prediction result.
[0114] S303. Based on the coal failure prediction result, the pre-trained prediction model is evaluated.
[0115] Specifically, the coal outage prediction result will indicate how many coal outage data are in the prediction set, and the number of coal outage data in the prediction set is also known in advance. Therefore, it is only necessary to know whether the coal outage prediction result is roughly the same as the coal outage data in the prediction set to evaluate the pre-trained prediction model. Therefore, the pre-trained prediction model can be evaluated directly based on the coal outage prediction result.
[0116] Optionally, in another embodiment of the present application, a specific implementation of step S303 is as follows: Figure 4 As shown, the following steps are included:
[0117] S401. Based on the coal shortage prediction results, the accuracy, precision and recall of the pre-trained prediction model are calculated respectively.
[0118] It should be noted that in the embodiments of the present application, a variety of model performance evaluation indicators are used to evaluate the prediction model. First, the accuracy rate is used as the main evaluation indicator to measure the accuracy of the prediction model. Secondly, the recall rate is considered, which reflects the ability of the prediction model to identify the actual coal shortage situation. By adjusting the threshold of the model, the recall rate can be improved while ensuring the accuracy rate, so as to better meet the actual application needs. In addition, the precision rate is also used to evaluate the final prediction accuracy of the model. Combined with this indicator, the data of the coal mill is analyzed and predicted in real time, and the coal shortage situation of the coal mill can be predicted in real time. The calculation of the accuracy rate, precision rate and recall rate are inseparable from the prediction results of the prediction model. Therefore, it is necessary to calculate the accuracy rate, precision rate and recall rate of the pre-trained prediction model based on the coal shortage prediction results.
[0119] Optionally, in another embodiment of the present application, the coal failure prediction result includes at least predicted coal failure data and predicted non-coal failure data, so a specific implementation of step S401 includes the following steps:
[0120] Get the prediction set.
[0121] Specifically, the accuracy, precision and recall of the prediction model all require knowing the actual value of the coal outage data contained in the coal outage prediction results in order to calculate accurately. Therefore, it is necessary to obtain the prediction set in advance, where the prediction set can include real coal outage data and actual non-coal outage data.
[0122] The predicted real coal outage data corresponding to the real coal outage data are extracted from the predicted coal outage data, and the predicted actual non-coal outage data corresponding to the real non-coal outage data are extracted from the predicted non-coal outage data.
[0123] It is understandable that after obtaining the real coal outage data and actual non-coal outage data contained in the prediction set, it is necessary to extract the predicted real coal outage data corresponding to the real coal outage data from the predicted coal outage data, and to extract the predicted actual non-coal outage data corresponding to the real non-coal outage data from the predicted non-coal outage data, so as to accurately calculate the accuracy, precision and recall rate of the prediction model, and then to know the accuracy of the performance predicted by the prediction model.
[0124] For example, the prediction set consists of 1,000 data, of which 300 are real coal outage data and 700 are real non-coal outage data. The prediction model is used to predict these 1,000 data to obtain the coal outage prediction result. Then the coal outage prediction result includes 312 predicted coal outage data and 688 predicted non-coal outage data. In fact, among the 312 predicted coal outage data, only 290 correspond to the real coal outage data, and the remaining 22 are predicted wrong data (that is, the subsequent first wrong data). Among the 688 predicted non-coal outage data, only 678 correspond to the real non-coal outage data, and the remaining 10 are also wrong data (that is, the subsequent second wrong data). For details, please refer to the contents shown in Table 1:
[0125] Table 1
[0126]
[0127] Table 1 is only used for illustration.
[0128] The first sum of the predicted real coal outage data and the predicted actual non-coal outage data is calculated, and the first sum is divided by the prediction set to obtain the accuracy of the pre-trained prediction model.
[0129] It can be understood that the accuracy is the ratio of the number of samples correctly predicted by the prediction model to the total number of samples. Therefore, it is necessary to divide the actual coal failure prediction result by the prediction set to obtain the accuracy of the pre-trained prediction model. Based on the example shown in Table 1, the accuracy is: (the actual coal failure prediction is 290 coal failures + the actual non-coal failure prediction is 678 non-coal failures) / 1000=0.968.
[0130] The second sum of the predicted real coal outage data and the first error data is calculated, and the predicted real coal outage data is divided by the second sum to obtain the accuracy of the pre-trained prediction model.
[0131] Among them, the first erroneous data refers to the data in the predicted coal outage result corresponding to the actual non-coal outage data.
[0132] It can be understood that the precision rate is the proportion of samples that are actually positive in all samples predicted as positive. Based on the above example, the precision rate is calculated as follows: the actual coal shortage prediction is coal shortage 290 / (the actual coal shortage prediction is coal shortage 290+the non-coal shortage prediction is coal shortage 22) = 0.92.
[0133] The third sum of the predicted real coal outage data and the second error data is calculated, and the predicted real coal outage data is divided by the third sum to obtain the recall rate of the pre-trained prediction model.
[0134] Among them, the second erroneous data refers to the data in the predicted non-coal outage data corresponding to the actual coal outage data.
[0135] It can be understood that the recall rate refers to the proportion of all true positive examples that are correctly predicted as positive examples. Based on the above example, the recall rate is calculated as follows: the actual coal shortage prediction is 290 coal shortages / (the actual coal shortage prediction is 290 coal shortages + the actual coal shortage prediction error 10) = 0.966.
[0136] S402: Determine whether the accuracy, precision, and recall are all greater than a preset threshold.
[0137] Specifically, after the accuracy, precision and recall are calculated, in order to evaluate the performance of the prediction model, a threshold can be set for the accuracy, precision and recall respectively. If the accuracy, precision and recall are all greater than the preset threshold, it means that the performance of the prediction model meets the actual prediction requirements, so step S403 is executed. If the accuracy, precision and recall are not greater than the preset threshold, it means that the performance of the prediction model does not meet the actual prediction requirements, so step S404 is executed.
[0138] S403: Determine whether the pre-trained prediction model has passed the evaluation.
[0139] S404: Determine whether the pre-trained prediction model has failed the evaluation.
[0140] Optionally, when the accuracy, precision, and recall are all less than preset thresholds, feedback can be given to the front end so that developers can timely predict the performance of the model and make adjustments.
[0141] S304: Determine whether the prediction model passes the evaluation.
[0142] Specifically, if the prediction model passes the evaluation, step S305 is executed. If the prediction model fails the evaluation, step S306 is executed.
[0143] S305: Determine whether the pre-trained prediction model meets actual prediction requirements.
[0144] Optionally, when the pre-trained prediction model passes the evaluation, the pre-trained prediction model can be put into actual use and the coal mill can be diagnosed for coal shortage in real time, thereby reducing the time of manual inspection and avoiding the uncertainty caused by manual experience judgment.
[0145] S306: Determine whether the pre-trained prediction model meets the actual prediction requirements.
[0146] Optionally, when a pre-trained prediction model fails the evaluation, it is necessary to retrain the prediction model using a new training set. When the training is successful, the prediction model is evaluated using the new prediction set until the pre-trained prediction model meets the actual prediction requirements.
[0147] S103, feeding back the coal shortage diagnosis result of the coal mill to be diagnosed to the front end.
[0148] It should be noted that when the coal shortage diagnosis result of the coal mill to be diagnosed is a coal shortage result, the operating parameters of the coal mill to be diagnosed can be collected, and these operating parameters can be added to the sample set of the prediction model, so as to expand the sample set to further train the prediction model, thereby further improving the prediction accuracy.
[0149] The present application provides a coal mill coal-breakage diagnosis method based on machine learning, which obtains the operating parameters of the coal mill to be diagnosed in real time, and then inputs the operating parameters into a pre-trained prediction model to obtain the coal-breakage diagnosis result of the coal mill to be diagnosed, wherein the prediction model is pre-trained using the historical data of the sample coal mill, and the prediction model is constructed based on a logistic regression algorithm, and finally the coal-breakage diagnosis result of the coal mill to be diagnosed is fed back to the front end. Therefore, the prediction model can accurately predict whether the coal mill is out of coal, and as the historical data of the coal mill continues to increase, the historical data can continue to be added to the training set of the prediction model, thereby providing a more accurate prediction model, and can further improve the accuracy of diagnosing coal-breakage in the coal mill.
[0150] Another embodiment of the present application provides a coal mill coal shortage diagnosis system based on machine learning, such as Figure 5 As shown, it includes the following units:
[0151] The parameter acquisition unit 501 is used to acquire the operating parameters of the coal mill to be diagnosed in real time.
[0152] The parameter input unit 502 is used to input the operating parameters into the pre-trained prediction model to obtain the coal failure diagnosis result of the coal mill to be diagnosed. The prediction model is pre-trained using the historical data of the sample coal mill. The prediction model is constructed based on the logistic regression algorithm.
[0153] The feedback unit 503 is used to feed back the coal shortage diagnosis result of the coal mill to be diagnosed to the front end.
[0154] It should be noted that the specific working process of the above-mentioned units in the embodiment of the present application can refer to steps S101 to S103 in the above-mentioned method embodiment, and will not be repeated here.
[0155] Optionally, another embodiment of the present application provides a coal mill coal shortage diagnosis system based on machine learning, further comprising:
[0156] The acquisition unit is used to acquire characteristic parameters and historical data of the sample coal mill, wherein the historical data at least includes a training set.
[0157] The weighted calculation unit is used to perform weighted calculation on the characteristic parameters using a weighted formula to obtain weighted parameters.
[0158] The classification calculation unit is used to perform classification calculation on the weighted parameters using a mapping function to obtain mapping parameters.
[0159] The model building unit is used to build a prediction model based on mapping parameters and a preset loss function.
[0160] The first input unit is used to input the training set into the prediction model to obtain the coal-breaking training result corresponding to the training set.
[0161] The first judgment unit is used to judge whether the loss function of the prediction model converges based on the coal-breaking training result.
[0162] The first determining unit is used to determine the prediction model as a trained prediction model if the loss function of the prediction model converges.
[0163] The adjustment unit is used to adjust the parameters of the prediction model if the loss function of the prediction model has not converged, and return to execute to input the training set into the prediction model to obtain the coal-breaking training result corresponding to the sample coal mill.
[0164] Optionally, another embodiment of the present application provides a coal mill coal shortage diagnosis system based on machine learning, further comprising:
[0165] The extraction unit is used to extract a prediction set from the historical data of the sample coal mill.
[0166] The second input unit is used to input the prediction set into a pre-trained prediction model to obtain the coal shortage prediction result corresponding to the prediction set.
[0167] The evaluation unit is used to evaluate the pre-trained prediction model based on the coal failure prediction result.
[0168] The second determination unit is used to determine whether the pre-trained prediction model meets the actual prediction requirements if the pre-trained prediction model passes the evaluation.
[0169] The third determining unit is configured to determine that the pre-trained prediction model does not meet actual prediction requirements if the pre-trained prediction model fails the evaluation.
[0170] Optionally, in a coal mill short-circuit diagnosis system based on machine learning provided in another embodiment of the present application, the evaluation unit includes:
[0171] The first calculation unit is used to calculate the accuracy, precision and recall rate of the pre-trained prediction model based on the coal shortage prediction result.
[0172] The second judgment unit is used to judge whether the accuracy, precision and recall are all greater than a preset threshold.
[0173] The fourth determination unit is used to determine that the pre-trained prediction model passes the evaluation if the accuracy, precision and recall are all greater than a preset threshold.
[0174] The fifth determination unit is used to determine that the pre-trained prediction model has not passed the evaluation if the accuracy, precision and recall are not greater than a preset threshold.
[0175] Optionally, in a coal mill coal shortage diagnosis system based on machine learning provided in another embodiment of the present application, the coal shortage prediction result includes at least predicted coal shortage data and predicted non-coal shortage data, and the first calculation unit includes:
[0176] The data acquisition unit is used to acquire a prediction set, wherein the prediction includes at least real coal shortage data and actual non-coal shortage data.
[0177] An extraction unit is used to extract predicted real coal outage data corresponding to the real coal outage data from the predicted coal outage data, and to extract predicted actual non-coal outage data corresponding to the real non-coal outage data from the predicted non-coal outage data.
[0178] The second calculation unit is used to calculate the first sum of the predicted real coal outage data and the predicted actual non-coal outage data, and divide the first sum by the prediction set to obtain the accuracy of the pre-trained prediction model.
[0179] The third calculation unit is used to calculate the second sum of the predicted real coal failure data and the first error data, and divide the predicted real coal failure data by the second sum to obtain the accuracy of the pre-trained prediction model. The first error data refers to the data in the predicted coal failure result corresponding to the actual non-coal failure data.
[0180] The fourth calculation unit is used to calculate the third sum of the predicted real coal outage data and the second error data, and divide the predicted real coal outage data by the third sum to obtain the recall rate of the pre-trained prediction model. The second error data refers to the data corresponding to the real coal outage data in the predicted non-coal outage data.
[0181] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the corresponding steps in the above method embodiments, and will not be repeated here.
[0182] In summary, another embodiment of the present application provides a coal mill coal shortage diagnosis system based on machine learning, which diagnoses coal shortage in the coal mill through a prediction model constructed by a logistic regression algorithm, thereby solving the problem of low accuracy in diagnosing coal shortage based on manual experience.
[0183] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0184] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A coal mill coal failure diagnosis method based on machine learning, It is characterized in that include: Obtain the operating parameters of the coal mill to be diagnosed in real time; The operating parameters are input into a pre-trained prediction model to obtain a coal failure diagnosis result of the coal mill to be diagnosed; wherein the prediction model is pre-trained using historical data of a sample coal mill; and the prediction model is constructed based on a logistic regression algorithm; The coal shortage diagnosis result of the coal mill to be diagnosed is fed back to the front end.
2. The method according to claim 1, It is characterized in that The training method of the prediction model comprises: Acquire characteristic parameters and historical data of a sample coal mill; wherein the historical data at least includes a training set; Performing weighted calculation on the characteristic parameters using a weighted formula to obtain weighted parameters; Using a mapping function to classify and calculate the weighted parameters to obtain mapping parameters; Based on the mapping parameters and the preset loss function, construct a prediction model; Inputting the training set into the prediction model to obtain the coal breaking training result corresponding to the training set; Based on the coal-breaking training result, judging whether the loss function of the prediction model converges; If the loss function of the prediction model converges, the prediction model is determined as a trained prediction model; If the loss function of the prediction model has not converged, the parameters of the prediction model are adjusted, and the process of inputting the training set into the newly constructed prediction model is returned to obtain the coal-breaking training result corresponding to the sample coal mill.
3. The method according to claim 2, It is characterized in that Also includes: extracting a prediction set from the historical data of the sample coal mill; Inputting the prediction set into a pre-trained prediction model to obtain a coal failure prediction result corresponding to the prediction set; Based on the coal failure prediction result, evaluating the pre-trained prediction model; If the pre-trained prediction model passes the evaluation, it is determined that the pre-trained prediction model meets the actual prediction requirements; If the pre-trained prediction model fails the evaluation, it is determined that the pre-trained prediction model does not meet the actual prediction requirements.
4. The method according to claim 3, It is characterized in that The step of evaluating the pre-trained prediction model based on the coal failure prediction result includes: Based on the coal shortage prediction result, respectively calculate the accuracy, precision and recall rate of the pre-trained prediction model; Determine whether the accuracy rate, the precision rate, and the recall rate are all greater than a preset threshold; If the accuracy rate, the precision rate, and the recall rate are all greater than the preset threshold, it is determined that the pre-trained prediction model passes the evaluation; If the accuracy rate, the precision rate, and the recall rate are all not greater than the preset threshold, it is determined that the pre-trained prediction model has failed the evaluation.
5. The method according to claim 4, It is characterized in that The coal failure prediction result includes at least predicted coal failure data and predicted non-coal failure data. Based on the coal failure prediction result, respectively calculating the accuracy, precision and recall rate of the pre-trained prediction model, including: Acquire the prediction set; wherein the prediction includes at least real coal outage data and actual non-coal outage data; Extracting predicted real coal outage data corresponding to the real coal outage data from the predicted coal outage data, and extracting predicted actual non-coal outage data corresponding to the real non-coal outage data from the predicted non-coal outage data; Calculate a first sum of the predicted real coal outage data and the predicted actual non-coal outage data, and divide the first sum by the prediction set to obtain the accuracy of the pre-trained prediction model; Calculate the second sum of the predicted real coal outage data and the first error data, and divide the predicted real coal outage data by the second sum to obtain the accuracy rate of the pre-trained prediction model; wherein the first error data refers to the data in the predicted coal outage result corresponding to the actual non-coal outage data; Calculate the third sum of the predicted real coal outage data and the second error data, and divide the predicted real coal outage data by the third sum to obtain the recall rate of the pre-trained prediction model; wherein the second error data refers to the data in the predicted non-coal outage data corresponding to the real coal outage data.
6. A coal mill coal shortage diagnosis system based on machine learning, It is characterized in that include: A parameter acquisition unit, used for acquiring the operating parameters of the coal mill to be diagnosed in real time; A parameter input unit is used to input the operating parameters into a pre-trained prediction model to obtain a coal failure diagnosis result of the coal mill to be diagnosed; wherein the prediction model is pre-trained using historical data of a sample coal mill; and the prediction model is constructed based on a logistic regression algorithm; The feedback unit is used to feed back the coal shortage diagnosis result of the coal mill to be diagnosed to the front end.
7. The system according to claim 6, It is characterized in that Also includes: An acquisition unit, used for acquiring characteristic parameters and historical data of a sample coal mill; wherein the historical data at least includes a training set; A weighted calculation unit, used to perform weighted calculation on the characteristic parameters using a weighted formula to obtain a weighted parameter; A classification calculation unit, used for performing classification calculation on the weighted parameters using a mapping function to obtain mapping parameters; A model building unit, used to build a prediction model based on the mapping parameters and a preset loss function; A first input unit is used to input the training set into the prediction model to obtain a coal-breaking training result corresponding to the training set; A first judgment unit, used for judging whether the loss function of the prediction model converges based on the coal-breaking training result; A first determining unit, configured to determine the prediction model as a trained prediction model if the loss function of the prediction model converges; An adjustment unit is used to adjust the parameters of the prediction model if the loss function of the prediction model has not converged, and return to execute the step of inputting the training set into the newly constructed prediction model to obtain the coal-breaking training result corresponding to the sample coal mill.
8. The system according to claim 7, It is characterized in that Also includes: An extraction unit, used for extracting a prediction set from the historical data of the sample coal mill; A second input unit is used to input the prediction set into a pre-trained prediction model to obtain a coal failure prediction result corresponding to the prediction set; An evaluation unit, used for evaluating the pre-trained prediction model based on the coal failure prediction result; A second determination unit, configured to determine whether the pre-trained prediction model meets actual prediction requirements if the pre-trained prediction model passes the evaluation; The third determining unit is configured to determine that the pre-trained prediction model does not meet actual prediction requirements if the pre-trained prediction model fails the evaluation.
9. The system according to claim 8, It is characterized in that The evaluation unit comprises: A first calculation unit is used to calculate the accuracy, precision and recall of the pre-trained prediction model based on the coal failure prediction result; A second judgment unit, used to judge whether the accuracy rate, the precision rate and the recall rate are all greater than a preset threshold; A fourth determination unit, configured to determine that the pre-trained prediction model passes the evaluation if the accuracy rate, the precision rate, and the recall rate are all greater than the preset threshold; The fifth determination unit is used to determine that the pre-trained prediction model has not passed the evaluation if the accuracy, the precision and the recall are not greater than the preset threshold.
10. The system according to claim 9, It is characterized in that The coal shortage prediction result includes at least predicted coal shortage data and predicted non-coal shortage data, and the first calculation unit includes: A data acquisition unit, used for acquiring the prediction set; wherein the prediction includes at least real coal failure data and actual non-coal failure data; an extraction unit, configured to extract predicted real coal failure data corresponding to the real coal failure data from the predicted coal failure data, and to extract predicted actual non-coal failure data corresponding to the real non-coal failure data from the predicted non-coal failure data; A second calculation unit is used to calculate a first sum of the predicted real coal failure data and the predicted actual non-coal failure data, and divide the first sum by the prediction set to obtain the accuracy of the pre-trained prediction model; A third calculation unit is used to calculate a second sum of the predicted real coal failure data and the first error data, and divide the predicted real coal failure data by the second sum to obtain the accuracy rate of the pre-trained prediction model; wherein the first error data refers to the data in the predicted coal failure result corresponding to the actual non-coal failure data; The fourth calculation unit is used to calculate the third sum of the predicted real coal outage data and the second error data, and divide the predicted real coal outage data by the third sum to obtain the recall rate of the pre-trained prediction model; wherein, the second error data refers to the data in the predicted non-coal outage data corresponding to the real coal outage data.
