Equipment alarm management method, device, client and medium for smart building
By clustering the probability of equipment failure and calculating the difference in alarm value, the range of equipment alarm tolerance is determined, and the problem of low accuracy of equipment alarm management in the prior art is solved, and the accuracy of alarm and equipment service life are improved.
Patent Information
- Application Number
- CN202011174753.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The accuracy of existing equipment alarm management methods is low, which can easily lead to false alarms and missed alarms, and fail to effectively consider the changes in equipment status over time.
The alarm threshold of the device is determined by obtaining the device failure probability of the target device, performing clustering to determine the clustering center point, and calculating the alarm tolerance range based on the alarm value input by the user, to determine the alarm threshold of the device.
Improve the accuracy of equipment alarms, reduce false alarms and missed reports, and extend the service life of the equipment.
Smart Images

Figure CN112364900B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to a method, device, client and medium for managing equipment alarms in smart buildings. Background Art
[0002] At present, when the monitoring value of a certain attribute of the equipment exceeds a certain threshold during operation, it indicates that the equipment has failed, or even that the equipment has suffered a serious failure or has crashed. Therefore, in order to avoid equipment failures, the corresponding alarm value is manually set for the attribute for alarm management. When the attribute value reported by the equipment exceeds the alarm threshold, an alarm is output to prompt the corresponding staff. However, the manually set alarm value is inaccurate. When the alarm value is a range value, it is even more difficult for the human to give an accurate range. This practice often causes false alarms or missed alarms of the equipment, and does not consider the changes in the equipment status over time. Therefore, the accuracy of alarm management is low, which affects the service life of the equipment. Summary of the invention
[0003] The embodiments of the present application provide a method, device, client, and medium for equipment alarm management in smart buildings, which can solve the problem of low accuracy of existing alarm management.
[0004] In a first aspect, an embodiment of the present application provides a device alarm management method for a smart building, the device alarm management method comprising:
[0005] Obtaining a device failure probability corresponding to each of N device reported values of a target attribute of a target device, to obtain N device failure probabilities, where N is an integer greater than zero;
[0006] Clustering the N device failure probabilities to obtain K cluster center points, where K is an integer greater than zero and less than or equal to N;
[0007] Obtaining the device alarm value input by the user, and calculating the maximum value of the difference between the device reported value corresponding to the K cluster center points and the device alarm value;
[0008] An alarm tolerance range of the target attribute is determined according to the device alarm value and the maximum value.
[0009] In a second aspect, an embodiment of the present application provides a device alarm management for a smart building, wherein the device alarm management device comprises:
[0010] A probability acquisition module, used to acquire a device failure probability corresponding to each of N device reported values of a target attribute of a target device, and obtain N device failure probabilities, where N is an integer greater than zero;
[0011] A clustering processing module, used for clustering the N device failure probabilities to obtain K cluster center points, where K is an integer greater than zero and less than or equal to N;
[0012] A first alarm value acquisition module, used to obtain a device alarm value input by a user, and calculate the maximum value of the difference between the device reported value corresponding to the K cluster center points and the device alarm value;
[0013] A range determination module is used to determine the alarm tolerance range of the target attribute according to the device alarm value and the maximum value.
[0014] In a third aspect, an embodiment of the present application provides a client, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the device alarm management method as described in the first aspect when executing the computer program.
[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device alarm management method as described in the first aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a client, the client executes the device alarm management method described in the first aspect above.
[0017] Compared with the prior art, the beneficial effects of the embodiments of the present application are as follows: the present application clusters the device failure probabilities corresponding to the target attributes of the target device, determines the device reported values corresponding to K center points, and then compares the K device reported values with the device alarm values input by the user to determine the alarm tolerance range. The present application can combine the device reported values with the device alarm values input by the user to determine the alarm tolerance range, thereby avoiding the false alarm and missed alarm problems caused by manually setting the alarm value based on subjective experience, improving the accuracy of the alarm, facilitating the alarm management of the equipment, and helping to increase the service life of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 It is a flowchart of an alarm management method for a device provided in Example 1 of the present application;
[0020] Figure 2 It is a flowchart of an alarm management method for a device provided in Embodiment 2 of the present application;
[0021] Figure 3 It is a structural diagram of an alarm management device for a device provided in Embodiment 3 of the present application;
[0022] Figure 4 This is a structural diagram of a client provided in Example 4 of the present application. DETAILED DESCRIPTION
[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0025] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0026] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0027] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0028] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0029] An alarm management method for a device provided in an embodiment of the present application can be applied to clients such as handheld computers, desktop computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, cloud servers, and personal digital assistants (PDAs). A database is provided in the above-mentioned client, and the alarm management method for the device is executed when a transaction accesses the database. The database can be a memory database. The embodiment of the present application does not impose any restrictions on the specific type of the client.
[0030] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0031] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.
[0032] See also Figure 1 , is a flow chart of an alarm management method for a device provided in Embodiment 1 of the present application. The alarm management method can be used in a client, such as Figure 1 As shown, the alarm management method may include the following steps:
[0033] Step S101 : obtaining a device failure probability corresponding to each of N device reported values of a target attribute of a target device, and obtaining N device failure probabilities.
[0034] Among them, N is an integer greater than zero, the target device may refer to a device connected to the client, and the target device refers to a wide range, for example, common air conditioning equipment such as heaters and air conditioners, and industrial equipment such as machining centers; the target attribute may refer to some attributes used to determine whether the operation of the target device is abnormal, such as the outdoor temperature attribute of the air conditioner; the device reported value may refer to a preset value of the target attribute for the target device, which is used to indicate a target device failure, but the target device may not necessarily fail when the preset value occurs. Therefore, when the target attribute is the preset value, the target device has a certain failure probability, that is, one device reported value of the target attribute corresponds to one device failure probability.
[0035] The device failure probability can be stored in the corresponding storage device. The client sends an instruction to obtain the device failure probability reported by N devices for the target attribute of the target device to the storage device. After receiving the instruction to obtain the probability, the storage device sends the device failure probability to the client. Of course, the client can also obtain the device failure probability in other ways.
[0036] Optionally, obtaining the device failure probability corresponding to each device reported value of N device reported values of the target attribute of the target device, and obtaining the N device failure probabilities includes:
[0037] Obtain the number of occurrences of each reported value on the N device reported values of the target attribute of the target device and the corresponding number of device failures;
[0038] The number of device failures reported on each device is divided by the number of occurrences to obtain the device failure probability reported on each device.
[0039] Among them, the number of occurrences of the reported value on the device may refer to the number of times the value of the target attribute is reported on the device, and the corresponding number of device failures may refer to the number of times the target device fails when the value of the target attribute is reported on the device. The device failure probability corresponding to the reported value on the device can be obtained by dividing the number of device failures by the number of occurrences. By traversing N device reported values, N device failure probabilities can be obtained.
[0040] Equipment failure probability P i The calculation formula is as follows:
[0041]
[0042] Among them, i represents the value reported by the i-th device, r i is the number of device failures corresponding to the reported value on the i-th device, n i is the number of occurrences of the value reported on the i-th device.
[0043] Step S102: cluster the N device failure probabilities to obtain K cluster center points.
[0044] Wherein, K is an integer greater than zero and less than or equal to N. Clustering is an unsupervised learning method. For a given set of data points, a clustering algorithm can be used to divide each data point into a specific group. In theory, data points in the same group should have similar attributes and / or characteristics, while data points in different groups should have highly different attributes and / or characteristics. In this application, a device failure probability is a data point. By clustering N device failure probabilities, at least one cluster center point can be obtained. The cluster center point is a device failure probability among the N device failure probabilities.
[0045] The clustering method may adopt K-means clustering algorithm, K-medoid clustering algorithm, K nearest neighbor algorithm, etc., which is not limited in this application.
[0046] Optionally, clustering the failure probabilities of N devices includes:
[0047] The K nearest neighbor algorithm is used to cluster the failure probabilities of N devices.
[0048] Among them, the K nearest neighbor algorithm is an online technology. New equipment failure probabilities can be directly added to the equipment failure probability data set without retraining. The algorithm is simple in theory, easy to implement, and has high accuracy. It has a high tolerance for outliers and noise. The K nearest neighbor algorithm of this application can use distance metrics to cluster N equipment failure probabilities. When using distance metrics, Euclidean distance can be used as a distance measurement standard. Of course, the K nearest neighbor algorithm can also use similarity for clustering, which is not limited in this application.
[0049] Step S103, obtaining the device alarm value input by the user, and calculating the maximum value of the difference between the device reported value and the device alarm value corresponding to the K cluster center points.
[0050] The device alarm value is a value input by the user, that is, the user sets the alarm value for the target attribute of the target device according to his / her own needs when using the client to achieve the purpose of alarm.
[0051] In addition, K cluster center points have been obtained in step S102. Since the device reported value corresponds to the device failure probability one by one, and the cluster center point is one device failure probability among the N device failure probabilities, each cluster center point corresponds to a device reported value.
[0052] Subtract the device reported values corresponding to the K cluster centers from the device alarm values to obtain K differences, and find the maximum value among the K differences, such as the formula: X = max|ξ j -ξ0|, where 1≤j≤K, X is the maximum value, ξ jis the reported value of the device corresponding to the jth cluster center point, and ξ0 is the device alarm value.
[0053] Optionally, before obtaining the device alarm value input by the user, the following is also included:
[0054] Obtaining an alarm value of a target attribute for other devices input by a user, where the other devices are at least one device of the same product as the target device;
[0055] Clustering the alarm values of target attributes of other devices input by the user, and determining the alarm value corresponding to the cluster center point as the target alarm value;
[0056] Displays the target alarm value, which is used to prompt the user to enter the device alarm value based on the target alarm value.
[0057] Among them, other devices do not include the target device, and are devices of the same product as the target device. Other devices include at least one device. The alarm value entered by the user for the target attribute of other devices can be used to prompt the user to enter the device alarm value for the target device, providing a reference for the user and making it more convenient for the user to use.
[0058] Cluster the alarm values input by the user for the target attributes of other devices, determine the cluster center point, where there is 1 cluster center point, and display the alarm value corresponding to the cluster center point to prompt the user to input the device alarm value according to the alarm value. The clustering can adopt the clustering method in the above step S102, and the K value in the above clustering method is 1.
[0059] Step S104: determining an alarm tolerance range of the target attribute according to the device alarm value and the maximum value.
[0060] Among them, the maximum value represents the maximum offset between the K cluster center points and the device alarm value. When the monitoring value of the target attribute falls within the maximum offset of the device alarm value, it may cause the target device to fail. Therefore, the maximum offset of the device alarm value is the alarm tolerance range of the target attribute.
[0061] According to the reported value of the device and its device failure probability, the preset alarm value input by the user is adjusted to the alarm tolerance range, so that the alarm rules running in the client are more reasonable.
[0062] Optionally, the alarm tolerance range of the target attribute is determined based on the device alarm value and the maximum value, including:
[0063] The value obtained by subtracting the maximum value from the device alarm value is taken as the lowest value of the alarm tolerance range of the target attribute;
[0064] The value obtained by adding the device alarm value to the maximum value is used as the highest value of the alarm tolerance range of the target attribute.
[0065] The lowest value of the alarm tolerance range is the value obtained by subtracting the maximum value from the device alarm value (i.e., the lower limit), and the highest value of the alarm tolerance range is the value obtained by adding the maximum value to the device alarm value (i.e., the upper limit). When the value of the target attribute of the monitored target device falls between the upper limit and the lower limit, an alarm is output to prompt the user to check the target device.
[0066] The present application clusters the device failure probabilities corresponding to the target attributes of the target device, determines the device reported values corresponding to K center points, and then compares the K device reported values with the device alarm values input by the user to determine the alarm tolerance range. An alarm is issued when the monitoring value of the target attribute falls within the alarm tolerance range. The present application can combine the device reported value with the device alarm value input by the user to determine the alarm tolerance range, thereby avoiding manual settings, improving the accuracy of the alarm, facilitating the alarm management of the equipment, and helping to increase the service life of the equipment.
[0067] See also Figure 2 , is a flow chart of an alarm management method for a device provided in Embodiment 2 of the present application. The alarm management method can be used in a client, such as Figure 2 As shown, the alarm management method may include the following steps:
[0068] Step S201 : obtaining a device failure probability corresponding to each of N device reported values of a target attribute of a target device, and obtaining N device failure probabilities.
[0069] Step S202: cluster the N device failure probabilities to obtain K cluster center points.
[0070] Step S203, obtaining the device alarm value input by the user, and calculating the maximum value of the difference between the device reported value and the device alarm value corresponding to the K cluster center points.
[0071] Step S204: determining an alarm tolerance range of the target attribute according to the device alarm value and the maximum value.
[0072] Among them, the contents of step S201 to step S204 are the same as those of the above-mentioned step S101 to step S104, and the description of step S101 to step S104 may be referred to, and will not be repeated here.
[0073] Step S205, obtaining the monitoring value of the target attribute.
[0074] Among them, the monitoring device is used to detect the value of the target attribute of the target device to obtain the monitoring value. The client is connected to the monitoring device, and the client sends an instruction to obtain the monitoring value to the monitoring device. After receiving the instruction to obtain the monitoring value, the monitoring device obtains the value of the target attribute and sends the obtained result to the client.
[0075] Step S206: If the monitoring value is within the alarm tolerance range, M monitoring values are continuously obtained for the target attribute.
[0076] Among them, the method of the present application can issue an alarm when the monitoring value falls within the alarm tolerance range. In order to reduce the occurrence of false alarms, the method of the present application can continuously monitor the target attribute when the monitoring value falls within the alarm tolerance range to obtain M monitoring values, where M is an integer greater than zero.
[0077] Step S207, determining whether the abnormality rate of the M monitoring values is greater than the target abnormality rate.
[0078] Among them, the abnormal rate of M monitoring values is the ratio of the number of monitoring values within the alarm tolerance range of M monitoring values to M. If M is 10, the number of monitoring values within the alarm tolerance range of 10 monitoring values is 8, and the abnormal rate of these 10 monitoring values is 0.8; the target abnormal rate is a value pre-set according to demand, for example, 0.6.
[0079] Step S208: If the abnormality rate of the M monitoring values is greater than the target abnormality rate, an alarm message is output.
[0080] Among them, the abnormal rate of M monitoring values is greater than the target abnormal rate, which can be used to indicate that the value of the target attribute is in an abnormal state, which is likely to cause target device failure. Therefore, an alarm is output when the abnormal rate of M monitoring values is greater than the target abnormal rate.
[0081] Optionally, after outputting the alarm information, it also includes:
[0082] Get the device information of the target device;
[0083] According to the device information and alarm information, the information of the alarm linkage device is obtained. The alarm linkage device is a device used to be started when the target attribute alarm occurs.
[0084] According to the information of the alarm linkage device, the alarm linkage device is triggered to start.
[0085] Among them, the device information of the target device may include information such as the device name and model, and the alarm information of the target device may include information such as the alarm code and the alarm location. In the present application, the preset linkage relationship table can be searched according to the device information and alarm information of the target device, that is, if there is an alarm linkage device corresponding to the device information and alarm information of the target device in the preset linkage relationship table, then the information of the alarm linkage device is obtained; if there is no alarm linkage device corresponding to the device information and alarm information of the target device in the preset linkage relationship table, then the alarm linkage cannot be performed.
[0086] The alarm linkage device is a device that is started when the target attribute of the target device alarms. For example, the alarm linkage device is a backup device of the target device. Starting the backup device can avoid failure of the target device. For another example, the alarm linkage device is a device that intervenes in the target attribute of the target device. Starting the device can intervene in the target attribute to avoid abnormal value of the target attribute.
[0087] The client connects to the target device, and sends the information acquisition instruction of the device information and alarm information to the target device. The target device responds to the information acquisition instruction and sends the device information and alarm information to the client. The client obtains the information of the alarm linkage device based on the device information and alarm information. Of course, the client connects to the alarm linkage device, and sends the start instruction to the alarm linkage device. The alarm linkage device responds to the start instruction to start.
[0088] The embodiment of the present application monitors the target attributes and determines whether to issue an alarm based on the abnormal rate of M monitoring values of the target attributes, thereby reducing the possibility of false alarms and improving the accuracy of alarms. In addition, by linking with the alarm linkage device, the alarm can be effectively processed.
[0089] Corresponding to the alarm management method of the device in the above embodiment, Figure 3 A structural block diagram of the alarm management device of the equipment provided in the second embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.
[0090] See also Figure 3 , the alarm management device comprises:
[0091] The probability acquisition module 31 is used to acquire the device failure probability corresponding to each device reported value in N device reported values of the target attribute of the target device, and obtain N device failure probabilities, where N is an integer greater than zero;
[0092] A cluster processing module 32, used to cluster the N device failure probabilities to obtain K cluster center points, where K is an integer greater than zero and less than or equal to N;
[0093] The first alarm value acquisition module 33 is used to obtain the device alarm value input by the user and calculate the maximum value of the difference between the device reported value and the device alarm value corresponding to the K cluster center points;
[0094] The range determination module 34 is used to determine the alarm tolerance range of the target attribute according to the device alarm value and the maximum value.
[0095] Optionally, the probability acquisition module 31 includes:
[0096] A frequency acquisition unit, used to acquire the occurrence frequency of each reported value on the N device reported values of the target attribute of the target device and the corresponding device failure frequency;
[0097] The probability determination unit is used to divide the number of device failures reported on each device by the number of occurrences to obtain the device failure probability reported on each device.
[0098] Optionally, the range determination module 34 includes:
[0099] A minimum value determination unit, configured to use a value obtained by subtracting a maximum value from a device alarm value as a minimum value of an alarm tolerance range of a target attribute;
[0100] The maximum value determination unit is used to use the value obtained by adding the device alarm value to the maximum value as the maximum value of the alarm tolerance range of the target attribute.
[0101] Optionally, the alarm management device further includes:
[0102] A second alarm value acquisition module, used to acquire an alarm value of a target attribute of other devices input by a user, where the other devices are at least one device of the same product as the target device;
[0103] A target determination module is used to cluster the alarm values of target attributes of other devices input by the user, and determine the alarm value corresponding to the cluster center point as the target alarm value;
[0104] The display module is used to display the target alarm value, and the target alarm value is used to prompt the user to input the device alarm value according to the target alarm value.
[0105] Optionally, the cluster processing module 32 is specifically used for:
[0106] The K nearest neighbor algorithm is used to cluster the failure probabilities of N devices.
[0107] Optionally, the alarm management device further includes:
[0108] A monitoring value acquisition module is used to obtain the monitoring value of the target attribute;
[0109] A continuous acquisition module, used for continuously acquiring M monitoring values for a target attribute if the monitoring value is within an alarm tolerance range;
[0110] A judgment module, used to judge whether the abnormality rate of M monitoring values is greater than the target abnormality rate, wherein the abnormality rate of M monitoring values is the ratio of the number of monitoring values of M monitoring values within the alarm tolerance range to M;
[0111] The alarm module is used to output an alarm if the abnormal rate of the M monitoring values is greater than the target abnormal rate.
[0112] Optionally, the alarm management device further includes:
[0113] An information acquisition module is used to obtain device information and alarm information of the target device;
[0114] A linkage acquisition module is used to acquire information of an alarm linkage device according to device information and alarm information. The alarm linkage device is a device used to be activated when a target attribute alarm is generated.
[0115] The trigger module is used to trigger the alarm linkage device to start according to the information of the alarm linkage device.
[0116] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0117] Figure 4 This is a schematic diagram of the structure of a client provided in Example 3 of this application. Figure 4 As shown, the client 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure) a processor, a memory 41, and a computer program 42 stored in the memory 41 and executable on at least one processor 40. When the processor 40 executes the computer program 42, the steps in the above-mentioned alarm management method embodiment of any of the above-mentioned devices are implemented.
[0118] The client may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of client 4 and does not constitute a limitation on client 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.; for example, components that need to be set in the client entity such as RGB cameras and robotic arms.
[0119] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0120] In some embodiments, the memory 41 may be an internal storage unit of the client 4, such as a hard disk or memory of the client 4. In other embodiments, the memory 41 may also be an external storage device of the client 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the client 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the client 4. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of a computer program. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0121] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. 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 storage medium. Based on such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, USB flash drive, mobile hard disk, magnetic disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0122] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a client, the client implements the steps in the above-mentioned method embodiment when executing the computer program product.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices / clients and methods can be implemented in other ways. For example, the device / client embodiments described above are merely schematic. For example, the division of modules or units 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 interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] 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.
[0127] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A device alarm management method for smart buildings, characterized in that: The device alarm management method comprises: Obtaining a device failure probability corresponding to each of N device reported values of a target attribute of a target device, to obtain N device failure probabilities, where N is an integer greater than zero; Clustering the N device failure probabilities using a K nearest neighbor algorithm to obtain K cluster center points, where K is an integer greater than zero and less than or equal to N; Obtaining the device alarm value input by the user, and calculating the maximum value of the difference between the device reported value corresponding to the K cluster center points and the device alarm value; Determining an alarm tolerance range of the target attribute according to the device alarm value and the maximum value; Obtaining a monitoring value of the target attribute; If the monitoring value is within the alarm tolerance range, then continuously obtaining M monitoring values for the target attribute, where M is an integer greater than zero; Determine whether the abnormality rate of the M monitoring values is greater than the target abnormality rate, wherein the abnormality rate of the M monitoring values is the ratio of the number of monitoring values of the M monitoring values within the alarm tolerance range to M; If the abnormality rate of the M monitoring values is greater than the target abnormality rate, an alarm message is output.
2. The device alarm management method according to claim 1, characterized in that: The obtaining of the device failure probability corresponding to each device reported value in N device reported values of the target attribute of the target device to obtain the N device failure probabilities includes: Obtain the number of occurrences of each reported value on the N device reported values of the target attribute of the target device and the corresponding number of device failures; The number of device failures reported on each device is divided by the number of occurrences to obtain the device failure probability reported on each device.
3. The device alarm management method according to claim 1, characterized in that: The determining, according to the device alarm value and the maximum value, an alarm tolerance range of the target attribute includes: Subtracting the maximum value from the device alarm value as the lowest value of the alarm tolerance range of the target attribute; A value obtained by adding the device alarm value to the maximum value is used as the highest value of the alarm tolerance range of the target attribute.
4. The device alarm management method according to claim 1, characterized in that: Before obtaining the device alarm value input by the user, the method further includes: Acquire an alarm value of the target attribute for other devices input by a user, where the other devices are at least one device of the same product as the target device; Clustering the alarm values of the target attributes of other devices input by the user, and determining the alarm value corresponding to the cluster center point as the target alarm value; The target alarm value is displayed, and the target alarm value is used to prompt the user to input the device alarm value according to the target alarm value.
5. The device alarm management method according to claim 1, characterized in that: After outputting the alarm information, the method further includes: Obtaining device information of the target device; According to the device information and the alarm information, information of an alarm linkage device is acquired, where the alarm linkage device is a device used to be started when an alarm is generated for the target attribute; According to the information of the alarm linkage device, the alarm linkage device is triggered to start.
6. An equipment alarm management device for smart buildings, characterized in that: The equipment alarm management device comprises: A probability acquisition module, used to acquire a device failure probability corresponding to each of N device reported values of a target attribute of a target device, and obtain N device failure probabilities, where N is an integer greater than zero; A clustering processing module, used to cluster the N device failure probabilities using a K nearest neighbor algorithm to obtain K cluster center points, where K is an integer greater than zero and less than or equal to N; A first alarm value acquisition module, used to obtain a device alarm value input by a user, and calculate the maximum value of the difference between the device reported value corresponding to the K cluster center points and the device alarm value; A range determination module, configured to determine an alarm tolerance range of the target attribute according to the device alarm value and the maximum value; A monitoring value acquisition module, used to obtain the monitoring value of the target attribute; a continuous acquisition module, configured to continuously acquire M monitoring values for the target attribute if the monitoring value is within the alarm tolerance range, where M is an integer greater than zero; A judgment module, used for judging whether the abnormality rate of the M monitoring values is greater than the target abnormality rate, wherein the abnormality rate of the M monitoring values is the ratio of the number of the monitoring values of the M monitoring values within the alarm tolerance range to M; The alarm module is used to output an alarm message if the abnormality rate of the M monitoring values is greater than the target abnormality rate.
7. A client comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the device alarm management method according to any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the device alarm management method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data monitoring method and device
CN106878064A
Method for detecting entry into water and intelligently alarming and electronic device
CN107067666A
Alarm algorithm generation method, monitoring system and terminal device
CN109446017A
Alarm information processing method and device
CN110321268A
Method and device for uniformly generating alarm information and medium
CN110704283A
