Resource transfer method, system and device based on cloud edge collaboration and storage medium
By introducing multi-class deep neural network models based on cloud-edge collaboration and rule database matching technology in traditional resource mobilization methods, the problem that traditional methods cannot effectively mobilize resources in complex environments is solved, and more efficient and accurate resource mobilization is achieved.
Patent Information
- Application Number
- CN202510025719.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional resource mobilization methods are difficult to cope with complex and changing environments and needs, especially in large-scale and distributed resource management systems. They cannot respond to dynamic changes in resources in a timely manner, accurately predict future resource requirements, and cannot effectively integrate and utilize them. Data and resources at the edge and cloud.
Using cloud-edge collaboration-based resource mobilization method, by obtaining preprocessed data sent by edge gateways, inputting trained multi-class deep neural network models to obtain prediction results, building a rule database and matching it with the prediction results, randomly selecting rules as the target optimization Solution, evaluate the matching degree and iterative optimization, and generate resource mobilization instructions for processing.
It improves the accuracy and efficiency of resource mobilization, can support diversified resource mobilization needs, reduce the cost of manual intervention and decision-making time, and reduce the overall cost of resource mobilization.
Smart Images

Figure CN119440856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of collaborative mobilization technology, and in particular to a resource mobilization method, system, device and storage medium based on cloud-edge collaboration. Background Art
[0002] In today's information-based and intelligent era, efficient management and allocation of resources has become one of the goals pursued by all walks of life. With the rapid development and widespread application of Internet of Things technology, massive amounts of data are continuously generated and collected at the edge, providing data support for resource scheduling.
[0003] At present, traditional resource mobilization methods often rely on manual experience or simple rule judgments, which are difficult to cope with complex and changing environments and demands. Especially when facing large-scale, distributed resource management systems, the limitations and shortcomings of traditional methods are becoming more and more prominent. For example, they may not be able to respond to dynamic changes in resources in a timely manner, accurately predict future resource needs, or effectively integrate and utilize data and resources on the edge and cloud. This will have a certain impact on resource scheduling and cannot meet production scheduling requirements. Summary of the invention
[0004] In order to solve the above technical problems, the present application provides a resource mobilization method, system, device and storage medium based on cloud-edge collaboration.
[0005] The technical solution provided in this application is described below: In a first aspect, the present application provides a resource mobilization method based on cloud-edge collaboration, the method comprising: Get the pre-processed data sent by the edge gateway; Inputting the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; Constructing a rule database, wherein the rule database includes a plurality of condition-action rules; Randomly select a rule from the rule database as a first target optimal solution; Evaluate whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements; If not, a target identifier is generated according to the first target optimal solution, the target identifier corresponds to the first target optimal solution, and a second target optimal solution is selected from the rule database according to the target identifier; after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement, a candidate solution is generated based on the second target optimal solution; If yes, generating a candidate solution based on the first objective optimal solution; Determining whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; If yes, the rule with the highest matching degree is output as the target matching rule; if no, the iteration progress is extended to obtain the target iteration progress, and the iteration is continued according to the target iteration progress until the target matching rule is output; Generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes the type, quantity, time and location information of the mobilized resources; Perform resource mobilization processing according to the resource mobilization instruction.
[0006] Optionally, obtain pre-processed data sent by the edge gateway, including: Sending a data mobilization instruction to the edge gateway, so that the edge gateway retrieves the original data in the cache data according to the data mobilization instruction, and performs data preprocessing on the original data to obtain preprocessed data; receiving a pre-processing data determination instruction sent by the edge gateway, and determining a call channel according to the determination instruction; The pre-processed data sent by the edge gateway is obtained according to the calling channel.
[0007] Optionally, evaluating whether the matching degree between the first target optimal solution and the prediction result meets a preset requirement includes: Evaluate whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements according to the target formula; The target formula is: S = (Σ(Pi * Ri)) / (√(Σ(Pi^2)) * √(Σ(Ri^2))); Wherein, P is the vector of the prediction results, R is the vector of the first target optimal solution, Pi and Ri are the values of the prediction results and the first target optimal solution in the i-th dimension respectively; Σ(Pi * Ri) represents the sum of the products of the prediction result vector P and the first target optimal solution vector R in each dimension; √(Σ(Pi^2)) represents the modulus of the prediction result vector P, and √(Σ(Ri^2)) represents the modulus of the first target optimal solution vector R; S is the target value between the prediction result vector and the first target optimal solution vector; Set target thresholds; Evaluate whether the target value is greater than or equal to the target threshold.
[0008] Optionally, judging whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress includes: Obtaining the matching degree and iteration progress between the candidate solution and the first target optimal solution; When it is determined that the degree of matching between the candidate solution and the first target optimal solution meets the matching requirement and the iteration progress meets the progress requirement, it is determined whether to accept the candidate solution as the target optimal solution based on the difference in the degree of matching between the candidate solution and the first target optimal solution and the iteration progress.
[0009] Optionally, generating a resource mobilization instruction according to the target matching rule includes: Acquire target conditions and target action rules according to the target matching rules; A resource mobilization instruction is generated according to the target condition and the target action rule.
[0010] Optionally, performing resource mobilization processing according to the resource mobilization instruction includes: generating an operation information manual according to the resource mobilization instruction; Determine whether the mobilization steps and methods in the operation information manual are reasonable; If so, resource mobilization is performed according to the operation information manual.
[0011] A second aspect of the present application provides a resource mobilization system based on cloud-edge collaboration, the system comprising: A first acquisition unit, used to acquire pre-processed data sent by the edge gateway; A second acquisition unit, used for inputting the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; A construction unit, used to construct a rule database, wherein the rule database includes a plurality of condition-action rules; A selection unit, configured to randomly select a rule from the rule database as a first target optimal solution; An evaluation unit, used to evaluate whether the matching degree between the first target optimal solution and the prediction result meets a preset requirement; a first generating unit, configured to generate a target identifier according to the first target optimal solution, the target identifier corresponding to the first target optimal solution, and select a second target optimal solution from the rule database according to the target identifier when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result does not meet the preset requirement; and generate a candidate solution based on the second target optimal solution after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement; a second generating unit, configured to generate a candidate solution based on the first target optimal solution when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result meets a preset requirement; A judgment unit, configured to judge whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; A first output unit, configured to output a rule with the highest matching degree as a target matching rule when the judgment unit determines to accept the candidate solution as the target optimal solution according to the target criterion; A second output unit is used for extending the iteration progress to obtain a target iteration progress when the judgment unit does not accept the candidate solution as the target optimal solution, and continuing to iterate according to the target iteration progress until the target matching rule is output; A third generating unit, configured to generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes information on the type, quantity, time and location of the mobilized resources; The mobilization unit is used to perform resource mobilization processing according to the resource mobilization instruction.
[0012] A third aspect of the present application provides a resource mobilization device based on cloud-edge collaboration, the device comprising: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method as described in the first aspect and any one of the first aspects.
[0013] A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the method described in the first aspect and any one of the first aspects is performed.
[0014] It can be seen from the above technical solutions that this application has the following advantages: 1. Using the trained multi-class deep neural network model to conduct in-depth analysis of the pre-processed data sent by the edge gateway can accurately predict resource requirements, which has higher accuracy and reliability than traditional manual experience or simple rule judgment.
[0015] 2. Constructing a rule database containing several condition-action rules and matching them with the prediction results of the deep neural network can further refine the decision-making process of resource mobilization. By matching the rule database, it can ensure that the resource mobilization instructions are more in line with actual business needs and scenario characteristics, thereby improving the accuracy of mobilization.
[0016] 3. By randomly selecting a rule as the first target optimal solution and evaluating candidate solutions based on matching degree and iteration progress, the process of intelligent iterative optimization can be realized. During the iteration process, the solution is continuously optimized until the rule with the highest matching degree is found as the target matching rule, thereby ensuring the optimality of resource mobilization.
[0017] 4. It can support diverse resource mobilization needs, whether it is the mobilization of a single resource or the combined mobilization of multiple resources, thereby meeting production scheduling requirements.
[0018] 5. This method can reduce the time cost of manual intervention and decision-making, thereby reducing the overall cost of resource mobilization. At the same time, since the efficiency of resource mobilization has been improved, it can also further reduce the additional costs caused by improper resource allocation or delayed mobilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 A schematic diagram of an embodiment of a resource mobilization method based on cloud-edge collaboration of the present application; Figure 2 This is a schematic diagram of another embodiment of the resource mobilization method based on cloud-edge collaboration of the present application; Figure 3 This is a schematic diagram of another embodiment of the resource mobilization method based on cloud-edge collaboration of the present application; Figure 4 This is a schematic diagram of another embodiment of the resource mobilization method based on cloud-edge collaboration of the present application; Figure 5 This is a schematic diagram of another embodiment of the resource mobilization method based on cloud-edge collaboration of the present application; Figure 6 This is a schematic diagram of another embodiment of the resource mobilization method based on cloud-edge collaboration of the present application; Figure 7 A schematic diagram of an embodiment of a resource mobilization system based on cloud-edge collaboration of the present application; Figure 8 A schematic diagram of an embodiment of a resource mobilization device based on cloud-edge collaboration in the present application. DETAILED DESCRIPTION
[0022] It should be noted that the present application provides a resource mobilization method based on cloud-edge collaboration, which can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, the present application uses the terminal as an example for explanation.
[0023] See also Figure 1 The present application first provides an embodiment of a resource mobilization method based on cloud-edge collaboration, which includes: 101. Obtain pre-processed data sent by the edge gateway; 102. Input the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; 103. Construct a rule database, wherein the rule database includes a plurality of condition-action rules; 104. Randomly select a rule from the rule database as a first target optimal solution; 105. Evaluate whether the matching degree between the first target optimal solution and the prediction result meets the preset requirement; 106. If not, generate a target identifier according to the first target optimal solution, the target identifier corresponds to the first target optimal solution, select a second target optimal solution from the rule database according to the target identifier; after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement, generate a candidate solution based on the second target optimal solution; 107. If yes, generate a candidate solution based on the first objective optimal solution; 108. Determine whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; 109. If yes, then output the rule with the highest matching degree as the target matching rule; 110. If not, extend the iteration progress to obtain the target iteration progress, and continue iterating according to the target iteration progress until the target matching rule is output; 111. Generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes the type, quantity, time and location information of the mobilized resources; 112. Perform resource mobilization processing according to the resource mobilization instruction.
[0024] In the present application, the preprocessed data sent by the edge gateway is first obtained, and then the preprocessed data is input into the trained multi-class deep neural network model to obtain the prediction result, and a rule database is further constructed. The rule database contains a number of condition-action rules, and a rule is randomly selected from the rule database as the first target optimal solution; whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements is evaluated, and if so, a candidate solution is generated based on the first target optimal solution, and whether to accept the candidate solution as the target optimal solution is determined according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; If so, the rule with the highest matching degree is output as the target matching rule, and then a resource mobilization instruction is generated according to the target matching rule. The resource mobilization instruction includes the type, quantity, time and location information of the mobilized resources, and the resource mobilization process is performed according to the resource mobilization instruction.
[0025] In step 101, the pre-processed data sent by the edge gateway is obtained. Specifically, the edge gateway is used to collect raw data from various terminal devices, such as sensors, cameras, smart devices, etc. in real time. The collected data can include device status, environmental parameters, and user behavior records. After obtaining the raw data, the edge gateway will perform preliminary pre-processing on the raw data. The pre-processing includes data cleaning, data filtering, data aggregation, and data formatting. The pre-processed data will be packaged by the edge gateway and sent to the cloud for subsequent analysis.
[0026] In step 102, the preprocessed data is input into the trained multi-class deep neural network model to obtain the prediction result. Specifically, after the multi-class deep neural network model is trained, a large amount of preprocessed data is needed to train the model. During the training process, the multi-class deep neural network model will learn the features and patterns in the data and establish a mapping relationship between the input data and the prediction result, wherein the prediction result includes the probability of equipment failure, the predicted value of resource demand, etc., which is not specifically limited here. After obtaining the prediction result, step 103 is executed.
[0027] In step 103, a rule database is constructed, wherein the condition-action rules in the rule database may come from multiple aspects, such as expert knowledge, historical data analysis, machine learning algorithms, etc. These rules in the rule database describe the actions or decisions that should be taken under different conditions. It should be noted that each rule is usually composed of a condition part and an action part, wherein the condition part describes the condition or situation that triggers the rule, and the action part specifies the operation or decision that should be performed when the condition is met.
[0028] The rules in the database are organized and managed according to different dimensions, such as device type, fault type, resource requirement type, etc., to facilitate management.
[0029] In step 104, in order to explore different solutions and avoid falling into a local optimal solution, a rule is selected from the rule database by random selection as the first target optimal solution. The random selection method helps to increase the diversity and flexibility of the solution.
[0030] In step 105, it is evaluated whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements, wherein an evaluation function or indicator is defined to measure the matching degree between the prediction result and the rule. This evaluation function is evaluated based on similarity, and then a reasonable matching threshold is set according to specific business needs. Only when the matching degree between the prediction result and the rule reaches or exceeds this threshold, the rule is considered to be a feasible solution. When it is determined that the matching degree between the first target optimal solution and the prediction result does not meet the preset requirements, step 106 is executed; when it is determined that the matching degree between the first target optimal solution and the prediction result meets the preset requirements, step 107 is executed.
[0031] Step 106: if the matching degree between the prediction result and the rule does not meet the preset requirement, a target identifier is generated according to the first target optimal solution, the target identifier corresponds to the first target optimal solution, and a second target optimal solution is selected from the rule database according to the target identifier; after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement, a candidate solution is generated based on the second target optimal solution; In the embodiment of the present application, when the evaluation determines that the matching degree between the first target optimal solution and the prediction result does not meet the preset requirements, it means that the rule selected from the rule database is not suitable as a solution.
[0032] In order to conveniently identify the unmatched first target optimal solution later, the terminal will generate a unique target identifier for it. This identifier can be a simple number, hash value or any information that can uniquely represent the rule, which is not specifically limited here.
[0033] Then, the second target optimal solution is selected from the rule database according to the target identifier. Specifically, since the first target optimal solution does not match the prediction result, the system needs to find a new rule as the second target optimal solution. That is, the terminal will select a rule that is completely unrelated to the first target optimal solution from the rule database according to the previously generated target identifier as the second target optimal solution. That is, when the target identifier is identified, the rule content corresponding to the target identifier will be actively used. Therefore, when selecting the second target optimal solution, the terminal will not repeatedly select the previously evaluated and unmatched rules to avoid invalid iterations.
[0034] Then the terminal will perform the same matching evaluation as step 105 on the selected second target optimal solution, that is, compare the similarity between it and the prediction result. If the matching degree between the second target optimal solution and the prediction result meets the preset requirements, it means that this rule is a feasible solution. At this time, the terminal will perform subsequent operation steps, such as generating candidate solutions, performing iterative optimization, etc., to further determine the final target optimal solution.
[0035] If the second target optimal solution still does not match the predicted result, the terminal will continue to select new rules from the rule database for evaluation to find a suitable solution. This iterative process will continue until a solution that meets the requirements is found.
[0036] In step 107, if the matching degree between the prediction result and the rule meets the preset requirement, a specific candidate solution is generated according to the specific content of the rule and the prediction result. The candidate solution includes detailed information such as the type, quantity, time, and location of the resources to be mobilized.
[0037] In step 108, whether to accept the candidate solution as the target optimal solution is determined based on the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress. After obtaining the candidate solution, the difference between the candidate solution and the first target optimal solution is compared, including the comparison of the scale, efficiency, cost and other aspects of resource mobilization. The difference between the candidate solution and the first target optimal solution can be obtained, so that it can be known which solution between the candidate solution and the first target optimal solution is better.
[0038] It should be noted that the process of generating a candidate solution based on the first target optimal solution is continuously carried out, so that multiple candidate solutions can be obtained, and then the multiple preferred solutions and the first target optimal solution are continuously iterated. During the iterative process, if the number of iterations is large and the convergence speed slows down, or the computing resources are limited, the current candidate solution is automatically selected to be accepted as the target optimal solution instead of continuing to iterate.
[0039] In step 109, after multiple iterations, the terminal will select the rule with the highest matching degree and the best effect as the final target matching rule, and this rule will serve as the basis for the subsequent generation of resource mobilization instructions.
[0040] In step 110, when the target matching rule cannot be obtained based on the current iteration progress, the iteration progress is extended to obtain the target iteration progress, and the iteration is continued according to the target iteration progress until the target matching rule is output.
[0041] In step 111, based on the specific content and requirements of the target matching rule, the terminal generates a specific resource mobilization instruction, which includes the types of resources to be mobilized, such as equipment, personnel, materials, quantity, time, location and other detailed information.
[0042] In step 112, finally, the terminal will send the generated resource mobilization instruction to the relevant execution agency or equipment to actually execute the resource mobilization operation. The mobilization operation includes specific actions such as starting equipment, deploying personnel, and transporting materials, which are not specifically limited here.
[0043] Please refer to Figure 2 According to some embodiments of the present invention, obtaining the pre-processed data sent by the edge gateway in step 101 may specifically include, but is not limited to, the following: 201. Send a data mobilization instruction to the edge gateway, so that the edge gateway retrieves original data in cache data according to the data mobilization instruction, and performs data preprocessing on the original data to obtain preprocessed data; 202. Receive a pre-processing data determination instruction sent by the edge gateway, and determine a call channel according to the determination instruction; 203. Acquire the pre-processed data sent by the edge gateway according to the access channel.
[0044] In an embodiment of the present application, the terminal generates a data mobilization instruction according to the current data processing requirements or business logic. This instruction contains specific information about the original data to be retrieved, such as data type, data range, data timestamp, etc. The terminal then sends the data mobilization instruction to the edge gateway through a secure communication channel. After receiving the data mobilization instruction, the edge gateway will parse the content of the instruction and retrieve the corresponding original data from its cached data according to the requirements of the instruction.
[0045] After retrieving the original data, the edge gateway will process the original data, including data cleaning, data format conversion, data aggregation and other operations, and pre-process the data. The goal is to reduce data redundancy, improve data quality, and facilitate subsequent data analysis or processing.
[0046] After the edge gateway completes data preprocessing, the edge gateway will send a preprocessing data determination instruction to the terminal and parse the instruction to obtain detailed information about the preprocessed data. The terminal will then select a suitable access channel to transmit the preprocessed data based on the size and type of the preprocessed data and the current network conditions. After determining the access channel, the terminal will establish a data transmission connection with the edge gateway. This connection is a network connection based on the TCP / IP protocol, and may also be other types of communication links, which are not specifically limited here. The edge gateway will then send the preprocessed data to the terminal through the determined access channel.
[0047] Please refer to Figure 3 According to some embodiments of the present invention, the step 105 of evaluating whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements may specifically include, but is not limited to, the following: 301. Evaluate, according to a target formula, whether the matching degree between the first target optimal solution and the prediction result meets a preset requirement; The target formula is: S = (Σ(Pi * Ri)) / (√(Σ(Pi^2)) * √(Σ(Ri^2))); Wherein, P is the vector of the prediction results, R is the vector of the first target optimal solution, Pi and Ri are the values of the prediction results and the first target optimal solution in the i-th dimension respectively; Σ(Pi * Ri) represents the sum of the products of the prediction result vector P and the first target optimal solution vector R in each dimension; √(Σ(Pi^2)) represents the modulus of the prediction result vector P, and √(Σ(Ri^2)) represents the modulus of the first target optimal solution vector R; S is the target value between the prediction result vector and the first target optimal solution vector; 302. Set target threshold; 303. Evaluate whether the target value is greater than or equal to the target threshold.
[0048] In an embodiment of the present application, the target formula S = (Σ(Pi * Ri)) / (√(Σ(Pi^2)) * √(Σ(Ri^2))) is a target formula for evaluating the similarity or matching degree between two vectors. In this formula: P represents the vector of prediction results, which contains the values of each dimension output by the prediction model, and R represents the vector of the first target optimal solution, which contains the values of each dimension corresponding to a rule randomly selected from the rule database. Pi and Ri are the values of the prediction result and the first target optimal solution in the i-th dimension, respectively. Σ(Pi * Ri) represents the sum of the products of the values of the prediction result vector P and the first target optimal solution vector R in each dimension, reflecting the degree of similarity between the two vectors in each dimension. √(Σ(Pi^2)) and √(Σ(Ri^2)) respectively represent the modulus of the prediction result vector P and the first target optimal solution vector R, that is, the length or size of the vector. S is the calculated target value, which measures the similarity or match between the prediction result vector and the first target optimal solution vector. The value range of S is between [-1, 1], where 1 indicates a perfect match, -1 indicates a complete mismatch, and 0 indicates no match.
[0049] Before evaluating the matching degree, a target threshold T is set to determine whether the matching degree between the prediction result and the first target optimal solution meets the preset requirements. Here, the target threshold T is a value between [-1, 1]. After calculating the target value S and setting the target threshold T, it is necessary to evaluate whether S is greater than or equal to T.
[0050] If S >= T: It means that the matching degree between the prediction result and the first target optimal solution meets the preset requirements. A candidate solution can be generated based on this rule, and the subsequent evaluation and optimization process can be continued.
[0051] If S < T: It means that the matching degree between the prediction result and the first target optimal solution does not meet the preset requirements. A new rule needs to be selected from the rule database as the second target optimal solution, and the above evaluation process is repeated until a rule that meets the requirements is found or the upper limit of the iteration times is reached.
[0052] Therefore, through the above process, it can be ensured that there is a high matching degree between the selected rule and the prediction result, thereby improving the accuracy and efficiency of resource mobilization.
[0053] Figure 4 According to some embodiments of the present invention, determining whether to accept the candidate solution as the target optimal solution according to the difference in the matching degree between the candidate solution and the first target optimal solution and the iteration progress in step 108 may specifically include, but is not limited to, the following: 401. Obtain the matching degree between the candidate solution and the first target optimal solution and the iteration progress; 402. When it is determined that the matching degree between the preferred solution and the first target optimal solution meets the matching requirements and the iteration progress meets the progress requirements, determine whether to accept the candidate solution as the target optimal solution according to the difference in the matching degree between the candidate solution and the first target optimal solution and the iteration progress; In the embodiments of the present application, obtaining the matching degree between the candidate solution and the first target optimal solution and the iteration progress Specifically, in this step, the terminal needs to calculate the matching degree between the candidate solution and the first target optimal solution. The matching degree can be calculated by defining a specific similarity function, such as using Euclidean distance, cosine similarity, Jaccard similarity coefficient, etc. The calculated matching degree value will be used to judge whether the candidate solution may become a better solution in the subsequent process. At the same time, the terminal also needs to track the current iteration times or other progress indicators during the iteration process, such as convergence speed, calculation time, etc.
[0054] When it is determined that the matching degree between the optimal solution and the first target optimal solution meets the matching requirements, and the iteration progress meets the progress requirements, it is determined whether to accept the candidate solution as the target optimal solution according to the matching degree difference between the candidate solution and the first target optimal solution and the iteration progress. During this process, the terminal will consider the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress to decide whether to accept the candidate solution as the target optimal solution. If the candidate solution is significantly better than the first target optimal solution in terms of matching degree, and the iteration progress indicates that the algorithm is close to convergence or has reached the preset upper limit of iterations, then the system may accept the candidate solution as the target optimal solution. On the contrary, if the improvement of the candidate solution is not obvious, or the iteration progress indicates that the algorithm still has a lot of room for optimization, then the terminal will directly refuse to accept the candidate solution and continue to iterate to find a better solution.
[0055] Figure 5 According to some embodiments of the present invention, generating a resource mobilization instruction according to the target matching rule in step 111 may specifically include, but not limited to, the following: 501. Acquire target conditions and target action rules according to the target matching rule; 502. Generate a resource mobilization instruction according to the target condition and the target action rule.
[0056] In the embodiment of the present application, after a series of processing and iterative processing, the optimal target matching rule is determined, and then the resource mobilization instruction is generated according to the target matching rule. Specifically, the terminal first parses the target matching rule and identifies the condition part defined therein, which includes device status, environmental parameters, time range, location information, etc. For example, the target matching rule contains such a condition: "If the temperature of device A exceeds 80 degrees, and the current time is between 9 and 11 am on weekdays."
[0057] At the same time, the terminal will extract the action part of the target matching rule, that is, the operation or decision that should be performed when the above conditions are met. For example, the corresponding action rule is: "Start the cooling system of device A and set the cooling level to the highest level."
[0058] After extracting the target conditions and target action rules, specific resource mobilization instructions can be generated based on this information. The terminal will build the trigger part of the instruction based on the target conditions to ensure that the instruction is triggered at the right time and in the right situation. At the same time, the terminal will build the execution part of the instruction based on the target action rules to clearly specify the operations or decisions that need to be performed. Finally, after generating resource mobilization instructions based on the target conditions and target action rules, the generated resource mobilization instructions are sent to the relevant execution agencies or devices.
[0059] Figure 6According to some embodiments of the present invention, the resource mobilization process performed according to the resource mobilization instruction in step 112 may specifically include, but is not limited to, the following: 601. Generate an operation information manual according to the resource mobilization instruction; 602. Determine whether the mobilization steps and mobilization methods in the operation information manual are reasonable; 603. If yes, perform resource mobilization processing according to the operation information manual.
[0060] In the embodiment of the present application, after the resource mobilization instructions are generated, in order to facilitate the understanding and operation of the execution agencies and personnel, these instructions need to be further converted into operation information manuals. Specifically, the terminal will first parse the resource mobilization instructions in detail and clarify the requirements in the instructions, including the type, quantity, time, location and specific operations or actions of the resources to be mobilized.
[0061] Afterwards, based on the results of the analysis, the terminal will organize the relevant information in a logical order to form clear operating steps and processes, including resource preparation, transportation, installation, debugging, use, and subsequent recycling and disposal. The terminal will further compile an operation information manual based on the organized information. The manual is in the form of an electronic document.
[0062] After generating the operation information manual, the rationality of the mobilization steps and methods in the manual is judged to ensure the feasibility and effectiveness of the actual operation. If it is judged that the mobilization steps and methods in the operation information manual are reasonable and feasible, then the resource mobilization process can be carried out according to the manual.
[0063] See also Figure 7 In a second aspect, the present application provides a resource mobilization system based on cloud-edge collaboration, the system comprising: A first acquisition unit 701 is used to acquire pre-processed data sent by an edge gateway; A second acquisition unit 702 is used to input the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; A construction unit 703 is used to construct a rule database, wherein the rule database includes a plurality of condition-action rules; A selection unit 704, configured to randomly select a rule from the rule database as a first target optimal solution; An evaluation unit 705 is used to evaluate whether the matching degree between the first target optimal solution and the prediction result meets a preset requirement; A first generating unit 706 is configured to generate a target identifier according to the first target optimal solution when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result does not meet the preset requirement, wherein the target identifier corresponds to the first target optimal solution, and select a second target optimal solution from the rule database according to the target identifier; after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement, generate a candidate solution based on the second target optimal solution; A second generating unit 707 is configured to generate a candidate solution based on the first target optimal solution when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result meets a preset requirement; A judgment unit 708 is used to judge whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; A first output unit 709, configured to output a rule with the highest matching degree as a target matching rule when the judgment unit determines to accept the candidate solution as the target optimal solution; A second output unit 710 is configured to, when the judgment unit does not accept the candidate solution as the target optimal solution, extend the iteration progress to obtain a target iteration progress, and continue iterating according to the target iteration progress until the target matching rule is output; The third generating unit 711 is used to generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes the type, quantity, time and location information of the mobilized resources; The mobilization unit 712 is used to perform resource mobilization processing according to the resource mobilization instruction.
[0064] See also Figure 8 , the present application also provides a resource mobilization device based on cloud-edge collaboration, including: Processor 801, memory 802, input and output unit 803, bus 804; The processor 801 is connected to the memory 802, the input and output unit 803 and the bus 804; The memory 802 stores a program, and the processor 801 calls the program to execute any of the above methods.
[0065] The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.
[0066] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0067] In the several embodiments provided in the present 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 schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0068] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0069] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0070] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A resource mobilization method based on cloud-edge collaboration, characterized in that: The method comprises: Get the pre-processed data sent by the edge gateway; Inputting the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; Constructing a rule database, wherein the rule database includes a plurality of condition-action rules; Randomly select a rule from the rule database as a first target optimal solution; Evaluate whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements; If not, a target identifier is generated according to the first target optimal solution, the target identifier corresponds to the first target optimal solution, and a second target optimal solution is selected from the rule database according to the target identifier; after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement, a candidate solution is generated based on the second target optimal solution; If yes, generating a candidate solution based on the first objective optimal solution; Determining whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; If yes, the rule with the highest matching degree is output as the target matching rule; if no, the iteration progress is extended to obtain the target iteration progress, and the iteration is continued according to the target iteration progress until the target matching rule is output; Generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes the type, quantity, time and location information of the mobilized resources; Perform resource mobilization processing according to the resource mobilization instruction.
2. The resource mobilization method based on cloud-edge collaboration according to claim 1 is characterized in that: Get the pre-processed data sent by the edge gateway, including: Sending a data mobilization instruction to the edge gateway, so that the edge gateway retrieves the original data in the cache data according to the data mobilization instruction, and performs data preprocessing on the original data to obtain preprocessed data; receiving a pre-processing data determination instruction sent by the edge gateway, and determining a call channel according to the determination instruction; The pre-processed data sent by the edge gateway is obtained according to the calling channel.
3. The resource mobilization method based on cloud-edge collaboration according to claim 1 is characterized in that: Evaluating whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements includes: Evaluate whether the matching degree between the first target optimal solution and the prediction result meets the preset requirements according to the target formula; The target formula is: S = (Σ(Pi * Ri)) / (√(Σ(Pi^2)) * √(Σ(Ri^2))); Wherein, P is the vector of the prediction results, R is the vector of the first target optimal solution, Pi and Ri are the values of the prediction results and the first target optimal solution in the i-th dimension respectively; Σ(Pi * Ri) represents the sum of the products of the prediction result vector P and the first target optimal solution vector R in each dimension; √(Σ(Pi^2)) represents the modulus of the prediction result vector P, and √(Σ(Ri^2)) represents the modulus of the first target optimal solution vector R; S is the target value between the prediction result vector and the first target optimal solution vector; Set target thresholds; Evaluate whether the target value is greater than or equal to the target threshold.
4. The resource mobilization method based on cloud-edge collaboration according to claim 1 is characterized in that: Determining whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress includes: Obtaining the matching degree and iteration progress between the candidate solution and the first target optimal solution; When it is determined that the degree of matching between the candidate solution and the first target optimal solution meets the matching requirement and the iteration progress meets the progress requirement, it is determined whether to accept the candidate solution as the target optimal solution based on the difference in the degree of matching between the candidate solution and the first target optimal solution and the iteration progress.
5. The resource mobilization method based on cloud-edge collaboration according to claim 1 is characterized in that: Generating a resource mobilization instruction according to the target matching rule includes: Acquire target conditions and target action rules according to the target matching rules; A resource mobilization instruction is generated according to the target condition and the target action rule.
6. The resource mobilization method based on cloud-edge collaboration according to claim 1 is characterized in that: Performing resource mobilization processing according to the resource mobilization instruction includes: generating an operation information manual according to the resource mobilization instruction; Determine whether the mobilization steps and methods in the operation information manual are reasonable; If so, resource mobilization is performed according to the operation information manual.
7. A resource mobilization system based on cloud-edge collaboration, characterized in that: The system comprises: A first acquisition unit, used to acquire pre-processed data sent by the edge gateway; A second acquisition unit, used for inputting the preprocessed data into a trained multi-class deep neural network model to obtain a prediction result; A construction unit, used to construct a rule database, wherein the rule database includes a plurality of condition-action rules; A selection unit, configured to randomly select a rule from the rule database as a first target optimal solution; An evaluation unit, used to evaluate whether the matching degree between the first target optimal solution and the prediction result meets a preset requirement; a first generating unit, configured to generate a target identifier according to the first target optimal solution, the target identifier corresponding to the first target optimal solution, and select a second target optimal solution from the rule database according to the target identifier when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result does not meet the preset requirement; and generate a candidate solution based on the second target optimal solution after determining that the matching degree between the second target optimal solution and the prediction result meets the preset requirement; a second generating unit, configured to generate a candidate solution based on the first target optimal solution when the evaluation unit determines that the matching degree between the first target optimal solution and the prediction result meets a preset requirement; A judgment unit, configured to judge whether to accept the candidate solution as the target optimal solution according to the difference in matching degree between the candidate solution and the first target optimal solution and the iteration progress; A first output unit, configured to output a rule with the highest matching degree as a target matching rule when the judgment unit determines to accept the candidate solution as the target optimal solution; A second output unit is used for extending the iteration progress to obtain a target iteration progress when the judgment unit does not accept the candidate solution as the target optimal solution, and continuing to iterate according to the target iteration progress until the target matching rule is output; A third generating unit, configured to generate a resource mobilization instruction according to the target matching rule, wherein the resource mobilization instruction includes information on the type, quantity, time and location of the mobilized resources; The mobilization unit is used to perform resource mobilization processing according to the resource mobilization instruction.
8. A resource mobilization device based on cloud-edge collaboration, characterized in that: The device comprises: Processor, memory, input-output unit, and bus; The processor is connected to the memory, the input and output unit, and the bus; The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Data processing method, device and equipment
CN116304738A
Information prediction method and device, equipment, storage medium and program product
CN116976491A
Algorithm automatic matching and parameter optimization method and system
CN118468061A
Cloud edge collaborative algorithm arrangement method and device, equipment and storage medium
CN119003181A
Methods for matching metadata from disparate data sources
US20100185637A1
Cited By
Distributed ammeter remote monitoring system and method based on Internet of Things
CN120499530A
