CN117076966A - Method and device for determining power consumption load level, electronic equipment and storage medium - Google Patents

Method and device for determining power consumption load level, electronic equipment and storage medium Download PDF

Info

Publication number
CN117076966A
CN117076966A CN202310922047.2A CN202310922047A CN117076966A CN 117076966 A CN117076966 A CN 117076966A CN 202310922047 A CN202310922047 A CN 202310922047A CN 117076966 A CN117076966 A CN 117076966A
Authority
CN
China
Prior art keywords
power consumption
determining
target
fluctuation
time window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310922047.2A
Other languages
Chinese (zh)
Inventor
周轶凡
储若昕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN202310922047.2A priority Critical patent/CN117076966A/en
Publication of CN117076966A publication Critical patent/CN117076966A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23213Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The application provides a method, a device, electronic equipment and a storage medium for determining a power consumption load level, which relate to the technical field of big data, and the method comprises the following steps: acquiring electricity consumption data of an object to be tested; acquiring a first average value and a first standard deviation of each power consumption in power consumption data; determining each power consumption threshold value according to the first mean value, the first standard deviation and an initial setting coefficient corresponding to at least one power consumption threshold value; and determining a target power consumption load level corresponding to the target time period of the object to be detected according to the power consumption threshold values and the power consumption of the target time period. In summary, the power consumption threshold values are determined based on the statistical information of the power consumption data of the object to be measured in a plurality of time periods, and are not fixedly arranged, so that the accuracy and the rationality of determining the target power consumption load level can be improved. And the power consumption of the object to be measured in at least one target period is not required to be forcedly divided into all power consumption load levels, so that the accuracy of the division result (namely the target power consumption load level) can be improved.

Description

