Method and system for identifying on-off state of equipment, equipment and storage medium

Determining the power-on and power-off thresholds of equipment through vibration signals and clustering algorithms solves the problem that existing technology cannot infer the power-on and power-off status of other equipment, and improves the accuracy and management efficiency of equipment status monitoring.

CN118536007APending Publication Date: 2024-08-23HAITONG HENGXIN INT FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410762216.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing equipment status monitoring system cannot infer the startup and shutdown thresholds of other devices from the data of some devices, resulting in low management efficiency.

Method used

By acquiring the vibration signal of the device, the clustering algorithm is used to determine the initial power-on and power-off thresholds, and a judgment rule is generated, and then the power-on status of the device is determined by comparing the vibration signal to be identified with the target threshold.

Benefits of technology

It improves the accuracy and efficiency of equipment status identification, reduces manual inspection costs and errors, and realizes real-time monitoring and management of equipment power-on status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536007A
    Figure CN118536007A
Patent Text Reader

Abstract

The invention discloses an equipment on-off state identification method and system, electronic equipment and a storage medium, and relates to the field of equipment monitoring. In the method, a vibration signal of first preset equipment is acquired, an initial power-on threshold value is determined according to the first vibration signal, and an initial power-off threshold value is determined according to a second vibration signal; according to the initial power-on threshold value and the initial power-off threshold value, generating a power-on / off judgment rule; processing the vibration signal through a clustering algorithm to obtain a target power-on threshold value and a target power-off threshold value; and when a to-be-identified vibration signal is received, comparing the to-be-identified vibration signal with the target power-on threshold value and the target power-off threshold value, and processing the comparison result based on the judgment rule to determine the power-on and power-off state of the equipment corresponding to the to-be-identified vibration signal. By implementing the technical scheme provided by the invention, the effect of deducing the power-on and power-off threshold values of other equipment by acquiring the data of the known equipment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of equipment monitoring, and specifically to a method, system, electronic device and storage medium for identifying the on / off status of equipment. Background Art

[0002] With the development of technology, more and more production equipment are used in factories. In order to better manage them, it is necessary to monitor the status of production equipment.

[0003] At present, most equipment production status monitoring systems are based on clear power-on and power-off threshold measurements or calculate the corresponding power-on and power-off thresholds through the clear power-on and power-off records of each device. It is impossible to infer the power-on and power-off thresholds of a large number of other devices by marking some devices.

[0004] Therefore, a method is needed to infer the power-on and power-off thresholds of other devices through the data of some devices. Summary of the invention

[0005] The present application provides a method, system, electronic device and storage medium for identifying the power on / off status of a device, which can infer the power on / off thresholds of other devices through the data of some devices, thereby improving management efficiency.

[0006] In a first aspect of the present application, a method for identifying a power on / off state of a device is provided, which is applied to a power on / off state identification platform, and the method includes: Acquire a vibration signal of a first preset device, determine an initial power-on threshold according to the first vibration signal, and determine an initial power-off threshold according to the second vibration signal, wherein the first vibration signal is a vibration signal during the power-on period, and the second vibration signal is a vibration signal during the power-off period; Generate a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; Processing the vibration signal by a clustering algorithm to obtain a target startup threshold and a target shutdown threshold; When a vibration signal to be identified is received, the vibration signal to be identified is compared with the target power-on threshold and the target power-off threshold respectively, and the comparison result is processed based on the judgment rule to determine the power-on / off state of the device corresponding to the vibration signal to be identified.

[0007] By adopting the above technical solution, the vibration signal is used as the basis for judging the power on / off status of the equipment, which has higher versatility than the traditional methods based on indicator light observation or voltage measurement. The vibration signal can directly reflect the movement state of the mechanical parts inside the equipment, so as to more accurately judge the power on / off status of the equipment. The vibration signal is calculated by the clustering algorithm to obtain the target power on threshold and the target power off threshold, which further improves the accuracy and stability of the recognition method. The clustering algorithm can automatically find data points with similar characteristics from a large amount of data, so as to determine a more accurate threshold. The generated judgment rules are used to process the received vibration signal to be identified, so as to quickly and accurately determine the power on / off status of the equipment. This helps to improve the efficiency and accuracy of equipment monitoring and reduce the cost and error of manual inspections.

[0008] Optionally, generating a power on / off judgment rule according to the initial power on threshold and the initial power off threshold includes: A feature set is generated according to the relationship between the vibration signal and the power-on threshold and the power-off threshold, a classification decision tree for the power-on and power-off status is constructed through the feature set, a preset number of features in the classification decision tree are retained according to feature importance, and a power-on and power-off judgment rule is generated according to the retained features.

[0009] By adopting the above technical solution, the relationship between the vibration signal and the power-on threshold and the power-off threshold is converted into a specific feature representation. These features can comprehensively and accurately reflect the power-on and power-off status of the equipment, providing strong data support for the subsequent construction of the classification decision tree. The classification decision tree can intuitively display the relationship between different features and the power-on and power-off status of the equipment, which is easy to understand and analyze. At the same time, through the classification decision tree, the vibration signal to be identified can be quickly classified to achieve efficient power-on and power-off status identification. Retaining a preset number of features in the classification decision tree according to the feature importance is a key step to further optimize the judgment rules. By evaluating the importance of each feature in the classification decision tree, the most representative features can be selected, redundant information can be reduced, and the accuracy and generalization ability of the judgment rules can be improved. The judgment rules for power on and off are generated based on the retained features, making the entire identification process clearer and more operational. These rules can be directly applied to the processing of vibration signals to be identified, quickly determine the power on and off status of the equipment, and provide strong support for the monitoring and management of the equipment.

[0010] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold includes: Construct multiple evaluation systems based on evaluation coefficients; Performing clustering iteration on the vibration signal using a clustering algorithm, recording actual evaluation coefficients, and determining a first iteration group number according to the actual evaluation coefficients, wherein the first iteration group number and the second iteration group number are any two iteration group numbers, and the actual evaluation coefficient corresponding to the first iteration group number is better than the actual evaluation coefficient corresponding to the second iteration group number; Iterate the group ratios, determine the first group ratios by the power on / off accuracy of each group of vibration signals, the group ratios are the vibration frequency when the power is turned off and the vibration frequency of the preset minimum power on gear, the first group ratios and the second group ratios are any two group ratios, and the power on / off accuracy of the first group ratios is greater than the power on / off accuracy of the second group ratios; A target evaluation system is selected from the multiple evaluation systems according to the first iteration group number and the first group ratio, and the target startup threshold and the target shutdown threshold are determined according to the target evaluation system.

[0011] By adopting the above technical solution, multiple evaluation systems are constructed based on the evaluation coefficients. This step provides multiple possible evaluation criteria for subsequent clustering iteration and group ratio determination. These evaluation systems can be flexibly designed according to actual application scenarios and requirements to ensure the accuracy and applicability of threshold determination. The clustering algorithm is used to perform clustering iteration on the vibration signal and record the actual evaluation coefficient. Through the iterative process, the algorithm can automatically find the best clustering result, that is, the vibration signal characteristics that can best reflect the power-on and power-off status of the device. At the same time, recording the actual evaluation coefficient is helpful for subsequent evaluation of the pros and cons of different iteration groups and provides a basis for selecting the best iteration group. By comparing the actual evaluation coefficients of different iteration groups, the first iteration group is determined. The actual evaluation coefficient corresponding to the first iteration group is better than that of other iteration groups, which means that the clustering result under this group can better reflect the power-on and power-off status of the device. This step ensures the effectiveness and accuracy of the selected iteration group. By calculating the group ratio and comparing the power-on and power-off accuracy of different group ratios, the first group ratio is determined. The power-on and power-off accuracy of the first group ratio is greater than that of other group ratios, which further improves the accuracy of threshold determination. The introduction of the group ratio takes into account the relationship between the average vibration frequency at shutdown and the average vibration frequency of the preset power-on gear, making the threshold determination more consistent with the actual operation of the equipment. A target evaluation system is selected from multiple evaluation systems based on the first iteration group number and the first group ratio, and the target power-on threshold and the target power-off threshold are determined based on the target evaluation system. This step combines the advantages of the iteration group number and the group ratio to ensure the accuracy and reliability of the selected thresholds. By applying these target thresholds, accurate identification of the power-on and power-off status of the equipment can be achieved, providing strong support for equipment monitoring and management.

[0012] Optionally, the using a clustering algorithm to perform clustering iterations on the vibration signal, recording actual evaluation coefficients, and determining the first iteration group number according to the actual evaluation coefficients includes: When the actual evaluation coefficient is a silhouette coefficient, determining whether the overall trend of the actual evaluation coefficient decreases with an increase in the number of iteration groups; When the overall trend of the actual evaluation coefficient is to decrease with the increase of the number of iteration groups, determining the actual evaluation coefficient with the largest value, and determining the number of iteration groups corresponding to the actual evaluation coefficient with the largest value as the first number of iteration groups; When the overall trend of the actual evaluation coefficient is to increase with the increase of the number of iteration groups, the actual evaluation coefficient with the largest change rate is determined, and the number of iteration groups corresponding to the actual evaluation coefficient with the largest change rate is determined as the first number of iteration groups.

[0013] By adopting the above technical solution and analyzing the overall trend of the actual evaluation coefficient, the optimal number of iteration groups can be determined more accurately. When the overall trend of the actual evaluation coefficient decreases with the increase of the number of iteration groups, it means that as the iteration proceeds, the clustering effect gradually tends to be stable, but overfitting may also occur. At this time, selecting the number of iteration groups corresponding to the actual evaluation coefficient with the largest value as the first number of iteration groups can ensure that overfitting is avoided while achieving a good clustering effect. In this case, selecting the number of iteration groups corresponding to the actual evaluation coefficient with the largest change rate as the first number of iteration groups can avoid unnecessary computational overhead while ensuring the clustering effect. Through these two strategies, the clustering iteration process in different situations can be flexibly responded to, ensuring that the selected first number of iteration groups can not only reflect the characteristics of the power on / off state of the device, but also avoid overfitting and waste of computing resources. This helps to improve the accuracy and efficiency of threshold determination and provide a reliable basis for subsequent device power on / off state identification.

[0014] Optionally, the iterative group ratio, determining the first group ratio by the power on / off accuracy of each group of vibration signals includes: constructing a loss function according to the first extreme value cluster center, the second extreme value cluster center and the group ratio obtained after cluster iteration, and constructing a cost function by the loss function, wherein the first extreme value cluster center is greater than or equal to any cluster center in the first cluster center set, the second extreme value cluster center is less than or equal to any cluster center in the first cluster center set, and the first cluster center set is the set of all cluster centers after cluster iteration; Iterate the group ratio, and obtain the corresponding cost function value according to the group ratio, and determine whether the cost function value obtained by the current group ratio is greater than the cost function value obtained by the previous group ratio; When the cost function value obtained by the current group ratio is not greater than the cost function value obtained by the previous group ratio, the previous group ratio is used as the first group ratio.

[0015] By adopting the above technical solution, constructing the loss function and the cost function, the group ratio value can be combined with the result of cluster iteration, so as to optimize the group ratio value. The loss function is constructed based on the first extreme value cluster center and the second extreme value cluster center. The two extreme value cluster centers represent the largest and smallest cluster centers in the vibration signal, respectively, which helps to reflect the characteristics of the power on / off state of the device. By iterating the group ratio value and comparing the cost function values ​​corresponding to different group ratio values, the group ratio value that minimizes the cost function value, that is, the first group ratio value, can be found. This step makes full use of the idea of ​​iteration, and finally finds the optimal solution by constantly trying and adjusting the group ratio value. This helps to improve the accuracy and reliability of threshold determination and provides strong support for subsequent device power on / off state identification. When the cost function value obtained by the current group ratio value is not greater than the cost function value obtained by the previous group ratio value, the previous group ratio value is used as the first group ratio value. This strategy avoids over-optimization and waste of computing resources, ensuring that the selected first group ratio value can both reflect the characteristics of the power on / off state of the device and maintain a low computational complexity.

[0016] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold further includes: Determine whether a ratio of the first extreme value cluster center to the second extreme value cluster center is greater than a first ratio; When the ratio of the first extreme value cluster center to the second extreme value cluster center is greater than the first ratio, determining the product of the second extreme value cluster center and the first ratio, and determining all cluster centers greater than the product to form a second cluster center set; A third extreme value cluster center is selected from the second cluster center set, and the target power-on threshold is determined according to the third extreme value cluster center, where the third extreme value cluster center is less than or equal to any cluster center in the second cluster center set.

[0017] By adopting the above technical solution, it is determined whether the ratio of the first extreme value cluster center to the second extreme value cluster center is greater than the first ratio, and the characteristics of the power-on and power-off states in the vibration signal can be further distinguished. This ratio reflects the relative difference in the strength of the vibration signal when the power is on and off. When the ratio is greater than a certain threshold, it means that there is a significant difference in the vibration intensity between the power-on and power-off states, which helps to determine the threshold more accurately. When the ratio is greater than the first ratio, by calculating the product of the second extreme value cluster center and the first ratio, and screening out all cluster centers greater than the product to form a second cluster center set, the range of finding the target power-on threshold can be further narrowed. Doing so helps to exclude those cluster centers that are not related to the power-on state and improve the efficiency and accuracy of threshold determination. Selecting the third extreme value cluster center from the second cluster center set as the target power-on threshold can ensure that the selected threshold can best reflect the power-on state of the device. Since the third extreme value cluster center is less than or equal to the maximum value of any cluster center in the second cluster center set, it can represent an obvious boundary of the vibration signal when the device is turned on, which helps to accurately identify the power-on state of the device.

[0018] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold further includes: When the ratio of the first extreme value cluster center to the second extreme value cluster center is less than or equal to the first ratio, the target power-on threshold and the target power-off threshold are determined according to the upper limit value of the vibration signal of the second preset device, and the second preset device is a device that has been shut down in the first preset device.

