Disclosure of Invention
The technical problem to be solved by the invention is as follows: provided are an air conditioner fault detection method and a detection device.
The solution of the invention for solving the technical problem is as follows:
an air conditioner fault detection method comprises the following steps:
step 100, receiving operating parameters of an external air conditioner;
200, collecting various operating parameters of the air conditioner;
step 300, removing abnormal data points in each operation parameter;
step 400, drawing a change curve of each operation parameter along with time;
step 500, calculating the change rate of each operation parameter;
step 600, calculating operation predicted values of various operation parameters according to the received operation parameters;
step 700, establishing a random forest model and completing the training operation of a random forest module;
and 800, inputting the operation parameters, the operation predicted values of the operation parameters and the change rates of the operation parameters into a random forest model, judging whether a fault condition occurs or not by the random forest model, and outputting specific fault types.
As a further improvement of the above technical solution, in step 100, the operating parameters of the air conditioner from the outside are received through one of an infrared communication mode, a bluetooth communication mode, a radio frequency communication mode, a WIFI communication mode and a key input mode.
As a further improvement of the above technical solution, in step 200, the operation parameters include a rotation speed of the compressor, a PWM signal frequency output by the frequency converter, an outlet air temperature, a temperature of the condenser, a temperature of the evaporator, an opening degree of the electronic expansion valve, and a pressure difference between the front and rear pipes of the electronic expansion valve.
As a further improvement of the above technical solution, in step 300, for each operating parameter, the following steps are respectively performed:
step 310, accumulating a plurality of data collected before the current time;
step 320, counting the number of the data of the operation parameters collected before the current moment, and calculating the average number of the operation parameters before the current moment;
step 330, setting an abnormal threshold value;
step 340, calculating a difference between the data of the operation parameters acquired at the current moment and the average number of the operation parameters before the current moment, if the difference is smaller than the abnormal threshold range, determining that the data of the operation parameters acquired at the current moment is normal data, and if the difference is larger than the abnormal threshold range, determining that the data of the operation parameters acquired at the current moment is abnormal data, and removing the data of the operation parameters acquired at the current moment.
As a further improvement of the above technical solution, in step 400, a least square method is used to complete the fitting operation of the variation curve of each operating parameter.
As a further improvement of the above technical solution, in step 600, according to the received operation parameters, the operation prediction values of the operation parameters are calculated by using a model based on the BP neural network.
The invention also discloses an air conditioner fault detection device, which comprises:
the input module is used for receiving the operating parameters of the air conditioner from the outside;
the sensor module is used for acquiring various operating parameters of the air conditioner;
the abnormal point removing module is used for removing abnormal data points in various operating parameters;
the curve drawing module is used for drawing a change curve of each operating parameter along with time;
the change rate calculation module is used for calculating the change rate of each operating parameter;
the prediction calculation module is used for calculating the operation prediction value of each operation parameter according to the received operation parameter;
the operation model module is used for establishing a random forest model and finishing the training operation of the random forest model;
and the judging module is used for inputting the operation parameters, the operation predicted values of the operation parameters and the change rates of the operation parameters into a random forest model, and the random forest model judges whether a fault condition occurs and outputs a specific fault type.
As a further improvement of the above technical solution, the input module receives the operating parameters of the air conditioner from the outside through one of an infrared communication mode, a bluetooth communication mode, a radio frequency communication mode, a WIFI communication mode and a key input mode.
As a further improvement of the above technical solution, the sensor module is used for respectively detecting the rotation speed of the compressor, the frequency of the PWM signal output by the frequency converter, the outlet air temperature, the temperature of the condenser, the temperature of the evaporator, the opening of the electronic expansion valve, and the pressure difference between the front and rear pipes of the electronic expansion valve.
The invention has the beneficial effects that: according to the method, the external operation parameters are received, the operation parameters of the air conditioner are collected, the operation parameters and the operation parameters are used as the basis, the change rate and the operation predicted value of the operation parameters are calculated, the data are input into the random forest model, the random forest model is used for outputting the possible specific fault conditions of the air conditioner at the current moment, and the method is high in detection accuracy and strong in real-time performance.
Detailed Description
The conception, the specific structure and the technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings to fully understand the objects, the features and the effects of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all embodiments, and other embodiments obtained by those skilled in the art without inventive efforts based on the embodiments of the present application belong to the protection scope of the present application. In addition, all the connection relations mentioned herein do not mean that the components are directly connected, but mean that a better connection structure can be formed by adding or reducing connection accessories according to the specific implementation situation. All technical characteristics in the invention can be interactively combined on the premise of not conflicting with each other. Finally, it should be noted that the terms "center, upper, lower, left, right, vertical, horizontal, inner, outer" and the like as used herein refer to an orientation or positional relationship based on the drawings, which is only for convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present application.
Referring to fig. 1, the present application discloses an air conditioner fault detection method, a first embodiment of which includes the steps of:
step 100, receiving operating parameters of an external air conditioner;
200, collecting various operating parameters of the air conditioner;
step 300, removing abnormal data points in each operation parameter;
step 400, drawing a change curve of each operation parameter along with time;
step 500, calculating the change rate of each operation parameter;
step 600, calculating operation predicted values of various operation parameters according to the received operation parameters;
step 700, establishing a random forest model and completing the training operation of a random forest module;
and 800, inputting the operation parameters, the operation predicted values of the operation parameters and the change rates of the operation parameters into a random forest model, judging whether a fault condition occurs or not by the random forest model, and outputting specific fault types.
Specifically, in this embodiment, by receiving external operation parameters and collecting operation parameters of the air conditioner, taking the operation parameters and the operation parameters as a basis, calculating a change rate and an operation predicted value of the operation parameters, inputting the above data into the random forest model, and outputting a possible specific fault condition of the air conditioner at the current time by using the random forest model, the detection accuracy is high, and the real-time performance is strong.
Further as a preferred implementation manner, in this embodiment, in step 100, the operation parameters of the air conditioner from the outside are received through one of an infrared communication manner, a bluetooth communication manner, a radio frequency communication manner, a WIFI communication manner, and a key input manner.
Further preferably, in this embodiment, the operation parameters in step 200 include a rotation speed of the compressor, a PWM signal frequency output by the frequency converter, an outlet air temperature, a temperature of the condenser, a temperature of the evaporator, an opening degree of the electronic expansion valve, and a pressure difference between the front and the rear of the electronic expansion valve. Specifically, the present embodiment specifically uses the rotation speed of the compressor, the PWM signal frequency output by the frequency converter, the air outlet temperature, the temperature of the condenser, the temperature of the evaporator, the opening of the electronic expansion valve, and the pressure difference between the front and rear pipes of the electronic expansion valve as the basis for determining the fault type of the air conditioner, so as to determine and analyze the fault type of the air conditioner by more than 90%, that is, the fault location, and facilitate the identification of the fault location of the air conditioner by the post-maintenance personnel.
Further as a preferred implementation manner, in step 300 of this embodiment, for each operating parameter, the following steps are respectively performed:
step 310, accumulating a plurality of data collected before the current time;
step 320, counting the number of the data of the operation parameters collected before the current moment, and calculating the average number of the operation parameters before the current moment;
step 330, setting an abnormal threshold value;
step 340, calculating a difference between the data of the operation parameters acquired at the current moment and the average number of the operation parameters before the current moment, if the difference is smaller than the abnormal threshold range, determining that the data of the operation parameters acquired at the current moment is normal data, and if the difference is larger than the abnormal threshold range, determining that the data of the operation parameters acquired at the current moment is abnormal data, and removing the data of the operation parameters acquired at the current moment.
Specifically, in this embodiment, the abnormal data in each operating parameter is removed for two purposes, the first purpose is to improve the accuracy of air conditioner fault detection for subsequent operations, clear the abnormal data to prevent the abnormal data from affecting the detection accuracy, and the second purpose is to reduce the calculation amount for subsequent operations.
Further, as a preferred embodiment, in step 400 of this embodiment, the least square method is used to complete the fitting operation of the change curve of each operation parameter, so as to effectively simplify the operation time of the fitting operation of the change curve, and further improve the real-time performance of air conditioner fault detection.
Further preferably, in step 600, the operation prediction values of the operation parameters are calculated by using the BP-based neural network model according to the received operation parameters.
The invention also discloses an air conditioner fault detection device, and the first embodiment comprises:
the input module is used for receiving the operating parameters of the air conditioner from the outside;
the sensor module is used for acquiring various operating parameters of the air conditioner;
the abnormal point removing module is used for removing abnormal data points in various operating parameters;
the curve drawing module is used for drawing a change curve of each operating parameter along with time;
the change rate calculation module is used for calculating the change rate of each operating parameter;
the prediction calculation module is used for calculating the operation prediction value of each operation parameter according to the received operation parameter;
the operation model module is used for establishing a random forest model and finishing the training operation of the random forest model;
and the judging module is used for inputting the operation parameters, the operation predicted values of the operation parameters and the change rates of the operation parameters into a random forest model, and the random forest model judges whether a fault condition occurs and outputs a specific fault type.
Further, as a preferred embodiment, in this embodiment, the input module receives the operation parameters of the air conditioner from the outside through one of an infrared communication mode, a bluetooth communication mode, a radio frequency communication mode, a WIFI communication mode, and a key input mode.
In a further preferred embodiment, in the present embodiment, the sensor module is configured to detect a rotation speed of the compressor, a PWM signal frequency output by the inverter, an outlet air temperature, a condenser temperature, an evaporator temperature, an opening degree of the electronic expansion valve, and a duct pressure difference between the front and the rear of the electronic expansion valve, respectively.
While the preferred embodiments of the present invention have been described in detail, it should be understood that the invention is not limited to those precise embodiments, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope or spirit of the invention as defined in the appended claims.