Method and device for determining power consumption load level, electronic equipment and storage medium
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method and apparatus for determining a power consumption load level, an electronic device, and a storage medium.
Background
In the power industry, it is often required to classify the power consumption load level of an enterprise, for example, the power consumption load level of an enterprise is generally classified into the following 5 levels: stopping production, normal production at low position, normal production at middle position, normal production at high position and high load production. According to the change condition of the power consumption load level of the enterprise in a period of time, whether the enterprise has the conditions of shutdown, reworking, abnormal production and the like can be judged, so that the monitoring is further implemented.
In the related technology, a K (such as 5) mean value clustering mode is adopted to determine the power consumption load level of an enterprise every day. However, because the value of K is difficult to determine, the similar points (i.e. daily electricity consumption) are easily classified into different classes, so that the accuracy of the determination result of the electricity consumption load level of the enterprise is difficult to ensure, and in addition, the electricity consumption load level of the enterprise is forcedly classified into K groups by the K-means clustering mode, so that the accuracy of the classification result is lower.
For example, the electricity consumption of an enterprise has been relatively stable for a long time, that is, the enterprise uses electricity relatively stably, for example, the electricity consumption load level of the enterprise is within low-level normal production, medium-level normal production or high-level normal production, and in this case, the K-means clustering algorithm can forcedly divide the electricity consumption load level of the enterprise into two electricity consumption load levels of shutdown and high-load production, which results in a large difference between the division result and the expected result.
Disclosure of Invention
The object of the present application is to solve at least to some extent one of the above technical problems.
Therefore, the application provides a method and a device for determining the power consumption load level, electronic equipment and a storage medium, so as to improve the accuracy and the rationality of determining the power consumption load level of an object to be tested.
An embodiment of a first aspect of the present application provides a method for determining a power consumption load level, including:
acquiring electricity consumption data of an object to be tested; wherein the electricity consumption data comprises at least one period of electricity consumption;
acquiring a first average value and a first standard deviation of at least one power consumption;
determining at least one electricity consumption threshold according to the first mean value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold;
and determining a target power consumption load level corresponding to the target time period of the object to be detected according to the at least one power consumption threshold value and the power consumption of the target time period.
An embodiment of a second aspect of the present application provides a device for determining a power load level, including:
the first acquisition module is used for acquiring electricity utilization data of an object to be detected; wherein the electricity consumption data comprises at least one period of electricity consumption;
The second acquisition module is used for acquiring a first mean value and a first standard deviation of at least one power consumption;
the first determining module is used for determining at least one electricity consumption threshold value according to the first average value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold value;
and the second determining module is used for determining a target power consumption load level corresponding to the target time period of the object to be detected according to the at least one power consumption threshold value and the power consumption of the target time period.
An embodiment of a third aspect of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of determining a class of power usage load as described in the first aspect when the program is executed.
An embodiment of a fourth aspect of the present application proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements a method for determining a power consumption load level according to the first aspect.
An embodiment of a fifth aspect of the present application proposes a computer program product comprising a computer program which, when executed by a processor, implements a method for determining a class of electricity load according to the first aspect of the present application.
The technical scheme provided by the embodiment of the application at least has the following beneficial effects:
the power consumption load level of the object to be measured is determined according to at least one power consumption threshold value, wherein the at least one power consumption threshold value is determined in a targeted manner based on the statistical information of the power consumption data of the object to be measured in a plurality of time periods, and is not fixedly arranged, so that the accuracy and the rationality of a determination result can be improved. And on the basis of the statistical information of the electricity consumption data of the object to be measured in a plurality of time periods, the electricity consumption load level of the object to be measured is determined, so that the similar electricity consumption can be classified into the same electricity consumption load level, and the accuracy of the classification result is improved. And the power consumption of the object to be measured in at least one target period is not required to be forcedly divided into all power consumption load levels, so that the accuracy of the division result (namely the target power consumption load level) can be improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
Fig. 1 is a flow chart of a method for determining a power consumption load level according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating another method for determining a power load level according to an embodiment of the present application;
FIG. 8 is a schematic diagram of the power consumption situation within a set time window according to an embodiment of the present application;
fig. 9 is a schematic structural view of a power consumption load level determining apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural view of an electronic device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
At present, a clustering algorithm (such as a K-means clustering algorithm) can be adopted to cluster the electricity consumption data of the enterprise so as to obtain the daily electricity consumption load level of the enterprise. However, the K-means clustering algorithm suffers from at least the following drawbacks:
since the actual power consumption of the enterprise can not completely cover the existing 5 levels, the specific value of K should be difficult to determine. If K-means clustering is forcedly performed according to K=5, the clustering result is certainly different from the expected result, and the similar points (namely the daily electricity consumption) are easily classified into different grade categories.
For example, the electricity consumption of an enterprise is relatively stable for a long time, that is, the enterprise is relatively stable, for example, the electricity consumption load level of the enterprise is within low-level normal production, medium-level normal production or high-level normal production, in this case, if K is forcibly taken to 5, the K-means clustering algorithm can be forced to divide the situations of production stoppage and high-load production, so that a clustering result and an expected result have a large difference.
In order to solve at least one of the above problems, an embodiment of the present application provides a method, an apparatus, and an electronic device for determining a power consumption load level.
The method for determining the power consumption load level provided by the application is described in detail below with reference to fig. 1.
Fig. 1 is a flow chart of a method for determining a power consumption load level according to an embodiment of the present application.
The method for determining the power consumption load level according to the embodiment of the application can be executed by the device for determining the power consumption load level according to the embodiment of the application. The power consumption load level determining device can be applied to electronic equipment to execute a power consumption load level determining function. Alternatively, the determination means of the electricity load level may be configured in an application of the electronic device, so that the application may perform the determination function of the electricity load level.
The electronic device may be any device with computing power, and the device or an application in the device may be capable of performing a function of determining a power load level. The device with computing capability may be, for example, a personal computer, a mobile terminal, a server, etc., and the mobile terminal may be, for example, a vehicle-mounted device, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, etc., with various operating systems, a touch screen, and/or a hardware device of a display screen.
As shown in fig. 1, the method for determining the electricity load level includes the following steps:
step S101, obtaining electricity consumption data of an object to be detected; the electricity consumption data comprise at least one period of electricity consumption.
In the embodiment of the present application, the object to be measured refers to an object to be measured or to be determined of a power consumption load level, for example, the object to be measured may be an enterprise.
In the embodiment of the present application, the duration of the period is not limited, for example, the duration of the period may be half a day, 1 day, 2 days, 3 days, or the like.
In the embodiment of the application, the electricity consumption of the object to be detected can be monitored to obtain the electricity consumption data of the object to be detected, wherein the electricity consumption data can comprise the electricity consumption of at least one period. For example, with a period of 1 day, electricity consumption data may include daily electricity consumption for at least one day.
Step S102, a first mean value and a first standard deviation of at least one power consumption are obtained.
In the embodiment of the application, the first average value of the at least one power consumption can be calculated, and the first standard deviation of the at least one power consumption can also be calculated.
Step S103, determining at least one electricity consumption threshold according to the first mean value, the first standard deviation and the initial setting coefficient corresponding to the at least one electricity consumption threshold.
In the embodiment of the present application, the number of the power consumption threshold values is related to the number of the power consumption load levels set in advance, for example, the number of the power consumption threshold values=the number of the power consumption load levels-1.
For example, when the number of the power consumption load levels is 2, for example, the 2 power consumption load levels are respectively low-order production and high-order production, the number of the power consumption threshold values may be 1, and when the number of the power consumption load levels is greater than 2, for example, the number of the power consumption load levels is 5, for example, the 5 power consumption load levels are respectively shutdown, low-order production, medium-order normal production, high-order load production, and the number of the power consumption threshold values may be 4.
In an embodiment of the present application, at least one power usage threshold is used to determine corresponding power usage ranges of a plurality of power usage load levels.
In the embodiment of the application, the initial set coefficient corresponding to each power consumption threshold value is a preset coefficient or threshold value.
In the embodiment of the application, the at least one electricity consumption threshold value can be determined according to the first mean value, the first standard deviation and the initial setting coefficient corresponding to the at least one electricity consumption threshold value.
As an example, any of the power consumption threshold values may be determined, for example, as follows: the intermediate coefficient may be determined according to a product of an initial setting coefficient corresponding to the electricity consumption threshold and the first standard deviation, and the electricity consumption threshold may be determined according to a sum of the intermediate coefficient and the first average value, for example, the sum of the intermediate coefficient and the first average value may be used as the electricity consumption threshold.
Step S104, determining a target power consumption load level corresponding to the target period of the object to be tested according to at least one power consumption threshold value and the power consumption of the target period.
The target period may be any period of the at least one period in the step S101, or the target period may be any period located before the at least one period in the step S101, or the target period may be any period located after the at least one period in the step S101, which is not limited in this aspect of the present application.
The number of the target periods may be one or may be multiple, which is not limited by the embodiment of the present application.
In the embodiment of the application, the electricity consumption of the target period can be obtained, and the target electricity consumption load level of the object to be measured corresponding to the target period can be determined according to at least one electricity consumption threshold value and the electricity consumption of the target period.
As one possible implementation manner, the determination manner of the target electricity load level is, for example: corresponding electricity consumption ranges of a plurality of electricity consumption load levels can be determined according to at least one electricity consumption threshold value, and a target electricity consumption load level is determined from the plurality of electricity consumption load levels according to the electricity consumption of a target period and the electricity consumption ranges corresponding to the plurality of electricity consumption load levels; the power consumption of the target period is in the power consumption range corresponding to the target power consumption load level.
According to the method for determining the power consumption load level, the power consumption data of the object to be detected is obtained, and the first average value and the first standard deviation of each power consumption in the power consumption data are obtained; determining at least one electricity consumption threshold according to the first mean value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold; and determining a target power consumption load level corresponding to the object to be tested in the target period according to at least one power consumption threshold value and the power consumption of the target period. In summary, at least one electricity consumption threshold value is determined in a targeted manner based on the statistical information of the electricity consumption data of the object to be measured in a plurality of time periods, rather than being fixedly set, and the target electricity consumption load level of the object to be measured in the target time period is determined according to the determined electricity consumption threshold value, so that the accuracy and the rationality of the determination result can be improved. And based on the statistical information of the electricity consumption data of the object to be measured in a plurality of time periods, the target electricity consumption load level of the object to be measured in the target time period is determined, so that the similar electricity consumption can be classified into the same electricity consumption load level, and the accuracy of the classification result is improved. And the power consumption of the object to be measured in at least one target period is not required to be forcedly divided into all power consumption load levels, so that the accuracy of the division result (namely the target power consumption load level) can be improved.
In one possible implementation manner of the embodiment of the present application, when the number of the target periods is multiple, the reworking condition of the object to be measured may also be determined based on the target power consumption load levels of the object to be measured in the multiple target periods. The above process will be described in detail with reference to fig. 2.
Fig. 2 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 2, on the basis of the embodiment shown in fig. 1, after step S104, the method for determining a power consumption load level may further include the steps of:
step S201, encoding the target power consumption load levels of the multiple target periods to obtain encoded values of the target power consumption load levels in each target period, where the multiple target periods are located in at least two set time windows.
In the embodiment of the present application, the window length of the set time window is not limited, for example, the window length of the set time window may be determined according to the duration of holidays in the multiple target periods, for example, when the multiple target periods include 5.1 labor knots, the window length of the set time window may be 5 days, and when the multiple target periods include 10.1 national celebration knots, the window length of the set time window may be 7 days.
In the embodiment of the present application, the window lengths of at least two set time windows may be the same or may be different, which is not limited in the embodiment of the present application. For example, when a national festival is included in the plurality of target periods of 10.1, the window length of a set time window (hereinafter referred to as time window 1) including the national festival may be 7 days, the window length of a set time window (hereinafter referred to as time window 2) adjacent to the time window 1 may be determined according to the duration of the working day preceding the time window 1, or the window length of the time window 2 may be determined according to the duration of the working day following the time window 1.
In the embodiment of the application, the target power consumption load levels of a plurality of target time periods can be encoded based on the set encoding values corresponding to the power consumption load levels, so as to obtain the encoding values of the target power consumption load levels in the target time periods.
For example, assuming that the number of power consumption load levels is N, where N is a positive integer, the set code value corresponding to the power consumption load level of the lowest level may be 0, the set code value corresponding to the power consumption load level of the next lowest level may be 1, …, and the set code value corresponding to the power consumption load level of the highest level may be N-1.
For another example, assuming that the number of power consumption load levels is N, the set code value corresponding to the power consumption load level of the lowest level may be 1, the set code value corresponding to the power consumption load level of the next lowest level may be 2, …, and the set code value corresponding to the power consumption load level of the highest level may be N.
It should be noted that, the values of the set code values corresponding to the power consumption load levels are only illustrative, and in practical application, the set code values corresponding to the power consumption load levels may be other values, which are not limited in this disclosure, for example, the set code value corresponding to the lowest power consumption load level may be 2, the set code value corresponding to the next lowest power consumption load level may be 4, …, the set code value corresponding to the highest power consumption load level may be 2N, and so on, which are not specifically illustrated herein.
Step S202, determining the production state of the object to be measured in any set time window according to the coding value of each target time period in any set time window.
In embodiments of the present application, production conditions include, but are not limited to, in-production conditions, downtime conditions, rework conditions, and the like.
In the embodiment of the application, for any one of at least two set time windows, the production state of the object to be measured in the set time window can be determined according to the coding value of the target power consumption load level in each target period in the set time window.
Step S203, determining the reworking condition of the object to be tested according to the production states of the object to be tested in at least two set time windows.
In the embodiment of the application, the reworking condition of the object to be measured can be determined according to the production state of the object to be measured in at least two set time windows.
In one possible implementation manner of the embodiment of the present application, in the case that the number of the set time windows is two, it may be determined whether the production state of a first time window of the two set time windows is a shutdown state, if the production state of the first time window is the shutdown state, it is further determined whether the production state of a second time window of the two set time windows is a production state or a rework state, if the production state of the second time window is the production state or the rework state, it is determined that the rework condition of the object to be measured is rework and rework; wherein the first time window is located before the second time window.
And if the production state of the first time window is in the production state or the reworking state and/or the production state of the second time window is in the shutdown state, determining that the reworking condition of the object to be measured is not reworking and reworking.
In another possible implementation manner of the embodiment of the present application, in the case that the number of the set time windows is three, it may be determined whether the production state of a third time window in the three set time windows is in a production state, if the production state of the third time window is in a production state, it is further determined whether the production state of a fourth time window in the three set time windows is a shutdown state, if the production state of the fourth time window is a shutdown state, it is further determined whether the production state of a fifth time window in the three set time windows is a rework state, and if the production state of the fifth time window is a rework state, it is determined that the rework state of the object to be tested is a rework; wherein the fourth time window is located after the third time window and the fifth time window is located after the fourth time window.
If the production state of the third time window is not in the production state, and/or the production state of the fourth time window is not in the shutdown state, and/or the production state of the fifth time window is not in the rework state, determining that the rework condition of the object to be tested is not rework.
In still another possible implementation manner of the embodiment of the present application, in a case where the number of the set time windows is at least four, it may be determined whether the production state of a sixth time window in the at least four set time windows is in a production state or a rework state, if the production state of the sixth time window is in the production state or the rework state, it is determined whether the production state of at least one seventh time window is in a shutdown state, and if the production state of at least one seventh time window is in the shutdown state, it is determined that the rework situation of the object to be measured is rework; wherein the seventh time window is located before the sixth time window.
And if the production state of the sixth time window is in the shutdown state and/or the production state of the seventh time window is in the production state or the rework state, determining that the rework condition of the object to be tested is not rework.
Therefore, the reworking condition of the object to be tested can be effectively determined according to the specific production state in each set time window, so that the effectiveness and accuracy of reworking condition determination are improved.
The method for determining the electricity consumption load level can determine the reworking condition of the object to be measured based on the target electricity consumption load level of the object to be measured in a plurality of target time periods so as to meet the actual application requirements.
In order to clearly illustrate how the production state of the object to be measured is determined in step S202 in the above embodiment of the present application, the present application also provides a method for determining the power consumption load level.
Fig. 3 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 3, on the basis of the embodiment shown in fig. 1, after step S104, the method for determining a power consumption load level may further include the steps of:
step S301, encoding the target power consumption load levels of a plurality of target time periods to obtain encoded values of the target power consumption load levels in each target time period; wherein the plurality of target time periods are located within at least two set time windows.
The explanation of step S301 may be referred to the related description in any embodiment of the present application, and will not be repeated here.
Step S302, obtaining statistical information of the coding values in each target period in any set time window; wherein the statistical information includes at least one of a range, a second mean, a first code value, a last code value, and a median.
In the embodiment of the present application, for any one of at least two set time windows, the average value (the second average value in the present application) and the range of the code value in each target period in the set time window may be calculated.
And the first code value, the last code value and the median value in the code values in each target period in the set time window can be obtained, and at least one of the polar difference, the second average value, the first code value, the last code value and the median value is used as the statistical information of the code values in each target period in the set time window.
Step S303, according to the statistical information, determining the electricity fluctuation condition of the object to be tested in any set time window.
Wherein the electricity consumption wave condition includes at least one of: fluctuation amplitude, fluctuation position and fluctuation trend.
In the embodiment of the application, the electricity fluctuation condition of the object to be measured in the set time window can be determined according to the statistical information.
In one possible implementation manner of the embodiment of the present application, the determination manner of the electric wave dynamic condition is, for example:
1. and determining the fluctuation position according to the second average value.
As an example, the fluctuation position is determined to be low when the second average value is within the first value range, the fluctuation position is determined to be medium when the second average value is within the second value range, and the fluctuation position is determined to be high when the second average value is within the third value range.
The lower limit of the first value range is 0, and the upper limit of the first value range is a first target value, where the first target value is determined according to a difference between coding values corresponding to target power consumption load levels of two adjacent levels, for example, when the difference between coding values corresponding to target power consumption load levels of two adjacent levels is 1 (for example, a set coding value corresponding to a lowest level of power consumption load level is 0, a set coding value corresponding to a next lowest level of power consumption load level is 1, …, and a set coding value corresponding to a highest level of power consumption load level is N-1), the first target value may be 1.
The lower limit of the second value range is the first target value, and the upper limit of the second value range is the second target value, wherein the second target value is a first set multiple of the first target value.
The lower limit of the third value range is a second target value, the upper and lower values of the third value range are third target values, the third target value is a second set multiple of the first target value, and the second set multiple is larger than the first set multiple.
The first set multiple and the second set multiple are both positive integers, and the first set multiple and the second set multiple are related to the number of the power consumption threshold values, for example, when the number of the power consumption threshold values is 4, the first set multiple may be 3, and the second set multiple may be 4.
2. From the pole difference, the amplitude of the fluctuation is determined.
As an example, when the range is zero, the fluctuation width indicates that the electricity consumption fluctuation condition of the object to be measured within an arbitrarily set time window is smooth fluctuation, when the range is a first target value, the fluctuation width indicates that the electricity consumption fluctuation condition is small-amplitude change, and when the range is greater than or equal to a fourth target value, the fluctuation width indicates that the electricity consumption fluctuation condition is large-amplitude change.
The fourth target value is greater than the first target value and less than the second target value, for example, when the difference between the coding values corresponding to the target power consumption load levels of two adjacent levels is 1, the first target value may be 1, the second target value may be 3, the third target value may be 4, and the fourth target value may be 2.
3. And determining the fluctuation trend according to the first code value, the last code value and the median value.
In the embodiments of the present disclosure, the tendency of fluctuation may be determined from a plurality of the first code value, the last code value, and the median value.
As a possible implementation, the fluctuation trend may be determined according to the first code value, the last code value and the median value in case the fluctuation amplitude is indicated as small or large change.
As an example, the trend of the fluctuation may be determined to be rising when the target code value is smaller than the end target code value.
As another example, the trend of the fluctuation may be determined to be decreasing when the first target encoded value is greater than the last target encoded value.
As another example, the trend of the fluctuation may be determined to be decreasing before increasing when the median is smaller than both the first target code value and the last target code value.
As another example, the trend of fluctuation may be determined to be increasing and decreasing when the median is greater than both the first target code value and the last target code value.
As another example, the trend of the fluctuation may be determined to be the fluctuation when the median value is equal to the first target encoded value and the last target encoded value.
As another example, the trend of the fluctuation may be determined to continuously decrease when the first target code value is greater than the median value and the median value is greater than the last target code value.
As another example, the trend of the fluctuation may be determined to be continuously rising when the first target code value is smaller than the median value and the median value is smaller than the last target code value.
4. And determining the electricity fluctuation condition of the object to be tested in any set time window according to at least one of the fluctuation amplitude, the fluctuation position and the fluctuation trend.
In the embodiment of the disclosure, the electricity consumption fluctuation condition of the object to be measured in any set time window can be determined according to at least one of fluctuation amplitude, fluctuation position and fluctuation trend.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates stable fluctuation and the fluctuation position is low, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is low stable fluctuation.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates stable fluctuation and the fluctuation position is the median, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is the median stable fluctuation.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates stable fluctuation and the fluctuation position is high, it can be determined that the electricity fluctuation condition of the object to be measured in the set time window is high stable fluctuation.
In one possible implementation manner of the embodiment of the present application, when the fluctuation range indicates a small change, the fluctuation position is low, and the fluctuation trend is rising, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is low and small rising.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is the median, and when the fluctuation trend is the rise, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is the median rise small.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is high, and the fluctuation trend is rising, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is high and small rising.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is low, and the fluctuation trend is descending, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is low and small descending.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is a median, and the fluctuation trend is a decrease, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is a small decrease in median.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is high, and the fluctuation trend is descending, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is high and small descending.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is low, and the fluctuation trend is decreasing first and increasing second, it may be determined that the electric wave trend of the object to be measured in the set time window is decreasing first and increasing second.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is a median, and the fluctuation trend is decreasing first and increasing second, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is that the median is small decreasing first and increasing second.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates small change, the fluctuation position is high, and the fluctuation trend is decreasing first and increasing second, it can be determined that the electricity fluctuation condition of the object to be measured in the set time window is high, small and decreasing first and increasing second.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates small-amplitude change, the fluctuation position is low, and the fluctuation trend is increasing and decreasing, it can be determined that the power consumption fluctuation condition of the object to be measured in the set time window is low, small-amplitude and decreasing.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is a median, and the fluctuation trend is increasing and then decreasing, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is that the median is small increasing and then decreasing.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a small change, the fluctuation position is high, and the fluctuation trend is increasing and decreasing, it can be determined that the power consumption fluctuation condition of the object to be measured in the set time window is high, small and increasing and decreasing.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates small change, the fluctuation position is low, and the fluctuation trend is fluctuation, it can be determined that the electricity fluctuation condition of the object to be measured in the set time window is low small fluctuation.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a small change, the fluctuation position is a median, and the fluctuation trend is fluctuation, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is median small fluctuation.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates small change, the fluctuation position is high, and the fluctuation trend is fluctuation, the power consumption fluctuation condition of the object to be measured in the set time window can be determined to be high small fluctuation.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is low, and the fluctuation trend is continuously decreasing, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is that the low is continuously decreasing.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is a median, and the fluctuation trend is continuously decreasing, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is that the median is continuously decreasing greatly.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is high, and the fluctuation trend is continuously decreasing, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is high and continuously decreasing.
In one possible implementation manner of the embodiment of the present application, when the fluctuation range indicates a large change, the fluctuation position is low, and the fluctuation trend is continuously rising, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is that the low continuously rises.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is a median, and the fluctuation trend is continuously rising, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is that the median is continuously rising greatly.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is high, and the fluctuation trend is continuously rising, it may be determined that the power consumption fluctuation condition of the object to be measured in the set time window is high and continuously rising.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is low, and the fluctuation trend is decreasing first and increasing second, it can be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is low, and the fluctuation condition is low, and the fluctuation is high, decreasing first and increasing second.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is a median, and the fluctuation trend is decreasing before increasing, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is that the median is decreasing before increasing greatly.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is high, and the fluctuation trend is first decreasing and then increasing, it can be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is high, and the fluctuation condition is high, first decreasing and then increasing.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is low, and the fluctuation trend is increasing and decreasing, it can be determined that the electricity fluctuation condition of the object to be measured in the set time window is low, and the electricity fluctuation condition is large, increasing and decreasing.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is a median, and the fluctuation trend is increasing and then decreasing, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is that the median is greatly increasing and then decreasing.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is high, and the fluctuation trend is increasing and then decreasing, it can be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is high, increasing and then decreasing.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is low, and the fluctuation trend is fluctuation, it can be determined that the electricity fluctuation condition of the object to be measured in the set time window is low and large fluctuation.
In one possible implementation manner of the embodiment of the present application, when the fluctuation amplitude indicates a large change, the fluctuation position is a median, and the fluctuation trend is fluctuation, it may be determined that the electricity consumption fluctuation condition of the object to be measured in the set time window is the median large fluctuation.
In one possible implementation manner of the embodiment of the application, when the fluctuation amplitude indicates a large change, the fluctuation position is high, and the fluctuation trend is fluctuation, the electricity consumption fluctuation condition of the object to be measured in the set time window can be determined to be high and large fluctuation.
Step S304, according to the electric wave condition, determining the production state of the object to be tested in any set time window.
In embodiments of the present application, production conditions include, but are not limited to, in-production conditions, downtime conditions, rework conditions, and the like.
In the embodiment of the application, the production state of the object to be measured in the set time window can be determined according to the electric wave dynamic condition of the object to be measured in the set time window.
For example, the electric wave conditions corresponding to each production state can be preset, that is, the corresponding relation between the electric fluctuation conditions and the production states is set, so that in the application, the corresponding relation can be queried according to the electric fluctuation conditions of the object to be tested in the set time window so as to determine the production state of the object to be tested in the set time window.
In one possible implementation manner of the embodiment of the present application, the power consumption fluctuation situation corresponding to the occurrence state may include at least one of the following: the middle position is kept stable, the high position is kept stable, the middle position is slightly raised, the high position is slightly raised, the middle position is slightly lowered, the high position is slightly lowered, the middle position is greatly and continuously raised, the middle position is greatly and continuously lowered, the high position is greatly and continuously lowered, the middle position is greatly increased and reduced after the middle position is greatly increased, the middle position is slightly fluctuated, the high position is slightly fluctuated, the middle position is slightly increased and reduced after the middle position is greatly increased, the high position is slightly increased after the middle position is slightly increased, the high position is slightly increased, the middle position is slightly increased after the low position is slightly increased, or the high position is greatly fluctuated.
The low level means that the average value of the coding values in each target period in the set time window is in a first value range; the median is that the average value of the coding values in each target period in the set time window is in a second value range; the high bit means that the average value of the coding values in each target period in the set time window is in a third value range.
In summary, by enumerating all the electric wave conditions corresponding to the occurrence of the occurrence, the accuracy and reliability of the occurrence recognition can be improved.
In another possible implementation manner of the embodiment of the present application, the power consumption fluctuation condition corresponding to the shutdown state may include at least one of the following: low level stable fluctuation, low level small amplitude decline, low level continuous decline, middle level large amplitude continuous decline, low level large amplitude gradual decrease and then increase, middle level large amplitude gradual decrease and then increase, low level small amplitude gradual decrease and then increase, middle level small amplitude gradual decrease and then increase, low level small amplitude gradual increase and then decrease, low level small amplitude rise, middle level small amplitude rise, low level large amplitude rise, middle level large amplitude continuous decline, low level small amplitude fluctuation, middle level small amplitude decline, low level large amplitude fluctuation or middle level large amplitude fluctuation.
In summary, by listing all the power consumption wave conditions corresponding to the stalling state, the accuracy and reliability of the stalling state identification can be improved.
In still another possible implementation manner of the embodiment of the present application, the power consumption fluctuation condition corresponding to the reworking state may include at least one of the following: the method comprises the steps of stable middle position fluctuation, stable high position fluctuation, small middle position rising, large low position rising continuously, large middle position rising continuously, large high position rising continuously, large middle position rising and then decreasing, large high position rising and decreasing, large middle position decreasing and decreasing, large high position decreasing and increasing, small middle position decreasing and high position decreasing.
In summary, by enumerating all the power consumption wave conditions corresponding to the reworking state, accuracy and reliability of reworking state identification can be improved.
Step S305, determining the reworking condition of the object to be tested according to the production states of the object to be tested in at least two set time windows.
The explanation of step S305 can be found in the description of any embodiment of the present application.
The method for determining the power consumption load level can determine the power consumption fluctuation condition in the set time window based on the statistical information of the coding values in each target time period in the set time window, so that the effectiveness and the accuracy of power consumption wave condition determination are improved.
In order to clearly explain how to determine at least one power consumption threshold according to the first mean, the first standard deviation and the initial setting coefficient corresponding to the at least one power consumption threshold in step S103 in the above embodiment of the present application, the present application also provides a method for determining the power consumption load level.
Fig. 4 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 4, step S102 may include the following steps, based on the embodiment shown in fig. 1:
In step S401, an initial average value and an initial standard deviation of at least one power consumption are obtained.
In the embodiment of the present disclosure, the average value of each of the amounts of electricity used (referred to as initial average value in the present application) may be calculated, and the standard deviation of each of the amounts of electricity used (referred to as initial standard deviation in the present application) may also be calculated.
Step S402, determining a reference value range according to the third set multiple, the initial standard deviation and the initial mean value. In the embodiment of the present application, the third set multiple is a preset multiple or a threshold, for example, the third set multiple may be 3.
In one possible implementation manner of the embodiment of the present application, the reference value may be determined according to a product of the third set multiple and the initial standard deviation, and the reference value range may be determined according to the initial average value and the reference value. For example, the upper limit of the reference range may be: the initial mean + reference value, the lower limit of the reference value range may be: initial mean-reference value.
It should be noted that, when the electricity consumption of the object to be measured in each period is relatively stable or stable, the initial standard deviation has a smaller value, and according to the initial standard deviation with the smaller value, the threshold value of each electricity consumption is calculated, which may cause inaccurate identification of the load level of the target electricity consumption corresponding to the object to be measured in the target period.
Therefore, in view of the above problem, in one possible implementation manner of the embodiment of the present application, before step S402, a first reference value may be determined according to a product of the first set proportion and the initial average value, and it is determined whether the initial standard deviation is greater than or equal to the first reference value, where step S402 may be performed when the initial standard deviation is greater than or equal to the first reference value.
The first set proportion is a preset proportion coefficient, for example, the first set proportion may be 10%.
In the case where the initial standard deviation is smaller than the first reference value, the initial standard deviation may be updated according to the first reference value, for example, the first reference value may be assigned to the initial standard deviation.
Therefore, under the condition that the initial standard deviation is larger than or equal to the first reference value, the electricity consumption of the object to be measured in each period is not in a stable state or a steady state, at this time, the threshold value of each electricity consumption is determined according to the initial standard deviation with relatively larger value, and the distinguishing degree of the threshold value of each electricity consumption can be improved, so that the accuracy of the identification of the target electricity consumption load level of the object to be measured in the target period is improved, the situation that the threshold value of each electricity consumption is not easy to distinguish due to the fact that the threshold value of each electricity consumption is calculated according to the initial standard deviation with relatively smaller value is avoided, and under the condition that the initial standard deviation is smaller than the first reference value, the accuracy of the identification of the target electricity consumption load level of the object to be measured in the target period can be improved.
Step S403, screening the electricity consumption of at least one period according to the reference value range to obtain each reserved electricity consumption in the reference value range.
In the embodiment of the application, the power consumption of at least one period can be screened according to the reference value range so as to filter abnormal power consumption and keep normal power consumption, wherein the normal power consumption is in the reference value range.
Step S404, determining a first average value according to the average value of the reserved power consumption, and determining a first standard deviation according to the standard deviation of the reserved power consumption.
In the embodiment of the present application, the average value of each reserved power consumption (denoted as a first average value in the present application) may be calculated, and the standard deviation of each reserved power consumption (denoted as a first standard deviation in the present application) may also be calculated.
It should be noted that, under the condition that each reserved power consumption is relatively stable or stable, the value of the first standard deviation is smaller, and according to the first standard deviation with smaller value, each power consumption threshold value is calculated, which may cause that each power consumption threshold value is not easy to distinguish, and cause the condition that the target power consumption load level corresponding to the target time period of the object to be detected is not accurately identified.
And under the condition that the difference between the highest value and the lowest value in each reserved power consumption is large, and the first standard deviation is large, calculating the power consumption threshold value according to the first standard deviation with large value, and possibly causing inaccurate identification of the target power consumption load level corresponding to the target time period of the object to be detected.
Thus, in one possible implementation manner of the embodiment of the present application, for the above problem, for step S404, a specific calculation manner of the first standard deviation may be:
determining a second reference value according to the product of the average value of the reserved power consumption and a second set proportion, and determining a third reference value according to the product of the average value of the reserved power consumption and a third set proportion; the third setting proportion is greater than the second setting proportion, for example, the third setting proportion may be 30%, and the second setting proportion may be 10%. And then, judging whether the standard deviation of each reserved power consumption is larger than or equal to the second reference value and smaller than or equal to the third reference value, and indicating that the standard deviation of each reserved power consumption is proper when the standard deviation of each reserved power consumption is larger than or equal to the third reference value and smaller than or equal to the fourth reference value, wherein the standard deviation of each reserved power consumption can be used as the first standard deviation.
And when the standard deviation of each reserved power consumption is smaller than the second reference value, the standard deviation of each reserved power consumption is indicated to be smaller, and at this time, the first standard deviation can be determined according to the second reference value, for example, the second reference value can be used as the first standard deviation. Alternatively, when the standard deviation of each reserved power consumption is larger than the third reference value, it is indicated that the standard deviation of each reserved power consumption is larger, and at this time, the first standard deviation may be determined based on the third reference value, for example, the third reference value may be used as the first standard deviation.
Therefore, when the standard deviation of each reserved power consumption is larger than or equal to the second reference value and smaller than or equal to the third reference value, the standard deviation of each reserved power consumption is indicated to be proper, at this time, the power consumption threshold values are determined according to the standard deviation of each reserved power consumption, the situation that each power consumption threshold value is not easy to distinguish or the value of each power consumption threshold value is large, and the target power consumption load level corresponding to the target period of a subsequent object to be detected is not accurately identified can be avoided, and when the standard deviation of each reserved power consumption is smaller than the second reference value, the power consumption threshold values are determined according to the second reference value, the regional division of each power consumption threshold value can be improved, so that the accuracy of subsequent identification can be improved, or when the standard deviation of each reserved power consumption is larger than the third reference value, the power consumption threshold values are determined according to the third reference value, and the accuracy of the target power consumption load level corresponding to the subsequent object to be detected can be improved.
The method for determining the power consumption load level can screen abnormal power consumption in each power consumption, so that the threshold value of each power consumption is determined according to the standard deviation and the average value of reserved non-abnormal power consumption, and the reliability and the rationality of determining the threshold value of the power consumption can be improved.
In order to clearly explain how to determine the target power consumption load level of the object to be measured corresponding to the target period according to the at least one power consumption threshold value and the power consumption of the target period in step S104 in the above embodiment of the present application, the present application also provides a method for determining the power consumption load level.
Fig. 5 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 5, on the basis of any of the above embodiments, step S104 may include the steps of:
step S501, determining a power consumption range corresponding to a plurality of power consumption load levels according to at least one power consumption threshold.
In the embodiment of the application, the power consumption ranges corresponding to the power consumption load levels can be determined according to at least one power consumption threshold value.
As an example, when the number of power consumption load levels is 2, for example, the number of power consumption load levels is respectively illustrated as low-level production and high-level production, the number of power consumption threshold values may be 1, and the marking power consumption threshold value is a, then there is:
a=mean 1 +r*std 1
Wherein r is an initial setting coefficient corresponding to a. mean 1 Representing the first mean value, std 1 Representing a first standard deviation.
The power usage range corresponding to the lowest power usage load level (i.e., low-order production) among the 2 power usage load levels may be 0, a, the power usage range corresponding to the highest power usage load level (i.e. high-order production) may be a, ++ infinity A kind of electronic device.
As another example, with the number of power consumption load levels being 5, the 5 power consumption load levels are respectively for stopping production, normal production at low level, normal production at middle level, normal production at high level, and high load production, the number of power consumption threshold values is 4, the 4 power consumption threshold values are respectively a1, a2, a3, and a4, assuming that the initial setting coefficient corresponding to a1 is-1.2, the initial setting coefficient corresponding to a2 is-0.3, the initial setting coefficient corresponding to a3 is +0.5, and the initial setting coefficient corresponding to a2 is +1.5, then:
a1=mean 1 -1.2*std 1
a2=mean 1 -0.3*std 1
a3=mean 1 +0.5*std 1
a4=mean 1 +1.5*std 1
the power consumption range corresponding to the lowest power consumption load level (i.e., shutdown) among the 5 power consumption load levels may be [0, a 1), the power consumption range corresponding to the next lowest power consumption load level (i.e., low normal production) may be [ a1, a 2), and so on, the power consumption range corresponding to the middle normal production may be [ a2, a 3), the power consumption range corresponding to the high normal production may be [ a3, a 4), and the power consumption range corresponding to the high load production may be [ a4, + +..
Step S502, determining a target power consumption load level from a plurality of power consumption load levels according to the power consumption of the target period and the power consumption ranges corresponding to the plurality of power consumption load levels; the power consumption of the target period is in the power consumption range corresponding to the target power consumption load level.
In the embodiment of the application, the target power consumption load level can be determined from the plurality of power consumption load levels according to the power consumption of the target period and the power consumption ranges corresponding to the plurality of power consumption load levels; the power consumption of the target period is in the power consumption range corresponding to the target power consumption load level.
That is, the power consumption of the target period may be compared with the corresponding power consumption ranges of the plurality of power consumption load levels, and if the power consumption of the target period is within the corresponding power consumption range of a certain power consumption load level, the power consumption load level may be used as the target power consumption load level of the object to be measured corresponding to the target period.
According to the method for determining the power consumption load level, the power consumption ranges corresponding to the power consumption load levels are determined according to the power consumption threshold values, the target power consumption load level of the object to be measured in the target period is determined based on the power consumption ranges of the power consumption load levels, and the effectiveness and the rationality of determining the target power consumption load level can be improved.
In any one embodiment of the application, after determining the power consumption threshold values, at least one power consumption threshold value in the power consumption threshold values can be further modified to improve the accuracy of determining the target power consumption load level corresponding to the target time period of the object to be tested. The above process will be described in detail with reference to fig. 6.
Fig. 6 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 6, on the basis of any of the above embodiments, after step S103, the method for determining a power consumption load level may further include the steps of:
step S601, determining initial power consumption ranges corresponding to the power consumption load levels according to at least one power consumption threshold.
The explanation of step S601 may be referred to the related description of step S501 in the above embodiment, and the implementation principle is similar, which is not repeated here.
In step S602, for at least one power consumption load level of the plurality of power consumption load levels, a target power consumption within an initial power consumption range of the at least one power consumption load level is determined from the respective power consumption.
In the embodiment of the present disclosure, for at least one power consumption load level of the plurality of power consumption load levels, a target power consumption located in an initial power consumption range corresponding to the at least one power consumption load level may be determined from each power consumption (or reserved power consumption).
Step S603, adjusting at least one electricity consumption threshold according to the amount of target electricity consumption in the initial electricity consumption range of the at least one electricity consumption load level.
In an embodiment of the present disclosure, for any one of the at least one power consumption load level, the at least one power consumption threshold value may be adjusted according to the amount of the target power consumption within the initial power consumption range of the power consumption load level.
For example, the total amount of each electricity consumption may be counted, the ratio of the total amount to the total amount may be calculated, and at least one electricity consumption threshold may be adjusted when the ratio exceeds a set ratio threshold.
In one possible implementation manner of the embodiment of the present application, the manner of adjusting the at least one electricity consumption threshold value is, for example:
1. for a first power consumption load level with the highest level of the power consumption load levels, determining target power consumption in an initial power consumption range corresponding to the first power consumption load level from all power consumption (or all reserved power consumption).
In the embodiment of the present application, for the first power consumption load level with the highest level among the plurality of power consumption load levels (for example, taking the example in step S501 as an example, the first target power consumption level may be high-order production in 2 levels or high-load production in 5 levels), the target power consumption in the initial power consumption range corresponding to the first power consumption load level may be determined from each power consumption (or each reserved power consumption).
2. And acquiring the ratio of the number of target electricity consumption in the initial electricity consumption range corresponding to the first electricity consumption load level to the total number of each electricity consumption.
In the embodiment of the present application, the number of target electricity consumption amounts within the initial electricity consumption amount range corresponding to the first electricity consumption amount load level may be counted, the total amount of each electricity consumption amount (or each reserved electricity consumption amount) may be counted, and the ratio of the number to the total amount, that is, the ratio=number/total amount may be calculated.
3. And under the condition that the duty ratio is higher than the set duty ratio threshold value, the first power threshold value in the at least one power consumption threshold value is increased.
In the embodiment of the present application, the set duty ratio threshold is a preset duty ratio threshold, for example, the set duty ratio threshold may be 10%.
In the embodiment of the application, the first electric quantity threshold value is used for determining an initial electric quantity range corresponding to the first electric quantity load level and determining an initial electric quantity range corresponding to the previous level of the first electric quantity load level.
It should be noted that, the number of the power consumption load levels is 5, and the 5 power consumption load levels are respectively stopping production, low-level normal production, middle-level normal production, high-level normal production, and high-load production, and in an actual application scenario, the object to be tested (such as an enterprise) may be stopped producing in a higher proportion, but not producing in a high proportion, that is, the number or times that the power consumption of the object to be tested belongs to the highest power consumption load level is not more, for example, the object to be tested produces in a high load with a small probability. Based on this, in the embodiment of the present application, it may be determined whether the above duty ratio is higher than the set duty ratio threshold, if not, it indicates that the value of the first power threshold is appropriate, at this time, any processing may not be performed, if yes, it indicates that the power consumption threshold corresponding to the power consumption load level of the highest level (i.e., the first power threshold may be a4 in step S501) is set too low, so in the present application, the first power threshold in at least one power consumption threshold may be adjusted to be high.
For example, the first power consumption threshold value may be gradually increased according to an adjustment step with a relatively smaller value until the ratio of the number of target power consumption amounts in the power consumption amount range corresponding to the first power consumption amount load level of each power consumption amount (or each reserved power consumption amount) to the total number of each power consumption amount (or each reserved power consumption amount) is smaller than or equal to the set ratio threshold value.
The method for determining the power consumption load level can update the power consumption threshold value when the value of the power consumption threshold value is unreasonable, so that the accuracy of determining the target power consumption load level corresponding to the target period of the subsequent object to be detected is improved.
In any one embodiment of the application, after determining the power consumption threshold values, at least one power consumption threshold value in the power consumption threshold values can be further modified to improve the accuracy of determining the target power consumption load level corresponding to the target time period of the object to be tested. The above process will be described in detail with reference to fig. 7.
Fig. 7 is a flowchart of another method for determining a power consumption load level according to an embodiment of the present application.
As shown in fig. 7, on the basis of any of the above embodiments, after step S103, the method for determining a power consumption load level may further include the steps of:
Step S701, determining whether the power consumption threshold is smaller than the corresponding set value.
In the embodiment of the disclosure, each power consumption threshold value may have a corresponding set value.
In the embodiment of the present disclosure, it may be determined whether each power consumption threshold is smaller than the corresponding set value, where in the case that each power consumption threshold is not smaller than the corresponding set value, adjustment may not be required for each power consumption threshold, and in the case that there is a power consumption threshold smaller than the corresponding set value in each power consumption threshold, step S702 may be executed.
In step S702, when at least one power consumption threshold is smaller than the corresponding set value, the initial setting coefficient corresponding to each power consumption threshold is adjusted.
In the embodiment of the application, when at least one electricity consumption threshold value is smaller than the corresponding set value, the initial setting coefficient corresponding to each electricity consumption threshold value can be adjusted, so that each electricity consumption threshold value is recalculated according to the adjusted initial setting coefficient, the first average value and the first standard deviation.
In one possible implementation manner of the embodiment of the present disclosure, an adjustment manner of an initial setting coefficient corresponding to each power consumption threshold value is, for example:
1. For a second power consumption threshold value in the at least one power consumption threshold value, whether the second power consumption threshold value is smaller than a corresponding set value can be judged.
The set value corresponding to the second electricity consumption threshold value can be a preset relatively smaller value. For example, the set value corresponding to the second power consumption threshold may be 0.
It should be noted that, for the second power consumption threshold value of the at least one power consumption threshold value, the second power consumption threshold value is used for determining a power consumption range corresponding to a second power consumption load level with a lowest level among the plurality of power consumption load levels, and is used for determining a power consumption range corresponding to a power consumption load level with a next lowest level among the plurality of power consumption load levels (i.e., a next level of the second power consumption load level), for example, the second power consumption threshold value may be a1 in step S501, and when the second power consumption threshold value is very small, it may result in that a situation that the power consumption of the object to be measured in the target period is classified as the second power consumption load level does not occur.
Therefore, in the embodiment of the present application, for the above situation, it may be determined whether the second power consumption threshold is smaller than the corresponding set value, if so, it indicates that the value of the second power consumption threshold is too small, at this time, a subsequent step may be executed, if not, it indicates that the value of the second power consumption threshold is suitable, and therefore, updating of the second power consumption threshold may not be required.
2. And under the condition that the second electricity consumption threshold value is smaller than the corresponding set value, updating the initial set coefficient corresponding to the second electricity consumption threshold value according to the first preset coefficient.
The first preset coefficient is a preset coefficient, for example, the first preset coefficient may be 0.2.
For example, when the second power consumption threshold is smaller than the corresponding set value, the first preset coefficient may be assigned to the initial set coefficient corresponding to the second power consumption threshold, so as to obtain the updated initial set coefficient corresponding to the second power consumption threshold. Therefore, in the application, the second electricity consumption threshold value can be updated according to the product of the updated initial setting coefficient corresponding to the second electricity consumption threshold value and the first average value. For example, the product of the updated initial setting coefficient corresponding to the second power consumption threshold value and the first average value may be used as the updated second power consumption threshold value.
3. And updating the initial setting coefficient corresponding to the third electricity consumption threshold value in the at least one electricity consumption threshold value according to the second preset coefficient.
The second preset coefficient is also a preset coefficient, and the second preset coefficient is greater than the first preset coefficient, for example, the second preset coefficient may be 0.65.
The third power consumption threshold is used to determine a power consumption range corresponding to a next level of the second power consumption load level (referred to as a third power consumption load level in the present application), and is used to determine a power consumption range corresponding to a next level of the third power consumption load level, for example, the third power consumption threshold may be a2 in step S501.
In the embodiment of the present application, the initial setting coefficient corresponding to the third electric quantity threshold value may be updated according to the second preset coefficient, for example, the second preset coefficient may be assigned to the initial setting coefficient corresponding to the third electric quantity threshold value, so as to obtain the updated initial setting coefficient corresponding to the third electric quantity threshold value.
Therefore, in the application, the third electric quantity threshold value can be updated according to the product of the updated initial setting coefficient corresponding to the third electric quantity threshold value and the first average value, for example, the product of the updated initial setting coefficient corresponding to the third electric quantity threshold value and the first average value can be used as the updated third electric quantity threshold value.
The method for determining the power consumption load level can update the power consumption threshold value when the value of the power consumption threshold value is unreasonable, so that the accuracy of determining the target power consumption load level corresponding to the target period of the subsequent object to be detected is improved.
In any one embodiment of the present application, the method for determining a power consumption load level according to any one embodiment of the present application is used to improve the problem of disorder of a clustering result when the coverage range of actual power consumption data cannot completely cover all preset power consumption load levels in a conventional clustering algorithm.
In the application, from the statistical perspective, at least one electricity consumption threshold value is given by adopting the mean value and the variance, so that the high and low electricity consumption load levels are defined more reasonably. Specifically, the method provided by the application fuses the processing of abnormal data, adjusts parameters according to the mean value and the variance and combines the actual conditions, and the final form is as follows: and sequentially inputting electricity consumption data of the same object to be tested in a period of time, and giving at least one electricity consumption threshold value for dividing a plurality of electricity consumption load levels. The number of the power consumption load levels is 5, and the power consumption load levels are respectively: the method provided by the application mainly comprises the following steps:
1. According to the input electricity consumption data 0 Mean is calculated 0 And standard deviation std 0
2. If standard deviation std 0 Less than mean 0 10% of std 0 According to mean 0 Calculated as 10%. The purpose of this step is to deal with the case where the calculated standard deviation is too small when the respective electricity consumption amounts in the electricity consumption data are extremely stable.
3. At-use electricity data l 0 In, a mean is identified 0 Plus or minus 3 times std 0 Other values, considered as outliers (i.e., abnormal amounts of electricity used), may discard these abnormal amounts of electricity used. The reserved power consumption is denoted as l 1 . By l 1 Again, the mean and standard deviation were counted and recorded as mean 1 And std 1 . Recalculating mean 1 And std 1 The purpose of (2) is to remove the influence of abnormal points on the statistical index.
4. If standard deviation std 1 Less than mean 1 10% of std 1 According to mean 1 Is calculated (the purpose of this step is to handle the calculation at l 1 In the case that the respective electricity consumption amounts are extremely stable, the calculated standard deviation is too small); if standard deviation std 1 Greater than mean 1 30% of std 1 According to mean 1 Is calculated (the purpose of this step is to handle the calculation at l 1 In the case where the difference in height between the respective amounts of electricity is large, the calculated standard deviation is excessively large).
5. According to mean 1 、std 1 And 4 initial setting coefficients (which can be adjusted according to actual conditions) to generate initial electricity consumption threshold values a1, a2, a3 and a4. Such as:
a1=mean 1 -1.2*std 1
a2=mean 1 -0.3*std 1
a3=mean 1 +0.5*std 1
a4=mean 1 +1.5*std 1
6. if the duty ratio of the electricity consumption belonging to high-load production is found to be higher than the set duty ratio threshold (such as 10%), the value of a4 is continuously increased by smaller adjustment steps until l 1 The numerical counting proportion exceeding a4 in each power consumption in the system is within 10% of the total data. The purpose of this step is to handle situations where in practical application scenarios, a high proportion of production stalls may occur, but a very high proportion of high load production is not possible. If the identified proportion of high load production is too high, it is indicated that the threshold value of the power consumption corresponding to the high load production is set too low.
7. In some cases, if the calculated a1 value is smaller than the set value (e.g., 0), the classification will result in no shutdown, and therefore, the value of a1 needs to be adjusted. For example, once the a1 value is smaller than the set value, the method is performed according to mean 1 The a1 and a2 values are recalculated, such as:
a1=0.2*mean 1
a2=0.65*mean 1
8. according to the final a1, a2, a3 and a4, for l 0 The power consumption of the power supply system is classified, for example:
class to which the power consumption amount smaller than a1 belongs: stopping production;
the power consumption amount of a1 or more and a2 or less belongs to the category: normal production of low position;
The power consumption amount of a2 or more and a3 or less belongs to the category: normal production of the middle position;
the power consumption amount of a3 or more and a4 or less belongs to the category: normal production of high position;
class to which the electricity consumption amount of a4 or more belongs: high load production.
9. And judging whether to re-process and re-produce the power after the holiday of the enterprise by using the classification result of each power consumption.
9.1, encoding the classification result determined in the step 8 by using a numerical value, for example, taking a difference between encoding values corresponding to two adjacent power consumption load levels as 1 as an example, there are:
0: stopping production;
1: normal production of low position;
2: normal production of the middle position;
3: normal production of high position;
4: high load production;
and 9.2, defining a set time window. The set time window is determined according to holiday or target section length, for example, for a primordial day, mid-autumn festival, qing Ming festival, and noon festival, the window length of the set time window may be set to 3 days, for a quintic festival, the window length of the set time window may be set to 5 days, and for a national festival and spring festival, the window length of the set time window may be set to 7 days (for example, when the number of set time windows is 3, the 3 set time windows are respectively 9 months 24 to 9 months 30 days, 10 months 1 to 10 months 7 days, and 10 months 8 to 10 months 14 days).
And 9.3, calculating key indexes of electricity consumption in each set time window. These indices include the range r, the mean u, the first day's code value x_first, the middle day's code value x_mid, and the last day's code value x_last.
And 9.4, judging the electricity fluctuation condition in each set time window according to the judging rule.
An enumeration of power consumption fluctuations is defined. The enumerated values combine the mean u (high, medium, low), the range r (steady fluctuation, small change, large change), the trend of fluctuation (steady, continuous rise, continuous fall, decrease first, increase second, increase first, decrease second). Wherein the fluctuation trend change may not be subdivided when the range indicates a stationary fluctuation.
Judging the fluctuation range of electricity consumption in the set time window according to the range r in the set time window;
judging the fluctuation position of electricity consumption in the set time window according to the average value u in the set time window;
and judging the fluctuation trend of electricity consumption in the set time window according to the magnitude relation of the code value x_first of the first day, the code value x_mid of the middle day and the code value x_last of the last day in the set time window.
As an example, the electricity consumption fluctuation condition within the set time window may be as shown in fig. 8.
The specific judgment rule may be as follows:
1) If the range r=0, (the fluctuation amplitude is a smooth fluctuation);
if 0<u is less than or equal to 1, the electric wave condition of the then is low-order stable fluctuation;
if 1<u is less than or equal to 3, the electric wave used by the system has stable fluctuation of the middle position;
if 3<u is less than or equal to 4, the electric wave used by the system has high-order stable fluctuation;
2) If the range r=1, (the fluctuation amplitude is a small change);
2-1) if x_first < x_last, the case of the electric wave for the th is slightly raised;
if 0<u is less than or equal to 1, the electricity fluctuation condition of the system is low-level and slightly increased;
if 1<u is less than or equal to 3, the electric wave used by the sun is slightly raised in the middle position;
if 3<u is less than or equal to 4, the electric wave condition of the ten is high-level and small-amplitude rising;
2-2) if x_first > x_last, the power consumption fluctuation condition is reduced slightly;
if 0<u is less than or equal to 1, the electricity fluctuation condition of the system is low-level small-amplitude drop;
if 1<u is less than or equal to 3, the electric wave used by the sun is slightly lowered in the middle position;
if 3<u is less than or equal to 4, the electric wave used by the system is in high-level small-amplitude descending;
2-3) if x_mid=min (x_first, x_mid, x_last) and x_first > x_mid and x_mid < x_last, the case of the electric wave is small-amplitude first-decrease and Then-increase;
if 0<u is less than or equal to 1, the electricity fluctuation condition of the system is low-level small amplitude and is firstly reduced and then increased;
if 1<u is less than or equal to 3, the medium-small amplitude is firstly reduced and then increased under the condition of the electric wave of the then;
if 3<u is less than or equal to 4, the electric wave used by the system is high-order small-amplitude first reduced and then increased;
2-4) if x_mid=min (x_first, x_mid, x_last) and x_first < x_mid and x_mid > x_last, the case of the electric wave dynamics is small-amplitude first increase and Then decrease;
if 0<u is less than or equal to 1, and the electricity fluctuation condition of the system is low-level small amplitude increasing and then subtracting;
if 1<u is less than or equal to 3, the medium-small amplitude is increased and then decreased under the condition of using electric waves;
if 3<u is less than or equal to 4, the electric wave dynamic condition of the men is that the high-order small amplitude is increased and then reduced;
2-5) if x_first=x_mid=x_last, the case of the electric wave fluctuation is small;
if 0<u is less than or equal to 1, and the electricity fluctuation condition of the system is low-level small-amplitude fluctuation;
if 1<u is less than or equal to 3, the electric wave used by the system has medium-position small fluctuation;
if 3<u is less than or equal to 4, the electric wave used by the system has high-level small-amplitude fluctuation;
3) If the range r is more than or equal to 2, (the fluctuation condition is greatly changed);
3-1) if x_first > x_mid > x_last, the electric wave active condition is largely and continuously descending;
if 0<u is less than or equal to 1, the electric wave used by the system is in low level and continuously descends to a large extent;
if 1<u is less than or equal to 3, the medium position is greatly and continuously lowered under the condition of using electric waves;
if 3<u is less than or equal to 4, the electric wave used by the system is in high level and continuously descends;
3-2) if x_first < x_mid < x_last, the electric wave active condition is largely and continuously rising;
if 0<u is less than or equal to 1, the electric wave condition of the ten is that the lower position is greatly and continuously increased;
if 1<u is less than or equal to 3, the medium position continuously rises under the condition of using electric waves;
if 3<u is less than or equal to 4, the electric wave condition of the ten is high-level and continuously rises;
3-3) if x_mid=min (x_first, x_mid, x_last) and x_first > x_mid and x_mid < x_last, the case of the electric wave is largely decreasing and increasing;
if 0<u is less than or equal to 1, the electric wave used by the system is greatly reduced and increased at low level;
if 1<u is less than or equal to 3, the electricity fluctuation condition of the men is that the median is greatly reduced and then increased;
if 3<u is less than or equal to 4, the electric wave used by the system is greatly reduced and increased at high level;
3-4) if x_mid=min (x_first, x_mid, x_last) and x_first < x_mid and x_mid > x_last, the case of the electric wave dynamics is largely increasing and Then decreasing;
if 0<u is less than or equal to 1, the electric wave dynamic condition of the ten is low-order and greatly increased and then reduced;
if 1<u is less than or equal to 3, the electricity fluctuation condition of the men is that the median is greatly increased and then reduced;
if 3<u is less than or equal to 4, the electric wave dynamic condition of the men is that the high level is greatly increased and then reduced;
3-5) if x_first=x_mid=x_last, the wave in the case of the electricity waves fluctuates greatly;
if 0<u is less than or equal to 1, the electric wave condition of the ten is low-order and greatly fluctuates;
if 1<u is less than or equal to 3, the electric wave used by the system has the medium position greatly fluctuated;
if 3<u is less than or equal to 4, the electric wave used by the sun is in high-order and greatly fluctuated.
And 9.5, judging whether the object to be tested is reworked and reproduced according to the electric wave dynamic condition.
For example, the number of the set time windows is 3 for illustration, the production states of the front, middle and rear time windows can be determined according to the electricity fluctuation conditions of the front, middle and rear time windows, and whether the object to be tested is reworked or not can be judged in a linkage manner according to the production states of the three set time windows.
For example, when the production state of the first time window (before) is in the production state, the production state of the second time window (in) is in the shutdown state, and the production state of the third time window (after) is in the rework state, it can be determined that the object to be measured is in the rework. The electricity consumption fluctuation conditions corresponding to the production states can be shown in table 1.
Electric wave movement condition corresponding to production state of watch 1
In summary, compared with the traditional clustering algorithm, the method provided by the application omits the link of manually designating k classes, and each power consumption is finally divided into several classes, so that each statistical value of the power consumption data of the object to be tested is more depended on, and the method is more reasonable.
Corresponding to the method for determining the power consumption load level provided in the above embodiments, an embodiment of the present application further provides a device for determining the power consumption load level. Since the determining device for the power consumption load level provided by the embodiment of the present application corresponds to the determining method for the power consumption load level provided by the above embodiments, implementation manners of the determining method for the power consumption load level are also applicable to the determining device for the power consumption load level provided by the embodiment, and will not be described in detail in the embodiment.
Fig. 9 is a schematic structural view of a power consumption load level determining apparatus according to an embodiment of the present application.
As shown in fig. 9, the power load level determining apparatus 900 may include: a first acquisition module 901, a second acquisition module 902, a first determination module 903, and a second determination module 904.
The first acquiring module 901 is configured to acquire electricity data of an object to be tested; the electricity consumption data comprise at least one period of electricity consumption.
A second obtaining module 902 is configured to obtain a first average value and a first standard deviation of at least one power consumption.
The first determining module 903 is configured to determine at least one power consumption threshold according to the first average value, the first standard deviation, and an initial setting coefficient corresponding to the at least one power consumption threshold.
The second determining module 904 is configured to determine, according to at least one power consumption threshold and a power consumption of the target period, a target power consumption load level of the object to be measured corresponding to the target period.
As a possible implementation manner of the embodiment of the present application, the determining device 900 for a power consumption load level may further include:
and the coding module is used for coding the target power consumption load level of each target period to obtain a coding value of the target power consumption load level in each target period.
And the third determining module is used for determining the production state of the object to be tested in any set time window according to the coding value of each target time period in any set time window.
And the fourth determining module is used for determining the reworking condition of the object to be tested according to the production states of the object to be tested in at least two set time windows.
As a possible implementation manner of the embodiment of the present application, the third determining module is specifically configured to: acquiring statistical information of the coding values in each target period in any set time window; the statistical information comprises at least one of a range, a second average value, a first code value, a last code value and a median value; according to the statistical information, determining the electricity fluctuation condition of the object to be tested in any set time window; wherein the electricity consumption wave condition includes at least one of: fluctuation amplitude, fluctuation position and fluctuation trend; and determining the production state of the object to be measured in any set time window according to the electric wave condition.
As a possible implementation manner of the embodiment of the present application, the third determining module is specifically configured to: determining the fluctuation amplitude according to the range; determining a fluctuation position according to the second average value; determining a fluctuation trend according to the first code value, the last code value and the median value; and determining the electricity fluctuation condition of the object to be tested in any set time window according to at least one of the fluctuation amplitude, the fluctuation position and the fluctuation trend.
As a possible implementation manner of the embodiment of the present application, the fourth determining module is specifically configured to: under the condition that the number of the set time windows is two, if the production state of a first time window in the two set time windows is a shutdown state and the production state of a second time window is a production state or a reworking state, determining that the reworking condition of the object to be tested is reworking and reworking; wherein the first time window is located before the second time window; under the condition that the number of the set time windows is three, if the production state of a third time window in the three set time windows is in a production state, the production state of a fourth time window is in a shutdown state, and the production state of a fifth time window is in a reworking state, determining that the reworking condition of the object to be tested is reworking and reworking; wherein the fourth time window is located after the third time window, and the fifth time window is located after the fourth time window; under the condition that the number of the set time windows is at least four, if the production state of a sixth time window in the at least four set time windows is in a production state or a reworking state and the production state of at least one seventh time window is in a shutdown state, determining that the reworking condition of the object to be measured is reworking and reworking; wherein the seventh time window is located before the sixth time window.
As a possible implementation manner of the embodiment of the present application, the electric wave situation corresponding to the occurrence state includes at least one of the following: the middle position is kept stable, the high position is kept stable, the middle position is slightly raised, the high position is slightly raised, the middle position is slightly lowered, the high position is slightly lowered, the middle position is greatly and continuously raised, the middle position is greatly and continuously lowered, the high position is greatly and continuously lowered, the middle position is greatly increased and reduced after the middle position is greatly increased, the middle position is slightly fluctuated, the high position is slightly fluctuated, the middle position is slightly increased and reduced after the middle position is greatly increased, the high position is slightly increased after the middle position is slightly increased, the high position is slightly increased, the middle position is slightly increased after the low position is slightly increased, or the high position is greatly fluctuated.
The low level means that the average value of the coding values in each target period in the set time window is in a first value range; the median is that the average value of the coding values in each target period in the set time window is in a second value range; the high bit means that the average value of the coding values in each target period in the set time window is in a third value range.
The lower limit of the first value range is 0, the upper limit of the first value range is a first target value, the lower limit of the second value range is a first target value, the upper limit of the second value range is a second target value, the lower limit of the third value range is a second target value, the upper and lower of the third value range is a third target value, the first target value is determined according to the difference between the coding values corresponding to the target power consumption load levels of two adjacent levels, the second target value is a first set multiple of the first target value, the third target value is a second set multiple of the first target value, and the second set multiple is larger than the first set multiple.
As a possible implementation manner of the embodiment of the present application, the radio wave situation corresponding to the stalling state includes at least one of the following: low level stable fluctuation, low level small amplitude decline, low level continuous decline, middle level large amplitude continuous decline, low level large amplitude gradual decrease and then increase, middle level large amplitude gradual decrease and then increase, low level small amplitude gradual decrease and then increase, middle level small amplitude gradual decrease and then increase, low level small amplitude gradual increase and then decrease, low level small amplitude rise, middle level small amplitude rise, low level large amplitude rise, middle level large amplitude continuous decline, low level small amplitude fluctuation, middle level small amplitude decline, low level large amplitude fluctuation or middle level large amplitude fluctuation.
As a possible implementation manner of the embodiment of the present application, the electric wave situation corresponding to the reworking state includes at least one of the following: the method comprises the steps of stable middle position fluctuation, stable high position fluctuation, small middle position rising, large low position rising continuously, large middle position rising continuously, large high position rising continuously, large middle position rising and then decreasing, large high position rising and decreasing, large middle position decreasing and decreasing, large high position decreasing and increasing, small middle position decreasing and high position decreasing.
As a possible implementation manner of the embodiment of the present application, the second obtaining module 902 is specifically configured to: acquiring an initial average value and an initial standard deviation of at least one power consumption; determining a reference value range according to the third set multiple, the initial standard deviation and the initial mean value; screening the electricity consumption of at least one time period according to the reference value range to obtain each reserved electricity consumption in the reference value range; and determining a first average value according to the average value of each reserved power consumption, and determining a first standard deviation according to the standard deviation of each reserved power consumption.
As a possible implementation manner of the embodiment of the present application, the second obtaining module 902 is further configured to: determining a first reference value according to the product of the first set proportion and the initial average value; judging whether the initial standard deviation is smaller than a first reference value or not; and under the condition that the initial standard deviation is smaller than the first reference value, updating the initial standard deviation according to the first reference value.
As a possible implementation manner of the embodiment of the present application, the second obtaining module 902 is specifically configured to: determining a second reference value according to the product of the average value of the reserved power consumption and a second set proportion; determining a third reference value according to the product of the average value of the reserved power consumption and a third set proportion; wherein the third set proportion is greater than the second set proportion; when the standard deviation of each reserved power consumption is larger than or equal to the second reference value and smaller than or equal to the third reference value, the standard deviation of each reserved power consumption is used as a first standard deviation; under the condition that the standard deviation of each reserved power consumption is smaller than the second reference value, determining a first standard deviation according to the second reference value; and under the condition that the standard deviation of each reserved power consumption is larger than the third reference value, determining the first standard deviation according to the third reference value.
As a possible implementation manner of the embodiment of the present application, the determining device 900 of the electricity load level may further include:
and the fifth determining module is used for determining initial power consumption ranges corresponding to the power consumption load levels according to at least one power consumption threshold value.
And a sixth determining module, configured to determine, for at least one power consumption load level of the plurality of power consumption load levels, a target power consumption within an initial power consumption range of the at least one power consumption load level from among the power consumption.
The first adjusting module is used for adjusting the at least one electricity consumption threshold value according to the quantity of the target electricity consumption in the initial electricity consumption range of the at least one electricity consumption load level.
As a possible implementation manner of the embodiment of the present application, the first adjustment module is specifically configured to: counting the total amount of electricity consumption; acquiring the ratio of the number of target electricity consumption to the total number in the initial electricity consumption range of the first electricity consumption load level; the first electric quantity load level is the highest electric quantity load level in the plurality of electric quantity load levels; under the condition that the duty ratio is higher than a set duty ratio threshold value, a first electric quantity threshold value in at least one electric quantity threshold value is increased; the first power threshold value is used for determining an initial power consumption range corresponding to the first power load level.
As a possible implementation manner of the embodiment of the present application, the determining device 900 of the electricity load level may further include:
and the judging module is used for judging whether the threshold value of each power consumption is smaller than the corresponding set value.
And the second adjusting module is used for adjusting the initial setting coefficient corresponding to each power consumption threshold value under the condition that at least one power consumption threshold value is smaller than the corresponding setting value.
As a possible implementation manner of the embodiment of the present application, the second adjusting module is specifically configured to: under the condition that a second electricity consumption threshold value in each electricity consumption threshold is smaller than a corresponding set value, updating an initial set coefficient corresponding to the second electricity consumption threshold value according to a first preset coefficient; the second power consumption threshold value is used for determining a power consumption range corresponding to a second power consumption load level with the lowest level in the plurality of power consumption load levels; updating an initial setting coefficient corresponding to a third electricity consumption threshold value in the at least one electricity consumption threshold value according to the second preset coefficient; the third power consumption threshold value is used for determining a power consumption range corresponding to the next level of the second power consumption load level.
As a possible implementation manner of the embodiment of the present application, the second determining module 904 is specifically configured to: determining power consumption ranges corresponding to a plurality of power consumption load levels according to at least one power consumption threshold value; determining a target power consumption load level from the plurality of power consumption load levels according to the power consumption of the target period and the power consumption ranges corresponding to the plurality of power consumption load levels; the power consumption of the target period is in the power consumption range corresponding to the target power consumption load level.
According to the determining device of the electricity consumption load level, electricity consumption data of an object to be detected are obtained, and a first average value and a first standard deviation of each electricity consumption in the electricity consumption data are obtained; determining at least one electricity consumption threshold according to the first mean value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold; and determining a target power consumption load level corresponding to the object to be tested in the target period according to at least one power consumption threshold value and the power consumption of the target period. In summary, at least one electricity consumption threshold value is determined in a targeted manner based on the statistical information of the electricity consumption data of the object to be measured in a plurality of time periods, rather than being fixedly set, and the target electricity consumption load level of the object to be measured in the target time period is determined according to the determined electricity consumption threshold value, so that the accuracy and the rationality of the determination result can be improved. And based on the statistical information of the electricity consumption data of the object to be measured in a plurality of time periods, the target electricity consumption load level of the object to be measured in the target time period is determined, so that the similar electricity consumption can be classified into the same electricity consumption load level, and the accuracy of the classification result is improved. And the power consumption of the object to be measured in at least one target period is not required to be forcedly divided into all power consumption load levels, so that the accuracy of the division result (namely the target power consumption load level) can be improved.
In order to implement the above embodiment, the present application further provides an electronic device, and fig. 10 is a schematic structural diagram of an electronic device provided in the embodiment of the present application. The electronic device includes:
memory 1001, processor 1002, and a computer program stored on memory 1001 and executable on processor 1002.
The processor 1002, when executing the program, implements the method for determining the power usage load level provided in any of the above embodiments.
Further, the electronic device further includes:
a communication interface 1003 for communication between the memory 1001 and the processor 1002.
Memory 1001 for storing computer programs that may be run on processor 1002.
Memory 1001 may include high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 1002 is configured to implement the method for determining a power consumption load level according to any one of the foregoing embodiments when executing the program.
If the memory 1001, the processor 1002, and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001, and the processor 1002 may be connected to each other through a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on a chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through internal interfaces.
The processor 1002 may be a central processing unit (Central Processing Unit, abbreviated as CPU) or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC) or one or more integrated circuits configured to implement embodiments of the present application.
In order to implement the above embodiments, the embodiments of the present application also propose a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the method of determining a power consumption load level as provided in any of the embodiments above.
In order to implement the above embodiments, the embodiments of the present application further provide a computer program product, which when executed by an instruction processor in the computer program product, implements the method for determining a power consumption load level provided in any of the above embodiments.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and additional implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order from that shown or discussed, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. As with the other embodiments, if implemented in hardware, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like. While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (10)