[0019] By adopting the above technical solution, when the ratio of the first extreme value cluster center to the second extreme value cluster center does not meet the above conditions, it means that the vibration signal in the power-on and power-off states may not have a significant difference in intensity, or the distribution characteristics of the vibration signal are not suitable for determining the threshold value through the cluster center. In this case, the method of determining the threshold value based on the upper limit value of the vibration signal of the second preset device can be used as an effective alternative. By referring to the upper limit value of the vibration signal of the second preset device (i.e., the device that has been shut down), it can be ensured that the determined target power-on threshold value and target shutdown threshold value are in line with the actual situation. This method based on actual device data is more reliable and practical, and can avoid errors caused by theoretical calculations or model assumptions. This supplementary step increases the flexibility and adaptability of the algorithm. In practical applications, there may be differences in the characteristics of vibration signals under different devices and scenarios, and sometimes it is necessary to adjust the threshold determination method according to the specific situation. By introducing a method for determining the upper limit value of the vibration signal based on the second preset device, the algorithm can be better adapted to the needs of different devices and scenarios.

[0020] In a second aspect of the present application, a system for identifying the power on / off state of a device is provided, comprising a collection module, a rule module, a calculation module and an execution module, wherein: an acquisition module configured to acquire a vibration signal of a first preset device, determine an initial power-on threshold according to the first vibration signal, and determine an initial power-off threshold according to a second vibration signal, wherein the first vibration signal is a vibration signal during a power-on period, and the second vibration signal is a vibration signal during a power-off period; A rule module, configured to generate a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; a calculation module, configured to process the vibration signal through a clustering algorithm to obtain a target power on threshold and a target power off threshold; The execution module is configured to compare the vibration signal to be identified with the target power-on threshold and the target power-off threshold respectively when receiving the vibration signal to be identified, and process the comparison result based on the judgment rule to determine the power-on / power-off state of the device corresponding to the vibration signal to be identified.

[0021] In the third aspect of the present application, an electronic device is provided, including a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes any one of the methods described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any of the methods described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By obtaining the vibration signals of the first preset device during the power-on period and the power-off period, the actual operating status of the device can be directly reflected. The initial power-on threshold and the initial power-off threshold determined according to these signals provide a basic basis for the subsequent power-on and power-off status identification. This threshold setting method based on actual data can ensure the accuracy and practicality of the threshold.

[0024] 2. The clustering algorithm is used to iteratively calculate the vibration signal, further optimizing the determination of the target startup threshold and the target shutdown threshold. The clustering algorithm can automatically identify the characteristic patterns in the vibration signal and determine the threshold that best reflects the device startup and shutdown status based on these patterns. This method avoids the subjectivity and error of manually setting the threshold, and achieves personalized threshold setting, which improves the accuracy and reliability of recognition.

[0025] 3. The power on / off judgment rules generated based on the initial threshold provide clear guidance for the processing of the vibration signal to be identified. By comparing the vibration signal to be identified with the target power on threshold and the target power off threshold, and combining the judgment rules, the power on / off status of the device can be determined quickly and accurately. This automated processing method greatly improves the efficiency and real-time performance of identification.

[0026] 4. It can realize real-time monitoring and effective management of the power on and off status of the equipment. By accurately identifying the power on and off status of the equipment, it can provide strong support for equipment maintenance, scheduling and fault warning. This helps to improve the safety and stability of equipment operation, reduce maintenance costs and improve operational efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flowchart of a method for identifying the power on / off state of a device disclosed in an embodiment of the present application; Figure 2 It is a schematic diagram of the power on / off status signal of the device disclosed in the embodiment of the present application; Figure 3 It is a schematic diagram of a flow chart of generating a power on / off judgment rule disclosed in an embodiment of the present application; Figure 4 It is a schematic diagram of a flow chart of calculating a target startup threshold and a target shutdown threshold by a clustering algorithm disclosed in an embodiment of the present application; Figure 5 It is a schematic diagram of changes in the silhouette coefficient, intra-cluster distance and CH coefficient disclosed in the embodiments of the present application; Figure 6 It is another schematic diagram of changes of the silhouette coefficient, the intra-cluster distance and the CH coefficient disclosed in the embodiments of the present application; Figure 7 It is another variation diagram of the silhouette coefficient, intra-cluster distance and CH coefficient disclosed in the embodiments of the present application; Figure 8 It is a module schematic diagram of a system for identifying the power on / off status of a device disclosed in an embodiment of the present application; Fig. 9 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0028] Explanation of the reference numerals: 801, acquisition module; 802, rule module; 803, calculation module; 804, execution module; 901, processor; 902, communication bus; 903, user interface; 904, network interface; 905, memory. DETAILED DESCRIPTION

[0029] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0030] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0031] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0032] This embodiment discloses a method for identifying the power on / off state of a device. Figure 1 is a flow chart of a method for identifying the power on / off state of a device disclosed in an embodiment of the present application, such as Figure 1 As shown, the identification method includes the following steps: S110, obtaining a vibration signal of a first preset device, determining an initial power-on threshold according to the first vibration signal, and determining an initial power-off threshold according to the second vibration signal, wherein the first vibration signal is a vibration signal during a power-on period, and the second vibration signal is a vibration signal during a power-off period; The original vibration signal of the first preset device is obtained. A single device contains at least one complete calculation cycle T. For example, if one day is a calculation cycle, the minimum signal acquisition time is one day. If the acceleration of the sensor is collected separately, it is recommended to calculate the resultant force. First, equipment monitoring generally requires concealed installation, and the posture and position of the measuring device cannot be guaranteed. Different types of equipment have different vibration directions. The embodiment of this application pays more attention to the vibration size rather than the direction. Secondly, clustering algorithms will be used later, and high-dimensional data clustering consumes more computing resources. Select individual devices with obvious switching states and fluctuations, and count the values ​​of the power-on period and the values ​​of the power-off period respectively. The power-on threshold and the power-off threshold can be roughly obtained by statistical methods such as mean and median. The embodiment of this application has currently collected and marked 12 devices, 7 days of data, and the collection frequency is 5 minutes for a group of models. Each group of signals contains 10 specific signals. The specific signal is the size of the resultant force. The resultant force should be infinitely close to 0 when stationary. It is known from the marking that one of the devices is in the power-on state for 7 days, and the other device is in the power-off state for 7 days. Assume that the data set with both on and off states is W, the signal data set of all powered-on devices is P, and the signal data set of all powered-off devices is Q. Then, the data of data set W is trained first.

[0033] Figure 2 Schematic diagram of the device power on / off status signal disclosed in the embodiment of the present application. For 10 devices with power on / off, select one of the device signals, such as Figure 2 As shown, select the signal group marked as "on", and find the median A1 of the corresponding signal values ​​of these signal groups, which is the marked on threshold of this device. Use the same method to find the on threshold of the remaining devices. Similarly, the off threshold of the marked device can also be found. Each device has its own on and off thresholds.

[0034] S120, generating a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; The power on / off judgment rule can be generated according to the initial power on threshold and the initial power off threshold obtained in the previous step. For example, when more than three signals in a group of signals are greater than the initial power on threshold, the group of signals is considered to be a power on signal.

[0035] Optionally, generating a power on / off judgment rule according to the initial power on threshold and the initial power off threshold includes: A feature set is generated according to the relationship between the vibration signal and the power-on threshold and the power-off threshold, a classification decision tree for the power-on and power-off status is constructed through the feature set, a preset number of features in the classification decision tree are retained according to feature importance, and a power-on and power-off judgment rule is generated according to the retained features.

