Variable frequency air conditioner load identification method and device based on multiple time scales and medium
Through the multi-time scale variable frequency air conditioner load identification method, high sampling frequency and down-sampling technology are used, combined with the pre-trained model, to identify the working hours of the variable frequency air conditioner, solving the peak-valley difference and peak load problems of the power grid caused by the variable frequency air conditioner, and improving the efficiency Grid stability and security.
Patent Information
- Application Number
- CN202410686963.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
The complex operating characteristics and frequent power fluctuations of inverter air conditioners make it difficult to realize smart power consumption, resulting in widening peak and valley differences in the power grid and prominent peak loads, challenging the stability and security of the power grid.
An inverter air conditioner load identification method based on multiple time scales is adopted to collect voltage and current data through high sampling frequency, calculate high-frequency characteristic values and power sequences, integrate the characteristic data after downsampling, and use the pre-trained model to identify the working hours of the inverter air conditioner. Reduce the impact of power fluctuations on recognition and improve accuracy.
It achieves accurate identification of variable frequency air conditioning loads, real-time monitoring of user usage, improves the stability and security of the power grid, and reduces energy waste.
Smart Images

Figure CN118657318A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent electricity consumption technology, and in particular to a method, device and medium for identifying variable frequency air conditioner load based on multiple time scales. Background Art
[0002] With the rise of the national energy Internet, smart grids, as a link between the grid side and the user side, are facing increasingly higher requirements. Smart grids have an important impact on the efficient and economic operation of the entire grid and the construction and planning of future grids. Among them, the key to realizing smart electricity consumption lies in the detailed monitoring of the power load of power users, which mainly involves sampling and analyzing the total load data of users, monitoring the operation and shutdown status of each electrical appliance, and obtaining data information such as the electrical energy consumption and electricity consumption behavior of the appliances.
[0003] When monitoring the power load of power users in daily life, variable frequency air conditioners and other temperature control equipment are one of the main reasons for the widening of the peak-to-valley difference of the power grid and the prominence of peak loads. Among them, the working principle of variable frequency air conditioners is to control the indoor temperature by adjusting the speed of the compressor, thereby achieving energy saving and comfort. However, due to the complex and changeable operating characteristics of variable frequency air conditioners, their long working hours and frequent power fluctuations, it brings certain challenges to the realization of intelligent power consumption for variable frequency air conditioners. Summary of the invention
[0004] The embodiments of the present disclosure at least provide a method, device and medium for identifying variable frequency air conditioner load based on multiple time scales. By effectively identifying the variable frequency air conditioner load, the user's usage can be monitored in real time, thereby improving the stability and security of the power grid.
[0005] The present disclosure provides a method for identifying variable frequency air conditioner load based on multiple time scales, including:
[0006] Based on a preset high sampling frequency, the voltage and current of the total power supply within a preset period are sampled respectively to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current;
[0007] According to the voltage cycle sequence and the current cycle sequence, for the voltage data and the current data in each cycle, high-frequency characteristic values are calculated based on a preset calculation method to obtain a high-frequency characteristic value sequence for the voltage cycle sequence and the current cycle sequence;
[0008] Downsampling the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determining a power sequence based on the downsampling calculation result; downsampling the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; the power sequence includes an active power sequence and a reactive power sequence;
[0009] The power sequence and the low-frequency characteristic value sequence within the same time are spliced to obtain a load characteristic vector; and the load characteristic vectors corresponding to different times are integrated to obtain load characteristic data;
[0010] The load characteristic data is identified based on a pre-trained variable frequency air conditioner load identification model to obtain air conditioner load information to identify the working time of the variable frequency air conditioner.
[0011] In some possible embodiments, the pre-trained variable frequency air conditioner load identification model is trained by the following steps:
[0012] Acquire a training sample set and a label data set corresponding to the training sample set, wherein the training sample set includes load characteristic sample data; the label data set includes a variable frequency air conditioner load start-up phase label and a variable frequency air conditioner load non-start-up phase label corresponding to the load characteristic sample data;
[0013] The variable frequency air conditioner load identification model to be trained is obtained, and supervised training is performed on the variable frequency air conditioner load identification model to be trained based on a preset network, the training sample set and the label data set to obtain the pre-trained variable frequency air conditioner load identification model.
[0014] In some possible embodiments, the supervised training of the variable frequency air conditioner load identification model to be trained based on the preset network, the training sample set and the label data set includes:
[0015] Inputting the training sample set into the variable frequency air conditioner load identification model to be trained to obtain a prediction data set corresponding to the training sample set;
[0016] Determining a target loss between the prediction data set and the label data set based on a preset loss function, and adjusting a model parameter of the variable frequency air conditioning load identification model to be trained based on the target loss;
[0017] Repeat the above steps until the training result meets the preset requirements, and obtain the pre-trained variable frequency air conditioner load identification model.
[0018] In some possible embodiments, the high-frequency characteristic value includes an area enclosed by a voltage-current curve, a slope of a voltage-current curve, a current amplitude, and a current crest factor; the preset calculation method includes an area calculation formula, a slope calculation formula, an amplitude calculation formula, and a coefficient calculation formula; the high-frequency characteristic value is calculated based on the preset calculation method, including:
[0019] Generate a voltage-current waveform curve for the voltage data and current data in each cycle;
[0020] According to the voltage-current waveform curve, calculating the area enclosed by the voltage-current curve based on the area calculation formula;
[0021] According to the voltage-current waveform curve, calculating the slope of the voltage-current curve based on the slope calculation formula;
[0022] Calculating the current amplitude based on the voltage-current waveform curve and the amplitude calculation formula;
[0023] According to the voltage-current waveform curve, the current crest factor is calculated based on the factor calculation formula.
[0024] In some possible embodiments, the area calculation formula includes:
[0025]
[0026] Where, u represents voltage, I represents current, and u max Indicates the maximum value of the voltage cycle sequence, u min It represents the minimum value of the voltage cycle sequence, and UI_Area represents the area enclosed by the voltage-current curve;
[0027] The slope calculation formula includes:
[0028]
[0029] Where t represents time, Indicates the time when the voltage reaches its maximum value. Indicates the time when the voltage takes the minimum value. Indicates the current value corresponding to the time when the voltage reaches its maximum value, It indicates the current value corresponding to the time when the voltage takes the minimum value, and UI_Slope indicates the slope of the voltage-current curve;
[0030] The amplitude calculation formula includes:
[0031] I max =max(I)
[0032] Among them, I max represents the current amplitude, I represents the current;
[0033] The coefficient calculation formula includes:
[0034]
[0035] Among them, I max Indicates the current amplitude, I rms It represents the RMS value of current and CF represents the crest factor of current.
[0036] In some possible embodiments, before calculating the high-frequency characteristic value based on a preset calculation method for the voltage data and the current data in each cycle, the method includes:
[0037] Data normalization processing is performed on the voltage data in the voltage cycle sequence and the current data in the current cycle sequence, respectively, and the voltage cycle sequence and the current cycle sequence are updated respectively according to the data normalization processing results.
[0038] In some possible embodiments, before the splicing processing is performed on the power sequence and the low-frequency eigenvalue sequence within the same time, the process includes:
[0039] Based on preset aggregation rules, the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively aggregated, and the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively updated based on the aggregation processing results; the aggregation processing includes respectively extracting the minimum data value in the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence within a preset aggregation period.
[0040] The embodiment of the present disclosure provides a variable frequency air conditioner load identification device based on multiple time scales, including:
[0041] A data sampling module, used to sample the voltage and current of the total power supply within a preset period based on a preset high sampling frequency, to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current;
[0042] A characteristic value calculation module, used to calculate high-frequency characteristic values based on a preset calculation method for the voltage cycle sequence and the current cycle sequence and for the voltage data and the current data in each cycle, so as to obtain a high-frequency characteristic value sequence for the voltage cycle sequence and the current cycle sequence;
[0043] A data downsampling module, configured to perform downsampling calculations on the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determine a power sequence based on the downsampling calculation results; perform downsampling calculations on the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; the power sequence includes an active power sequence and a reactive power sequence;
[0044] A sequence splicing module is used to splice the power sequence and the low-frequency characteristic value sequence within the same time to obtain a load characteristic vector; and integrate the load characteristic vectors corresponding to different times to obtain load characteristic data;
[0045] The model recognition module is used to recognize the load characteristic data based on a pre-trained variable frequency air conditioner load recognition model to obtain air conditioner load information so as to recognize the working time of the variable frequency air conditioner.
[0046] In some possible embodiments, the model identification module is further used to:
[0047] Acquire a training sample set and a label data set corresponding to the training sample set, wherein the training sample set includes load characteristic sample data; the label data set includes a variable frequency air conditioner load start-up phase label and a variable frequency air conditioner load non-start-up phase label corresponding to the load characteristic sample data;
[0048] The variable frequency air conditioner load identification model to be trained is obtained, and supervised training is performed on the variable frequency air conditioner load identification model to be trained based on a preset network, the training sample set and the label data set to obtain the pre-trained variable frequency air conditioner load identification model.
[0049] In some possible embodiments, the model identification module is further used to:
[0050] Inputting the training sample set into the variable frequency air conditioner load identification model to be trained to obtain a prediction data set corresponding to the training sample set;
[0051] Determining a target loss between the prediction data set and the label data set based on a preset loss function, and adjusting a model parameter of the variable frequency air conditioning load identification model to be trained based on the target loss;
[0052] Repeat the above steps until the training result meets the preset requirements, and obtain the pre-trained variable frequency air conditioner load identification model.
[0053] In some possible embodiments, the high-frequency characteristic values include the area enclosed by the voltage-current curve, the slope of the voltage-current curve, the current amplitude, and the current crest factor; the preset calculation method includes an area calculation formula, a slope calculation formula, an amplitude calculation formula, and a coefficient calculation formula; the characteristic value calculation module is specifically used for:
[0054] Generate a voltage-current waveform curve for the voltage data and current data in each cycle;
[0055] According to the voltage-current waveform curve, calculating the area enclosed by the voltage-current curve based on the area calculation formula;
[0056] According to the voltage-current waveform curve, calculating the slope of the voltage-current curve based on the slope calculation formula;
[0057] Calculating the current amplitude based on the voltage-current waveform curve and the amplitude calculation formula;
[0058] According to the voltage-current waveform curve, the current crest factor is calculated based on the factor calculation formula.
[0059] In some possible embodiments, the area calculation formula includes:
[0060]
[0061] Where, u represents voltage, I represents current, and u max Indicates the maximum value of the voltage cycle sequence, u min It represents the minimum value of the voltage cycle sequence, and UI_Area represents the area enclosed by the voltage-current curve;
[0062] The slope calculation formula includes:
[0063]
[0064] Where t represents time, Indicates the time when the voltage reaches its maximum value. Indicates the time when the voltage takes the minimum value. Indicates the current value corresponding to the time when the voltage reaches its maximum value, It indicates the current value corresponding to the time when the voltage takes the minimum value, and UI_Slope indicates the slope of the voltage-current curve;
[0065] The amplitude calculation formula includes:
[0066] I max =max(I)
[0067] Among them, I max represents the current amplitude, I represents the current;
[0068] The coefficient calculation formula includes:
[0069]
[0070] Among them, I max Indicates the current amplitude, I rms It represents the RMS value of current and CF represents the crest factor of current.
[0071] In some possible embodiments, the eigenvalue calculation module is further used for:
[0072] Data normalization processing is performed on the voltage data in the voltage cycle sequence and the current data in the current cycle sequence, respectively, and the voltage cycle sequence and the current cycle sequence are updated respectively according to the data normalization processing results.
[0073] In some possible embodiments, the sequence splicing module is further used for:
[0074] Based on preset aggregation rules, the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively aggregated, and the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively updated based on the aggregation processing results; the aggregation processing includes respectively extracting the minimum data value in the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence within a preset aggregation period.
[0075] An embodiment of the present disclosure provides a computer device, including: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, a variable frequency air conditioning load identification method based on multiple time scales as described in any possible implementation manner described above is performed.
[0076] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the variable frequency air conditioning load identification method based on multiple time scales as described in any possible implementation manner described above is implemented.
[0077] The variable frequency air conditioner load identification method, device and medium provided in the embodiments of the present disclosure based on multiple time scales, because the variable frequency air conditioner load information is obtained by identifying the load characteristic data through a pre-trained variable frequency air conditioner model, and the load characteristic data is composed of a power sequence and a low-frequency characteristic sequence calculated by downsampling, thus reducing the impact of frequent power fluctuations of the variable frequency air conditioner on the variable frequency air conditioner load identification, and improving the accuracy of the variable frequency air conditioner load identification. In this way, through the effective identification of the variable frequency air conditioner load, not only can the user's usage be monitored in real time, but also the stability and security of the power grid can be improved.
[0078] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required to be cited in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0080] Figure 1 A flow chart of a variable frequency air conditioning load identification method based on multiple time scales provided by an embodiment of the present disclosure is shown;
[0081] Figure 2 A schematic diagram of the structure of a variable frequency air conditioner load identification device based on multiple time scales provided by an embodiment of the present disclosure is shown;
[0082] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0083] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure provided in the drawings is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0084] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0085] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0086] The rise of the global energy Internet has put forward higher requirements for smart grids. Smart grids have developed steadily, the operation and control of UHV power grids and distribution networks have entered a rapid construction stage, the interactive smart grid service system has been initially established, and important breakthroughs have been made in core technologies and equipment. As a link between the grid side and the user side, smart electricity consumption has an important impact on the efficient and economic operation of the entire power grid and the construction and planning of future power grids. The key to realizing smart electricity consumption lies in the detailed monitoring of the power load of power users, which involves sampling and analyzing the total load data of users, monitoring the operation and shutdown status of each electrical appliance, and obtaining data information such as the power consumption and power consumption behavior of the electrical appliances.
[0087] In daily life, when monitoring the power load of power users, it is found that temperature control equipment such as variable frequency air conditioners are one of the main reasons for the widening of the peak-to-valley difference of the power grid and the prominence of peak loads. Among them, the working principle of variable frequency air conditioners is to control the indoor temperature by adjusting the speed of the compressor, thereby achieving energy saving and comfort. However, due to the complex and changeable operating characteristics of variable frequency air conditioners, their long working hours and frequent power fluctuations, it brings certain challenges to the realization of intelligent power consumption for variable frequency air conditioners.
[0088] Based on this, a method, device and medium for variable frequency air conditioner load identification based on multiple time scales are provided in the embodiments of the present disclosure. First, the voltage and current of the total power supply within a preset period are sampled respectively based on a preset high sampling frequency to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current; secondly, according to the voltage cycle sequence and the current cycle sequence, for the voltage data and the current data within each period, high-frequency eigenvalues are calculated based on a preset calculation method to obtain a high-frequency eigenvalue sequence about the voltage cycle sequence and the current cycle sequence; then, the voltage cycle sequence and the current cycle sequence are downsampled and calculated based on a preset low sampling frequency, and the power sequence is determined based on the downsampling calculation result; the high-frequency eigenvalue sequence is downsampled and calculated based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; then, the power sequence and the low-frequency eigenvalue sequence within the same time are spliced to obtain a load eigenvector; and the load eigenvectors corresponding to different times are integrated to obtain load characteristic data; finally, the load characteristic data is identified based on a pre-trained variable frequency air conditioner load identification model to obtain air conditioning load information to identify the working time of the variable frequency air conditioner.
[0089] In the disclosed embodiment, the variable frequency air conditioner load information is obtained by identifying the load characteristic data through a pre-trained variable frequency air conditioner model, and the load characteristic data is composed of a power sequence and a low-frequency characteristic sequence calculated by downsampling. In this way, the influence of frequent power fluctuations of the variable frequency air conditioner on the variable frequency air conditioner load identification is reduced, and the accuracy of the variable frequency air conditioner load identification is improved. In this way, through the effective identification of the variable frequency air conditioner load, not only can the user's usage be monitored in real time, but also the stability and security of the power grid can be improved.
[0090] To facilitate understanding of this embodiment, the execution subject of the variable frequency air conditioner load identification method based on multiple time scales provided by the embodiment of the present disclosure is first introduced in detail. The execution subject of the variable frequency air conditioner load identification method based on multiple time scales provided by the embodiment of the present disclosure is a computer device. The computer device can be a server. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms.
[0091] The variable frequency air conditioner load identification method based on multiple time scales provided by the embodiment of the present application is described in detail below in conjunction with the accompanying drawings. Figure 1 As shown, it is a flow chart of a variable frequency air conditioner load identification method based on multiple time scales provided by an embodiment of the present disclosure, and the method includes the following S101 to S105:
[0092] S101, sampling the voltage and current of the total power supply within a preset period based on a preset high sampling frequency, to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current.
[0093] It is understandable that by sampling the voltage and current of the total power supply at a preset high sampling frequency, as many voltage and current data points as possible can be obtained within a certain period of time to more comprehensively understand the working status of the total power supply. In the embodiment of the present disclosure, the preset high sampling frequency is 6400Hz, which means that the total power supply is sampled 6400 times per second. In some other embodiments, the preset high sampling frequency can also be 5000Hz or 7000Hz, etc., which is not specifically limited here. After sampling the voltage and current of the total power supply, a voltage cycle sequence and a current cycle sequence of the total power supply are obtained, which are used to provide various information about the total power supply, including but not limited to waveform characteristics, frequency distribution, peak and valley values, etc.
[0094] S102, according to the voltage cycle sequence and the current cycle sequence, for the voltage data and the current data in each cycle, calculate the high-frequency characteristic value based on a preset calculation method to obtain a high-frequency characteristic value sequence about the voltage cycle sequence and the current cycle sequence.
[0095] Specifically, since different data features have different scales and dimensions, if the calculation is performed directly, the calculation results may not converge or converge slowly due to the large data values. Therefore, before calculating the current data and voltage data in the same cycle, the voltage data in the voltage cycle sequence and the current data in the current cycle sequence are respectively normalized, and the voltage cycle sequence and the current cycle sequence are respectively updated according to the data normalization results. In this way, the voltage data and current data after data normalization can eliminate the above-mentioned influence and are easier to compare and analyze.
[0096] Exemplarily, when calculating the high-frequency characteristic value based on the preset calculation method, a voltage-current waveform curve is first generated for the voltage data and current data in each cycle, and then the high-frequency characteristic value is calculated according to the voltage-current waveform curve. Among them, the high-frequency characteristic values include the area enclosed by the voltage-current curve, the slope of the voltage-current curve, the current amplitude, and the current crest factor. Specifically, the area enclosed by the voltage-current curve can provide information about the working state of the power supply (for example, about the efficiency of energy conversion and power transmission). Generally speaking, the larger the enclosed area, the greater the energy loss of the power supply system and the lower the efficiency. When calculating the enclosed area of the voltage-current curve, the area calculation formula includes:
[0097]
[0098] Where, u represents voltage, I represents current, and u max Indicates the maximum value of the voltage cycle sequence, u min It represents the minimum value of the voltage cycle sequence, and UI_Area represents the area enclosed by the voltage-current curve.
[0099] The slope of the voltage-current curve reflects the dynamic relationship between voltage and current. The larger the slope, the more sensitive the current is to voltage changes, the system impedance may be lower or the load may be more dynamic. By changing the slope, we can understand the response speed and stability of the power system. When calculating the slope of the voltage-current curve, the slope calculation formula includes:
[0100]
[0101] Where t represents time, Indicates the time when the voltage reaches its maximum value. Indicates the time when the voltage takes the minimum value. Indicates the current value corresponding to the time when the voltage reaches its maximum value, It indicates the current value corresponding to the time when the voltage takes the minimum value, and UI_Slope indicates the slope of the voltage-current curve.
[0102] The current amplitude indicates the peak value of the current waveform, that is, the maximum value of the current. This indicator can be used to evaluate the load condition and current transmission capacity of the power supply system. A larger current amplitude may mean that the load is larger or the system has been subjected to an impact load change. When calculating the current amplitude, the amplitude calculation formula includes:
[0103] I max =max(I);
[0104] Among them, I max represents the current amplitude, and I represents the current.
[0105] The current crest factor refers to the ratio of the peak value of the current waveform to the root mean square value, providing information about the peak characteristics and harmonic content of the current waveform. A higher crest factor generally indicates the presence of more harmonic components, which may affect the stability and efficiency of the power system. When calculating the current crest factor, the coefficient calculation formula includes:
[0106]
[0107] Among them, I max Indicates the current amplitude, I rms It represents the RMS value of current and CF represents the crest factor of current.
[0108] In this way, after calculating the voltage data and the current data in each cycle to obtain the high-frequency characteristic value corresponding to each cycle, a high-frequency characteristic value sequence about the voltage cycle sequence and the current cycle sequence can be obtained.
[0109] S103, downsampling the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determining a power sequence based on the downsampling calculation result; downsampling the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence.
[0110] The power sequence includes an active power sequence and a reactive power sequence. It is understandable that downsampling calculation is usually used to process voltage and current data obtained by high-frequency sampling, reducing the high-sampling rate signal to a lower sampling frequency (e.g., 10 Hz) to reduce the amount of data and simplify the data processing process. Exemplarily, the downsampling calculation method may include an average method or an interpolation method, which is not specifically limited here.
[0111] S104, concatenating the power sequence and the low-frequency characteristic value sequence within the same time to obtain a load characteristic vector; and integrating the load characteristic vectors corresponding to different times to obtain load characteristic data.
[0112] It is understandable that in real power consumption scenarios, the collected data is often accompanied by a large amount of data noise, so the present disclosure performs aggregation processing on the active power sequence, reactive power sequence and low-frequency characteristic value sequence based on preset aggregation rules, and updates the active power sequence, reactive power sequence and low-frequency characteristic value sequence based on the aggregation processing results; here, when the active power sequence, reactive power sequence and low-frequency characteristic value sequence are aggregated, the minimum data value in the active power sequence, reactive power sequence and low-frequency characteristic value sequence can be extracted in groups of 10 data points per second. In this way, by performing aggregation processing on the power sequence and the low-frequency characteristic value sequence, the main noise interference can be filtered out while retaining the main waveform characteristics of the variable frequency air conditioner.
[0113] After obtaining the updated active power sequence, reactive power sequence and low-frequency eigenvalue sequence, the power sequence and low-frequency eigenvalue sequence within the same time are spliced to obtain the load characteristic vector; then the load characteristic vectors corresponding to different times are integrated to obtain the load characteristic data as the input data of the subsequent model to achieve effective identification of the variable frequency air-conditioning load.
[0114] S105, identifying the load characteristic data based on a pre-trained variable frequency air conditioner load identification model to obtain air conditioner load information to identify the working time of the variable frequency air conditioner.
[0115] Here, the pre-trained variable frequency air conditioning load identification model is trained through the following steps (1) to (2):
[0116] (1) obtaining a training sample set and a label data set corresponding to the training sample set, wherein the training sample set includes load characteristic sample data; the label data set includes a variable frequency air conditioner load on stage label and a variable frequency air conditioner load off stage label corresponding to the load characteristic sample data;
[0117] (2) Obtaining the variable frequency air conditioner load identification model to be trained, and performing supervised training on the variable frequency air conditioner load identification model to be trained based on a preset network, the training sample set, and the label data set to obtain the pre-trained variable frequency air conditioner load identification model.
[0118] It can be understood that the training data is constructed by obtaining a training sample set and a corresponding label data set, the training sample set includes load feature sample data, and the label data set includes the variable frequency air conditioner load opening stage label and the non-opening stage label corresponding to these load feature sample data (such as the variable frequency air conditioner opening time period is assigned a label "1", and the variable frequency air conditioner non-opening time period is assigned a label "0"). Then the variable frequency air conditioner load recognition model to be trained is obtained, and the model to be trained is supervised by using the preset network structure and the prepared training sample set and label data set. During the training process, the training sample set is input into the variable frequency air conditioner load recognition model to be trained to obtain a prediction data set, and the target loss between the prediction data set and the label data set is determined according to the preset loss function, and it is judged whether the value of the target loss meets the preset requirements (less than the preset value or within the preset value range). When the value of the target loss does not meet the preset requirements, the parameters of the model are adjusted and recalculated based on the adjusted model until the target loss meets the preset requirements. At this time, a trained variable frequency air conditioner load recognition model can be obtained, which has the ability to identify the load state of the variable frequency air conditioner. Here, the TimesNet network is selected as the model network structure in the present disclosure. The TimesNet network structure is based on the idea of modularizing time series data, which is convenient for capturing the characteristics of long operation time and complex power changes of variable frequency air conditioners, thereby realizing high-precision identification of variable frequency air conditioner loads. In some other embodiments, other neural network structures can also be used as the network structure for model training, which is not specifically limited here.
[0119] After obtaining the trained variable frequency air conditioner load identification model, the load characteristic data is identified to obtain the air conditioner load information, thereby realizing accurate identification of the variable frequency air conditioner working time, which helps to realize accurate monitoring and management of energy use, improve energy utilization efficiency and reduce energy waste.
[0120] The variable frequency air conditioner load identification method, device and medium based on multiple time scales provided in the embodiments of the present disclosure firstly samples the voltage and current of the total power supply at a set high sampling frequency to obtain voltage and current cycle sequences; and calculates high-frequency eigenvalues for the voltage and current data of each cycle using a preset method to form a high-frequency eigenvalue sequence; then, at a set low sampling frequency, downsamples the voltage and current cycle sequences to obtain a power sequence, and downsamples the high-frequency eigenvalue sequence to obtain a low-frequency eigenvalue sequence; concatenates the power sequence and the low-frequency eigenvalue sequence to form a load characteristic vector, which is integrated to obtain load characteristic data; finally, uses the variable frequency air conditioner load identification model to analyze the load characteristic data to determine the operating time of the variable frequency air conditioner.
[0121] In the disclosed embodiment, since the variable frequency air conditioner load information is obtained by identifying the load characteristic data through the pre-trained variable frequency air conditioner model, and the load characteristic data is composed of the power sequence and the low-frequency characteristic sequence calculated by downsampling, the influence of the frequent power fluctuation of the variable frequency air conditioner on the variable frequency air conditioner load identification is reduced, and the accuracy of the variable frequency air conditioner load identification is improved. In this way, through the effective identification of the variable frequency air conditioner load, not only can the user's usage be monitored in real time, but also the stability and security of the power grid can be improved.
[0122] Reference Figure 2 FIG. 2 is a schematic diagram of a variable frequency air conditioner load identification device 200 based on multiple time scales provided by an embodiment of the present disclosure, wherein the device comprises:
[0123] The data sampling module 201 is used to sample the voltage and current of the total power supply within a preset period based on a preset high sampling frequency, and obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current;
[0124] The characteristic value calculation module 202 is used to calculate the high-frequency characteristic value based on the voltage cycle sequence and the current cycle sequence, for the voltage data and the current data in each cycle, based on a preset calculation method, to obtain a high-frequency characteristic value sequence for the voltage cycle sequence and the current cycle sequence;
[0125] The data downsampling module 203 is used to perform downsampling calculations on the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determine a power sequence based on the downsampling calculation results; perform downsampling calculations on the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; the power sequence includes an active power sequence and a reactive power sequence;
[0126] The sequence concatenation module 204 is used to concatenate the power sequence and the low-frequency characteristic value sequence within the same time to obtain a load characteristic vector; and to integrate the load characteristic vectors corresponding to different times to obtain load characteristic data;
[0127] The model identification module 205 is used to identify the load characteristic data based on a pre-trained variable frequency air conditioner load identification model to obtain air conditioner load information to identify the working time of the variable frequency air conditioner.
[0128] In some possible embodiments, the model identification module 205 is further used to:
[0129] Acquire a training sample set and a label data set corresponding to the training sample set, wherein the training sample set includes load characteristic sample data; the label data set includes a variable frequency air conditioner load start-up phase label and a variable frequency air conditioner load non-start-up phase label corresponding to the load characteristic sample data;
[0130] The variable frequency air conditioner load identification model to be trained is obtained, and supervised training is performed on the variable frequency air conditioner load identification model to be trained based on a preset network, the training sample set and the label data set to obtain the pre-trained variable frequency air conditioner load identification model.
[0131] In some possible embodiments, the model identification module 205 is further used to:
[0132] Inputting the training sample set into the variable frequency air conditioner load identification model to be trained to obtain a prediction data set corresponding to the training sample set;
[0133] Determining a target loss between the prediction data set and the label data set based on a preset loss function, and adjusting a model parameter of the variable frequency air conditioning load identification model to be trained based on the target loss;
[0134] Repeat the above steps until the training result meets the preset requirements, and obtain the pre-trained variable frequency air conditioner load identification model.
[0135] In some possible embodiments, the high-frequency characteristic value includes the area enclosed by the voltage-current curve, the slope of the voltage-current curve, the current amplitude and the current crest factor; the preset calculation method includes an area calculation formula, a slope calculation formula, an amplitude calculation formula and a coefficient calculation formula; the characteristic value calculation module 202 is specifically used to:
[0136] Generate a voltage-current waveform curve for the voltage data and current data in each cycle;
[0137] According to the voltage-current waveform curve, calculating the area enclosed by the voltage-current curve based on the area calculation formula;
[0138] According to the voltage-current waveform curve, calculating the slope of the voltage-current curve based on the slope calculation formula;
[0139] Calculating the current amplitude based on the voltage-current waveform curve and the amplitude calculation formula;
[0140] According to the voltage-current waveform curve, the current crest factor is calculated based on the factor calculation formula.
[0141] In some possible embodiments, the area calculation formula includes:
[0142]
[0143] Where, u represents voltage, I represents current, and u max Indicates the maximum value of the voltage cycle sequence, u min It represents the minimum value of the voltage cycle sequence, and UI_Area represents the area enclosed by the voltage-current curve;
[0144] The slope calculation formula includes:
[0145]
[0146] Where t represents time, Indicates the time when the voltage reaches its maximum value. Indicates the time when the voltage takes the minimum value. Indicates the current value corresponding to the time when the voltage reaches its maximum value, It indicates the current value corresponding to the time when the voltage takes the minimum value, and UI_Slope indicates the slope of the voltage-current curve;
[0147] The amplitude calculation formula includes:
[0148] I max =max(I)
[0149] Among them, I max represents the current amplitude, I represents the current;
[0150] The coefficient calculation formula includes:
[0151]
[0152] Among them, I max Indicates the current amplitude, I rms It represents the RMS value of current and CF represents the crest factor of current.
[0153] In some possible embodiments, the eigenvalue calculation module 202 is further used for:
[0154] Data normalization processing is performed on the voltage data in the voltage cycle sequence and the current data in the current cycle sequence, respectively, and the voltage cycle sequence and the current cycle sequence are updated respectively according to the data normalization processing results.
[0155] In some possible embodiments, the sequence splicing module 203 is further used for:
[0156] Based on preset aggregation rules, the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively aggregated, and the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively updated based on the aggregation processing results; the aggregation processing includes respectively extracting the minimum data value in the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence within a preset aggregation period.
[0157] Based on the same technical concept, the embodiment of the present disclosure also provides a computer device. Figure 3 , which is a schematic diagram of the structure of a computer device 300 provided in an embodiment of the present disclosure, including a processor 301, a memory 302, and a bus 303. The memory 302 is used to store execution instructions, including a memory 3021 and an external memory 3022; the memory 3021 is also called an internal memory, which is used to temporarily store the operation data in the processor 301 and the data exchanged with the external memory 3022 such as a hard disk. The processor 301 exchanges data with the external memory 3022 through the memory 3021.
[0158] In the embodiment of the present application, the memory 302 is specifically used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 301. That is, when the computer device 300 is running, the processor 301 communicates with the memory 302 through the bus 303, so that the processor 301 executes the application code stored in the memory 302, and then executes the method described in any of the above embodiments.
[0159] Among them, the memory 302 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
[0160] The processor 301 may be an integrated circuit chip with signal processing capabilities. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0161] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the computer device 300. In other embodiments of the present application, the computer device 300 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0162] The embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the variable frequency air conditioner load identification method based on multiple time scales described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0163] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the variable frequency air conditioning load identification method based on multiple time scales described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0164] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0165] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0166] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0167] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0168] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0169] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A variable frequency air conditioning load identification method based on multiple time scales, characterized in that: include: Based on a preset high sampling frequency, the voltage and current of the total power supply within a preset period are sampled respectively to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current; According to the voltage cycle sequence and the current cycle sequence, for the voltage data and the current data in each cycle, high-frequency characteristic values are calculated based on a preset calculation method to obtain a high-frequency characteristic value sequence for the voltage cycle sequence and the current cycle sequence; Downsampling the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determining a power sequence based on the downsampling calculation result; downsampling the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; the power sequence includes an active power sequence and a reactive power sequence; The power sequence and the low-frequency characteristic value sequence within the same time are spliced to obtain a load characteristic vector; and the load characteristic vectors corresponding to different times are integrated to obtain load characteristic data; The load characteristic data is identified based on a pre-trained variable frequency air conditioner load identification model to obtain air conditioner load information to identify the working time of the variable frequency air conditioner.
2. The method according to claim 1, characterized in that The pre-trained variable frequency air conditioner load identification model is trained by the following steps: Acquire a training sample set and a label data set corresponding to the training sample set, wherein the training sample set includes load characteristic sample data; the label data set includes a variable frequency air conditioner load start-up phase label and a variable frequency air conditioner load non-start-up phase label corresponding to the load characteristic sample data; The variable frequency air conditioner load identification model to be trained is obtained, and supervised training is performed on the variable frequency air conditioner load identification model to be trained based on a preset network, the training sample set and the label data set to obtain the pre-trained variable frequency air conditioner load identification model.
3. The method according to claim 2, characterized in that The supervised training of the variable frequency air conditioner load identification model to be trained based on the preset network, the training sample set and the label data set includes: Inputting the training sample set into the variable frequency air conditioner load identification model to be trained to obtain a prediction data set corresponding to the training sample set; Determining a target loss between the prediction data set and the label data set based on a preset loss function, and adjusting a model parameter of the variable frequency air conditioning load identification model to be trained based on the target loss; Repeat the above steps until the training result meets the preset requirements, and obtain the pre-trained variable frequency air conditioner load identification model.
4. The method according to claim 1, characterized in that: The high-frequency characteristic values include the enclosed area of the voltage-current curve, the slope of the voltage-current curve, the current amplitude and the current crest factor; The preset calculation method includes an area calculation formula, a slope calculation formula, an amplitude calculation formula and a coefficient calculation formula; The calculating of the high-frequency characteristic value based on a preset calculation method includes: Generate a voltage-current waveform curve for the voltage data and current data in each cycle; According to the voltage-current waveform curve, calculating the area enclosed by the voltage-current curve based on the area calculation formula; According to the voltage-current waveform curve, calculating the slope of the voltage-current curve based on the slope calculation formula; Calculating the current amplitude based on the voltage-current waveform curve and the amplitude calculation formula; According to the voltage-current waveform curve, the current crest factor is calculated based on the factor calculation formula.
5. The method according to claim 4, characterized in that The area calculation formula includes: Where, u represents voltage, I represents current, and u max Indicates the maximum value of the voltage cycle sequence, u min It represents the minimum value of the voltage cycle sequence, and UI_Area represents the area enclosed by the voltage-current curve; The slope calculation formula includes: Where t represents time, Indicates the time when the voltage reaches its maximum value. Indicates the time when the voltage takes the minimum value. Indicates the current value corresponding to the time when the voltage reaches its maximum value, It indicates the current value corresponding to the time when the voltage takes the minimum value, and UI_Slope indicates the slope of the voltage-current curve; The amplitude calculation formula includes: I max =max(I) Among them, I max represents the current amplitude, I represents the current; The coefficient calculation formula includes: Among them, I max Indicates the current amplitude, I rms It represents the RMS value of current and CF represents the crest factor of current.
6. The method according to claim 1, characterized in that Before calculating the high-frequency characteristic value based on the preset calculation method for the voltage data and the current data in each cycle, the method includes: Data normalization processing is performed on the voltage data in the voltage cycle sequence and the current data in the current cycle sequence, respectively, and the voltage cycle sequence and the current cycle sequence are updated respectively according to the data normalization processing results.
7. The method according to claim 1, characterized in that Before the power sequence and the low-frequency eigenvalue sequence within the same time are spliced, the method includes: Based on preset aggregation rules, the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively aggregated, and the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence are respectively updated based on the aggregation processing results; the aggregation processing includes respectively extracting the minimum data value in the active power sequence, the reactive power sequence and the low-frequency eigenvalue sequence within a preset aggregation period.
8. A variable frequency air conditioning load identification device based on multiple time scales, characterized in that: include: A data sampling module, used to sample the voltage and current of the total power supply within a preset period based on a preset high sampling frequency, to obtain a voltage cycle sequence corresponding to the total power supply voltage and a current cycle sequence corresponding to the total power supply current; A characteristic value calculation module, used to calculate high-frequency characteristic values based on a preset calculation method for the voltage cycle sequence and the current cycle sequence and for the voltage data and the current data in each cycle, so as to obtain a high-frequency characteristic value sequence for the voltage cycle sequence and the current cycle sequence; A data downsampling module, configured to perform downsampling calculations on the voltage cycle sequence and the current cycle sequence based on a preset low sampling frequency, and determine a power sequence based on the downsampling calculation results; perform downsampling calculations on the high-frequency eigenvalue sequence based on the preset low sampling frequency to obtain a low-frequency eigenvalue sequence; the power sequence includes an active power sequence and a reactive power sequence; A sequence splicing module is used to splice the power sequence and the low-frequency characteristic value sequence within the same time to obtain a load characteristic vector; and integrate the load characteristic vectors corresponding to different times to obtain load characteristic data; The model recognition module is used to recognize the load characteristic data based on a pre-trained variable frequency air conditioner load recognition model to obtain air conditioner load information so as to recognize the working time of the variable frequency air conditioner.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