1. A method of determining a power usage load level, the method comprising:
acquiring electricity consumption data of an object to be tested; wherein the electricity consumption data comprises at least one period of electricity consumption;
acquiring a first average value and a first standard deviation of at least one power consumption;
determining at least one electricity consumption threshold according to the first mean value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold;
and determining a target power consumption load level corresponding to the target time period of the object to be detected according to the at least one power consumption threshold value and the power consumption of the target time period.
2. The method of claim 1, wherein the target period is a plurality of the target periods, the plurality of the target periods being within at least two set time windows, the method further comprising:
Encoding the target power consumption load level of each target period to obtain an encoding value of the target power consumption load level in each target period;
determining the production state of the object to be measured in any set time window according to the coding value of each target time period in the any set time window;
and determining the reworking condition of the object to be tested according to the production states of the object to be tested in the at least two set time windows.
3. The method according to claim 2, wherein determining the production state of the object to be measured in the arbitrary set time window based on the encoded value in each of the target time periods in the arbitrary set time window includes:
acquiring statistical information of the coding values in the target time periods in the arbitrary set time window; wherein the statistical information comprises at least one of a range, a second mean, a first code value, a last code value, and a median;
determining electricity fluctuation conditions of the object to be detected in the random set time window according to the statistical information; wherein the electricity consumption wave condition includes at least one of: fluctuation amplitude, fluctuation position and fluctuation trend;
And determining the production state of the object to be measured in the random set time window according to the electricity fluctuation condition.
4. A method according to claim 3, wherein said determining, based on said statistical information, a current situation of said object to be measured within said arbitrarily set time window comprises:
determining the fluctuation amplitude according to the range;
determining a fluctuation position according to the second average value;
determining a fluctuation trend according to the first code value, the last code value and the median value;
and determining the electricity consumption fluctuation condition of the object to be detected in the random set time window according to at least one of the fluctuation amplitude, the fluctuation position and the fluctuation trend.
5. The method according to claim 2, wherein determining the rework situation of the object under test based on the production status of the object under test within the at least two set time windows comprises:
under the condition that the number of the set time windows is two, if the production state of a first time window in the two set time windows is a shutdown state and the production state of a second time window is a production state or a reworking state, determining that the reworking condition of the object to be tested is reworking and reworking; wherein the first time window is located before the second time window;
Under the condition that the number of the set time windows is three, if the production state of a third time window in the three set time windows is in a production state, the production state of a fourth time window is in a shutdown state, and the production state of a fifth time window is in a reworking state, determining that the reworking condition of the object to be tested is reworking and production; wherein the fourth time window is located after the third time window and the fifth time window is located after the fourth time window;
under the condition that the number of the set time windows is at least four, if the production state of a sixth time window in the at least four set time windows is in a production state or a reworking state and the production state of at least one seventh time window is in a shutdown state, determining that the reworking condition of the object to be tested is reworking and reworking; wherein the seventh time window is located before the sixth time window.
6. The method of claim 1, wherein after determining the at least one power usage threshold value according to the first mean, the first standard deviation, and an initial set coefficient corresponding to the at least one power usage threshold value, the method further comprises:
Determining initial power consumption ranges corresponding to a plurality of power consumption load levels according to the at least one power consumption threshold value;
determining, for at least one of the plurality of power usage load levels, a target power usage within an initial power usage range of the at least one power usage load level from each of the power usage levels;
and adjusting the at least one electricity consumption threshold value according to the quantity of the target electricity consumption in the initial electricity consumption range of the at least one electricity consumption load level.
7. The method of claim 6, wherein said adjusting the at least one power usage threshold value based on the amount of target power usage that is within the initial power usage range of the at least one power usage load class comprises:
counting the total amount of electricity consumption;
acquiring the ratio of the number of target electricity consumption in the initial electricity consumption range of the first electricity consumption load level to the total number; the first electric quantity load grade is the electric quantity load grade with the highest grade in the plurality of electric quantity load grades;
under the condition that the duty ratio is higher than a set duty ratio threshold value, a first electric quantity threshold value in the at least one electric quantity threshold value is regulated to be higher; the first electric quantity threshold value is used for determining an initial electric quantity range corresponding to the first electric quantity load level.
8. A power usage load level determination apparatus, the apparatus comprising:
the first acquisition module is used for acquiring electricity utilization data of an object to be detected; wherein the electricity consumption data comprises at least one period of electricity consumption;
the second acquisition module is used for acquiring a first mean value and a first standard deviation of at least one power consumption;
the first determining module is used for determining at least one electricity consumption threshold value according to the first average value, the first standard deviation and an initial setting coefficient corresponding to the at least one electricity consumption threshold value;
and the second determining module is used for determining a target power consumption load level corresponding to the target time period of the object to be detected according to the at least one power consumption threshold value and the power consumption of the target time period.
9. An electronic device, comprising:
memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of determining a class of electricity load according to any one of claims 1-7 when the program is executed.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of determining a power usage load level according to any of claims 1-7.
CN202310922047.2A 2023-07-25 2023-07-25 Method and device for determining power consumption load level, electronic equipment and storage medium Pending CN117076966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922047.2A CN117076966A (en) 2023-07-25 2023-07-25 Method and device for determining power consumption load level, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922047.2A CN117076966A (en) 2023-07-25 2023-07-25 Method and device for determining power consumption load level, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117076966A true CN117076966A (en) 2023-11-17