[0036] Figure 3is a flow chart of generating power on / off judgment rules disclosed in the embodiment of the present application, such as Figure 3 As shown, the judgment rules for generating power on and off include: S301, extracting statistical features between the data in the group and the initial power on threshold and the initial power off threshold; S302, using the classification model to calculate the relationship between the features and the power on and off; S303, compressing the features. Specifically, statistical variables are generated through the threshold and the actual value in the group, such as the proportion of actual values ​​greater than the threshold, whether the maximum actual value is greater than the threshold, whether the median of the actual value is greater than the threshold, etc., to form a feature set. Construct three features x1, x2, and x3. x1 represents the number of values ​​greater than A1 in the group; x2 represents the difference between the mean signal in the group and A1; x3 represents the mean of the ratio of the signal in the group to A1. Using classification algorithms, such as classification decision trees, xgboost, and neural networks, indicators and their parameter ranges are obtained. In order to prevent overfitting and increase the calculation speed, it is recommended to compress the model variables, that is, to retain a preset number of features in the classification decision tree according to the feature importance, and the preset number can be determined according to the model effect. Theoretically, when the external environment remains unchanged and there is no abnormality in the equipment, the minimum power-on threshold and shutdown threshold are relatively stable values ​​and can be calculated in the cloud. However, the judgment of whether to start work is an instantaneous state. There may be real-time requirements or requirements for direct calculation at the terminal, so the rules are as simple as possible. Generally, 1 to 2 related variables are selected as the basis for judgment. If there is no real-time calculation requirement, this step can be omitted. The target variable y is the power-on and power-off status. Each group of signals is regarded as a sample. There are 10 devices for 7 days, 24*12 samples / device*day. For example, using a classification decision tree, the relationship between y and x1, x2, and x3 can be obtained. The decision tree can be post-pruned by importance. In order to simplify, only the most important variable and variable range can be retained. Assume that when x1>3, it is turned on, and when x1≤3, it is turned off. That is, as long as there are more than 3 signals in each group of signals that are greater than the power-on threshold A n Then this group of signals is the power-on signal.

[0037] By setting the initial power-on threshold and the initial power-off threshold, and combining the characteristics of the vibration signal, a feature set for the power-on and power-off status can be constructed. This feature set can accurately capture the vibration signal characteristics related to the power-on and power-off, and then realize efficient power-on and power-off status judgment through the classification decision tree. After the classification decision tree is constructed, the features are screened according to their importance, and only a preset number of important features are retained. This step helps to simplify the structure of the decision tree, improve the operating efficiency of the decision tree, and also reduce the risk of misjudgment caused by redundant features. Since the judgment rules are constructed based on the vibration signal, the power-on and power-off vibration signals of different devices or different usage scenarios can be adaptively processed. As long as the vibration signal can reflect the state change of the power-on and power-off, accurate judgment rules can be generated by adjusting the threshold and optimizing the feature set. As a machine learning model with strong interpretability, the classification decision tree can be easily adjusted and optimized. For example, when the device or environment changes, the decision tree can be retrained or adjusted to adapt to the new situation to maintain the accuracy and effectiveness of the judgment rules.

[0038] S130. Process the vibration signal through a clustering algorithm to obtain a target power-on threshold and a target power-off threshold. In the previous step, the power-on threshold can be roughly calculated because the device has been marked with a clear power-on and power-off time. If it is a new device, there is only an original signal, so it is necessary to find a method to directly calculate the power-on threshold through the original signal.

[0039] Clustering algorithm is an unsupervised learning algorithm. Its main purpose is to divide the objects (samples) in the data set into several similar groups or clusters, so that the similarity between objects in the same group is high, and the similarity between different groups is low. Clustering algorithm is usually based on some distance or similarity measurement method, and determines the differences and distribution between clusters by calculating the distance or similarity between objects. Because the clustering object is one-dimensional data, and the optimal number of groups K is found by iterating the number of groups, algorithms such as KMeans, PAM, and CLARA can be used.

[0040] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold includes: Construct multiple evaluation systems based on evaluation coefficients; Performing clustering iteration on the vibration signal using a clustering algorithm, recording actual evaluation coefficients, and determining a first iteration group number according to the actual evaluation coefficients, wherein the first iteration group number and the second iteration group number are any two iteration group numbers, and the actual evaluation coefficient corresponding to the first iteration group number is better than the actual evaluation coefficient corresponding to the second iteration group number; Iterate the group ratios, determine the first group ratios by the power on / off accuracy of each group of vibration signals, the group ratios are the average vibration frequency when the power is turned off and the average vibration frequency of the preset power on gear, the first group ratios and the second group ratios are any two group ratios, and the power on / off accuracy of the first group ratios is greater than the power on / off accuracy of the second group ratios; A target evaluation system is selected from the multiple evaluation systems according to the first iteration group number and the first group ratio, and the target startup threshold and the target shutdown threshold are determined according to the target evaluation system.

[0041] Figure 4 is a schematic diagram of a process for calculating a target startup threshold and a target shutdown threshold by a clustering algorithm disclosed in an embodiment of the present application, such as Figure 4 As shown, the calculation of the target power-on threshold and the target power-off threshold by the clustering algorithm includes: S401, eliminating abnormal values ​​in the vibration signal; S402, building multiple evaluation systems based on the evaluation coefficients; S403, iterating different numbers of groups using the clustering algorithm, and recording the actual evaluation coefficients of different evaluation systems; S404, determining the optimal number of groups K through the actual evaluation coefficients, and different evaluation systems may obtain different K; S405, iterating the group ratio under the optimal number of groups K, and calculating the optimal ratio R through the power-on and power-off accuracy of each group; S406, determining the optimal evaluation system under the optimal ratio R; S407, determining the target power-on threshold and the target power-off threshold according to the optimal evaluation system.

[0042] For the signals of these 10 devices, the boxplot method is used to remove outliers for each device. Because the resultant force is 0 when stationary, only the signal values ​​greater than the upper edge need to be removed. The upper edge can be set equal to Q3+3IQR (Q3 represents the third quartile, 3IQR represents three times the interquartile range), and a new signal set W' is obtained. The same process is performed for the devices that previously only turned on / off to obtain the numbers P' and Q'. In the embodiment of the present application, the evaluation coefficients can be the Silhouette Coefficient (abbreviated as silhouette coefficient), the intra-cluster distance and the Calinski-Harabaz (abbreviated as CH coefficient).

[0043] It is assumed that three evaluation systems can be constructed using the contour coefficient and the CH coefficient: (1) The classification number K1 corresponding to the optimal contour coefficient is used as the standard; (2) The classification number K2 corresponding to the optimal CH coefficient is used as the standard; (3) K3 = Min (K1, K2). The vibration signal is clustered and iterated using a clustering algorithm, and the actual evaluation coefficient is recorded, and the optimal number of iteration groups is determined by the actual evaluation coefficient. The optimal group ratio is determined by the power on and off accuracy of each group of vibration signals, and a target evaluation system is selected from multiple evaluation systems based on the optimal number of iteration groups and the optimal group ratio, and the target power on threshold and the target power off threshold are determined based on the target evaluation system.

