CN116701104B - Algorithm adjustment method, device and monitoring system in edge monitoring equipment - Google Patents
Algorithm adjustment method, device and monitoring system in edge monitoring equipment Download PDFInfo
- Publication number
- CN116701104B CN116701104B CN202310499336.6A CN202310499336A CN116701104B CN 116701104 B CN116701104 B CN 116701104B CN 202310499336 A CN202310499336 A CN 202310499336A CN 116701104 B CN116701104 B CN 116701104B
- Authority
- CN
- China
- Prior art keywords
- monitoring
- algorithm
- edge
- target
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 1322
- 238000000034 method Methods 0.000 title claims abstract description 97
- 238000012806 monitoring device Methods 0.000 claims abstract description 168
- 230000008569 process Effects 0.000 claims description 21
- 238000012216 screening Methods 0.000 claims description 14
- 230000002159 abnormal effect Effects 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 9
- 230000037430 deletion Effects 0.000 claims description 9
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 18
- 238000012545 processing Methods 0.000 description 7
- 238000012795 verification Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 239000002699 waste material Substances 0.000 description 6
- 230000005856 abnormality Effects 0.000 description 5
- 239000000779 smoke Substances 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
- G06F11/3072—Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The application provides an algorithm adjusting method, an algorithm adjusting device and a monitoring system in edge monitoring equipment, wherein the method comprises the following steps: under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports algorithm operation information and external environment monitoring information to a monitoring server; the algorithm operation information comprises current monitoring algorithms currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm; the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the monitoring server issues the target monitoring algorithm to the edge monitoring device so that the edge monitoring device can adjust the current monitoring algorithm by using the target monitoring algorithm. The method is beneficial to improving the utilization rate of the edge monitoring equipment and the updating efficiency of the monitoring algorithm.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an algorithm adjustment method, an algorithm adjustment device, and a monitoring system in an edge monitoring device.
Background
With a large amount of applications of the monitoring device, transmission and processing of large data put higher demands on network bandwidth, monitoring server configuration requirements and processing timeliness. Edge monitoring devices have evolved to mitigate pressure from network bandwidth, server processing power, etc., while maintaining good processing timeliness.
However, the computing power of the edge monitoring equipment is not fully exerted, and the problems of low utilization rate and resource waste of the edge monitoring equipment are easy to occur. In addition, the monitoring algorithm running in the edge monitoring equipment is usually fixed at present, and the monitoring algorithm in the edge monitoring equipment is updated and adjusted by manual selection, so that the updating efficiency of the monitoring algorithm running in the edge monitoring equipment is lower.
Disclosure of Invention
In view of this, an object of the present application is to provide an algorithm adjusting method, device and monitoring system in an edge monitoring device, so as to improve the utilization rate of the edge monitoring device, reduce the resource waste, and improve the updating efficiency of the monitoring algorithm.
In a first aspect, an embodiment of the present application provides an algorithm adjustment method in an edge monitoring device, where the method is applied to a monitoring system, where the monitoring system includes a monitoring server and at least one edge monitoring device, and the method includes:
When the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports algorithm running information and external environment monitoring information to the monitoring server; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information;
and the monitoring server transmits the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm.
With reference to the first aspect, an embodiment of the present application provides a first possible implementation manner of the first aspect, where, in a case that a hardware utilization rate of the edge monitoring device is lower than a preset threshold, the edge monitoring device reports algorithm running information and external environment monitoring information to the monitoring server, including:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports the algorithm running information to the monitoring server;
And the monitoring server sends an acquisition instruction to the edge monitoring equipment so that the edge monitoring equipment reports the external environment monitoring information to the monitoring server.
With reference to the first aspect, an embodiment of the present application provides a second possible implementation manner of the first aspect, where the matching, by the monitoring server, from a plurality of preset monitoring algorithms according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm suitable for the edge monitoring device, includes:
determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the first aspect, the embodiment of the present application provides a third possible implementation manner of the first aspect, wherein the issuing, by the monitoring server, the target monitoring algorithm to the edge monitoring device includes:
the monitoring server sends a request issuing instruction to the edge monitoring equipment; the issuing request instruction comprises a second hardware occupancy rate of the target monitoring algorithm and a version of a compiler corresponding to an executable file of the target monitoring algorithm;
the edge monitoring equipment judges whether the target monitoring algorithm can be operated according to the second hardware occupancy rate and the version of the compiler;
when the edge monitoring equipment can run the target monitoring algorithm, the edge monitoring equipment sends an agreement issuing instruction to the monitoring server so that the monitoring server issues the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the first aspect, the embodiment of the present application provides a fourth possible implementation manner of the first aspect, wherein the adjusting, by the edge monitoring device, the current monitoring algorithm using the target monitoring algorithm includes:
After the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, the edge monitoring equipment reads a first MD5 value from the target monitoring algorithm and calculates a second MD5 value according to an executable file of the target monitoring algorithm;
judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, judging whether the first KEY value and the second KEY value are the same or not so as to judge the validity of the target monitoring algorithm;
and when the target monitoring algorithm is complete and/or legal, the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm.
With reference to the first aspect, an embodiment of the present application provides a fifth possible implementation manner of the first aspect, where the sending, by the monitoring server, the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm includes:
The monitoring server issues the target monitoring algorithm and a monitoring algorithm adjustment instruction to the edge monitoring equipment; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information;
and the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
With reference to the third possible implementation manner of the first aspect, the embodiment of the present application provides a sixth possible implementation manner of the first aspect, wherein after the adjusting, by the edge monitoring device, the current monitoring algorithm using the target monitoring algorithm, the method further includes:
when the edge monitoring equipment runs the target monitoring algorithm, the third hardware occupancy rate of the target monitoring algorithm is sent to the monitoring server;
and the monitoring server updates the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the first aspect, the embodiment of the present application provides a seventh possible implementation manner of the first aspect, where after the adjusting, by the edge monitoring device, the current monitoring algorithm using the target monitoring algorithm, the method further includes:
when the target monitoring algorithm is abnormal in the process of running the target monitoring algorithm, the edge monitoring equipment stops running the target monitoring algorithm and sends an abnormal running notification to the monitoring server;
and/or the number of the groups of groups,
and in the process of operating the target monitoring algorithm, when the current hardware utilization rate of the edge monitoring equipment is larger than a threshold value, stopping operating the target monitoring algorithm, and sending the fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
In a second aspect, an embodiment of the present application further provides an algorithm adjustment method in an edge monitoring device, where the method is applied to a monitoring server, and the method includes:
receiving algorithm running information and external environment monitoring information reported by edge monitoring equipment under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
According to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms;
and transmitting the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm.
With reference to the second aspect, an embodiment of the present application provides a first possible implementation manner of the second aspect, where, in a case that a hardware utilization rate of an edge monitoring device is lower than a preset threshold, receiving algorithm running information and external environment monitoring information reported by the edge monitoring device includes:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, receiving the algorithm running information reported by the edge monitoring equipment;
and sending an acquisition instruction to the edge monitoring equipment, and receiving the external environment monitoring information reported by the edge monitoring equipment.
With reference to the second aspect, an embodiment of the present application provides a second possible implementation manner of the second aspect, where matching, according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm suitable for the edge monitoring device from a plurality of preset monitoring algorithms, includes:
Determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the second aspect, the embodiment of the present application provides a third possible implementation manner of the second aspect, wherein the issuing the target monitoring algorithm to the edge monitoring device includes:
sending a request issuing instruction to the edge monitoring equipment so that the edge monitoring equipment can judge whether the target monitoring algorithm can be operated or not according to the second hardware occupancy rate of the target monitoring algorithm and the version of a compiler corresponding to an executable file of the target monitoring algorithm, which are included in the request issuing instruction;
And when the edge monitoring equipment can run the target monitoring algorithm, receiving an agreement issuing instruction sent by the edge monitoring equipment so as to issue the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the second aspect, the embodiment of the present application provides a fourth possible implementation manner of the second aspect, wherein the enabling the edge monitoring device to adjust the current monitoring algorithm using the target monitoring algorithm includes:
after the target monitoring algorithm is issued to the edge monitoring equipment, the edge monitoring equipment reads a first MD5 value from the target monitoring algorithm, calculates a second MD5 value according to an executable file of the target monitoring algorithm, and judges whether the first MD5 value and the second MD5 value are the same or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the target monitoring algorithm is issued to the edge monitoring equipment, the edge monitoring equipment judges whether the first KEY value and the second KEY value are the same or not so as to judge the legitimacy of the target monitoring algorithm;
And the edge monitoring equipment is used for adjusting the current monitoring algorithm by using the target monitoring algorithm when the target monitoring algorithm is complete and/or legal.
With reference to the second aspect, an embodiment of the present application provides a fifth possible implementation manner of the second aspect, where issuing the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm includes:
issuing the target monitoring algorithm and a monitoring algorithm adjusting instruction to the edge monitoring equipment so that the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjusting instruction; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information.
With reference to the third possible implementation manner of the second aspect, the embodiment of the present application provides a sixth possible implementation manner of the second aspect, where after the issuing, by the edge monitoring device, the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, the method further includes:
Receiving a third hardware occupancy rate of the target monitoring algorithm when the edge monitoring equipment runs the target monitoring algorithm;
and updating the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the second aspect, the embodiment of the present application provides a seventh possible implementation manner of the second aspect, where after the issuing, by the edge monitoring device, the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, the method further includes:
receiving an operation abnormality notification sent by the edge monitoring equipment; the operation abnormality notification is sent by the edge monitoring equipment when the operation of the target monitoring algorithm is abnormal in the process of operating the target monitoring algorithm, and the operation of the target monitoring algorithm is stopped;
and/or the number of the groups of groups,
receiving a fourth hardware occupancy rate of the target monitoring algorithm sent by the edge monitoring equipment, so as to update the second hardware occupancy rate according to the fourth hardware occupancy rate; and the fourth hardware occupancy rate is sent when the edge monitoring equipment stops running the target monitoring algorithm when the current hardware utilization rate of the edge monitoring equipment is greater than a threshold value in the process of running the target monitoring algorithm.
In a third aspect, an embodiment of the present application further provides an algorithm adjustment method in an edge monitoring device, where the method is applied to the edge monitoring device, and the method includes:
reporting algorithm operation information and external environment monitoring information to a monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, so that the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
and receiving the target monitoring algorithm issued by the monitoring server so as to adjust the current monitoring algorithm by using the target monitoring algorithm.
With reference to the third aspect, an embodiment of the present application provides a first possible implementation manner of the third aspect, where, in a case that a hardware utilization rate of the edge monitoring device is lower than a preset threshold, reporting algorithm running information and external environment monitoring information to a monitoring server includes:
When the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, reporting the algorithm running information to the monitoring server;
and receiving an acquisition instruction sent by the monitoring server so as to report the external environment monitoring information to the monitoring server.
With reference to the third aspect, an embodiment of the present application provides a second possible implementation manner of the third aspect, where the enabling, according to the algorithm running information and the external environment monitoring information, the monitoring server to match, from a plurality of preset monitoring algorithms, a target monitoring algorithm applicable to the edge monitoring device includes:
the monitoring server determines the target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information; selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms; determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment; and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the third aspect, the embodiment of the present application provides a third possible implementation manner of the third aspect, where the receiving the target monitoring algorithm issued by the monitoring server includes:
receiving an issuing request instruction sent by the monitoring server; the issuing request instruction comprises a second hardware occupancy rate of the target monitoring algorithm and a version of a compiler corresponding to an executable file of the target monitoring algorithm;
judging whether the target monitoring algorithm can be operated according to the second hardware occupancy rate and the version of the compiler;
and when the target monitoring algorithm can be operated, sending an agreement issuing instruction to the monitoring server so that the monitoring server issues the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the third aspect, the embodiment of the present application provides a fourth possible implementation manner of the third aspect, wherein adjusting the current monitoring algorithm using the target monitoring algorithm includes:
after receiving the target monitoring algorithm issued by the monitoring server, reading a first MD5 value from the target monitoring algorithm, and calculating a second MD5 value according to an executable file of the target monitoring algorithm;
Judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after receiving the target monitoring algorithm issued by the monitoring server, judging whether the first KEY value is the same as the second KEY value or not so as to judge the validity of the target monitoring algorithm;
and when the target monitoring algorithm is complete and/or legal, adjusting the current monitoring algorithm by using the target monitoring algorithm.
With reference to the third aspect, the embodiment of the present application provides a fifth possible implementation manner of the third aspect, where receiving the target monitoring algorithm issued by the monitoring server to adjust the current monitoring algorithm using the target monitoring algorithm includes:
receiving the target monitoring algorithm and a monitoring algorithm adjustment instruction issued by the monitoring server; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information;
And adjusting the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
With reference to the third possible implementation manner of the third aspect, the embodiment of the present application provides a sixth possible implementation manner of the third aspect, where after the adjusting the current monitoring algorithm using the target monitoring algorithm, the method further includes:
and transmitting a third hardware occupancy rate of the target monitoring algorithm when the target monitoring algorithm is operated to the monitoring server, so that the monitoring server updates the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the third aspect, the embodiment of the present application provides a seventh possible implementation manner of the third aspect, where after the adjusting the current monitoring algorithm using the target monitoring algorithm, the method further includes:
when the target monitoring algorithm is abnormal in the process of running the target monitoring algorithm, the edge monitoring equipment stops running the target monitoring algorithm and sends an abnormal running notification to the monitoring server;
and/or the number of the groups of groups,
and in the process of operating the target monitoring algorithm, when the current hardware utilization rate of the edge monitoring equipment is larger than a threshold value, stopping operating the target monitoring algorithm, and sending the fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
In a fourth aspect, embodiments of the present application further provide a monitoring system, where the system includes a monitoring server and at least one edge monitoring device;
the edge monitoring equipment is used for reporting algorithm running information and external environment monitoring information to the monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm; receiving a target monitoring algorithm issued by the monitoring server; and adjusting the current monitoring algorithm using the target monitoring algorithm;
the monitoring server is used for receiving the algorithm running information and the external environment monitoring information reported by the edge monitoring equipment; according to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms; and issuing the target monitoring algorithm to the edge monitoring equipment.
With reference to the fourth aspect, an embodiment of the present application provides a first possible implementation manner of the fourth aspect, where the edge monitoring device is configured to, when the hardware utilization rate of the edge monitoring device is below a preset threshold, report algorithm running information and external environment monitoring information to the monitoring server, specifically configured to:
When the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, reporting the algorithm running information to the monitoring server;
and receiving an acquisition instruction sent by the monitoring server so as to report the external environment monitoring information to the monitoring server.
With reference to the fourth aspect, an embodiment of the present application provides a second possible implementation manner of the fourth aspect, where the monitoring server is configured to, when being configured to match, according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm suitable for the edge monitoring device from a plurality of preset monitoring algorithms, to the edge monitoring device, specifically configured to:
determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
And screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the fourth aspect, the embodiment of the present application provides a third possible implementation manner of the fourth aspect, where the monitoring server is specifically configured to, when configured to issue the target monitoring algorithm to the edge monitoring device:
sending a request issuing instruction to the edge monitoring equipment so that the edge monitoring equipment can judge whether the target monitoring algorithm can be operated or not according to the second hardware occupancy rate of the target monitoring algorithm contained in the request issuing instruction and the version of a compiler corresponding to an executable file of the target monitoring algorithm; and when the edge monitoring equipment can run the target monitoring algorithm, receiving an agreement issuing instruction sent by the edge monitoring equipment so as to issue the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the fourth aspect, the embodiment of the present application provides a fourth possible implementation manner of the fourth aspect, where the edge monitoring device is specifically configured to, when configured to adjust the current monitoring algorithm using the target monitoring algorithm:
After the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, a first MD5 value is read from the target monitoring algorithm, and a second MD5 value is calculated according to an executable file of the target monitoring algorithm;
judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, judging whether the first KEY value and the second KEY value are the same or not so as to judge the validity of the target monitoring algorithm;
and when the target monitoring algorithm is complete and/or legal, adjusting the current monitoring algorithm by using the target monitoring algorithm.
With reference to the fourth aspect, an embodiment of the present application provides a fifth possible implementation manner of the fourth aspect, where the edge monitoring device is specifically configured to, when configured to receive a target monitoring algorithm issued by the monitoring server and adjust the current monitoring algorithm using the target monitoring algorithm:
Receiving a target monitoring algorithm and a monitoring algorithm adjustment instruction issued by the monitoring server; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information;
and adjusting the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
With reference to the third possible implementation manner of the fourth aspect, the embodiment of the present application provides a sixth possible implementation manner of the fourth aspect, wherein the edge monitoring device is further configured to:
after the current monitoring algorithm is adjusted by using the target monitoring algorithm, transmitting a third hardware occupancy rate of the target monitoring algorithm to the monitoring server when the target monitoring algorithm is operated;
the monitoring server is further configured to:
and updating the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the fourth aspect, the embodiment of the present application provides a seventh possible implementation manner of the fourth aspect, where the edge monitoring device is further configured to:
In the process of operating the target monitoring algorithm, stopping operating the target monitoring algorithm when the target monitoring algorithm is abnormal in operation, and sending an abnormal operation notification to the monitoring server;
and/or the number of the groups of groups,
and in the process of operating the target monitoring algorithm, stopping operating the target monitoring algorithm when the current hardware utilization rate of the edge monitoring equipment is greater than a threshold value, and transmitting a fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
In a fifth aspect, embodiments of the present application further provide an algorithm adjustment apparatus in an edge monitoring device, where the apparatus resides in a monitoring server, and the apparatus includes:
the first receiving device is used for receiving algorithm running information and external environment monitoring information reported by the edge monitoring equipment under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
The matching module is used for matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information;
and the issuing module is used for issuing the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm.
With reference to the fifth aspect, an embodiment of the present application provides a first possible implementation manner of the fifth aspect, where the first receiving device is configured to, when the hardware utilization rate of the edge monitoring device is lower than a preset threshold, receive algorithm running information and external environment monitoring information reported by the edge monitoring device, specifically configured to:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, receiving the algorithm running information reported by the edge monitoring equipment;
and sending an acquisition instruction to the edge monitoring equipment, and receiving the external environment monitoring information reported by the edge monitoring equipment.
With reference to the fifth aspect, an embodiment of the present application provides a second possible implementation manner of the fifth aspect, where the matching module is configured to, when being configured to match, according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm applicable to the edge monitoring device from a plurality of preset monitoring algorithms, to the edge monitoring device, specifically configured to:
Determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the fifth aspect, the embodiment of the present application provides a third possible implementation manner of the fifth aspect, where the issuing module is specifically configured to, when configured to issue the target monitoring algorithm to the edge monitoring device:
sending a request issuing instruction to the edge monitoring equipment so that the edge monitoring equipment can judge whether the target monitoring algorithm can be operated or not according to the second hardware occupancy rate of the target monitoring algorithm and the version of a compiler corresponding to an executable file of the target monitoring algorithm, which are included in the request issuing instruction;
And when the edge monitoring equipment can run the target monitoring algorithm, receiving an agreement issuing instruction sent by the edge monitoring equipment so as to issue the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the fifth aspect, the embodiment of the present application provides a fourth possible implementation manner of the fifth aspect, where the issuing module is specifically configured to:
after the target monitoring algorithm is issued to the edge monitoring equipment, the edge monitoring equipment reads a first MD5 value from the target monitoring algorithm, calculates a second MD5 value according to an executable file of the target monitoring algorithm, and judges whether the first MD5 value and the second MD5 value are the same or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the target monitoring algorithm is issued to the edge monitoring equipment, the edge monitoring equipment judges whether the first KEY value and the second KEY value are the same or not so as to judge the legitimacy of the target monitoring algorithm;
And the edge monitoring equipment is used for adjusting the current monitoring algorithm by using the target monitoring algorithm when the target monitoring algorithm is complete and/or legal.
With reference to the fifth aspect, an embodiment of the present application provides a fifth possible implementation manner of the fifth aspect, where the issuing module is configured to, when configured to issue the target monitoring algorithm to the edge monitoring device, cause the edge monitoring device to adjust the current monitoring algorithm using the target monitoring algorithm, specifically is configured to:
issuing the target monitoring algorithm and a monitoring algorithm adjusting instruction to the edge monitoring equipment so that the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjusting instruction; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information.
With reference to the third possible implementation manner of the fifth aspect, the present embodiment provides a sixth possible implementation manner of the fifth aspect, where the method further includes:
The second receiving module is used for receiving a third hardware occupancy rate of the target monitoring algorithm when the edge monitoring device runs the target monitoring algorithm after the issuing module issues the target monitoring algorithm to the edge monitoring device so that the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm;
and the updating module is used for updating the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the fifth aspect, the present embodiment provides a seventh possible implementation manner of the fifth aspect, where the method further includes:
the third receiving module is used for sending the target monitoring algorithm to the edge monitoring equipment by the sending module so that the edge monitoring equipment receives the abnormal operation notification sent by the edge monitoring equipment after the current monitoring algorithm is adjusted by the target monitoring algorithm; the operation abnormality notification is sent by the edge monitoring equipment when the operation of the target monitoring algorithm is abnormal in the process of operating the target monitoring algorithm, and the operation of the target monitoring algorithm is stopped;
And/or the number of the groups of groups,
a fourth receiving module, configured to, after the issuing module issues the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm, receive a fourth hardware occupancy rate of the target monitoring algorithm sent by the edge monitoring device, so as to update the second hardware occupancy rate according to the fourth hardware occupancy rate; and the fourth hardware occupancy rate is sent when the edge monitoring equipment stops running the target monitoring algorithm when the current hardware utilization rate of the edge monitoring equipment is greater than a threshold value in the process of running the target monitoring algorithm.
In a sixth aspect, an embodiment of the present application further provides an algorithm adjustment apparatus in an edge monitoring device, where the apparatus resides in the edge monitoring device, the apparatus includes:
the reporting module is used for reporting algorithm operation information and external environment monitoring information to the monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, so that the monitoring server can match a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
And the adjusting module is used for receiving the target monitoring algorithm issued by the monitoring server so as to adjust the current monitoring algorithm by using the target monitoring algorithm.
With reference to the sixth aspect, an embodiment of the present application provides a first possible implementation manner of the sixth aspect, where the reporting module is configured to, when the hardware utilization of the edge monitoring device is below a preset threshold, report algorithm running information and external environment monitoring information to a monitoring server, specifically is configured to:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, reporting the algorithm running information to the monitoring server;
and receiving an acquisition instruction sent by the monitoring server so as to report the external environment monitoring information to the monitoring server.
With reference to the sixth aspect, an embodiment of the present application provides a second possible implementation manner of the sixth aspect, where the reporting module is configured to, when configured to make the monitoring server match, according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm applicable to the edge monitoring device from a plurality of preset monitoring algorithms, specifically configured to:
The monitoring server determines the target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information; selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms; determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment; and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
With reference to the second possible implementation manner of the sixth aspect, the embodiment of the present application provides a third possible implementation manner of the sixth aspect, where the adjusting module is specifically configured to, when configured to receive the target monitoring algorithm issued by the monitoring server:
receiving an issuing request instruction sent by the monitoring server; the issuing request instruction comprises a second hardware occupancy rate of the target monitoring algorithm and a version of a compiler corresponding to an executable file of the target monitoring algorithm;
Judging whether the target monitoring algorithm can be operated according to the second hardware occupancy rate and the version of the compiler;
and when the target monitoring algorithm can be operated, sending an agreement issuing instruction to the monitoring server so that the monitoring server issues the target monitoring algorithm to the edge monitoring equipment.
With reference to the third possible implementation manner of the sixth aspect, the embodiment of the present application provides a fourth possible implementation manner of the sixth aspect, wherein the adjusting module is specifically configured to, when configured to adjust the current monitoring algorithm using the target monitoring algorithm:
after receiving the target monitoring algorithm issued by the monitoring server, reading a first MD5 value from the target monitoring algorithm, and calculating a second MD5 value according to an executable file of the target monitoring algorithm;
judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after receiving the target monitoring algorithm issued by the monitoring server, judging whether the first KEY value is the same as the second KEY value or not so as to judge the validity of the target monitoring algorithm;
And when the target monitoring algorithm is complete and/or legal, adjusting the current monitoring algorithm by using the target monitoring algorithm.
With reference to the sixth aspect, an embodiment of the present application provides a fifth possible implementation manner of the sixth aspect, where the adjusting module is specifically configured to, when configured to receive the target monitoring algorithm issued by the monitoring server, to adjust the current monitoring algorithm using the target monitoring algorithm:
receiving the target monitoring algorithm and a monitoring algorithm adjustment instruction issued by the monitoring server; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information;
and adjusting the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
With reference to the third possible implementation manner of the sixth aspect, the present embodiment provides a sixth possible implementation manner of the sixth aspect, where the method further includes:
And the sending module is used for sending the third hardware occupancy rate of the target monitoring algorithm to the monitoring server when the target monitoring algorithm is operated after the current monitoring algorithm is adjusted by the adjusting module by using the target monitoring algorithm, so that the monitoring server updates the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
With reference to the third possible implementation manner of the sixth aspect, the embodiment of the present application provides a seventh possible implementation manner of the sixth aspect, where the method further includes:
the first stopping module is used for stopping the operation of the target monitoring algorithm and sending an operation abnormality notification to the monitoring server when the target monitoring algorithm is abnormal in the process of operating the target monitoring algorithm by the edge monitoring equipment after the current monitoring algorithm is adjusted by the adjusting module by using the target monitoring algorithm;
and/or the number of the groups of groups,
and the second stopping module is used for stopping the operation of the target monitoring algorithm when the current hardware utilization rate of the edge monitoring equipment is larger than a threshold value in the process of operating the target monitoring algorithm after the current monitoring algorithm is adjusted by the adjusting module by using the target monitoring algorithm, and sending the fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
The embodiment of the application provides an algorithm adjusting method, an algorithm adjusting device and a monitoring system in edge monitoring equipment, wherein the edge monitoring equipment reports algorithm operation information and external environment monitoring information to a monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises current monitoring algorithms currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm; the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the monitoring server issues the target monitoring algorithm to the edge monitoring device so that the edge monitoring device can adjust the current monitoring algorithm by using the target monitoring algorithm. In this embodiment, according to the algorithm running information of the edge monitoring device and the external environment monitoring information, a new target monitoring algorithm is matched for the edge monitoring device, so that the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm. Compared with the condition that the monitoring algorithm running in the edge monitoring equipment is fixed in the prior art, the method of the embodiment can realize the dynamic optimization adjustment of the monitoring algorithm running in the edge monitoring equipment, thereby improving the updating efficiency of the monitoring algorithm running in the edge monitoring equipment, improving the hardware utilization rate of the edge monitoring equipment and reducing the resource waste.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an algorithm adjustment method in an edge monitoring device according to an embodiment of the present application;
FIG. 2 is a flowchart of an algorithm adjustment method in a second edge monitoring device according to an embodiment of the present application;
FIG. 3 is a flowchart of an algorithm adjustment method in a third edge monitoring device according to an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a monitoring system according to an embodiment of the present application;
fig. 5 shows a schematic structural diagram of an algorithm adjusting device in an edge monitoring apparatus according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an algorithm adjusting device in another edge monitoring apparatus according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
The problems that the hardware utilization rate of the existing edge monitoring equipment is low, resource waste is caused, and the updating efficiency of a monitoring algorithm running in the edge monitoring equipment is low are solved. Based on this, the embodiment of the application provides an algorithm adjusting method, an algorithm adjusting device and a monitoring system in edge monitoring equipment, so as to improve the utilization rate of the edge monitoring equipment, reduce resource waste and improve the updating efficiency of the monitoring algorithm.
Embodiment one:
for the sake of understanding the present embodiment, first, an algorithm adjustment method in an edge monitoring device disclosed in the present embodiment is described in detail. The method is applied to a monitoring system, the monitoring system comprises a monitoring server and at least one edge monitoring device, fig. 1 shows a flowchart of an algorithm adjustment method in the edge monitoring device provided by the embodiment of the application, as shown in fig. 1, and the method comprises the following steps S101-S103:
s101: under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports algorithm operation information and external environment monitoring information to a monitoring server; the algorithm operation information includes a current monitoring algorithm currently operated by the edge monitoring device and a first hardware occupancy rate of each current monitoring algorithm.
In this embodiment, the edge monitoring device may be any one of the edge monitoring devices in the monitoring system. Each edge monitoring device generally runs at least one current monitoring algorithm to execute the current monitoring task corresponding to each current monitoring algorithm. The edge monitoring device is equivalent to an edge processing center, and in the working process of the edge monitoring device, the edge monitoring device is usually required to be connected with information acquisition devices such as a sensor and a camera according to the current monitoring task executed by the edge monitoring device so as to read the acquired information from each information acquisition device and process the information.
When the current monitoring algorithm running in the edge monitoring device is a face recognition algorithm and the corresponding monitoring task is entrance guard detection, the edge monitoring device needs to be connected with a camera, the camera is used for collecting face images so as to transmit the collected face images to the edge monitoring device, the edge monitoring device performs recognition processing on the face images to determine identity information of a user in the face images, and whether the user can pass through an entrance guard system is judged according to the identity information.
In this embodiment, the monitoring tasks corresponding to the monitoring algorithm that may be executed in the edge monitoring device include, but are not limited to, face recognition, humanoid detection, entrance guard detection, electronic fence alarm, smoke and fire recognition alarm, and the like.
In this embodiment, the hardware utilization of the edge monitoring device can be calculated by the utilization of the CPU (central processing unit) and the utilization of the running memory (RAM) of the edge monitoring device.
In this embodiment, when there is only one current monitoring algorithm running in the edge monitoring device, the CPU utilization rate of the edge monitoring device is only the CPU occupancy rate occupied by running the current monitoring algorithm, and the running memory utilization rate is the running memory occupancy rate occupied by running the current monitoring algorithm. When there are a plurality of current monitoring algorithms running in the edge monitoring equipment, the CPU utilization rate of the edge monitoring equipment is the sum of the CPU occupancy rates occupied by each current monitoring algorithm running, and the running memory utilization rate of the edge monitoring equipment is the sum of the running memory occupancy rates occupied by each current monitoring algorithm running.
In this embodiment, the first hardware occupancy of each current monitoring algorithm is determined based on the CPU occupancy and the running memory occupancy of each current monitoring algorithm. The hardware utilization rate of the edge monitoring device is the sum of the first hardware occupancy rates corresponding to each current monitoring algorithm running in the edge monitoring device.
In this embodiment, the external environment monitoring information refers to information collected in an information collection device connected to the edge monitoring device. When the information acquisition device connected with the edge monitoring device is a smoke sensor and a temperature sensor, the external environment monitoring information of the edge monitoring device is smoke concentration information acquired by the smoke sensor and temperature information acquired by the temperature sensor. The external environment refers to an external environment in which the edge monitoring device is typically located.
In this embodiment, the hardware utilization rate of the edge monitoring device is lower than the preset threshold, which may be specifically that the hardware utilization rate of the edge monitoring device is continuously lower than the preset threshold in a unit time period. For example, continuously below a preset threshold for 5 minutes.
In a possible implementation manner, when executing step S101 and when the hardware utilization rate of the edge monitoring device is lower than the preset threshold, the edge monitoring device reports algorithm running information and external environment monitoring information to the monitoring server, the method specifically may be executed according to the following steps:
When the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports algorithm operation information to a monitoring server;
and the monitoring server sends an acquisition instruction to the edge monitoring equipment so that the edge monitoring equipment reports the external environment monitoring information to the monitoring server.
In this embodiment, after receiving the algorithm running information reported by the monitoring server, the monitoring server may determine whether the current monitoring algorithm in the edge monitoring device needs to be adjusted through the algorithm running information, and when the current monitoring algorithm needs to be adjusted, the monitoring server may send an acquisition instruction to the edge monitoring device to acquire external environment monitoring information from the edge monitoring device, so as to determine a specific adjustment mode.
S102: and the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information.
In this embodiment, the monitoring server includes a plurality of preset monitoring algorithms, and specifically, executable files (if binary files) generated by various monitoring algorithms compiled under different compilers are stored in the monitoring server.
In one possible implementation, when performing step S102, step S1021 may be performed specifically according to the following steps:
s1021: and determining the target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information.
When the current monitoring algorithm operated by the edge monitoring device is a face recognition algorithm, the external environment monitoring information is an image shot by a camera, and the environment where the edge monitoring device is located can be analyzed to be near a reservoir through the image shot by the camera, the target function of the edge device can be a reservoir electronic fence warning function.
S1022: and selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms.
S1023: and determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment.
In this embodiment, the hardware remaining utilization of the edge monitoring device includes a CPU remaining utilization and an intra-run slave remaining utilization.
S1024: and screening the target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of the compiler used for generating the executable file of the candidate monitoring algorithm.
In this embodiment, the second hardware occupancy rate of the hardware resources required by each preset monitoring algorithm in the running process is pre-stored in the monitoring server. The second hardware occupancy may be determined based on historical experience.
In this embodiment, the monitoring server also stores in advance a version of a compiler corresponding to an executable file that can be executed by the edge monitoring device, so in the process of screening the target monitoring algorithm from the candidate monitoring algorithms, it is necessary to screen according to the version of the compiler used to generate the executable file of the candidate monitoring algorithm and the version of the compiler corresponding to the executable file that can be executed by the edge monitoring device, so as to ensure that the edge monitoring device can execute the executable file of the target monitoring algorithm.
S103: the monitoring server issues the target monitoring algorithm to the edge monitoring device so that the edge monitoring device can adjust the current monitoring algorithm by using the target monitoring algorithm.
In this embodiment, the target monitoring algorithm may be one or more.
In one possible implementation manner, when executing step S103, the monitoring server issues the target monitoring algorithm to the edge monitoring device, the method may specifically be executed according to the following steps:
The monitoring server sends a request issuing instruction to the edge monitoring equipment; the issuing request instruction comprises a second hardware occupancy rate of the target monitoring algorithm and a version of a compiler corresponding to an executable file of the target monitoring algorithm;
the edge monitoring device judges whether a target monitoring algorithm can be operated according to the second hardware occupancy rate and the version of the compiler;
when the edge monitoring equipment can run the target monitoring algorithm, the edge monitoring equipment sends an agreement issuing instruction to the monitoring server so that the monitoring server issues the target monitoring algorithm to the edge monitoring equipment.
In this embodiment, the edge monitoring device performs a secondary check on the target monitoring algorithm before receiving the target monitoring algorithm to determine whether the edge monitoring device can run the target monitoring algorithm. When the edge monitoring equipment can run the target monitoring algorithm, the monitoring server is run to issue the target monitoring algorithm; when the edge monitoring equipment fails to operate the target monitoring algorithm, the edge monitoring equipment sends a refusal issuing instruction to the monitoring server so that the monitoring server stops issuing the target monitoring algorithm. By the method, the probability of successful operation of the target monitoring algorithm in the edge monitoring equipment is improved, the data transmission times are reduced, and resource waste is avoided.
In one possible implementation manner, when the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm in the step S103, the following steps may be specifically performed:
after the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, the edge monitoring equipment reads a first MD5 value from the target monitoring algorithm and calculates a second MD5 value according to an executable file of the target monitoring algorithm;
judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, judging whether the first KEY value and the second KEY value are the same or not so as to judge the legitimacy of the target monitoring algorithm;
when the target monitoring algorithm is complete and/or legal, the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm.
In this embodiment, after receiving the target monitoring algorithm, the edge monitoring device performs integrity verification and/or validity verification on the target monitoring algorithm, so that when the target monitoring algorithm passes the integrity verification and/or validity verification, the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm.
When the first MD5 value and the second MD5 value are the same, the target monitoring algorithm is complete, namely, the integrity verification is passed; when the first MD5 value and the second MD5 value are different, the target monitoring algorithm is incomplete, i.e. fails the integrity verification.
When the first KEY value is the same as the second KEY value, the target monitoring algorithm is legal (the target monitoring algorithm is issued by the same monitoring server) namely, the validity is verified; when the first KEY value and the second KEY value are different, it indicates that the target monitoring algorithm is not legal (also indicates that the target monitoring algorithm is not issued by the same monitoring server), that is, the validity verification is not passed.
In one possible implementation manner, when the monitoring server issues the target monitoring algorithm to the edge monitoring device in executing step S103, so that the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, the following steps may be specifically performed:
the monitoring server transmits a target monitoring algorithm and a monitoring algorithm adjusting instruction to the edge monitoring equipment; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to algorithm operation information and external environment monitoring information;
And the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
In this embodiment, the monitoring algorithm replacement instruction is used to delete the original current monitoring algorithm and replace it with a new target monitoring algorithm. The monitoring algorithm updating instruction is used for updating the original current monitoring algorithm with a lower version into the target monitoring algorithm with a new version. The monitoring algorithm newly-added instruction is used for newly-adding the target monitoring algorithm under the condition that the original current monitoring algorithm is not changed. The monitoring algorithm deleting instruction is used for deleting the original appointed current monitoring algorithm.
In this embodiment, when the monitoring algorithm adjustment instruction is a monitoring algorithm deletion instruction, the target monitoring algorithm may be null.
In a possible implementation manner, after performing step S103, the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, the edge monitoring device may further perform the following steps:
when the edge monitoring equipment runs the target monitoring algorithm, the third hardware occupancy rate of the target monitoring algorithm is sent to the monitoring server;
and the monitoring server updates the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
In this embodiment, the third hardware occupancy is determined when the edge monitoring device is to operate the target monitoring algorithm, and characterizes an actual hardware occupancy when the edge monitoring device is to operate the target monitoring algorithm. The second hardware occupancy rate is stored by the monitoring server at the historical moment, so that the second hardware occupancy rate is updated through the third hardware occupancy rate, and the monitoring server can be better matched with target monitoring algorithms for other edge monitoring devices in a follow-up mode.
In a possible implementation manner, after performing step S103, the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, the edge monitoring device may further perform the following steps:
in the process of operating the target monitoring algorithm, when the target monitoring algorithm operates abnormally, the edge monitoring equipment stops operating the target monitoring algorithm and sends an operation abnormality notification to the monitoring server;
and/or the number of the groups of groups,
and in the process of operating the target monitoring algorithm, when the current hardware utilization rate of the edge monitoring equipment is greater than a threshold value, stopping operating the target monitoring algorithm, and sending the fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
In this embodiment, when the current hardware utilization of the edge monitoring device is greater than the threshold, the second hardware occupancy rate of the target monitoring algorithm stored in advance in the monitoring server may be indicated as being wrong, and therefore, the fourth hardware occupancy rate of the target monitoring algorithm is used to update the second hardware occupancy rate. The fourth hardware occupancy rate is the hardware occupancy rate actually required to be occupied by the target monitoring algorithm in the process of operating the target monitoring algorithm by the edge monitoring equipment.
Embodiment two:
based on the same technical concept, the present application further provides an algorithm adjustment method in a second edge monitoring device, where the method is applied to a monitoring server, fig. 2 shows a flowchart of the algorithm adjustment method in the second edge monitoring device provided by the embodiment of the present application, and as shown in fig. 2, the method includes:
s201: receiving algorithm running information and external environment monitoring information reported by edge monitoring equipment under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
S202: according to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms;
s203: and transmitting the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm.
S204: it will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedure of the method described above may refer to the corresponding procedure in the first embodiment, and will not be described in detail herein.
Embodiment III:
based on the same technical concept, the present application further provides an algorithm adjustment method in a third edge monitoring device, where the method is applied to the edge monitoring device, fig. 3 shows a flowchart of the algorithm adjustment method in the third edge monitoring device provided by the embodiment of the present application, and as shown in fig. 3, the method includes:
s301: reporting algorithm operation information and external environment monitoring information to a monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, so that the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
S302: and receiving the target monitoring algorithm issued by the monitoring server so as to adjust the current monitoring algorithm by using the target monitoring algorithm.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedure of the method described above may refer to the corresponding procedure in the first embodiment, and will not be described in detail herein.
Embodiment four:
based on the same technical concept, the application also provides a monitoring system, and fig. 4 shows a schematic structural diagram of the monitoring system provided by the embodiment of the application, as shown in fig. 4, where the system includes a monitoring server and at least one edge monitoring device;
the edge monitoring equipment is used for reporting algorithm running information and external environment monitoring information to the monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm; receiving a target monitoring algorithm issued by the monitoring server; and adjusting the current monitoring algorithm using the target monitoring algorithm;
The monitoring server is used for receiving the algorithm running information and the external environment monitoring information reported by the edge monitoring equipment; according to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms; and issuing the target monitoring algorithm to the edge monitoring equipment.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedure of the system described above may refer to the corresponding procedure in the first embodiment, and will not be described in detail herein.
Fifth embodiment:
based on the same technical concept, the present application further provides an algorithm adjusting device in an edge monitoring device, where the device resides in a monitoring server, fig. 5 shows a schematic structural diagram of the algorithm adjusting device in the edge monitoring device provided by the embodiment of the present application, and as shown in fig. 5, the device includes:
the first receiving device 501 is configured to receive algorithm running information and external environment monitoring information reported by an edge monitoring device when a hardware utilization rate of the edge monitoring device is lower than a preset threshold; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
The matching module 502 is configured to match a target monitoring algorithm applicable to the edge monitoring device from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information;
and a transmitting module 503, configured to transmit the target monitoring algorithm to the edge monitoring device, so that the edge monitoring device uses the target monitoring algorithm to adjust the current monitoring algorithm.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedure of the apparatus described above may refer to the corresponding procedure in the first embodiment, and will not be described in detail herein.
Example six:
based on the same technical concept, the present application further provides an algorithm adjusting device in an edge monitoring device, where the device resides in the edge monitoring device, fig. 6 shows a schematic structural diagram of the algorithm adjusting device in a second edge monitoring device provided in an embodiment of the present application, and as shown in fig. 6, the device includes:
the reporting module 601 is configured to report algorithm operation information and external environment monitoring information to a monitoring server when the hardware utilization rate of the edge monitoring device is lower than a preset threshold, so that the monitoring server matches a target monitoring algorithm applicable to the edge monitoring device for the edge monitoring device from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
And the adjusting module 602 is configured to receive the target monitoring algorithm issued by the monitoring server, and adjust the current monitoring algorithm using the target monitoring algorithm.
It will be clear to those skilled in the art that, for convenience and brevity of description, the specific working procedure of the apparatus described above may refer to the corresponding procedure in the first embodiment, and will not be described in detail herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of 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.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present application, and are not intended to limit the scope of the present application, but the present application is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, the present application is not limited thereto. Any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or make equivalent substitutions for some of the technical features within the technical scope of the disclosure of the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (12)
1. An algorithm adjustment method in an edge monitoring device, the method being applied to a monitoring system comprising a monitoring server and at least one edge monitoring device, the method comprising:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports algorithm running information and external environment monitoring information to the monitoring server; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information;
the monitoring server issues the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm;
the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information, and the target monitoring algorithm comprises the following steps:
Determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
2. The method according to claim 1, wherein in the case that the hardware utilization of the edge monitoring device is lower than a preset threshold, the edge monitoring device reports algorithm running information and external environment monitoring information to the monitoring server, including:
when the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, the edge monitoring equipment reports the algorithm running information to the monitoring server;
And the monitoring server sends an acquisition instruction to the edge monitoring equipment so that the edge monitoring equipment reports the external environment monitoring information to the monitoring server.
3. The method of claim 1, wherein the monitoring server issues the target monitoring algorithm to the edge monitoring device, comprising:
the monitoring server sends a request issuing instruction to the edge monitoring equipment; the issuing request instruction comprises a second hardware occupancy rate of the target monitoring algorithm and a version of a compiler corresponding to an executable file of the target monitoring algorithm;
the edge monitoring equipment judges whether the target monitoring algorithm can be operated according to the second hardware occupancy rate and the version of the compiler;
when the edge monitoring equipment can run the target monitoring algorithm, the edge monitoring equipment sends an agreement issuing instruction to the monitoring server so that the monitoring server issues the target monitoring algorithm to the edge monitoring equipment.
4. A method according to claim 3, wherein the edge monitoring device adjusts the current monitoring algorithm using the target monitoring algorithm, comprising:
After the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, the edge monitoring equipment reads a first MD5 value from the target monitoring algorithm and calculates a second MD5 value according to an executable file of the target monitoring algorithm;
judging whether the first MD5 value is the same as the second MD5 value or not so as to judge the integrity of the target monitoring algorithm;
and/or the number of the groups of groups,
the issuing request instruction further comprises a first KEY value; the tail part of the executable file of the target monitoring algorithm is marked with a second KEY value; after the monitoring server issues the target monitoring algorithm to the edge monitoring equipment, judging whether the first KEY value and the second KEY value are the same or not so as to judge the validity of the target monitoring algorithm;
and when the target monitoring algorithm is complete and/or legal, the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm.
5. The method of claim 1, wherein the monitoring server issuing the target monitoring algorithm to the edge monitoring device to cause the edge monitoring device to adjust the current monitoring algorithm using the target monitoring algorithm comprises:
The monitoring server issues the target monitoring algorithm and a monitoring algorithm adjustment instruction to the edge monitoring equipment; the monitoring algorithm adjustment instruction comprises any one or more of a monitoring algorithm replacement instruction, a monitoring algorithm update instruction, a monitoring algorithm new instruction and a monitoring algorithm deletion instruction; the monitoring algorithm adjustment instruction is determined by the monitoring server according to the algorithm operation information and the external environment monitoring information;
and the edge monitoring equipment adjusts the current monitoring algorithm by using the target monitoring algorithm according to the monitoring algorithm adjustment instruction.
6. A method according to claim 3, wherein the edge monitoring device, after adjusting the current monitoring algorithm using the target monitoring algorithm, further comprises:
when the edge monitoring equipment runs the target monitoring algorithm, the third hardware occupancy rate of the target monitoring algorithm is sent to the monitoring server;
and the monitoring server updates the second hardware occupancy rate of the target monitoring algorithm according to the third hardware occupancy rate.
7. A method according to claim 3, wherein the edge monitoring device, after adjusting the current monitoring algorithm using the target monitoring algorithm, further comprises:
When the target monitoring algorithm is abnormal in the process of running the target monitoring algorithm, the edge monitoring equipment stops running the target monitoring algorithm and sends an abnormal running notification to the monitoring server;
and/or the number of the groups of groups,
and in the process of operating the target monitoring algorithm, when the current hardware utilization rate of the edge monitoring equipment is larger than a threshold value, stopping operating the target monitoring algorithm, and sending the fourth hardware occupancy rate of the target monitoring algorithm to the monitoring server so that the monitoring server updates the second hardware occupancy rate according to the fourth hardware occupancy rate.
8. An algorithm adjustment method in an edge monitoring device, wherein the method is applied to a monitoring server, and the method comprises:
receiving algorithm running information and external environment monitoring information reported by edge monitoring equipment under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
According to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms;
issuing the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm;
the matching, according to the algorithm running information and the external environment monitoring information, a target monitoring algorithm suitable for the edge monitoring device from a plurality of preset monitoring algorithms, including:
determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
9. A method for adjusting an algorithm in an edge monitoring device, the method being applied to the edge monitoring device, the method comprising:
reporting algorithm operation information and external environment monitoring information to a monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, so that the monitoring server matches a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
receiving the target monitoring algorithm issued by the monitoring server, and adjusting the current monitoring algorithm by using the target monitoring algorithm;
the step of enabling the monitoring server to match a target monitoring algorithm suitable for the edge monitoring device from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information, comprises the following steps:
the monitoring server determines the target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information; selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms; determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment; and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
10. A monitoring system, characterized in that the system comprises a monitoring server and at least one edge monitoring device;
the edge monitoring equipment is used for reporting algorithm running information and external environment monitoring information to the monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm; receiving a target monitoring algorithm issued by the monitoring server; and adjusting the current monitoring algorithm using the target monitoring algorithm;
the monitoring server is used for receiving the algorithm running information and the external environment monitoring information reported by the edge monitoring equipment; according to the algorithm running information and the external environment monitoring information, matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms; and issuing the target monitoring algorithm to the edge monitoring equipment;
the monitoring server is used for matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information, and is specifically used for:
Determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
11. An algorithm adjustment device in an edge monitoring apparatus, the device residing on a monitoring server, the device comprising:
the first receiving device is used for receiving algorithm running information and external environment monitoring information reported by the edge monitoring equipment under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
The matching module is used for matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information;
the issuing module is used for issuing the target monitoring algorithm to the edge monitoring equipment so that the edge monitoring equipment can adjust the current monitoring algorithm by using the target monitoring algorithm;
the matching module is used for matching a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information, and is specifically used for:
determining a target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information;
selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms;
determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment;
And screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
12. An algorithm adjustment device in an edge monitoring apparatus, the device residing in the edge monitoring apparatus, the device comprising:
the reporting module is used for reporting algorithm operation information and external environment monitoring information to the monitoring server under the condition that the hardware utilization rate of the edge monitoring equipment is lower than a preset threshold value, so that the monitoring server can match a target monitoring algorithm suitable for the edge monitoring equipment from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information; the algorithm operation information comprises a current monitoring algorithm currently operated by the edge monitoring equipment and a first hardware occupancy rate of each current monitoring algorithm;
the adjusting module is used for receiving the target monitoring algorithm issued by the monitoring server so as to adjust the current monitoring algorithm by using the target monitoring algorithm;
The reporting module is configured to, when being configured to match, for the edge monitoring device, a target monitoring algorithm applicable to the edge monitoring device from a plurality of preset monitoring algorithms according to the algorithm operation information and the external environment monitoring information, the monitoring server specifically configured to:
the monitoring server determines the target function of the edge monitoring equipment according to the current monitoring algorithm operated by the edge monitoring equipment and the external environment monitoring information; selecting a candidate monitoring algorithm with a target function from a plurality of preset monitoring algorithms; determining the hardware residual utilization rate of the edge monitoring equipment according to the first hardware occupancy rate of each current monitoring algorithm in the edge monitoring equipment or the hardware utilization rate of the edge monitoring equipment; and screening a target monitoring algorithm from the candidate monitoring algorithms according to the hardware residual utilization rate, the second hardware occupancy rate of the candidate monitoring algorithms and the version of a compiler used for generating executable files of the candidate monitoring algorithms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310499336.6A CN116701104B (en) | 2023-05-05 | 2023-05-05 | Algorithm adjustment method, device and monitoring system in edge monitoring equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310499336.6A CN116701104B (en) | 2023-05-05 | 2023-05-05 | Algorithm adjustment method, device and monitoring system in edge monitoring equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116701104A CN116701104A (en) | 2023-09-05 |
CN116701104B true CN116701104B (en) | 2024-01-26 |
Family
ID=87826700
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310499336.6A Active CN116701104B (en) | 2023-05-05 | 2023-05-05 | Algorithm adjustment method, device and monitoring system in edge monitoring equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116701104B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335271A (en) * | 2015-09-24 | 2016-02-17 | 浪潮电子信息产业股份有限公司 | State monitoring apparatus and comprehensive monitoring system and method |
CN111273071A (en) * | 2020-02-17 | 2020-06-12 | 深圳供电局有限公司 | AI monitoring system and method for edge calculation |
CN113094246A (en) * | 2021-03-30 | 2021-07-09 | 之江实验室 | Edge heterogeneous computing environment simulation system |
CN114389971A (en) * | 2022-03-23 | 2022-04-22 | 苏州浪潮智能科技有限公司 | Intelligent monitoring fine adjustment method, device, equipment and storage medium |
CN115344347A (en) * | 2022-07-14 | 2022-11-15 | 成都中科创达软件有限公司 | Control method and system for algorithm application of edge computing device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090293051A1 (en) * | 2008-05-22 | 2009-11-26 | Fortinet, Inc., A Delaware Corporation | Monitoring and dynamic tuning of target system performance |
-
2023
- 2023-05-05 CN CN202310499336.6A patent/CN116701104B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105335271A (en) * | 2015-09-24 | 2016-02-17 | 浪潮电子信息产业股份有限公司 | State monitoring apparatus and comprehensive monitoring system and method |
CN111273071A (en) * | 2020-02-17 | 2020-06-12 | 深圳供电局有限公司 | AI monitoring system and method for edge calculation |
CN113094246A (en) * | 2021-03-30 | 2021-07-09 | 之江实验室 | Edge heterogeneous computing environment simulation system |
CN114389971A (en) * | 2022-03-23 | 2022-04-22 | 苏州浪潮智能科技有限公司 | Intelligent monitoring fine adjustment method, device, equipment and storage medium |
CN115344347A (en) * | 2022-07-14 | 2022-11-15 | 成都中科创达软件有限公司 | Control method and system for algorithm application of edge computing device |
Also Published As
Publication number | Publication date |
---|---|
CN116701104A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190306178A1 (en) | Distributed System for Adaptive Protection Against Web-Service-Targeted Vulnerability Scanners | |
CN112306808B (en) | Performance monitoring and evaluating method and device, computer equipment and readable storage medium | |
CN110602135B (en) | Network attack processing method and device and electronic equipment | |
CN109543891B (en) | Method and apparatus for establishing capacity prediction model, and computer-readable storage medium | |
CN112073389A (en) | Cloud host security situation awareness system, method, device and storage medium | |
CN111143163A (en) | Data monitoring method and device, computer equipment and storage medium | |
CN109862037B (en) | Block chain-based data equipment management method, device, medium and electronic equipment | |
US20200151340A1 (en) | Monitoring a blockchain | |
CN104980407A (en) | Misinformation detecting method and device | |
CN111562930A (en) | Upgrading method and system for web application security | |
CN116701104B (en) | Algorithm adjustment method, device and monitoring system in edge monitoring equipment | |
CN117744094A (en) | Security verification method and system for trusted execution environment | |
CN113411209A (en) | Distributed password service full-link detection system and method | |
CN113704569A (en) | Information processing method and device and electronic equipment | |
EP3174263A1 (en) | Apparatus and method for verifying detection rule | |
CN115664822A (en) | Behavior portrait construction method and device, electronic equipment and storage medium | |
CN115967565A (en) | Battlefield situation sensing method, system, terminal equipment and storage medium | |
CN112733202B (en) | Parallel chain supervision consensus method, computer device and storage medium | |
CN111752600B (en) | Code anomaly detection method and device, computer equipment and storage medium | |
CN113535449A (en) | Abnormal event repairing processing method and device, computer equipment and storage medium | |
KR102180105B1 (en) | Method and apparatus for determining malicious software for software installed on device | |
US20230177151A1 (en) | System and method of microcontroller security | |
CN105099797A (en) | False alarm detection method and device | |
WO2018101070A1 (en) | Anomaly assessment device, anomaly assessment method, and storage medium whereupon anomaly assessment program is recorded | |
CN117632858B (en) | File format verification method, system, equipment and medium based on distributed network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |