Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1:
As shown in fig. 1, the present embodiment provides a high-frequency spark machine calibration method, which includes step S1, step S2, step S3, and step S4.
Step S1, acquiring first information and second information, wherein the first information is operation video information of a high-frequency spark machine, the second information is operation data information corresponding to the operation video information, and the operation data comprises a voltage value, sensitivity and stability when the high-frequency spark machine operates;
it can be understood that the operation video of the high-frequency spark machine is shot through the image pickup device, wherein the operation video comprises the discharge segment of the high-frequency spark machine, whether the high-frequency spark machine can normally operate or not is judged through judging the discharge image of the high-frequency spark machine, the operation parameters corresponding to the discharge image are obtained, and whether the abnormal data caused by the parameters are judged.
Step S2, the first information and the second information are sent to an abnormality detection module to be processed, and third information is obtained, wherein the third information comprises abnormal information of the high-frequency spark machine;
It can be understood that the above steps determine an abnormal image of the discharge image of the high-frequency spark machine through image recognition, further determine a discharge angle of the high-frequency spark machine, and determine whether the high-frequency spark machine is abnormal or not according to the discharge frequency, and further determine whether the operation parameters of the high-frequency spark machine are abnormal or not according to the voltage value, sensitivity and stability of the high-frequency spark machine during operation, so as to obtain abnormal information of the high-frequency spark machine.
It can be understood that the voltage value of the high-frequency spark machine during operation is obtained by measuring through a voltmeter and uploading and storing, the sensitivity refers to that the cable with the preset breakdown times is placed on the high-frequency spark machine for detection, then the breakdown times are judged to be consistent with the preset breakdown times, and then the sensitivity is determined, the stability refers to that whether the high-frequency spark machine can normally discharge when detecting the cable without defects, the stability is 1 if the high-frequency spark machine can normally discharge, and the stability is 0 if the high-frequency spark machine cannot normally discharge.
Step S3, the third information is sent to the adjusted calibration data prediction model to be processed, and calibration data of the high-frequency spark machine are obtained;
it can be understood that regression analysis is performed through XGBoost algorithm, so that the calibration data of the high-frequency spark machine are determined, and then the discharge angle, the discharge frequency, the voltage value, the sensitivity and the stability of the high-frequency spark machine can be calibrated rapidly, and the normal operation of the high-frequency spark machine is ensured.
And S4, calibrating the high-frequency spark machine based on the calibration data of the high-frequency spark machine to obtain the calibrated high-frequency spark machine.
It can be understood that the above steps determine abnormal data by judging the operation video information of the high-frequency spark machine and the corresponding parameter information during the operation video, so as to calculate the calibration data of the high-frequency spark machine generating the abnormal data, and then calibrate the high-frequency spark machine generating the abnormal data based on the calculated calibration data, so that the operation condition of the high-frequency spark machine can be monitored at any time, the abnormal data of the high-frequency spark machine can be calibrated, the manpower and material resources required by the calibration are reduced, and the operation condition of the high-frequency spark machine can be ensured.
In a specific embodiment of the disclosure, the step S2 includes a step S21, a step S22, a step S23, and a step S24.
S21, extracting operation video information of the high-frequency spark machine according to the operation time of the high-frequency spark machine to obtain a key image of the operation video of the high-frequency spark machine, wherein the key image is a discharge image of at least one frame of the high-frequency spark machine obtained based on image identification processing;
It can be understood that the step is to identify the discharge segment of the high-frequency spark machine through image identification, so as to obtain the discharge image of each frame of high-frequency spark machine, reduce the subsequent need of judging image information, and further reduce the calculated amount.
S22, comparing a key image of the operation video of the high-frequency spark machine with a preset discharge image of the spark machine to obtain abnormal discharge image information of the high-frequency spark machine;
It can be understood that in this step, the key image is compared with a preset discharge image to determine the discharge angle and the discharge frequency, and the information is determined by the interval time of the discharge image, so as to quickly determine whether the discharge angle of the high-frequency spark machine is correct, and whether the angle of the discharge head of the spark machine and the frequency of the discharge head need to be adjusted.
Step S23, the second information is sent to a trained abnormal data judgment model to carry out abnormal judgment, so that abnormal operation data of the high-frequency spark machine are obtained;
and step S24, obtaining the abnormal information of the high-frequency spark machine based on the abnormal discharge image information of the high-frequency spark machine and the abnormal discharge image information of the high-frequency spark machine.
It can be understood that the above steps determine the abnormal information of the high-frequency spark machine by integrating the abnormal discharge image information of the high-frequency spark machine and the abnormal discharge image information of the high-frequency spark machine, wherein the abnormal information comprises abnormal operation data and abnormal discharge images, and further calculate calibration data for all the data, so that the condition that the calibration data is inaccurate due to independent calibration is prevented.
In a specific embodiment of the disclosure, the step S21 includes a step S211, a step S212, a step S213, and a step S214.
Step S211, inputting each frame of image in the key image of the operation video of the high-frequency spark machine into the image matching degree calculation model, and comparing each frame of image with a preset discharge image of the high-frequency spark machine to obtain key images of the operation video of at least two high-frequency spark machines and a preset discharge image matching degree value of the spark machine;
It can be understood that the step is that key images of operation videos of all high-frequency spark machines are respectively compared with discharge images of preset high-frequency spark machines, wherein through comparing pixel points of a discharge head and connecting the pixel points into lines, whether angles of the lines are consistent is judged, and the invention further obtains discharge frequency through comparing discharge time corresponding to the discharge images, and carries out non-dimensionality treatment on the discharge frequency and the discharge angle, then carries out association analysis based on the discharge frequency and the discharge angle pair, determines association degrees of the key images of the operation videos of the high-frequency spark machines and the discharge images of the preset high-frequency spark machines respectively, and further takes the association degree value as a matching degree value.
Step S212, summarizing key images of the operation video of all the high-frequency spark machines and preset discharge image matching degree values of the spark machines to obtain a matching degree value set;
Step S213, performing root mean square calculation on all data in the matching degree value set, and taking the obtained root mean square value as a threshold value for judging whether a key image of an operation video of the high-frequency spark machine is an abnormal discharge image or not;
And step S214, obtaining abnormal discharge image information of the high-frequency spark machine based on the threshold value for judging whether the key image of the operation video of the high-frequency spark machine is the abnormal discharge image.
It can be understood that after the key images of the operation video of all the high-frequency spark machines and the preset discharge image matching degree values of the spark machines are determined, the root mean square calculation is carried out on all the matching degree values, and the key images corresponding to the matching degree values smaller than the root mean square value are used as abnormal discharge image information of the high-frequency spark machines, so that the accuracy of judging abnormal data in the invention can be improved, and the high-frequency spark machines needing to be calibrated can be rapidly and accurately judged.
In a specific embodiment of the disclosure, the step S23 includes a step S231, a step S232, a step S233, and a step S234.
Step S231, acquiring historical operation data information, screening abnormal data of the historical operation data information, and carrying out abnormal type calibration on the abnormal data of the historical operation data information to obtain calibrated abnormal data information;
Step S232, processing the abnormal data information of the historical operation data information based on a CART algorithm to obtain a CART decision tree, and performing random pruning processing on the CART decision tree to obtain a decision tree model for judging the abnormal data information;
step S233, the historical operation data information is sent to the decision tree model for judgment, and abnormal data information of the historical operation data information is obtained;
And step S234, comparing the abnormal data information based on the historical operation data information with the calibrated abnormal data information, and adjusting the judgment parameters in the decision tree model based on the comparison result until the comparison result is the same as the preset comparison result, thereby obtaining the trained decision tree model.
It can be understood that the method performs abnormal calibration on historical data, then performs processing through the CART algorithm to establish a decision tree model, performs parameter optimization on the decision tree model, increases the judgment accuracy of the decision tree model, reduces labor cost and improves judgment efficiency.
In a specific embodiment of the disclosure, the step S3 includes a step S31, a step S32, and a step S33.
S31, carrying out regression analysis on preset historical abnormal data of the high-frequency spark machine based on XGBoost algorithm to obtain calibration data of the historical abnormal data of the high-frequency spark machine;
It can be understood that in this step, the CART tree is selected as the regression tree of the model, and then the ensemble learning is performed based on XGBoost algorithm, where the objective function of XGBoost algorithm is shown as follows, the objective function is parameterized and the tree structure is introduced into the objective function, and then the tree is continuously added to perform optimization, and a new function is added every time a tree is added.
Wherein the formula of the objective function is as follows:
Wherein obj represents the objective function of the XGBoost algorithm, L (y i, y) represents the loss function, y i represents the predicted value of the calibration data, y represents the input historical anomaly data of the high-frequency spark machine, and the square loss function is selected, i.e., L (y i,y)=(yi-y)2, k represents a total of k trees, f k represents the function model of the kth tree, wherein Ω (f k) is a regular direction, and
Where γ and λ are both constant coefficients, T represents the number of leaf nodes per tree, ω is the set of scores of the leaf nodes per tree.
Wherein the expression of the optimization model is as follows:
wherein f t (x) represents a functional model of the t-th tree, For the optimized function model of the t-th tree,Is an optimized function model of the t-1 tree.
Step S32, calculating the calibration data of the historical abnormal data of the high-frequency spark machine based on a preset evaluation formula to obtain an evaluation value of the calibration data of the historical abnormal data of the high-frequency spark machine;
It will be appreciated that this step evaluates the calibration data by means of a mean absolute error model, wherein the mean absolute error of the predicted value of the calibration data and the historical anomaly data is calculated by means of a calculation formula for the mean absolute error, wherein a smaller MAE value represents a more accurate calibration data.
And step S33, adjusting constant coefficients in the XGBoost algorithm based on the evaluation value until the evaluation value is smaller than a preset evaluation threshold value, and obtaining an adjusted calibration data prediction model.
It can be understood that the constant coefficient in the XGBoost algorithm is repeatedly and iteratively adjusted until the calibration data is predicted to be the calibration data meeting the requirement, that is, the average absolute error value of the predicted calibration data and the historical abnormal data is smaller than the threshold value, and then the iteration is stopped to obtain the prediction model of the calibration data with the adjusted parameters.
Example 2:
As shown in fig. 2, the present embodiment provides a device for designing positions of lamp beads, which includes an acquisition unit 701, a first processing unit 702, a second processing unit 703, and a third processing unit 704.
An obtaining unit 701, configured to obtain first information and second information, where the first information is operation video information of the high-frequency spark machine, and the second information is operation data information corresponding to the operation video information, where the operation data includes a voltage value, sensitivity, and stability when the high-frequency spark machine is operated;
A first processing unit 702, configured to send the first information and the second information to an anomaly detection module for processing, to obtain third information, where the third information includes anomaly information of the high-frequency spark machine;
a second processing unit 703, configured to send the third information to the adjusted calibration data prediction model for processing, so as to obtain calibration data of the high-frequency spark machine;
And a third processing unit 704, configured to calibrate the high-frequency spark machine based on the calibration data of the high-frequency spark machine, so as to obtain a calibrated high-frequency spark machine.
In one embodiment of the disclosure, the first processing unit 702 includes a first processing subunit 7021, a first comparison subunit 7022, a first determination subunit 7023, and a second processing subunit 7024.
A first processing subunit 7021, configured to extract, according to the operation time of the high-frequency spark machine, operation video information of the high-frequency spark machine, to obtain a key image of an operation video of the high-frequency spark machine, where the key image is a discharge image of at least one frame of the high-frequency spark machine obtained based on image recognition processing;
A first comparing subunit 7022, configured to compare a key image of the operation video of the high-frequency spark machine with a preset discharge image of the spark machine, so as to obtain abnormal discharge image information of the high-frequency spark machine;
A first judging subunit 7023, configured to send the second information to the trained abnormal data judging model to perform abnormal judgment, so as to obtain abnormal operation data of the high frequency spark machine;
the second processing subunit 7024 is configured to obtain the abnormal information of the high-frequency spark machine based on the abnormal discharge image information of the high-frequency spark machine and the abnormal discharge image information of the high-frequency spark machine.
In one embodiment of the present disclosure, the first processing subunit 7021 includes a second comparison subunit 70211, a third processing subunit 70212, a first calculation subunit 70213, and a second determination subunit 70214.
The second comparison subunit 70211 is configured to input each frame of image in the key image of the operation video of the high-frequency spark machine into the image matching degree calculation model, and perform comparison processing with the preset discharge image of the high-frequency spark machine respectively to obtain a key image of the operation video of at least two high-frequency spark machines and a preset discharge image matching degree value of the spark machine;
the third processing subunit 70212 is configured to aggregate the key images of the operation video of all the high-frequency spark machines and the preset matching degree values of the discharge images of the spark machines to obtain a matching degree value set;
The first calculating subunit 70213 is configured to perform root mean square calculation on all data in the matching degree value set, and use the obtained root mean square value as a threshold value for judging whether a key image of an operation video of the high-frequency spark machine is an abnormal discharge image;
and the second judging subunit 70214 is configured to obtain abnormal discharge image information of the high-frequency spark machine based on the threshold value for judging whether the key image of the operation video of the high-frequency spark machine is an abnormal discharge image.
In one embodiment of the present disclosure, the first determination subunit 7023 includes an acquisition subunit 70231, a fourth processing subunit 70232, a third determination subunit 70233, and a third comparison subunit 70234.
The acquisition subunit 70231 is used for acquiring historical operation data information, screening abnormal data of the historical operation data information, and carrying out abnormal type calibration on the abnormal data of the historical operation data information to obtain calibrated abnormal data information;
A fourth processing subunit 70232, configured to process the abnormal data information of the historical operating data information based on a CART algorithm, obtain a CART decision tree, and perform random pruning processing on the CART decision tree to obtain a decision tree model for judging the abnormal data information;
a third judging subunit 70233, configured to send the historical operating data information to the decision tree model for judging, so as to obtain abnormal data information of the historical operating data information;
And the third comparison subunit 70234 is configured to compare the abnormal data information based on the historical operation data information with the calibrated abnormal data information, and adjust the judgment parameters in the decision tree model based on the comparison result until the comparison result is the same as the preset comparison result, thereby obtaining a trained decision tree model.
In a specific embodiment of the disclosure, the second processing unit 703 includes a fifth processing subunit 7031, a second computing subunit 7032, and a sixth processing subunit 7033.
The fifth processing subunit 7031 is configured to perform regression analysis on the preset historical anomaly data of the high-frequency spark machine based on XGBoost algorithm to obtain calibration data of the historical anomaly data of the high-frequency spark machine;
a second calculating subunit 7032, configured to calculate, based on a preset evaluation formula, calibration data of the historical abnormal data of the high-frequency spark machine, so as to obtain an evaluation value of the calibration data of the historical abnormal data of the high-frequency spark machine;
And a sixth processing subunit 7033, configured to adjust the constant coefficient in the XGBoost algorithm based on the evaluation value until the evaluation value is smaller than a preset evaluation threshold, and obtain an adjusted calibration data prediction model.
It should be noted that, regarding the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiments regarding the method, and will not be described in detail herein.
Example 3:
corresponding to the above method embodiment, a computer storage medium is also provided in this embodiment, and a computer storage medium described below and a high-frequency spark machine calibration method described above may be referred to correspondingly.
A computer storage medium having a computer program stored thereon, which when executed by a processor performs the steps of the high frequency spark machine calibration method of the method embodiment described above.
The computer storage medium may be a usb disk, a removable hard disk, a Read-only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, where various program codes may be stored.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.