[0044] By constructing multiple evaluation systems and iteratively processing the vibration signal using a clustering algorithm, the vibration signal features related to the power-on and power-off status can be more accurately identified. This helps to determine the optimal number of iteration groups and group ratios, thereby obtaining more accurate target power-on thresholds and target power-off thresholds. By iteratively processing the vibration signal using a clustering algorithm, rapid analysis and processing of large amounts of data can be achieved. This helps to reduce the amount of calculation, improve the efficiency of power-on and power-off judgment, and enable the device to accurately identify the power-on and power-off status in a short time. By optimizing the process of determining the power-on and power-off thresholds, the device can more accurately identify the user's operating intentions, thereby providing more personalized services. This helps to improve user experience and enhance the intelligence level of the device. The construction of multiple evaluation systems enables this method to adapt to the vibration signal characteristics of different devices and different usage scenarios. At the same time, by adjusting the parameters of the evaluation system and the clustering algorithm, the process of determining the power-on and power-off thresholds can be further optimized to adapt to changing needs.

[0045] Optionally, the using a clustering algorithm to perform clustering iterations on the vibration signal, recording actual evaluation coefficients, and determining the first iteration group number according to the actual evaluation coefficients includes: When the actual evaluation coefficient is a silhouette coefficient, determining whether the overall trend of the actual evaluation coefficient decreases with an increase in the number of iteration groups; When the overall trend of the actual evaluation coefficient is to decrease with the increase of the number of iteration groups, determining the actual evaluation coefficient with the largest value, and determining the number of iteration groups corresponding to the actual evaluation coefficient with the largest value as the first number of iteration groups; When the overall trend of the actual evaluation coefficient is to increase with the increase of the number of iteration groups, the actual evaluation coefficient with the largest change rate is determined, and the number of iteration groups corresponding to the actual evaluation coefficient with the largest change rate is determined as the first number of iteration groups.

[0046] Clustering evaluation coefficients can be introduced, such as silhouette coefficient (the larger the better), intra-cluster distance (the smaller the better), and CH coefficient (the larger the better). When a single evaluation coefficient is optimal, the following three situations will often occur.

[0047] (1) Figure 5 Schematic diagram of the change of the contour coefficient and CH coefficient disclosed in the embodiment of the present application, such as Figure 5 As shown, although the silhouette coefficient fluctuates, it obviously has a maximum value; (2) Figure 6 is another schematic diagram of the change of the contour coefficient and the CH coefficient disclosed in the embodiment of the present application, such as Figure 5 and Figure 6As shown in the figure, the intra-cluster distance and CH coefficient are getting better with the increase of the number of groups. At this time, we need to find the point with the largest coefficient improvement, that is, the point with the largest slope change; (3) Figure 7 is another variation diagram of the silhouette coefficient, intra-cluster distance and CH coefficient disclosed in the embodiments of the present application, such as Figure 7 As shown, the silhouette coefficient becomes worse as the number of groups increases, so we can directly take 2 classifications.

[0048] For the first case, for the same batch of scattered points, the larger the contour coefficient, the better the number of classifications. From the vibration test data handled, the actual contour coefficient will decrease as the number of groups increases, and the optimal grouping also tends to 2 classifications. Corresponding to the two states of power on and off, the maximum value of the contour coefficient can be calculated, and then the optimal number of iteration groups (that is, the first iteration group number) can be determined by the maximum value of the contour coefficient. For the second case, as the number of groups increases, the contour coefficient increases. At this time, the maximum value can be changed to the point with the largest change. For the contour function, the final result is hoped to be a convex point, or the maximum curvature, the maximum slope difference, etc. can be obtained. Similarly, for other clustering evaluation functions, it is necessary to perform corresponding processing on the optimal value according to its evaluation characteristics. For the third case, 2 classifications can be directly taken. From the business meaning, the embodiment of the present application hopes to take the optimal number of classifications while taking the smallest number of classifications as much as possible, and the embodiment of the present application does not want the power-on gear of the device to be over-identified. From the business purpose, it is only necessary to distinguish the two states of the device being on and off. If the evaluation coefficient is replaced by other coefficients, the same applies. The overall trend of the actual evaluation coefficient is decreasing with the increase of the number of iteration groups, which means that although the actual evaluation coefficient increases or remains unchanged with the increase of the number of iteration groups in a certain interval, the interval in which the actual evaluation coefficient decreases with the increase of the number of iteration groups exceeds half of the total interval. The overall trend of the actual evaluation coefficient is increasing with the increase of the number of iteration groups, which means that although the actual evaluation coefficient decreases or remains unchanged with the increase of the number of iteration groups in a certain interval, the interval in which the actual evaluation coefficient increases with the increase of the number of iteration groups exceeds half of the total interval.

[0049] By analyzing the actual evaluation coefficient, the method for determining the first iteration group number can be intelligently selected according to its overall trend. By accurately determining the first iteration group number, it can be ensured that the clustering algorithm achieves the best effect when processing vibration signals. This helps to more accurately identify the vibration signal characteristics related to the power-on and power-off status, and provides strong support for subsequent threshold determination. Instead of relying on a fixed number of iterations or a fixed evaluation standard, the optimal number of iteration groups is dynamically determined based on changes in the actual evaluation coefficient. This enables the algorithm to adapt to the vibration signal characteristics of different devices and different usage scenarios, and has strong robustness.

[0050] Optionally, the iterative group ratio, determining the first group ratio by the power on / off accuracy of each group of vibration signals includes: constructing a loss function according to the first extreme value cluster center, the second extreme value cluster center and the group ratio obtained after cluster iteration, and constructing a cost function by the loss function, wherein the first extreme value cluster center is greater than or equal to any cluster center in the first cluster center set, the second extreme value cluster center is less than or equal to any cluster center in the first cluster center set, and the first cluster center set is the set of all cluster centers after cluster iteration; Iterate the group ratio, and obtain the corresponding cost function value according to the group ratio, and determine whether the cost function value obtained by the current group ratio is greater than the cost function value obtained by the previous group ratio; When the cost function value obtained by the current group ratio is not greater than the cost function value obtained by the previous group ratio, the previous group ratio is used as the first group ratio.

[0051] Select the k-means algorithm to manually set the value range of K in the iteration, that is, the range of the number of classifications. Cluster each device in the data set W' separately, and iterate the number of classifications K, K∈(2,n), 2 is the minimum value, because the selected devices have at least two states: on and off. n is an empirical value, which can be set to the maximum value of the number of working gears of the known equipment + 1 (adding the off state). To avoid devices with more gears, n can be appropriately enlarged. In the embodiment of the present application, there will be three optimal classification numbers K1, K2, and K3, and all cluster center points C corresponding to the classification numbers K1, K2, and K3 for each device are recorded, including C m is the first extreme cluster center, and C0 is the second extreme cluster center.

[0052] Assume that for a certain device, K1=K3=2, K2=3. When K=2, there are two cluster centers, C0 and C1. C0 represents the center of the combined vibration force when the device is turned off, and C1 represents the center of the combined vibration force when the device is turned on. C1 is greater than C0. Assuming that this is indeed the optimal classification, we can observe and compare the previous startup threshold A. Generally speaking, C1 and A (the startup threshold of this device) should not be much different. When K=3, there are three cluster centers, C0, C1, and C2. C2>C1>C0. At this time, two situations may occur: C1 is close to A, and C2 is much larger than A. Then C1 and C2 may be in two start-up gears or working conditions; C2 is close to A, and C1 is much smaller than A. C2 is the vibration situation when the device is turned on, and C1 is a pseudo-state classification. We need to find an R, when C n :When C0>R, C nThis is the minimum startup vibration threshold point, and it can avoid the occurrence of the pseudo-state classification mentioned above. In actual business, different types of equipment generally correspond to different working conditions, and then correspond to different R values ​​(for example, the startup and shutdown vibration differences of processing machine tools and conveyor belts are different). By iterating R∈(1,∞) from small to large, different C values ​​of different equipment can be obtained. n The center point of is the minimum power-on threshold. By constructing a cost function (the difference between the actual and the predicted value) and performing effective iterations using machine learning, when the cost function is minimized, the solution of R is optimal. m The corresponding values ​​increase in sequence.

[0053] The process of constructing the cost function is as follows: The sample granularity is a set of signals. The target value y n The loss function is constructed by the first extreme value cluster center (the largest cluster center), the second extreme value cluster center (the smallest cluster center) and the group ratio.

[0054] For samples in data set W: Loss function:

[0055] Among them, y n is the actual power-on status of each signal group, is the predicted power-on status of each group of signals.

[0056] For samples in data set P: For the case of full power-on, from a business perspective, the smallest cluster center C0 should be the power-on threshold A of the minimum gear, but C m : Whether C0 is greater than R depends on the gear difference of the machine, not the change of power on and off. The size of R has no practical significance for judging such situations, so it is not judged.

[0057] For samples in data set Q: The vibration fluctuation of a fully powered-off device should theoretically be extremely small, so ideally the ratio of the minimum center point to the maximum center vibration should also be less than R.

[0058] Loss function: Among them, C m is the largest cluster center.

[0059] Cost function:

[0060] When all hour, When all hour,

[0061] If we assume that R=1, all signal groups will be predicted as on, and the signal groups that are actually off will all be predicted incorrectly. In this case, J=J1. On the contrary, if we assume that R is extremely large, all signal groups will be predicted as off, and the signal groups that are actually on will all be predicted incorrectly. In this case, J=J n , R = R n , then when R=R n+1 When J n =J n+1 , at this time, the cost function value J will no longer increase with the increase of R, then the iteration of R is terminated, and {J1,J2,J3...J n}The smallest R value (i.e. the first group of ratios) and the best evaluation system.

[0062] By constructing the loss function and the cost function, the influence of the first extreme value cluster center and the second extreme value cluster center can be comprehensively considered, so as to select the group ratio that minimizes the cost function value. This optimization process helps to improve the accuracy of power on and off, so that the device can more accurately identify the power on and off operation of the user. By iterating the group ratio and comparing the cost function values ​​corresponding to different group ratios, it can be ensured that the selected first group ratio has a relatively small cost, that is, it is more stable. This helps to reduce the situation of misjudgment and missed judgment, and improve the robustness and reliability of the algorithm. The embodiment of the present application does not rely on a fixed threshold or empirical rule, but determines the optimal group ratio based on the actual vibration signal data and clustering results. This enables the algorithm to adapt to the vibration signal characteristics of different devices and different usage scenarios, and has stronger versatility and adaptability. By constructing the loss function and the cost function, the effects of different group ratios can be quantitatively evaluated, making the data more interpretable. This helps to better understand the working principle and performance of the algorithm, and provides strong support for subsequent optimization and improvement.

[0063] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold further includes: Determine whether a ratio of the first extreme value cluster center to the second extreme value cluster center is greater than a first ratio; When the ratio of the first extreme value cluster center to the second extreme value cluster center is greater than the first ratio, determining the product of the second extreme value cluster center and the first ratio, and determining all cluster centers greater than the product to form a second cluster center set; A third extreme value cluster center is selected from the second cluster center set, and the target power-on threshold is determined according to the third extreme value cluster center, where the third extreme value cluster center is less than or equal to any cluster center in the second cluster center set.

[0064] For C m:When C0>R, it is necessary to determine the smallest n that meets C n :When C0>R, C n The power-on threshold replaces A n (R is the same for each machine, but C n are different). n The power-on and power-off judgment rules can calculate the predicted power-on status of each set of signals For example, when C5:C0>R, C2, C3, and C4 all satisfy C n : When C0>R, the second cluster center set is (C2, C3, C4, C5), and the smallest cluster center is selected from the second cluster center set, that is, C2, and n = 2. C2 is the power-on threshold that replaces A of the device.

[0065] By comparing the ratio of the first extreme value cluster center to the second extreme value cluster center with the first ratio, cluster centers that are more closely related to the power on / off state can be screened out. When the ratio is greater than the first ratio, the product of the second extreme value cluster center and the first ratio is further determined, and cluster centers greater than the product are screened out to form a second cluster center set. This process helps to eliminate cluster centers that are not highly correlated with the power on / off state, thereby improving the accuracy of threshold determination. The third extreme value cluster center is selected from the second cluster center set as the basis for determining the target power on threshold. Since the third extreme value cluster center is less than or equal to any cluster center in the second cluster center set, this ensures that the selected threshold can fully reflect the characteristics of the vibration signal when the machine is turned on. Compared with traditional fixed thresholds or empirical rules, this method based on extreme value cluster centers is more adaptable to the actual conditions of different devices and different usage scenarios, and improves the accuracy and reliability of the target power on threshold. The entire process does not rely on fixed thresholds or preset rules, but determines the target threshold based on actual clustering results and extreme value cluster centers. This enables the algorithm to adaptively process vibration signals of different devices and different usage scenarios, and has strong adaptability and robustness. At the same time, the optimal threshold is determined by iteration and comparison, which also reduces the risk of misjudgment and missed judgment. By constructing loss functions and cost functions, and using extreme value clustering centers for screening and determining thresholds, the entire process is relatively simple and clear, reducing the complexity of the operation. At the same time, due to the use of the characteristics of the clustering algorithm, the amount of calculation can be reduced to a certain extent, and the processing efficiency can be improved.

[0066] Optionally, the processing the vibration signal by using a clustering algorithm to obtain a target startup threshold and a target shutdown threshold further includes: When the ratio of the first extreme value cluster center to the second extreme value cluster center is less than or equal to the first ratio, the target power-on threshold and the target power-off threshold are determined according to the upper limit value of the vibration signal of the second preset device, and the second preset device is a device that has been shut down in the first preset device.

[0067] For C m :When C0≤R, it may be a fully powered-off scenario or a fully powered-on scenario. on By comparing C m and A on To confirm the specific scenario. Suggestion A on The setting can be done by collecting data from the device that has been turned off, removing the noise points, and taking the upper limit value, that is, the upper limit of the shutdown vibration is set as the lower limit of the startup vibration. m on It is completely shut down, C m ≥A on It is fully powered on; it can also be set by the standard reference specified in GB / T 13306-2011. Such devices need to continue to calculate the threshold until the data shows C n :When C0>R, calculate the corresponding correct A on .

[0068] When the ratio of the first extreme value cluster center to the second extreme value cluster center does not meet the condition of being greater than the first ratio, the algorithm does not directly give up determining the threshold, but instead considers using the upper limit value of the vibration signal of the second preset device to determine the target threshold. This processing method increases the flexibility of the algorithm in determining the threshold, so that the algorithm can obtain a reasonable threshold in different situations. The second preset device is a device that has been turned off, and its upper limit value of the vibration signal can be used as a reliable reference to determine the target startup threshold and the target shutdown threshold. This method is based on the vibration signal characteristics of the actual device, so that the determined threshold is closer to the actual use situation and improves the practicality of the threshold. When the ratio does not meet the conditions, the algorithm does not need to perform complex iterations and comparison operations, but directly determines the threshold according to the preset upper limit value of the vibration signal. This simplifies the operation process, reduces the calculation complexity, and improves the processing efficiency. Since this method determines the threshold based on the vibration signal characteristics of the actual device, it is more adaptable to different devices and different usage scenarios. Even in some special cases, the ratio of the first extreme value cluster center to the second extreme value cluster center does not meet the conditions, the algorithm can obtain a reasonable threshold by other means, thereby ensuring the robustness of the algorithm.

[0069] ​S140. When a vibration signal to be identified is received, the vibration signal to be identified is compared with the target power-on threshold and the target power-off threshold respectively, and the comparison result is processed based on the judgment rule to determine the power-on / off state of the device corresponding to the vibration signal to be identified.

[0070] When a new device enters the monitoring, after a certain period of data accumulation (it is recommended that the number of signal groups exceed 1000 groups), the data is firstly subjected to outlier removal, and then the clustering function group number K is used to obtain the optimal grouping number K through the optimal evaluation system. m :C0>R, choose the smallest n so that C0:C n >R, then C n For this new device, the power-on threshold A is used. The subsequent signals of this device can use the power-on / off judgment rule and the power-on threshold A to obtain the power-on / off status of each group of signals. m :C0≤R, judge when C m on It is completely shut down, C m ≥A on It is fully powered on and needs to continue collecting signals and iterating until C m :C0≤R. This process eliminates the need for manual labeling of new machines.

[0071] This embodiment also discloses a system for identifying the power on / off status of a device. Figure 8 is a schematic diagram of a module of a system for identifying the power on / off status of a device disclosed in an embodiment of the present application, such as Figure 8 As shown, the recognition system includes a collection module 801, a rule module 802, a calculation module 803 and an execution module 804, wherein: The acquisition module 801 is configured to obtain a vibration signal of a first preset device, determine an initial power-on threshold according to the first vibration signal, and determine an initial power-off threshold according to the second vibration signal, wherein the first vibration signal is a vibration signal during the power-on period, and the second vibration signal is a vibration signal during the power-off period; A rule module 802 is configured to generate a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; a calculation module 803 is configured to process the vibration signal through a clustering algorithm to obtain a target power on threshold and a target power off threshold; The execution module 804 is configured to compare the vibration signal to be identified with the target power-on threshold and the target power-off threshold respectively when receiving the vibration signal to be identified, and process the comparison result based on the judgment rule to determine the power-on / power-off state of the device corresponding to the vibration signal to be identified.

[0072] Optionally, the rule module 802 is configured to: ​A feature set is generated according to the relationship between the vibration signal and the power-on threshold and the power-off threshold, a classification decision tree for the power-on and power-off status is constructed through the feature set, a preset number of features in the classification decision tree are retained according to feature importance, and a power-on and power-off judgment rule is generated according to the retained features.

[0073] Optionally, the calculation module 803 is configured to: Construct multiple evaluation systems based on evaluation coefficients; Performing clustering iteration on the vibration signal using a clustering algorithm, recording actual evaluation coefficients, and determining a first iteration group number according to the actual evaluation coefficients, wherein the first iteration group number and the second iteration group number are any two iteration group numbers, and the actual evaluation coefficient corresponding to the first iteration group number is better than the actual evaluation coefficient corresponding to the second iteration group number; Iterate the group ratios, determine the first group ratios by the power on / off accuracy of each group of vibration signals, the group ratios are the average vibration frequency when the power is turned off and the average vibration frequency of the preset power on gear, the first group ratios and the second group ratios are any two group ratios, and the power on / off accuracy of the first group ratios is greater than the power on / off accuracy of the second group ratios; A target evaluation system is selected from the multiple evaluation systems according to the first iteration group number and the first group ratio, and the target startup threshold and the target shutdown threshold are determined according to the target evaluation system.

[0074] Optionally, the calculation module 803 is configured to include: When the actual evaluation coefficient is a silhouette coefficient, determining whether the overall trend of the actual evaluation coefficient decreases with an increase in the number of iteration groups; When the overall trend of the actual evaluation coefficient is decreasing with the increase of the number of iteration groups, determining the actual evaluation coefficient with the largest value, and determining the number of iteration groups corresponding to the actual evaluation coefficient with the largest value as the first number of iteration groups; When the overall trend of the actual evaluation coefficient is to increase with the increase of the number of iteration groups, the actual evaluation coefficient with the largest change rate is determined, and the number of iteration groups corresponding to the actual evaluation coefficient with the largest change rate is determined as the first number of iteration groups.

[0075] Optionally, the calculation module 803 is configured to: A loss function is constructed according to the first extreme value cluster center, the second extreme value cluster center and the group ratio obtained after cluster iteration, and a cost function is constructed through the loss function, wherein the first extreme value cluster center is greater than or equal to any cluster center in the first cluster center set, the second extreme value cluster center is less than or equal to any cluster center in the first cluster center set, and the first cluster center set is the set of all cluster centers after cluster iteration; Iterate the group ratio, and obtain the corresponding cost function value according to the group ratio, and determine whether the cost function value obtained by the current group ratio is greater than the cost function value obtained by the previous group ratio; When the cost function value obtained by the current group ratio is not greater than the cost function value obtained by the previous group ratio, the previous group ratio is used as the first group ratio.

[0076] Optionally, the calculation module 803 is further configured to: Determine whether a ratio of the first extreme value cluster center to the second extreme value cluster center is greater than a first ratio; When the ratio of the first extreme value cluster center to the second extreme value cluster center is greater than the first ratio, determining the product of the second extreme value cluster center and the first ratio, and determining all cluster centers greater than the product to form a second cluster center set; A third extreme value cluster center is selected from the second cluster center set, and the target power-on threshold is determined according to the third extreme value cluster center, where the third extreme value cluster center is less than or equal to any cluster center in the second cluster center set.

[0077] Optionally, the calculation module 803 is further configured to: When the ratio of the first extreme value cluster center to the second extreme value cluster center is less than or equal to the first ratio, the target power-on threshold and the target power-off threshold are determined according to the upper limit value of the vibration signal of the second preset device, and the second preset device is a device that has been shut down in the first preset device.

[0078] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0079] This embodiment also discloses an electronic device, referring to Fig. 9 The electronic device may include: at least one processor 901 , at least one communication bus 902 , a user interface 903 , a network interface 904 , and at least one memory 905 .