Family

ID=88716154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922047.2A Pending CN117076966A (en) 2023-07-25 2023-07-25 Method and device for determining power consumption load level, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117076966A (en)

Similar Documents

Publication Publication Date Title
CN108919003B (en) Sensitive equipment voltage sag tolerance characteristic testing and data processing method
CN112034350B (en) Battery pack health state prediction method and terminal equipment
US20130173215A1 (en) Adaptive trend-change detection and function fitting system and method
US11061915B2 (en) System and method for anomaly characterization based on joint historical and time-series analysis
CN110991761B (en) Heat supply load prediction method and device
CN112366708A (en) Charging management method, device, equipment and storage medium
CN112347154A (en) Slag crust shedding index calculation method, terminal equipment and storage medium
CN109922212B (en) Method and device for predicting time-interval telephone traffic ratio
CN113419589B (en) Circuit parameter trimming method, trimming circuit, chip and electronic equipment
CN117076966A (en) Method and device for determining power consumption load level, electronic equipment and storage medium
CN112039064B (en) Control method based on power supply system and related device
CN113204858A (en) Evaluation method for battery use health degree and establishment method of evaluation model
CN112949697A (en) Method and device for confirming pipeline abnormity and computer readable storage medium
WO2023245973A1 (en) Soc calculation method, control circuit and electronic device
CN111913852A (en) Health management method and device for storage system
CN115219930A (en) Vehicle storage battery aging early warning method and device, electronic equipment and storage medium
CN115728652A (en) Detection method and detection device for nominal voltage
CN116774064B (en) Battery self-discharge detection method, device, equipment and storage medium
CN116307866B (en) Carbon emission metering method, equipment and carbon metering system
CN111143776B (en) Electric quantity load prediction method and device
CN114114971B (en) Voltage regulation method, device, digital processing equipment and readable storage medium
CN115564497B (en) Chip supply management system and method based on big data
CN113933715B (en) Method, device and equipment for displaying battery electric quantity and storage medium
CN112269903A (en) Data processing method, data processing apparatus, and readable storage medium
CN117465297A (en) Intelligent cooling system based on electric automobile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination