Model scheduling optimization method and related equipment based on artificial intelligence
By calculating the confidence and demographic characteristics of historical data, and adjusting the algorithm model scheduling scheme on edge computing devices, the problem of hardware performance degradation and resource waste caused by multi-model deployment is solved, and supervision accuracy and cost-effectiveness are improved.
Patent Information
- Application Number
- CN202210425558.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-04-21
AI Technical Summary
In the existing technology, edge computing devices need to deploy multiple algorithm models to supervise garbage placement behavior, resulting in hardware performance degradation and resource waste, and increasing supervision costs.
By counting the historical data of edge computing devices, calculating the confidence level based on population density and population characteristics, correcting the importance and time directionality of the algorithm model, automatically adjusting the model scheduling plan, improving scheduling accuracy and reducing energy consumption.
The accuracy and flexibility of algorithm model scheduling are improved, the energy consumption and resource waste of edge computing devices are reduced, and the cost of garbage supervision is optimized.
Smart Images

Figure CN114862154B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based model scheduling optimization method, device, electronic device and storage medium. Background Art
[0002] As society pays more and more attention to environmental issues, many regions have introduced various environmental protection policies. Among them, policies related to garbage disposal have received widespread attention from residents because they are closely related to life.
[0003] At present, the behavior of residents placing garbage at garbage disposal points is usually supervised by combining cameras, edge computing devices and image recognition algorithm models. However, due to the diversity of behaviors that need to be supervised, it is usually necessary to deploy multiple algorithm models in the same edge computing device to monitor various illegal garbage disposal behaviors respectively. At the same time, the continuous operation of all algorithm models has a great impact on the performance of edge computing devices, which is easy to cause hardware loss, which will lead to waste of resources and increase supervision costs. Summary of the invention
[0004] In view of the above content, it is necessary to provide an artificial intelligence-based model scheduling optimization method and related equipment to solve the technical problem of how to improve the accuracy of algorithm model scheduling optimization to improve the performance of edge computing equipment. The related equipment includes an artificial intelligence-based model scheduling optimization device, electronic equipment and storage medium.
[0005] The embodiment of the present application provides a model scheduling optimization method based on artificial intelligence, the method comprising:
[0006] Counting historical data of an edge computing device, where the edge computing device includes multiple algorithm models, and the historical data includes the number of alarms of each algorithm model in a preset period and the time point of each alarm;
[0007] Based on the location and rated radiation range of the edge computing device, statistics are made on the population density and population characteristics of the area radiated by the edge computing device, where the population characteristics include at least age characteristics and gender characteristics;
[0008] Calculating the confidence of the historical data based on the population characteristics and population density, the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence;
[0009] Integrating the confidences using a custom integration model to obtain a global confidence of the historical data;
[0010] Calculate the basic importance and time orientation of each algorithm model based on the historical data, and correct the basic importance by the global confidence;
[0011] Input the basic importance of each algorithm model and the time orientation degree of each time point into the custom aggregation model to obtain the aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point;
[0012] The scheduling value is compared with a preset threshold to obtain a comparison result, and the algorithm model scheduling optimization plan is adjusted according to the comparison result.
[0013] The above-mentioned artificial intelligence-based model scheduling optimization method obtains the alarm times and alarm time points of each algorithm model in the edge computing device by collecting historical data from the edge computing device, and counts the population density and population characteristics of the radiation area according to the radiation area area of the edge computing device and the location of the edge computing device, and further calculates the confidence of the historical data according to the population characteristics, calculates the basic importance and time orientation of each algorithm model through historical data, and corrects the basic importance through the confidence of the historical data, and then calculates the scheduling value of each algorithm model in each time period based on the basic importance and time orientation, and adjusts the algorithm model scheduling plan according to the scheduling value, which can automatically and flexibly adjust the scheduling plan, improve the accuracy of the scheduling plan and reduce the energy consumption of the edge computing device.
[0014] In some embodiments, the calculating the confidence of the historical data based on the population characteristics and population density of the edge computing device includes:
[0015] Grouping the age characteristics according to preset age groups to obtain different age groups, and counting the number of people belonging to different age groups in the region;
[0016] Calculate the variance of the population of all age groups and take the inverse of the variance as the age confidence level;
[0017] Compare the numbers of populations of different genders and calculate the ratio of the smaller value to the larger value as the gender confidence;
[0018] The total population density of the cities in the region is crawled, and the ratio of the population density to the total population density is calculated as the density confidence.
[0019] In this way, the confidence of historical data is calculated by analyzing the impact of population characteristics and population density on historical data, which provides data support for the subsequent calculation of the global confidence of historical data, thereby improving the accuracy of the algorithm model scheduling plan.
[0020] In some embodiments, integrating the confidences using a customized integration model to obtain a global confidence of the historical data includes:
[0021] Inputting the age confidence, gender confidence and density confidence into an inverse tangent function respectively to obtain a normalized confidence, wherein the normalized confidence includes a normalized age confidence, a normalized gender confidence and a normalized density confidence;
[0022] The normalized confidence is input into a custom integration model to obtain an integration result as the global confidence of the historical data.
[0023] In this way, the confidence is normalized by the inverse tangent function to obtain the normalized confidence, and the normalized confidence is input into the custom integration model to obtain the integration result as the global confidence, which can provide data assistance for the basic importance of subsequent correction of the algorithm model, thereby improving the accuracy of the algorithm model scheduling.
[0024] In some embodiments, the custom integration model satisfies the relationship:
[0025]
[0026] Wherein, Z represents the integration result. The higher the value of the integration result, the higher the credibility of the historical data. S age0 represents the normalized age confidence; S gender0 represents the normalized gender confidence; S ρ0 represents the normalized density confidence; e represents the natural constant.
[0027] In this way, the global confidence is obtained by integrating the normalized confidence. The higher the value of the global confidence, the more credible the historical data is, which can provide data support for the basic importance of subsequent correction of the algorithm model, thereby improving the accuracy of the algorithm model scheduling.
[0028] In some embodiments, the calculating the basic importance and time orientation of each algorithm model based on the historical data respectively, and correcting the basic importance by the global confidence comprises:
[0029] Calculate the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models, and use the ratio as the basic importance of the algorithm model;
[0030] Calculating the product of the basic importance and the global confidence to obtain a corrected basic importance;
[0031] Calculate the mean of the time points of each algorithm model alarm in the historical data respectively, and use the time point represented by the mean as the time point of the algorithm model;
[0032] Taking each hour as a time period, the difference between the starting time point of each time period of each day and the time orientation point is calculated respectively, and the absolute value of the difference is used as the time orientation degree of the algorithm model at the starting time point.
[0033] In this way, the basic importance of each algorithm model is obtained by calculating the number of alarms of each algorithm model in the historical data and the total number of alarms of all algorithm models, and the basic importance is corrected according to the global confidence. The average of the alarm time points of each algorithm model is used as the time pointing point of each algorithm model, and the time pointing degree of each algorithm model in each time period is further calculated, which provides data support for the subsequent calculation of the scheduling value of each algorithm model, thereby improving the accuracy of model scheduling.
[0034] In some embodiments, the customized aggregation model satisfies the following relationship:
[0035]
[0036] Among them, T h represents the aggregation result, which is used to characterize the scheduling value of the algorithm model at time h. The larger the scheduling value, the more the algorithm model should issue an alarm at time h. i represents the basic importance of the algorithm model, which is used to characterize the degree to which the algorithm model should issue an alarm within 24 hours. t h represents the time directivity of the algorithm model at point h, which is used to characterize the degree to which the algorithm model should give an alarm at time h; e represents a natural constant.
[0037] In this way, by inputting the basic importance and time orientation of each algorithm model into the customized aggregation model, the scheduling value of each algorithm model at each time point is obtained, which can provide a data basis for subsequent adjustment of the scheduling plan, thereby improving the flexibility of scheduling plan optimization.
[0038] In some embodiments, obtaining the aggregation result of the algorithm model at the time point and writing the aggregation result as the scheduling value of the algorithm model at the time point specifically includes:
[0039] Every hour of each natural day is used as the evaluation time point;
[0040] At each evaluation time point, the time directivity of each algorithm model at that time point is calculated respectively, and the aggregation result of each algorithm model at that time point is calculated respectively according to the customized aggregation model, and the aggregation result is used as the scheduling value of the algorithm model at that time point.
[0041] In this way, the scheduling value of each algorithm model in each time period is calculated based on the basic importance and time orientation, and the algorithm model scheduling plan is adjusted according to the scheduling value. The scheduling plan can be adjusted automatically and flexibly, and the accuracy of the scheduling plan is improved.
[0042] The embodiment of the present application also provides a model scheduling optimization device based on artificial intelligence, the device comprising:
[0043] An acquisition unit, configured to count historical data of an edge computing device within a preset period, wherein the edge computing device includes multiple algorithm models, and the historical data includes the number of alarms of each algorithm model within the preset period and the time point of each alarm;
[0044] A statistical unit, configured to count the population density and population characteristics of the area radiated by the edge computing device based on the location and rated radiation range of the edge computing device, wherein the population characteristics include at least age characteristics and gender characteristics;
[0045] A first calculation unit calculates the confidence of the historical data based on the population characteristics and population density, wherein the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence;
[0046] An integration unit, integrating the confidences using a custom integration model to obtain a global confidence of the historical data;
[0047] A second calculation unit, configured to calculate the basic importance and time orientation of each model based on the historical data, and to correct the basic importance by using the global confidence;
[0048] An aggregation unit, used to input the basic importance of each algorithm model and the time orientation of each time point into a custom aggregation model to obtain an aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point;
[0049] The comparison unit obtains a comparison result based on comparing the scheduling value with a preset threshold value, and adjusts the algorithm model scheduling optimization plan according to the comparison result.
[0050] The present application also provides an electronic device, the device comprising:
[0051] a memory storing computer readable instructions; and
[0052] A processor executes computer-readable instructions stored in the memory to implement the artificial intelligence-based model scheduling optimization method.
[0053] An embodiment of the present application also provides a computer-readable storage medium, in which computer-readable instructions are stored. The computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based model scheduling optimization method. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a flowchart of a preferred embodiment of an artificial intelligence-based model scheduling optimization method involved in this application.
[0055] Figure 2 It is a functional module diagram of a preferred embodiment of the artificial intelligence-based model scheduling optimization device involved in this application.
[0056] Figure 3 It is a structural schematic diagram of an electronic device of a preferred embodiment of the artificial intelligence-based model scheduling optimization method involved in this application.
[0057] Figure 4 It is a structural diagram of the historical data of the edge computing device involved in this application.
[0058] Figure 5 This is a schematic diagram of the working environment of the edge computing device involved in this application. DETAILED DESCRIPTION
[0059] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.
[0060] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0061] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0062] The embodiment of the present application provides a model scheduling optimization method based on artificial intelligence, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0063] The electronic device can be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0064] The electronic device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.
[0065] The network where the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), etc.
[0066] like Figure 1 , which is a flow chart of a preferred embodiment of the model scheduling optimization method based on artificial intelligence of the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.
[0067] S10, collecting historical data of edge computing devices, where the edge computing devices include multiple algorithm models, and the historical data include the number of alarms issued by each algorithm model in a preset period and the time point of each alarm.
[0068] In this optional embodiment, the edge computing device refers to a computing device that integrates network, computing, storage, and application core capabilities and is located on the side close to the source of objects or data. Its function is to provide the most recent service nearby. Its application is initiated on the edge side to generate a faster network service response, meeting the industry's basic needs in real-time business, application intelligence, security and privacy protection, etc.
[0069] Exemplarily, the edge computing device described in this solution is installed at a garbage recycling station in a community to monitor behaviors related to discarding garbage and issue alerts for violations. The edge computing device includes multiple algorithm models, each of which is used to issue alerts for a certain type of violation. There can be three types of algorithm models described in this solution, namely model A, model B, and model C, where model A is used to issue alerts for violations of long-distance garbage dumping, model B is used to issue alerts for violations of not using garbage bags, and model C is used to issue alerts for violations of not placing kitchen waste in designated areas.
[0070] In this optional embodiment, historical data of the edge computing device may be counted, and the historical data records the number of alarms of the algorithm model in the edge computing device and the time point of each alarm. Figure 4 Shown is a schematic diagram of the structure of historical data of edge computing devices.
[0071] In this optional embodiment, if Figure 5 Shown is a schematic diagram of the working environment of the edge computing device.
[0072] In this way, by collecting historical data in the edge computing device, the alarm times and alarm time points of the algorithm model in the edge computing device are obtained, which can provide data support for the subsequent adjustment of the algorithm model scheduling plan, thereby improving the accuracy of the algorithm model scheduling.
[0073] S11, based on the location of the edge computing device and the rated radiation range, statistics are collected on the population density and population characteristics of the area radiated by the edge computing device, where the population characteristics at least include age characteristics and gender characteristics.
[0074] In this optional embodiment, the position of the edge computing device can be recorded as Position, and the rated radiation range of the edge computing device can be recorded as R. The rated radiation range refers to the radius of the area that the edge computing device is responsible for monitoring. Further, the position of the edge computing device can be used as the center of the circle, and the rated radiation range can be used as the radius. Based on the center of the circle and the radius, the radiation area S of the edge computing device can be calculated. The S=π·R 2 , where π represents pi, and R represents the rated radiation range. For example, if the rated radiation range is 1 km, the area of the radiation area is S=π·12 =3.14 square kilometers.
[0075] In this optional embodiment, the total population of the radiation area can be crawled from the Internet according to the area of the radiation area and the position Position of the edge computing device, and the total population can be recorded as P. The population density of the radiation area can be further calculated based on the total population P and the area S of the radiation area, and the population density can be recorded as ρ. The population density ρ is calculated as follows:
[0076]
[0077] Among them, ρ represents the total population density of the radiation area; P represents the total population of the radiation area; S represents the area of the radiation area.
[0078] For example, if the total population of the radiation area is P=5000 and the total area of the radiation area is 3.14 square kilometers, the total population density of the radiation area is calculated as follows:
[0079]
[0080] The total population density of the radiation area is 1592 people / square kilometer.
[0081] In this optional embodiment, the age and gender of each person in the radiation area can be counted as a population characteristic. For example, if a person in the radiation area is a 30-year-old male, the gender characteristic of the population is "male" and its age characteristic is "30".
[0082] In this way, the total population density of the radiation area is obtained by calculating the area of the edge computing device and counting the total population in the area, and the age and gender of each person in the total population are counted to obtain the population characteristics. The purpose is to provide data support for the subsequent calculation of the confidence of historical data, thereby improving the accuracy of model scheduling.
[0083] S12, calculating the confidence of the historical data based on the population characteristics and population density, wherein the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence.
[0084] In an optional embodiment, calculating the confidence of the edge computing device based on the population characteristics and population density of the edge computing device includes:
[0085] Grouping the age characteristics according to preset age groups to obtain different age groups, and counting the number of people belonging to different age groups in the region;
[0086] Calculate the variance of the population of all age groups and take the inverse of the variance as the age confidence level;
[0087] Compare the numbers of populations of different genders and calculate the ratio of the smaller value to the larger value as the gender confidence;
[0088] The total population density of the cities in the region is crawled, and the ratio of the population density to the total population density is calculated as the density confidence.
[0089] In this optional embodiment, the preset age group can be 10 years old. The total population in the radiation area can be divided into different age groups based on the preset age group and the age characteristics. For example, the population under 10 years old can be divided into the first group, the population aged 11 to 20 can be divided into the second group, the population aged 21 to 30 can be divided into the third group, and so on, the population aged 91 to 100 can be divided into the tenth group. The first to tenth groups can be used as different age groups, and the number of people in each age group can be counted. For example, the number of people in each age group can be expressed as The superscript age represents that the variable is the population of a certain age group, the subscript i represents the index of the age group and the value of i is an integer between 1 and 10. For example, The number of people representing the first age group is 10, that is, there are 10 people aged 0 to 10 in the radiation area.
[0090] In this optional embodiment, the variance of the population of all age groups can be calculated, and the inverse of the variance can be used as the age confidence of the historical data. The higher the value of the age confidence, the more credible the historical data is. The variance is used to characterize the difference in the population of each age group. If the variance is larger, the difference in the population between the age groups is greater, and the population of a certain age group may be much higher than the population of other age groups, indicating that the population in the area covered by the edge computing device has obvious age characteristics, and the credibility of the historical data is low.
[0091] In this optional embodiment, the variance of the population of all age groups is calculated as follows:
[0092]
[0093] Among them, S age represents the variance of the population of all age groups. The higher the variance, the lower the credibility of the historical data. m represents the number of age groups. For example, in this solution, m can be 10. i represents the index of the age group. Represents the population size of the age group indexed by i; Represents the mean of the population size for all age groups.
[0094] For example, if there are three age groups and the population of each age group is 200, 300, and 400 respectively, the mean of the population of all age groups is 300, and the variance is calculated as follows:
[0095]
[0096] Then the variance of the population size in all age groups is 6666.
[0097] In this optional embodiment, if the variance is larger, it indicates that the credibility of the historical data is lower. Therefore, the inverse of the variance can be used as the age confidence of the historical data. The age confidence of the historical data can be recorded as 1 / S age .
[0098] In this optional embodiment, the population of the radiation area can be divided into different gender groups according to gender. Females can be divided into the first group, and males can be divided into the second group. The population number in each gender group can be further counted. For example, the population number in each gender group can be expressed as The superscript gender represents the population of a certain gender group, the subscript j represents the index of the gender group and the value of j is "male" or "female". For example, The number representing the female population in the radiation area is 2,600.
[0099] In this optional embodiment, the number of populations of different genders can be compared and the ratio of the smaller value to the larger value can be calculated as the gender confidence, which can be denoted as S gender For example, when the number of male population And the number of female population When , the gender confidence is calculated as follows:
[0100]
[0101] In this optional embodiment, if the value of the gender confidence is larger, it indicates that the ratio of men to women in the radiation area of the edge computing device is more balanced, and if the historical data has no significant gender characteristic orientation, it indicates that the historical data is more credible.
[0102] In this optional embodiment, the total population density of the city in the radiation area of the edge computing device can be crawled as the benchmark density, and the benchmark density can be recorded as ρ s, the ratio of the population density in the area covered by the edge computing device to the reference density can be further calculated as the density confidence. The higher the value of the density confidence, the higher the population in the area covered by the edge computing device is than the average population in the city, and the higher the credibility of the historical data. The calculation method of the density confidence is:
[0103]
[0104] Among them, S ρ represents the density confidence, and the higher the value of the density confidence, the more credible the historical data is; ρ represents the population density of the area covered by the edge computing device; ρ s represents the reference density.
[0105] For example, when the population density of the area covered by the edge computing device is ρ=1592 people / square kilometer, and the reference density is ρ s =1600 people / square kilometer, the density confidence is calculated as follows:
[0106]
[0107] Then the value of the density confidence is 0.995.
[0108] In this way, the confidence of historical data is calculated by analyzing the impact of population characteristics and population density on historical data, which provides data support for the subsequent calculation of the global confidence of historical data, thereby improving the accuracy of the algorithm model scheduling plan.
[0109] S13, integrating the confidences using a customized integration model to obtain a global confidence of the historical data.
[0110] In an optional embodiment, the integrating the confidences using a customized integration model to obtain a global confidence of the historical data includes:
[0111] Inputting the age confidence, gender confidence and density confidence into an inverse tangent function respectively to obtain a normalized confidence, wherein the normalized confidence includes a normalized age confidence, a normalized gender confidence and a normalized density confidence;
[0112] The normalized confidence is input into a custom integration model to obtain an integration result as the global confidence of the historical data.
[0113] In this optional embodiment, the age confidence, gender confidence and density confidence may be respectively input into an inverse tangent function to obtain a normalized confidence, and the normalized confidence is calculated as follows:
[0114]
[0115] Among them, S j represents the normalized confidence. The higher the normalized confidence, the more reliable the historical data is. The superscript j represents the type of normalized confidence. In this solution, the value of j includes {age0, gender0, ρ0}. For example, if the value of j is age0, then S age0 represents the normalized age confidence; arctan represents the inverse tangent function; the superscript i represents the type of the confidence, and the value of i includes {age, gender, ρ}; S i represents the age confidence, gender confidence or density confidence. For example, if the value of i is age, then S age represents age confidence; π represents the circumference constant.
[0116] For example, taking the age confidence as an example, when i=age and S i =6666, j = age0 and S j represents the normalized age confidence, and the normalized age confidence is calculated as follows:
[0117]
[0118] Then the normalized age confidence is 0.99.
[0119] In this optional embodiment, the normalized age confidence, gender confidence and density confidence may be input into the custom integration model to obtain an integration result as a global confidence, and the custom integration model satisfies the relationship:
[0120]
[0121] Wherein, Z represents the integration result. The higher the value of the integration result, the lower the characteristic directivity of the historical data and the higher the credibility; S age0 represents the normalized age confidence; S gender0 represents the normalized gender confidence; S ρ0 represents the normalized density confidence; e represents the natural constant.
[0122] Exemplarily, when the normalized age confidence S age0 =0.99, the normalized gender confidence S gender0 =0.48, the normalized density confidence S ρ0 =0.49, the global confidence is calculated as follows:
[0123]
[0124] Then the value of the global confidence is 0.8765.
[0125] In this way, the confidence is normalized by the inverse tangent function to obtain the normalized confidence, and the normalized confidence is input into the custom integration model to obtain the integration result as the global confidence. The higher the value of the global confidence, the higher the credibility of the historical data, which can provide data assistance for the basic importance of subsequent correction of the algorithm model, thereby improving the accuracy of the algorithm model scheduling.
[0126] S14, respectively calculating the basic importance and time orientation of each algorithm model based on the historical data, and correcting the basic importance by the global confidence.
[0127] In an optional embodiment, the calculating the basic importance and time orientation of each algorithm model based on the historical data respectively, and correcting the basic importance by the confidence level includes:
[0128] Calculate the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models, and use the ratio as the basic importance of the algorithm model;
[0129] Calculating the product of the basic importance and the global confidence to obtain a corrected basic importance;
[0130] Calculate the mean of the time points of each algorithm model alarm in the historical data respectively, and use the time point represented by the mean as the time point of the algorithm model;
[0131] Taking each hour as a time period, the difference between the starting time point of each time period of each day and the time orientation point is calculated respectively, and the absolute value of the difference is used as the time orientation degree of the algorithm model at the starting time point.
[0132] In this optional embodiment, the historical data includes the number of alarms and the time point of each alarm for each algorithm model in the edge computing device. For example, in this solution, it is assumed that the edge computing device contains three algorithm models, namely algorithm model A, algorithm model B and algorithm model C. The number of times the algorithm model A is called can be recorded as N. A , the number of times the algorithm model B is called can be recorded as N B , the number of times the algorithm model C is called can be recorded as N C .
[0133] In this optional embodiment, the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models can be calculated and used as the basic importance of the algorithm model. For example, taking algorithm model A as an example, the basic importance of algorithm model A can be recorded as I A , the I A The calculation method is:
[0134]
[0135] For example, if N A =100, N B =200 and N C =300, then the calculation method of the basic importance of algorithm model A is:
[0136]
[0137] Then the basic importance value of the algorithm model A is 0.17.
[0138] In this optional embodiment, the basic importance can be corrected by the global confidence, and the product of the global confidence and the basic importance can be calculated to obtain the corrected basic importance. In this solution, the corrected basic importance can be recorded as I r0 And r∈{A, B, C}, illustratively, when r=A and the value of the global confidence is 0.8765, when the basic importance of the algorithm model A is 0.17, the modified basic importance of the algorithm model A is:
[0139] I A0 =0.17×0.8765=0.14
[0140] Then the revised basic importance value of the algorithm model A is 0.14.
[0141] In this optional embodiment, the mean of the time points of each algorithm model alarm in the historical data can be calculated and used as the time point of the algorithm model. In this solution, the time point of the algorithm model can be recorded as P r And r∈{A,B,C}, for example, if the alarm time points of algorithm model A are 7 o'clock, 9 o'clock, 12 o'clock, 13 o'clock, 17 o'clock, and 18 o'clock, then the calculation method of the time pointing point of algorithm model A is:
[0142]
[0143] Then the time point of the algorithm model A is 12 o'clock.
[0144] In this optional embodiment, each hour can be regarded as a time period, and the difference between the starting time point of each time period of each day and the time orientation point can be calculated respectively, and the absolute value of the difference can be used as the time orientation degree of the algorithm model at the starting time point.
[0145] For example, if you want to calculate the time directivity of the algorithm model A at 9 o'clock, you can use 9 o'clock as the starting time point of the period from 9 to 10 o'clock. Assuming that the time directivity of the algorithm model A is 12 o'clock, you can calculate the difference between the time directivity of the algorithm model A and the starting time point. The difference is 12-9=3. Further, the absolute value of the difference 3 can be used as the time directivity of the algorithm model A at the time point of 9 o'clock.
[0146] In this way, the basic importance of each algorithm model is obtained by calculating the number of alarms of each algorithm model in the historical data and the total number of alarms of all algorithm models, and the basic importance is corrected according to the global confidence. The average of the alarm time points of each algorithm model is used as the time pointing point of each algorithm model, and the time pointing degree of each algorithm model in each time period is further calculated, which provides data support for the subsequent calculation of the scheduling value of each algorithm model, thereby improving the accuracy of model scheduling.
[0147] S15, respectively inputting the basic importance of each algorithm model and the time directivity of each time point into a custom aggregation model to obtain the aggregation result of the algorithm model at the time point, and using the aggregation result as the scheduling value of the algorithm model at the time point.
[0148] In this optional embodiment, the customized aggregation model satisfies the following relationship:
[0149]
[0150] Among them, T h represents the aggregation result, which is used to characterize the scheduling value of the algorithm model at time h. The larger the scheduling value, the more the algorithm model should be called at time h. i represents the basic importance of the algorithm model, which is used to characterize the degree to which the algorithm model should be called within 24 hours. t h represents the time directivity of the algorithm model at time h, which is used to characterize the degree to which the algorithm model should be called at time h; e represents a natural constant.
[0151] For example, taking algorithm model A as an example, when the basic importance of algorithm model A is i=0.14, when h is 9 points and t h =3, then the scheduling value of algorithm model A at 9 o'clock is:
[0152]
[0153] Then the scheduling value of the algorithm model A at 9 o'clock is 0.9962.
[0154] In a preferred embodiment, obtaining the scheduling value of the algorithm model at a certain time point specifically includes:
[0155] Every hour of each natural day is used as the evaluation time point;
[0156] At each evaluation time point, the time directivity of each algorithm model at that time point is calculated respectively, and the aggregation result of each algorithm model at that time point is calculated respectively according to the customized aggregation model, and the aggregation result is used as the scheduling value of the algorithm model at that time point.
[0157] In this optional embodiment, every hour in each natural day can be used as an evaluation time point, that is, every hour between 0:00 and 24:00 every day can be used as an evaluation time point.
[0158] In this optional embodiment, in step S15, the scheduling value of each algorithm model at each evaluation time point is calculated and recorded as i represents the index of the algorithm model, and j represents the evaluation time point.
[0159] In this way, by inputting the basic importance and time orientation of each algorithm model into the customized aggregation model, the scheduling value of each algorithm model at each time point is obtained, which can provide a data basis for subsequent adjustment of the scheduling plan, thereby improving the flexibility of scheduling plan optimization.
[0160] S16, comparing the scheduling value with a preset threshold to obtain a comparison result, and adjusting the algorithm model scheduling optimization plan according to the comparison result.
[0161] In an optional embodiment, the comparing the scheduling value with a preset threshold to obtain a comparison result, and adjusting the algorithm model scheduling optimization scheme according to the comparison result includes:
[0162] If the scheduling value is not less than the preset threshold, the algorithm model is called; if the scheduling value is less than the preset threshold, the algorithm model is closed.
[0163] In this optional embodiment, if the scheduling value is not less than a preset threshold, the algorithm model is enabled. The preset threshold can be determined by the edge computing device developer through a large number of experimental results. Exemplarily, the preset threshold can be 0.5.
[0164] In this optional embodiment, if the scheduling value is less than a preset threshold, it indicates that the alarm probability of the algorithm model at this moment is low and there is no need to turn it on, so the algorithm model is turned off.
[0165] The above-mentioned artificial intelligence-based model scheduling optimization method obtains the alarm times and alarm time points of each algorithm model in the edge computing device by collecting historical data from the edge computing device, and counts the population density and population characteristics of the radiation area according to the radiation area area of the edge computing device and the location of the edge computing device, and further calculates the confidence of the historical data according to the population characteristics, calculates the basic importance and time orientation of each algorithm model through historical data, and corrects the basic importance through the confidence of the historical data, and then calculates the scheduling value of each algorithm model in each time period based on the basic importance and time orientation, and adjusts the algorithm model scheduling plan according to the scheduling value, which can automatically and flexibly adjust the scheduling plan and improve the accuracy of the scheduling plan.
[0166] like Figure 2 As shown, it is a functional module diagram of a preferred embodiment of the model scheduling optimization device based on artificial intelligence provided in the embodiment of the present application. The model scheduling optimization device 11 based on artificial intelligence includes an acquisition unit 110, a statistical unit 111, a first calculation unit 112, an integration unit 113, a second calculation unit 114, an aggregation unit 115, and a comparison unit 116. The module / unit referred to in this application refers to a series of computer program segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.
[0167] In an optional embodiment, the acquisition unit 110 is used to count historical data of an edge computing device, where the edge computing device includes multiple algorithm models, and the historical data includes the number of times each algorithm model alarms in a preset period and the time point of each alarm.
[0168] In this optional embodiment, the edge computing device refers to a computing device that integrates network, computing, storage, and application core capabilities and is located on the side close to the source of objects or data. Its function is to provide the most recent service nearby. Its application is initiated on the edge side to generate a faster network service response, meeting the industry's basic needs in real-time business, application intelligence, security and privacy protection, etc.
[0169] Exemplarily, the edge computing device described in this solution is installed at a garbage recycling station in a community to monitor behaviors related to discarding garbage and issue alerts for violations. The edge computing device includes multiple algorithm models, each of which is used to issue alerts for a certain type of violation. There can be three types of algorithm models described in this solution, namely model A, model B, and model C, where model A is used to issue alerts for violations of long-distance garbage dumping, model B is used to issue alerts for violations of not using garbage bags, and model C is used to issue alerts for violations of not placing kitchen waste in designated areas.
[0170] In this optional embodiment, historical data of the edge computing device may be counted, and the historical data records the number of alarms of the algorithm model in the edge computing device and the time point of each alarm. Figure 4 Shown is a schematic diagram of the structure of historical data of edge computing devices.
[0171] In this optional embodiment, if Figure 5 Shown is a schematic diagram of the working environment of the edge computing device.
[0172] In an optional embodiment, the first computing unit 111 is used to count the population density and population characteristics of the area radiated by the edge computing device based on the location of the edge computing device and the rated radiation range, and the population characteristics include at least age characteristics and gender characteristics.
[0173] In this optional embodiment, the position of the edge computing device can be recorded as Position, and the rated radiation range of the edge computing device can be recorded as R. The rated radiation range refers to the radius of the area that the edge computing device is responsible for monitoring. Further, the position of the edge computing device can be used as the center of the circle, and the rated radiation range can be used as the radius. Based on the center of the circle and the radius, the radiation area S of the edge computing device can be calculated. The S=π·R 2 , where π represents pi, and R represents the rated radiation range. For example, if the rated radiation range is 1 km, the area of the radiation area is S=π·1 2 =3.14 square kilometers.
[0174] In this optional embodiment, the total population of the radiation area can be crawled from the Internet according to the area of the radiation area and the position Position of the edge computing device, and the total population can be recorded as P. The population density of the radiation area can be further calculated based on the total population P and the area S of the radiation area, and the population density can be recorded as ρ. The population density ρ is calculated as follows:
[0175]
[0176] Among them, ρ represents the total population density of the radiation area; P represents the total population of the radiation area; S represents the area of the radiation area.
[0177] For example, if the total population of the radiation area is P=5000 and the total area of the radiation area is 3.14 square kilometers, the total population density of the radiation area is calculated as follows:
[0178]
[0179] The total population density of the radiation area is 1592 people / square kilometer.
[0180] In this optional embodiment, the age and gender of each person in the radiation area can be counted as a population characteristic. For example, if a person in the radiation area is a 30-year-old male, the gender characteristic of the population is "male" and its age characteristic is "30".
[0181] In an optional embodiment, the integration unit 112 is used to calculate the confidence of the historical data based on the population characteristics and population density, and the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence.
[0182] In an optional embodiment, calculating the confidence of the edge computing device based on the population characteristics and population density of the edge computing device includes:
[0183] Grouping the age characteristics according to preset age groups to obtain different age groups, and counting the number of people belonging to different age groups in the region;
[0184] Calculate the variance of the population of all age groups and take the inverse of the variance as the age confidence level;
[0185] Compare the numbers of populations of different genders and calculate the ratio of the smaller value to the larger value as the gender confidence;
[0186] The total population density of the cities in the region is crawled, and the ratio of the population density to the total population density is calculated as the density confidence.
[0187] In this optional embodiment, the preset age group can be 10 years old. The total population in the radiation area can be divided into different age groups based on the preset age group and the age characteristics. For example, the population under 10 years old can be divided into the first group, the population aged 11 to 20 can be divided into the second group, the population aged 21 to 30 can be divided into the third group, and so on, the population aged 91 to 100 can be divided into the tenth group. The first to tenth groups can be used as different age groups, and the number of people in each age group can be counted. For example, the number of people in each age group can be expressed as The superscript age represents that the variable is the population of a certain age group, the subscript i represents the index of the age group and the value of i is an integer between 1 and 10. For example, The number of people representing the first age group is 10, that is, there are 10 people aged 0 to 10 in the radiation area.
[0188] In this optional embodiment, the variance of the population of all age groups can be calculated, and the inverse of the variance can be used as the age confidence of the historical data. The higher the value of the age confidence, the more credible the historical data is. The variance is used to characterize the difference in the population of each age group. If the variance is larger, the difference in the population between the age groups is greater, and the population of a certain age group may be much higher than the population of other age groups, indicating that the population in the area covered by the edge computing device has obvious age characteristics, and the credibility of the historical data is low.
[0189] In this optional embodiment, the variance of the population of all age groups is calculated as follows:
[0190]
[0191] Among them, S age represents the variance of the population of all age groups. The higher the variance, the lower the credibility of the historical data. m represents the number of age groups. For example, in this solution, m can be 10. i represents the index of the age group. Represents the population size of the age group indexed by i; Represents the mean of the population size for all age groups.
[0192] For example, if there are three age groups and the population of each age group is 200, 300, and 400 respectively, the mean of the population of all age groups is 300, and the variance is calculated as follows:
[0193]
[0194] Then the variance of the population size in all age groups is 6666.
[0195] In this optional embodiment, if the variance is larger, it indicates that the credibility of the historical data is lower. Therefore, the inverse of the variance can be used as the age confidence of the historical data. The age confidence of the historical data can be recorded as 1 / S age .
[0196] In this optional embodiment, the population of the radiation area can be divided into different gender groups according to gender. Females can be divided into the first group, and males can be divided into the second group. The population number in each gender group can be further counted. For example, the population number in each gender group can be expressed as The superscript gender represents the population of a certain gender group, the subscript j represents the index of the gender group and the value of j is "male" or "female". For example, The number representing the female population in the radiation area is 2,600.
[0197] In this optional embodiment, the number of populations of different genders can be compared and the ratio of the smaller value to the larger value can be calculated as the gender confidence, which can be denoted as S gender For example, when the number of male population And the number of female population When , the gender confidence is calculated as follows:
[0198]
[0199] In this optional embodiment, if the value of the gender confidence is larger, it indicates that the ratio of men to women in the radiation area of the edge computing device is more balanced, and if the historical data has no significant gender characteristic orientation, it indicates that the historical data is more credible.
[0200] In this optional embodiment, the total population density of the city in the radiation area of the edge computing device can be crawled as the benchmark density, and the benchmark density can be recorded as ρ s , the ratio of the population density in the area covered by the edge computing device to the reference density can be further calculated as the density confidence. The higher the value of the density confidence, the higher the population in the area covered by the edge computing device is than the average population in the city, and the higher the credibility of the historical data. The calculation method of the density confidence is:
[0201]
[0202] Among them, S ρrepresents the density confidence, and the higher the value of the density confidence, the more credible the historical data is; ρ represents the population density of the area covered by the edge computing device; ρ s represents the reference density.
[0203] For example, when the population density of the area covered by the edge computing device is ρ=1592 people / square kilometer, and the reference density is ρ s =1600 people / square kilometer, the density confidence is calculated as follows:
[0204]
[0205] Then the value of the density confidence is 0.995.
[0206] In an optional embodiment, the second calculation unit 113 is used to integrate the confidences using a custom integration model to obtain a global confidence of the historical data.
[0207] In an optional embodiment, the integrating the confidences using a customized integration model to obtain a global confidence of the historical data includes:
[0208] Inputting the age confidence, gender confidence and density confidence into an inverse tangent function respectively to obtain a normalized confidence, wherein the normalized confidence includes a normalized age confidence, a normalized gender confidence and a normalized density confidence;
[0209] The normalized confidence is input into a custom integration model to obtain an integration result as the global confidence of the historical data.
[0210] In this optional embodiment, the age confidence, gender confidence and density confidence may be respectively input into an inverse tangent function to obtain a normalized confidence, and the normalized confidence is calculated as follows:
[0211]
[0212] Among them, S j represents the normalized confidence. The higher the normalized confidence, the more reliable the historical data is. The superscript j represents the type of normalized confidence. In this solution, the value of j includes {age0, gender0, ρ0}. For example, if the value of j is age0, then S age0 represents the normalized age confidence; arctan represents the inverse tangent function; the superscript i represents the type of the confidence, and the value of i includes {age, gender, ρ}; S irepresents the age confidence, gender confidence or density confidence. For example, if the value of i is age, then S age represents age confidence; π represents the circumference constant.
[0213] For example, taking the age confidence as an example, when i=age and S i =6666, j = age0 and S j represents the normalized age confidence, and the normalized age confidence is calculated as follows:
[0214]
[0215] Then the normalized age confidence is 0.99.
[0216] In this optional embodiment, the normalized age confidence, gender confidence and density confidence may be input into the custom integration model to obtain an integration result as a global confidence, and the custom integration model satisfies the relationship:
[0217]
[0218] Wherein, Z represents the integration result. The higher the value of the integration result, the lower the characteristic directivity of the historical data and the higher the credibility; S age0 represents the normalized age confidence; S gender0 represents the normalized gender confidence; S ρ0 represents the normalized density confidence; e represents the natural constant.
[0219] Exemplarily, when the normalized age confidence S age0 =0.99, the normalized gender confidence S gender0 =0.48, the normalized density confidence S ρ0 =0.49, the global confidence is calculated as follows:
[0220]
[0221] Then the value of the global confidence is 0.8765.
[0222] In an optional embodiment, the aggregation unit 114 is used to calculate the basic importance and time orientation of each algorithm model based on the historical data, and correct the basic importance by using the global confidence.
[0223] In an optional embodiment, the calculating the basic importance and time orientation of each algorithm model based on the historical data respectively, and correcting the basic importance by the confidence level includes:
[0224] Calculate the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models, and use the ratio as the basic importance of the algorithm model;
[0225] Calculating the product of the basic importance and the global confidence to obtain a corrected basic importance;
[0226] Calculate the mean of the time points of each algorithm model alarm in the historical data respectively, and use the time point represented by the mean as the time point of the algorithm model;
[0227] Taking each hour as a time period, the difference between the starting time point of each time period of each day and the time orientation point is calculated respectively, and the absolute value of the difference is used as the time orientation degree of the algorithm model at the starting time point.
[0228] In this optional embodiment, the historical data includes the number of times each algorithm model in the edge computing device is called and the time point when each algorithm model is called. For example, in this solution, it is assumed that the edge computing device contains three algorithm models, namely algorithm model A, algorithm model B and algorithm model C. The number of times the algorithm model A is called can be recorded as N. A , the number of times the algorithm model B is called can be recorded as N B , the number of times the algorithm model C is called can be recorded as N C .
[0229] In this optional embodiment, the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models can be calculated and used as the basic importance of the algorithm model. For example, taking algorithm model A as an example, the basic importance of algorithm model A can be recorded as I A , the I A The calculation method is:
[0230]
[0231] For example, if N A =100, N B =200 and N C =300, then the calculation method of the basic importance of algorithm model A is:
[0232]
[0233] Then the basic importance value of the algorithm model A is 0.17.
[0234] In this optional embodiment, the basic importance can be corrected by the global confidence, and the product of the global confidence and the basic importance can be calculated to obtain the corrected basic importance. In this solution, the corrected basic importance can be recorded as I r0 And r∈{A, B, C}, illustratively, when r=A and the value of the global confidence is 0.8765, when the basic importance of the algorithm model A is 0.17, the modified basic importance of the algorithm model A is:
[0235] I A0 =0.17×0.8765=0.14
[0236] Then the revised basic importance value of the algorithm model A is 0.14.
[0237] In this optional embodiment, the mean of the time points of each algorithm model alarm in the historical data can be calculated and used as the time point of the algorithm model. In this solution, the time point of the algorithm model can be recorded as P r And r∈{A,B,C}, for example, if the alarm time points of algorithm model A are 7 o'clock, 9 o'clock, 12 o'clock, 13 o'clock, 17 o'clock, and 18 o'clock, then the calculation method of the time pointing point of algorithm model A is:
[0238]
[0239] Then the time point of the algorithm model A is 12 o'clock.
[0240] In this optional embodiment, each hour can be regarded as a time period, and the difference between the starting time point of each time period of each day and the time orientation point can be calculated respectively, and the absolute value of the difference can be used as the time orientation degree of the algorithm model at the starting time point.
[0241] For example, if you want to calculate the time directivity of the algorithm model A at 9 o'clock, you can use 9 o'clock as the starting time point of the period from 9 to 10 o'clock. Assuming that the time directivity of the algorithm model A is 12 o'clock, you can calculate the difference between the time directivity of the algorithm model A and the starting time point. The difference is 12-9=3. Further, the absolute value of the difference 3 can be used as the time directivity of the algorithm model A at the time point of 9 o'clock.
[0242] In an optional embodiment, the matching unit 115 is used to input the basic importance of each algorithm model and the time directivity of each time point into a custom aggregation model to obtain the aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point.
[0243] In this optional embodiment, the customized aggregation model satisfies the following relationship:
[0244]
[0245] Among them, T h represents the aggregation result, which is used to characterize the scheduling value of the algorithm model at time h. The larger the scheduling value, the more the algorithm model should be called at time h. i represents the basic importance of the algorithm model, which is used to characterize the degree to which the algorithm model should be called within 24 hours. t h represents the time directivity of the algorithm model at time h, which is used to characterize the degree to which the algorithm model should be called at time h; e represents a natural constant.
[0246] For example, taking algorithm model A as an example, when the basic importance of algorithm model A is i=0.14, when h is 9 points and t h =3, then the scheduling value of algorithm model A at 9 o'clock is:
[0247]
[0248] Then the scheduling value of the algorithm model A at 9 o'clock is 0.9962.
[0249] In a preferred embodiment, obtaining the scheduling value of the algorithm model at a certain time point specifically includes:
[0250] Every hour of each natural day is used as the evaluation time point;
[0251] At each evaluation time point, the time directivity of each algorithm model at that time point is calculated respectively, and the aggregation result of each algorithm model at that time point is calculated respectively according to the customized aggregation model, and the aggregation result is used as the scheduling value of the algorithm model at that time point.
[0252] In this optional embodiment, every hour in each natural day can be used as an evaluation time point, that is, every hour between 0:00 and 24:00 every day can be used as an evaluation time point.
[0253] In this optional embodiment, the aggregation unit 115 calculates the scheduling value of each algorithm model at each evaluation time point and records it as i represents the index of the algorithm model, and j represents the evaluation time point.
[0254] In an optional embodiment, the comparison unit 116 is used to compare the scheduling value with a preset threshold to obtain a comparison result, and adjust the algorithm model scheduling optimization scheme according to the comparison result.
[0255] In an optional embodiment, the comparing the scheduling value with a preset threshold to obtain a comparison result, and adjusting the algorithm model scheduling optimization scheme according to the comparison result includes:
[0256] If the scheduling value is not less than the preset threshold, the algorithm model is called; if the scheduling value is less than the preset threshold, the algorithm model is closed.
[0257] In this optional embodiment, if the scheduling value is not less than a preset threshold, the algorithm model is enabled. The preset threshold can be determined by the edge computing device developer through a large number of experimental results. Exemplarily, the preset threshold can be 0.5.
[0258] In this optional embodiment, if the scheduling value is less than a preset threshold, it indicates that the alarm probability of the algorithm model at this moment is low and there is no need to turn it on, so the algorithm model is turned off.
[0259] The above-mentioned artificial intelligence-based model scheduling optimization method obtains the alarm times and alarm time points of each algorithm model in the edge computing device by collecting historical data from the edge computing device, and counts the population density and population characteristics of the radiation area according to the radiation area area of the edge computing device and the location of the edge computing device, and further calculates the confidence of the historical data according to the population characteristics, calculates the basic importance and time orientation of each algorithm model through historical data, and corrects the basic importance through the confidence of the historical data, and then calculates the scheduling value of each algorithm model in each time period based on the basic importance and time orientation, and adjusts the algorithm model scheduling plan according to the scheduling value, which can automatically and flexibly adjust the scheduling plan and improve the accuracy of the scheduling plan.
[0260] like Figure 3 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 executes the computer-readable instructions stored in the memory to implement the model scheduling optimization method based on artificial intelligence in any of the above embodiments.
[0261] In an optional embodiment, the electronic device 1 further includes a bus, a computer program stored in the memory 12 and executable on the processor 13, such as an artificial intelligence-based model scheduling optimization program.
[0262] Figure 3 Only the electronic device 1 having components 12-13 is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0263] Combination Figure 1 The memory 12 in the electronic device 1 stores a plurality of computer-readable instructions to implement a model scheduling optimization method based on artificial intelligence, and the processor 13 can execute the plurality of instructions to implement:
[0264] Counting historical data of an edge computing device, where the edge computing device includes multiple algorithm models, and the historical data includes the number of alarms of each algorithm model in a preset period and the time point of each alarm;
[0265] Based on the location and rated radiation range of the edge computing device, statistics are made on the population density and population characteristics of the area radiated by the edge computing device, where the population characteristics include at least age characteristics and gender characteristics;
[0266] Calculating the confidence of the historical data based on the population characteristics and population density, the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence;
[0267] Integrating the confidences using a custom integration model to obtain a global confidence of the historical data;
[0268] Calculate the basic importance and time orientation of each algorithm model based on the historical data, and correct the basic importance by the global confidence;
[0269] Input the basic importance of each algorithm model and the time orientation degree of each time point into the custom aggregation model to obtain the aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point;
[0270] The scheduling value is compared with a preset threshold to obtain a comparison result, and the algorithm model scheduling optimization plan is adjusted according to the comparison result.
[0271] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0272] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may have either a bus structure or a star structure. The electronic device 1 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 1 may also include input and output devices, network access devices, etc.
[0273] It should be noted that the electronic device 1 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0274] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 12 can also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 12 can also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the model scheduling optimization program based on artificial intelligence, but also can be used to temporarily store data that has been output or is to be output.
[0275] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 1, and uses various interfaces and lines to connect the various components of the entire electronic device 1, and executes or executes programs or modules stored in the memory 12 (for example, executing a model scheduling optimization program based on artificial intelligence, etc.), and calls data stored in the memory 12 to execute various functions of the electronic device 1 and process data.
[0276] The processor 13 executes the operating system of the electronic device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the model scheduling optimization method based on artificial intelligence, for example Figure 1 Steps shown.
[0277] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition unit 110, a statistical unit 111, a first calculation unit 112, an integration unit 113, a second calculation unit 114, an aggregation unit 115, and a comparison unit 116.
[0278] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of the model scheduling optimization method based on artificial intelligence described in each embodiment of the present application.
[0279] If the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0280] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.
[0281] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0282] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0283] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Figure 3 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.
[0284] Although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 13 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0285] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0286] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0287] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based model scheduling optimization method described in any of the above embodiments.
[0288] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0289] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0290] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0291] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0292] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.
[0293] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A model scheduling optimization method based on artificial intelligence, characterized in that: The method comprises: Counting historical data of an edge computing device, where the edge computing device includes multiple algorithm models, and the historical data includes the number of alarms of each algorithm model in a preset period and the time point of each alarm; Based on the location and rated radiation range of the edge computing device, statistics are made on the population density and population characteristics of the area radiated by the edge computing device, where the population characteristics include at least age characteristics and gender characteristics; Calculating the confidence of the historical data based on the population characteristics and population density, the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence; Integrating the confidences using a custom integration model to obtain a global confidence of the historical data; Calculate the basic importance and time orientation of each algorithm model based on the historical data, and correct the basic importance by the global confidence; Input the basic importance of each algorithm model and the time orientation degree of each time point into the custom aggregation model to obtain the aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point; The scheduling value is compared with a preset threshold to obtain a comparison result, and the algorithm model scheduling optimization plan is adjusted according to the comparison result.
2. The artificial intelligence-based model scheduling optimization method according to claim 1, characterized in that: The calculating the confidence of the historical data based on the population characteristics and population density of the edge computing device includes: Grouping the age characteristics according to preset age groups to obtain different age groups, and counting the number of people belonging to different age groups in the region; Calculate the variance of the population of all age groups and take the inverse of the variance as the age confidence level; Compare the numbers of populations of different genders and calculate the ratio of the smaller value to the larger value as the gender confidence; The total population density of the cities in the region is crawled, and the ratio of the population density to the total population density is calculated as the density confidence.
3. The artificial intelligence-based model scheduling optimization method according to claim 1, characterized in that: The step of integrating the confidences using a customized integration model to obtain a global confidence of the historical data includes: Inputting the age confidence, gender confidence and density confidence into an inverse tangent function respectively to obtain a normalized confidence, wherein the normalized confidence includes a normalized age confidence, a normalized gender confidence and a normalized density confidence; The normalized confidence is input into a custom integration model to obtain an integration result as the global confidence of the historical data.
4. The artificial intelligence-based model scheduling optimization method according to claim 3, characterized in that: The customized integration model satisfies the relationship: Wherein, Z represents the integration result. The higher the value of the integration result, the higher the credibility of the historical data. S age0 represents the normalized age confidence; S gender0 represents the normalized gender confidence; S ρ0 represents the normalized density confidence; e represents the natural constant.
5. The artificial intelligence-based model scheduling optimization method according to claim 1, characterized in that: The calculating the basic importance and time orientation of each algorithm model based on the historical data respectively, and correcting the basic importance by the global confidence includes: Calculate the ratio of the number of alarms of each algorithm model in the historical data to the total number of alarms of all algorithm models, and use the ratio as the basic importance of the algorithm model; Calculating the product of the basic importance and the global confidence to obtain a corrected basic importance; Calculate the mean of the time points of each algorithm model alarm in the historical data respectively, and use the time point represented by the mean as the time point of the algorithm model; Taking each hour as a time period, the difference between the starting time point of each time period of each day and the time orientation point is calculated respectively, and the absolute value of the difference is used as the time orientation degree of the algorithm model at the starting time point.
6. The artificial intelligence-based model scheduling optimization method according to claim 1, characterized in that: The custom aggregation model satisfies the following relationship: Among them, T h represents the aggregation result, which is used to characterize the scheduling value of the algorithm model at time h. The larger the scheduling value, the more the algorithm model should issue an alarm at time h. i represents the basic importance of the algorithm model, which is used to characterize the degree to which the algorithm model should issue an alarm within 24 hours. t h represents the time directivity of the algorithm model at point h, which is used to characterize the degree to which the algorithm model should give an alarm at time h; e represents a natural constant.
7. The artificial intelligence-based model scheduling optimization method according to claim 1, characterized in that: The obtaining of the aggregation result of the algorithm model at the time point, and using the aggregation result as the scheduling value of the algorithm model at the time point, specifically includes: Every hour of each natural day is used as the evaluation time point; At each evaluation time point, the time directivity of each algorithm model at that time point is calculated respectively, and the aggregation result of each algorithm model at that time point is calculated respectively according to the customized aggregation model, and the aggregation result is used as the scheduling value of the algorithm model at that time point.
8. A model scheduling optimization device based on artificial intelligence, characterized in that: The device comprises: An acquisition unit, configured to count historical data of an edge computing device within a preset period, wherein the edge computing device includes multiple algorithm models, and the historical data includes the number of alarms of each algorithm model within the preset period and the time point of each alarm; A statistical unit, configured to count the population density and population characteristics of the area radiated by the edge computing device based on the location and rated radiation range of the edge computing device, wherein the population characteristics include at least age characteristics and gender characteristics; A first calculation unit calculates the confidence of the historical data based on the population characteristics and population density, wherein the confidence is used to characterize the degree of feature orientation of the historical data, and the confidence includes at least age confidence, gender confidence and density confidence; An integration unit, integrating the confidences using a custom integration model to obtain a global confidence of the historical data; A second calculation unit, configured to calculate the basic importance and time orientation of each model based on the historical data, and to correct the basic importance by using the global confidence; An aggregation unit, used to input the basic importance of each algorithm model and the time orientation of each time point into a custom aggregation model to obtain an aggregation result of the algorithm model at the time point, and use the aggregation result as the scheduling value of the algorithm model at the time point; The comparison unit obtains a comparison result based on comparing the scheduling value with a preset threshold value, and adjusts the algorithm model scheduling optimization plan according to the comparison result.
9. An electronic device, characterized in that: The electronic device comprises: a memory storing computer readable instructions; and A processor executes computer-readable instructions stored in the memory to implement the artificial intelligence-based model scheduling optimization method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement the artificial intelligence-based model scheduling optimization method as described in any one of claims 1 to 7.