[0080] The communication bus 902 is used to realize the connection and communication between these components.

[0081] The user interface 903 may include a display screen (Display) and a camera (Camera), and the optional user interface 903 may also include a standard wired interface and a wireless interface.

[0082] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0083] Among them, the processor 901 may include one or more processing cores. The processor 901 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 905, and calling data stored in the memory 905. Optionally, the processor 901 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 901 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 901, and it can be implemented by a single chip.

[0084] Among them, the memory 905 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 905 includes a non-transitory computer-readable storage medium. The memory 905 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 905 may optionally be at least one storage device located away from the aforementioned processor 901. As Fig. 9As shown, the memory 905 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for a method for identifying a device power on / off state.

[0085] exist Fig. 9 In the electronic device shown, the user interface 903 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 901 can be used to call the application program for the method of identifying the power on / off status of the device stored in the memory 905. When executed by one or more processors 901, the electronic device executes one or more methods in the above-mentioned embodiments.

[0086] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0087] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0088] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0090] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory 905 and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory 905 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0092] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for identifying the power on / off state of a device, characterized in that: Applied to a power on / off state recognition platform, the method includes: Acquire a vibration signal of a first preset device, determine an initial power-on threshold according to the first vibration signal, and determine an initial power-off threshold according to the second vibration signal, wherein the first vibration signal is a vibration signal during the power-on period, and the second vibration signal is a vibration signal during the power-off period; Generate a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; Processing the vibration signal by a clustering algorithm to obtain a target startup threshold and a target shutdown threshold; When a vibration signal to be identified is received, the vibration signal to be identified is compared with the target power-on threshold and the target power-off threshold respectively, and the comparison result is processed based on the judgment rule to determine the power-on / off state of the device corresponding to the vibration signal to be identified.

2. The method for identifying the power on / off status of a device according to claim 1, characterized in that: The power on / off judgment rule generated according to the initial power on threshold and the initial power off threshold comprises: A feature set is generated according to the relationship between the vibration signal and the power-on threshold and the power-off threshold, a classification decision tree for the power-on and power-off status is constructed through the feature set, a preset number of features in the classification decision tree are retained according to feature importance, and a power-on and power-off judgment rule is generated according to the retained features.

3. The method for identifying the power on / off status of a device according to claim 1, characterized in that: The step of processing the vibration signal by a clustering algorithm to obtain a target startup threshold and a target shutdown threshold comprises: Construct multiple evaluation systems based on evaluation coefficients; Performing clustering iteration on the vibration signal using a clustering algorithm, recording actual evaluation coefficients, and determining a first iteration group number according to the actual evaluation coefficients, wherein the first iteration group number and the second iteration group number are any two iteration group numbers, and the actual evaluation coefficient corresponding to the first iteration group number is better than the actual evaluation coefficient corresponding to the second iteration group number; Iterate the group ratios, determine the first group ratios by the power on / off accuracy of each group of vibration signals, the group ratios are the average vibration frequency when the power is turned off and the average vibration frequency of the preset power on gear, the first group ratios and the second group ratios are any two group ratios, and the power on / off accuracy of the first group ratios is greater than the power on / off accuracy of the second group ratios; A target evaluation system is selected from the multiple evaluation systems according to the first iteration group number and the first group ratio, and the target startup threshold and the target shutdown threshold are determined according to the target evaluation system.

4. The method for identifying the power on / off status of a device according to claim 3, characterized in that: The using a clustering algorithm to perform clustering iteration on the vibration signal, recording actual evaluation coefficients, and determining the first iteration group number by the actual evaluation coefficients comprises: When the actual evaluation coefficient is a silhouette coefficient, determining whether the overall trend of the actual evaluation coefficient decreases with an increase in the number of iteration groups; When the overall trend of the actual evaluation coefficient is decreasing with the increase of the number of iteration groups, determining the actual evaluation coefficient with the largest value, and determining the number of iteration groups corresponding to the actual evaluation coefficient with the largest value as the first number of iteration groups; When the overall trend of the actual evaluation coefficient is to increase with the increase of the number of iteration groups, the actual evaluation coefficient with the largest change rate is determined, and the number of iteration groups corresponding to the actual evaluation coefficient with the largest change rate is determined as the first number of iteration groups.

5. The method for identifying the power on / off status of a device according to claim 3, characterized in that: The iterative group ratios, determining the first group ratios by the power on / off accuracy of each group of vibration signals, comprises: A loss function is constructed according to the first extreme value cluster center, the second extreme value cluster center and the group ratio obtained after cluster iteration, and a cost function is constructed through the loss function, wherein the first extreme value cluster center is greater than or equal to any cluster center in the first cluster center set, the second extreme value cluster center is less than or equal to any cluster center in the first cluster center set, and the first cluster center set is the set of all cluster centers after cluster iteration; Iterate the group ratio, and obtain the corresponding cost function value according to the group ratio, and determine whether the cost function value obtained by the current group ratio is greater than the cost function value obtained by the previous group ratio; When the cost function value obtained by the current group ratio is not greater than the cost function value obtained by the previous group ratio, the previous group ratio is used as the first group ratio.

6. The method for identifying the power on / off status of a device according to claim 5, characterized in that: The step of processing the vibration signal by a clustering algorithm to obtain a target startup threshold and a target shutdown threshold also includes: Determine whether a ratio of the first extreme value cluster center to the second extreme value cluster center is greater than a first ratio; When the ratio of the first extreme value cluster center to the second extreme value cluster center is greater than the first ratio, determining the product of the second extreme value cluster center and the first ratio, and determining all cluster centers greater than the product to form a second cluster center set; A third extreme value cluster center is selected from the second cluster center set, and the target power-on threshold is determined according to the third extreme value cluster center, where the third extreme value cluster center is less than or equal to any cluster center in the second cluster center set.

7. The method for identifying the power on / off status of a device according to claim 6, characterized in that: The step of processing the vibration signal by a clustering algorithm to obtain a target startup threshold and a target shutdown threshold also includes: When the ratio of the first extreme value cluster center to the second extreme value cluster center is less than or equal to the first ratio, the target power-on threshold and the target power-off threshold are determined according to the upper limit value of the vibration signal of the second preset device, and the second preset device is a device that has been shut down in the first preset device.

8. A system for identifying the power on / off status of a device, characterized in that: It includes a collection module, a rule module, a calculation module and an execution module, among which: an acquisition module configured to acquire a vibration signal of a first preset device, determine an initial power-on threshold according to the first vibration signal, and determine an initial power-off threshold according to a second vibration signal, wherein the first vibration signal is a vibration signal during a power-on period, and the second vibration signal is a vibration signal during a power-off period; A rule module, configured to generate a power on / off judgment rule according to the initial power on threshold and the initial power off threshold; A calculation module, configured to process the vibration signal through a clustering algorithm to obtain a target startup threshold and a target shutdown threshold; The execution module is configured to compare the vibration signal to be identified with the target power-on threshold and the target power-off threshold respectively when receiving the vibration signal to be identified, and process the comparison result based on the judgment rule to determine the power-on / power-off state of the device corresponding to the vibration signal to be identified.

9. An electronic device, characterized in that: It includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device executes the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is executed.