Adaptive resource scheduling method, system, electronic device and storage medium
By using the adaptive resource scheduling method in large venues, edge computing nodes and mobile robots work together to solve the problem of low data processing efficiency caused by the gathering of people, and improve the response rate and computing power.
Patent Information
- Application Number
- CN202411099780.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-12
AI Technical Summary
In large venues, the concentration of service requests caused by large gatherings of people results in slow response rates and low data processing efficiency.
Using an adaptive resource scheduling method, edge computing nodes and mobile robots work together, using cameras to acquire image data to build a real-time three-dimensional model, detect computing load, cluster crowds and terminal areas, screen matching areas, and determine the number and path of mobile robots. Expand the data processing capabilities of edge computing nodes.
It improves the data response rate and data processing efficiency, ensures the accuracy and effectiveness of the mobile robot's position arrangement, and enhances the computing power of the target area.
Smart Images

Figure CN118627863B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of resource scheduling, specifically the field of adaptive resource scheduling, and in particular to an adaptive resource scheduling method, system, electronic device and storage medium. Background Art
[0002] Currently, in large venues such as shopping malls, stadiums, and office buildings, there may be a large number of people gathering together, and a large number of service requests exist in the same time period, which leads to slow service response rates and low data processing efficiency. Summary of the invention
[0003] The embodiments of the present invention provide an adaptive resource scheduling method, system, electronic device and storage medium, which can improve the speed of data response and the efficiency of data processing.
[0004] On the one hand, the present invention is an embodiment that provides an adaptive resource scheduling method, the method comprising: the method is applied to an adaptive resource scheduling system, the adaptive resource scheduling system is deployed in a target building, the target building is installed with multiple cameras, a first area of the target building is provided with M edge computing nodes and N mobile robots, the M edge computing nodes are networked and communicated with the N mobile robots, M and N are positive integers, the method comprises:
[0005] The M edge computing nodes acquire image data of the first area through the multiple cameras;
[0006] constructing a real-time three-dimensional model of the first area based on the image data;
[0007] The M edge computing nodes detect the current computing load;
[0008] If the computing load is greater than a preset threshold, the following steps are performed:
[0009] Clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas;
[0010] Determine the center points corresponding to the E crowd gathering areas;
[0011] The M edge computing nodes obtain the locations of the connected terminals;
[0012] Clustering the positions of the connected terminals to obtain F terminal clustering areas;
[0013] Determine the center points corresponding to the F terminal gathering areas;
[0014] Determine the distance between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas;
[0015] Filter out A matching areas whose distance is less than a preset threshold;
[0016] Determining the number X of mobile robots required based on the calculated load and the A matching areas;
[0017] Determine the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas;
[0018] Planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model;
[0019] The mobile robot moves to the deployment position based on the moving path; when the mobile robot is at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas;
[0020] The M edge computing nodes and the K edge computing nodes jointly process the terminal data processing requests of the A matching areas, and the K edge computing nodes are communicatively connected with the terminals of the A matching areas through the mobile robot.
[0021] Optionally, the shape of the crowd gathering area can be determined based on a real-time three-dimensional model. Specifically, edge points in the cluster group can be determined based on the degree of dispersion and the distance from the center point, and the shape of the crowd gathering area can be obtained by connecting the edge points.
[0022] Optionally, the edge of the crowd gathering area may be determined based on an edge detection algorithm, and then the shape of the crowd gathering area may be determined.
[0023] In one possible implementation, the target matching area among the A matching areas is a rectangle, and the layout position of the mobile robot is determined based on the shape of the crowd matching area corresponding to the A matching areas, including: determining the center point of the rectangular area; determining the number C of terminals that can be connected in the target matching area based on a threshold of the load of the M edge computing nodes; the M edge computing nodes connect the C terminals closest to the center point; determining a circular area based on the C terminals; equally dividing the area outside the circular area in the target matching area based on the number of mobile robots required for the target matching area; and determining the position of the mobile robot based on the center point of the equally divided area and the positions of the K edge computing nodes.
[0024] It can be seen that in this implementation, the terminal close to the center point is connected to the edge computing node of the first area, and the peripheral terminal is connected to the edge computing node outside the first area, thereby minimizing (first distance + second distance), thereby reducing connection interference and improving the overall connection rate of the terminals in the first area; wherein the first distance is the distance between the terminal close to the center point and the edge computing node of the first area; the second distance is the distance between the peripheral terminal and the edge computing node outside the first area.
[0025] In a possible implementation, constructing a real-time three-dimensional model of the first area according to the image data includes:
[0026] Step 1: Obtain an edge computing node layout drawing of the target building, multiple two-dimensional images of the first area, and point cloud data of the first area;
[0027] Step 2: obtaining an edge computing node layout drawing feature map through a pre-trained feature extraction network for the edge computing node layout drawing; obtaining multiple two-dimensional image feature maps through a pre-trained feature extraction network for the multiple two-dimensional images, performing image registration on the edge computing node layout drawing feature map and the multiple two-dimensional image feature maps, and fusing them to obtain a two-dimensional feature map;
[0028] Step 3: Encode the point cloud in the point cloud data of the first area, and input the encoded point cloud into four consecutive sparse convolutional layers with a step size of 1 to obtain a point cloud data feature map;
[0029] Step 4: Project the two-dimensional feature map into a three-dimensional image feature map, wherein the three-dimensional camera feature map is matched with the point cloud data feature map;
[0030] Step 5: adaptively fusing the point cloud data feature map with the three-dimensional space image feature map;
[0031] Step 6: Fusing the two-dimensional feature map, the point cloud data feature map and the initial fusion feature map again to obtain a three-dimensional fusion feature map;
[0032] Step 7: Add the position code to the 3D fusion feature map to maintain the position information in the spatial domain, and restore the 3D fusion feature map with the position code added to the 3D model.
[0033] It can be seen that a rich real-time three-dimensional model is constructed based on the edge computing node layout drawing, the two-dimensional image of the first area, and the point cloud data of the first area, thereby ensuring the accuracy of crowd clustering and the subsequent accuracy of mobile robot path planning, thereby improving the efficiency and accuracy of data processing.
[0034] In a possible implementation, step one includes:
[0035] Obtaining an edge computing node layout drawing of the first area, wherein the edge computing node layout shows a layout position of each edge computing node in the target building;
[0036] Using a camera to collect multiple two-dimensional images of the first area at different angles, and performing image preprocessing;
[0037] Use an unmanned aerial vehicle and a ground point cloud acquisition device to acquire point cloud data of the first area.
[0038] It should be noted that the two-dimensional images of the first area collected by the camera at different angles can be specifically based on the camera installed in the target building. The camera can collect real-time images, so that a real-time three-dimensional model can be constructed based on the information in the real-time images.
[0039] In a possible implementation, projecting the two-dimensional feature map into a three-dimensional space image feature map includes:
[0040] Construct a voxel structure of a two-dimensional image to generate spatially dense features; project the center coordinates of each voxel into a two-dimensional feature map; adjust the projection position of the center point of the projected voxel in the two-dimensional image by an offset; obtain weights of the four adjacent pixels at that position by linear interpolation, combine pixels according to the weights, and obtain corresponding voxels, i.e., obtain a three-dimensional spatial image feature map. It should be noted that by constructing a voxel structure of a two-dimensional image to generate spatially dense features, a spatially smooth two-dimensional feature map can ultimately be provided, and these feature maps can form a good matching relationship with the three-dimensional point cloud data, thereby achieving a more accurate three-dimensional reconstruction effect.
[0041] In a possible implementation, the adaptively fusing the point cloud data feature map with the three-dimensional space image feature map is specifically:
[0042] The point cloud data feature map and the three-dimensional space camera feature map are connected in series, and then input into a 3*3 convolution layer, and an attention map is generated using a sigmoid function, and the attention map is multiplied by the three-dimensional space image feature map to obtain the three-dimensional space camera feature map after the attention map; the attention map is multiplied by the point cloud data feature map to obtain the point cloud data feature map after the attention map; wherein the attention map multiplication by the three-dimensional space image feature map and the attention map multiplication by the three-dimensional space image feature map are performed using an element-wise product operation;
[0043] Subsequently, the 3D camera feature map after the attention map and the point cloud data feature map after the attention map are fused to obtain the initial fused feature map.
[0044] It should be noted that the initial fused feature map does not contain enough spatial features. Therefore, after obtaining the initial fused feature map, the two-dimensional feature map, the point cloud data feature map and the initial fused feature map are fused again to obtain a three-dimensional fused feature map.
[0045] In a possible implementation, the two-dimensional feature map and the point cloud data feature map are extracted and encoded using a 3D ROI pool.
[0046] In a possible implementation, the adding of the position code to the 3D fused feature map to maintain the position information in the spatial domain, and restoring the 3D fused feature map to which the position code is added into the 3D model includes:
[0047] A linear function is used to project the 3D fused feature map with position encoding into the 3D output space to obtain a 3D volume, and then the 3D volume is reconstructed and grouped to obtain the final 3D model.
[0048] On the other hand, an embodiment of the present invention provides an adaptive resource scheduling system, which is deployed in a target building, and includes a camera, an edge computing node, and a mobile robot; the target building is installed with multiple cameras, and a first area of the target building is provided with M edge computing nodes and N mobile robots, and the M edge computing nodes are networked and communicated with the N mobile robots, where M and N are positive integers, and the adaptive resource scheduling system is used to perform the following method steps:
[0049] The M edge computing nodes acquire image data of the first area through the multiple cameras;
[0050] constructing a real-time three-dimensional model of the first area based on the image data;
[0051] The M edge computing nodes detect the current computing load;
[0052] If the computing load is greater than a preset threshold, the following steps are performed:
[0053] Clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas;
[0054] Determine the center points corresponding to the E crowd gathering areas;
[0055] The M edge computing nodes obtain the locations of the connected terminals;
[0056] Clustering the positions of the connected terminals to obtain F terminal clustering areas;
[0057] Determine the center points corresponding to the F terminal gathering areas;
[0058] Determine the distance between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas;
[0059] Filter out A matching areas whose distance is less than a preset threshold;
[0060] Determining the number X of mobile robots required based on the calculated load and the A matching areas;
[0061] Determine the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas;
[0062] Planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model;
[0063] The mobile robot moves to the deployment position based on the moving path; when the mobile robot is at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas;
[0064] The M edge computing nodes and the K edge computing nodes jointly process the terminal data processing requests of the A matching areas, and the K edge computing nodes are communicatively connected with the terminals of the A matching areas through the mobile robot.
[0065] On the other hand, an embodiment of the present invention provides an electronic device, comprising: a processor, suitable for implementing one or more instructions; and a computer storage medium, wherein the computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by the processor and executing the above-mentioned adaptive resource scheduling method.
[0066] On the other hand, an embodiment of the present invention provides a computer storage medium, wherein the computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the above-mentioned adaptive resource scheduling method.
[0067] It can be seen that the embodiments of the present invention can match the clustering areas of devices and the clustering areas of crowds, thereby screening out crowd areas with large data requests, and determining the layout of the mobile robot based on the matching results and the real-time three-dimensional model, thereby ensuring the accuracy and effectiveness of the mobile robot layout; and in the embodiments of the present application, the number of edge computing nodes that can be connected to the crowd gathering area is expanded through the mobile robot, thereby enhancing the data processing capability of the target area; in summary, the embodiments of the present application perform reasonable robot layout based on the terminal gathering area and the crowd gathering area, thereby improving the computing capability of the target area, thereby improving the data response rate and data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0069] Figure 1 It is a scenario architecture diagram provided by an embodiment of the present invention;
[0070] Figure 2 It is a flowchart of an adaptive resource scheduling method provided by an embodiment of the present invention;
[0071] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0073] like Figure 1 As shown, Figure 1 is a scenario architecture diagram provided in an embodiment of the present application. An adaptive resource scheduling method provided in an embodiment of the present application can be used in Figure 1In the system architecture shown, the system architecture includes edge computing node W1, edge computing node W2, and edge computing node W3, wherein edge computing node W1 is located in the first area, and edge computing nodes W2 and W3 are located outside the first area; the first area contains terminals P1-P7; for example, the threshold of the computing load corresponding to edge computing node W1 is 3 terminals, therefore, when terminals P1-P7 are all connected to edge computing node W1, the threshold is exceeded, therefore, it is necessary to call a mobile robot to share the computing load; when it is determined that two mobile robots are required and the shape of the crowd is a rectangle G, the three terminals P1-P3 forming a circular area near the center point are connected to the edge computing node W1 of the first area; rectangle G is the matching area G, which is specifically the matching area corresponding to the center points of the terminal clustering sub-area and the crowd clustering area being less than the distance threshold; due to the need Two mobile robots, therefore, divide the rectangular area equally into two parts, one of which contains terminals P4 and P5, and the other contains P6 and P7; mobile robot R1 is connected to terminals P4 and P5 in communication, and mobile robot R2 is connected to P6 and P7 in communication. The edge computing node determines the target area in the first area where the mobile robot can be parked based on the real-time three-dimensional model; edge computing node W2 calculates the optimal docking position based on its own position and terminals P4 and P5. If the optimal docking position is located in the target area where the mobile robot can be parked, the mobile robot R1 is controlled to dock at the optimal docking position. If the optimal docking position is outside the target area where the mobile robot can be parked, the position point closest to the optimal docking position in the target area where the mobile robot can be parked is determined, and the optimal docking position is updated to this position point, so that R1 is docked at the optimal docking position. Similarly, the optimal docking position of mobile robot R2 can be determined by combining the position of edge computing node W3 and the positions of terminals P6 and P7.
[0074] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order.
[0075] Based on the above description, an embodiment of the present invention proposes an adaptive resource scheduling method, which can be executed by an electronic device. The method is applied to an adaptive resource scheduling system, which is deployed in a target building. The target building is equipped with multiple cameras. The first area of the target building is provided with M edge computing nodes and N mobile robots. The M edge computing nodes are connected to the N mobile robots in a network communication, where M and N are positive integers. Figure 2 , the adaptive resource scheduling method may include the following steps S201-S204:
[0076] S201, M edge computing nodes obtain image data of a first area through the multiple cameras.
[0077] S202, constructing a real-time three-dimensional model of the first area according to the image data;
[0078] S203, M edge computing nodes detect the current computing load;
[0079] S204, if the computing load is greater than a preset threshold, the following steps are performed: clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas; determining the center points corresponding to the E crowd gathering areas; M edge computing nodes obtain the positions of the connected terminals and cluster the positions of the connected terminals to obtain F terminal gathering areas; determining the center points corresponding to the F terminal gathering areas; determining the distances between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas;
[0080] S205, screening out A matching regions whose distance is less than a preset threshold;
[0081] S206, determining the number X of mobile robots required based on the calculated load and the A matching areas;
[0082] S207, determining the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas;
[0083] S208, planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model;
[0084] wherein the mobile robot moves to the deployment position based on the moving path; when the mobile robot is located at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas;
[0085] S209, the mobile robot moves to the arrangement position based on the moving path;
[0086] S210, the M edge computing nodes and the K edge computing nodes jointly process terminal data processing requests in the A matching areas, and the K edge computing nodes are communicatively connected with the terminals in the A matching areas through the mobile robot.
[0087] It can be seen that the embodiments of the present invention can match the clustering areas of devices and the clustering areas of crowds, thereby screening out crowd areas with large data requests, and determining the layout of the mobile robot based on the matching results and the real-time three-dimensional model, thereby ensuring the accuracy and effectiveness of the mobile robot layout; and in the embodiments of the present application, the number of edge computing nodes that can be connected to the crowd gathering area is expanded through the mobile robot, thereby enhancing the data processing capability of the target area; in summary, the embodiments of the present application perform reasonable robot layout based on the terminal gathering area and the crowd gathering area, thereby improving the computing capability of the target area, thereby improving the data response rate and data processing efficiency.
[0088] In one possible implementation, the target matching area among the A matching areas is a rectangle, and the layout position of the mobile robot is determined based on the shape of the crowd matching area corresponding to the A matching areas, including: determining the center point of the rectangular area; determining the number C of terminals that can be connected in the target matching area based on a threshold of the load of the M edge computing nodes; the M edge computing nodes connect the C terminals closest to the center point; determining a circular area based on the C terminals; equally dividing the area outside the circular area in the target matching area based on the number of mobile robots required for the target matching area; and determining the position of the mobile robot based on the center point of the equally divided area and the positions of the K edge computing nodes.
[0089] It can be seen that in this implementation, the terminal close to the center point is connected to the edge computing node of the first area, and the peripheral terminal is connected to the edge computing node outside the first area, thereby minimizing (first distance + second distance), thereby reducing connection interference and improving the overall connection rate of the terminals in the first area; wherein the first distance is the distance between the terminal close to the center point and the edge computing node of the first area; the second distance is the distance between the peripheral terminal and the edge computing node outside the first area.
[0090] It can be seen that in this implementation, the terminal close to the center point is connected to the edge computing node of the first area, and the peripheral terminal is connected to the edge computing node outside the first area, thereby minimizing (first distance + second distance), thereby reducing connection interference and improving the overall connection rate of the terminals in the first area; wherein the first distance is the distance between the terminal close to the center point and the edge computing node of the first area; the second distance is the distance between the peripheral terminal and the edge computing node outside the first area.
[0091] In a possible implementation, constructing a real-time three-dimensional model of the first area according to the image data includes:
[0092] Step 1: Obtain an edge computing node layout drawing of the target building, multiple two-dimensional images of the first area, and point cloud data of the first area;
[0093] Step 2: obtaining an edge computing node layout drawing feature map through a pre-trained feature extraction network for the edge computing node layout drawing; obtaining multiple two-dimensional image feature maps through a pre-trained feature extraction network for the multiple two-dimensional images, performing image registration on the edge computing node layout drawing feature map and the multiple two-dimensional image feature maps, and fusing them to obtain a two-dimensional feature map;
[0094] Step 3: Encode the point cloud in the point cloud data of the first area, and input the encoded point cloud into four consecutive sparse convolutional layers with a step size of 1 to obtain a point cloud data feature map;
[0095] Step 4: Project the two-dimensional feature map into a three-dimensional image feature map, wherein the three-dimensional camera feature map is matched with the point cloud data feature map;
[0096] Step 5: adaptively fusing the point cloud data feature map with the three-dimensional space image feature map;
[0097] Step 6: Fusing the two-dimensional feature map, the point cloud data feature map and the initial fusion feature map again to obtain a three-dimensional fusion feature map;
[0098] Step 7: Add the position code to the 3D fusion feature map to maintain the position information in the spatial domain, and restore the 3D fusion feature map with the position code added to the 3D model.
[0099] It can be seen that a rich real-time three-dimensional model is constructed based on the edge computing node layout drawing, the two-dimensional image of the first area, and the point cloud data of the first area, thereby ensuring the accuracy of crowd clustering and the subsequent accuracy of mobile robot path planning, thereby improving the efficiency and accuracy of data processing.
[0100] In a possible implementation, step one includes:
[0101] Obtaining an edge computing node layout drawing of the first area, wherein the edge computing node layout shows a layout position of each edge computing node in the target building;
[0102] Using a camera to collect multiple two-dimensional images of the first area at different angles, and performing image preprocessing;
[0103] Use an unmanned aerial vehicle and a ground point cloud acquisition device to acquire point cloud data of the first area.
[0104] It should be noted that the two-dimensional images of the first area collected by the camera at different angles can be specifically based on the camera installed in the target building. The camera can collect real-time images, so that a real-time three-dimensional model can be constructed based on the information in the real-time images.
[0105] In a possible implementation, projecting the two-dimensional feature map into a three-dimensional space image feature map includes:
[0106] Construct a voxel structure of a two-dimensional image to generate spatially dense features; project the center coordinates of each voxel into a two-dimensional feature map; adjust the projection position of the center point of the projected voxel in the two-dimensional image by an offset; obtain weights of the four adjacent pixels at that position by linear interpolation, combine pixels according to the weights, and obtain corresponding voxels, i.e., obtain a three-dimensional spatial image feature map. It should be noted that by constructing a voxel structure of a two-dimensional image to generate spatially dense features, a spatially smooth two-dimensional feature map can ultimately be provided, and these feature maps can form a good matching relationship with the three-dimensional point cloud data, thereby achieving a more accurate three-dimensional reconstruction effect.
[0107] In a possible implementation, the adaptively fusing the point cloud data feature map with the three-dimensional space image feature map is specifically:
[0108] The point cloud data feature map and the three-dimensional space camera feature map are connected in series, and then input into a 3*3 convolution layer, and an attention map is generated using a sigmoid function, and the attention map is multiplied by the three-dimensional space image feature map to obtain the three-dimensional space camera feature map after the attention map; the attention map is multiplied by the point cloud data feature map to obtain the point cloud data feature map after the attention map; wherein the attention map multiplication by the three-dimensional space image feature map and the attention map multiplication by the three-dimensional space image feature map are performed using an element-wise product operation;
[0109] Subsequently, the 3D camera feature map after the attention map and the point cloud data feature map after the attention map are fused to obtain the initial fused feature map.
[0110] It should be noted that the initial fused feature map does not contain enough spatial features. Therefore, after obtaining the initial fused feature map, the two-dimensional feature map, the point cloud data feature map and the initial fused feature map are fused again to obtain a three-dimensional fused feature map.
[0111] In a possible implementation, the two-dimensional feature map and the point cloud data feature map are extracted and encoded using a 3D ROI pool.
[0112] In a possible implementation, the adding of the position code to the 3D fused feature map to maintain the position information in the spatial domain, and restoring the 3D fused feature map to which the position code is added into the 3D model includes:
[0113] A linear function is used to project the 3D fused feature map with position encoding into the 3D output space to obtain a 3D volume, and then the 3D volume is reconstructed and grouped to obtain the final 3D model.
[0114] Based on the description of the generation method embodiment described in the above text, the embodiment of the present invention further discloses an adaptive resource scheduling system, which is deployed in a target building. The adaptive resource scheduling system includes a camera, an edge computing node and a mobile robot. The target building is installed with multiple cameras, and the first area of the target building is provided with M edge computing nodes and N mobile robots. The M edge computing nodes are connected to the N mobile robots in a network communication, where M and N are positive integers. The adaptive resource scheduling system is used to perform the following method steps:
[0115] The M edge computing nodes acquire image data of the first area through the multiple cameras;
[0116] constructing a real-time three-dimensional model of the first area based on the image data;
[0117] The M edge computing nodes detect the current computing load;
[0118] If the computing load is greater than a preset threshold, the following steps are performed:
[0119] Clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas;
[0120] Determine the center points corresponding to the E crowd gathering areas;
[0121] The M edge computing nodes obtain the locations of the connected terminals;
[0122] Clustering the positions of the connected terminals to obtain F terminal clustering areas;
[0123] Determine the center points corresponding to the F terminal gathering areas;
[0124] Determine the distance between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas;
[0125] Filter out A matching areas whose distance is less than a preset threshold;
[0126] Determining the number X of mobile robots required based on the calculated load and the A matching areas;
[0127] Determine the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas;
[0128] Planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model;
[0129] The mobile robot moves to the deployment position based on the moving path; when the mobile robot is at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas;
[0130] The M edge computing nodes and the K edge computing nodes jointly process the terminal data processing requests of the A matching areas, and the K edge computing nodes are communicatively connected with the terminals of the A matching areas through the mobile robot.
[0131] The embodiment of the present invention also provides a computer storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer storage medium provides a storage space, which stores the operating system of the electronic device. In addition, one or more instructions suitable for being loaded and executed by the processor 201 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer storage medium located away from the aforementioned processor.
[0132] Figure 3 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The device includes: at least one processor 301, such as a central processing unit (CPU), at least one memory 302, and at least one bus 303.
[0133] The memory 302 may store program instructions, and the processor 301 may be used to call the program instructions to execute an adaptive resource scheduling system and method.
[0134] A person of ordinary skill in the art can understand that all or part of the steps in various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically-erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM), a solid state disk (SSD) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0135] It should be noted that all steps of the embodiments of the present application are performed under legal and compliant conditions, that is, all steps of the embodiments of the present application are performed with authorization.
[0136] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. An adaptive resource scheduling method, characterized in that: The method is applied to an adaptive resource scheduling system, the adaptive resource scheduling system is deployed in a target building, the target building is equipped with multiple cameras, a first area of the target building is provided with M edge computing nodes and N mobile robots, the M edge computing nodes are networked and communicated with the N mobile robots, M and N are positive integers, and the method comprises: The M edge computing nodes acquire image data of the first area through the multiple cameras; constructing a real-time three-dimensional model of the first area based on the image data; The M edge computing nodes detect the current computing load; If the computing load is greater than a preset threshold, the following steps are performed: Clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas; Determine the center points corresponding to the E crowd gathering areas; The M edge computing nodes obtain the locations of the connected terminals; Clustering the positions of the connected terminals to obtain F terminal clustering areas; Determine the center points corresponding to the F terminal gathering areas; Determine the distance between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas; Filter out A matching areas whose distance is less than a preset distance threshold; Determining the number X of mobile robots required based on the calculated load and the A matching areas; Determine the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas; Planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model; The mobile robot moves to the deployment position based on the moving path; when the mobile robot is at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas; The M edge computing nodes and the K edge computing nodes jointly process the terminal data processing requests of the A matching areas, and the K edge computing nodes are communicatively connected with the terminals of the A matching areas through the mobile robot.
2. The method according to claim 1, characterized in that The target matching area among the A matching areas is a rectangle, and the arrangement position of the mobile robot is determined based on the shapes of the crowd matching areas corresponding to the A matching areas, including: Determine the center point of the rectangular area; Determine the number of terminals C that can be connected in the target matching area based on a threshold value of the load of the M edge computing nodes; The M edge computing nodes are connected to the C terminals closest to the center point of the rectangular area; Determine a circular area based on the C terminals; Dividing the area outside the circular area in the target matching area into equal parts based on the number of the mobile robots required for the target matching area; The position of the mobile robot is determined based on the center point of the equally divided area and the positions of the K edge computing nodes.
3. The method according to claim 2, characterized in that Constructing a real-time three-dimensional model of the first area according to the image data includes: Step 1: Obtain an edge computing node layout drawing of the target building, multiple two-dimensional images of the first area, and point cloud data of the first area; Step 2: Obtain an edge computing node layout drawing feature map through a pre-trained feature extraction network for the edge computing node layout drawing; obtain multiple two-dimensional image feature maps through a pre-trained feature extraction network for the multiple two-dimensional images, perform image registration on the edge computing node layout drawing feature map and the multiple two-dimensional image feature maps, and perform fusion to obtain a two-dimensional feature map; Step 3: Encode the point cloud in the point cloud data of the first area, and input the encoded point cloud into four consecutive sparse convolutional layers with a step size of 1 to obtain a point cloud data feature map; Step 4: Project the two-dimensional feature map into a three-dimensional image feature map, wherein the three-dimensional camera feature map is matched with the point cloud data feature map; Step 5: adaptively fusing the point cloud data feature map with the three-dimensional space image feature map; Step 6: Fusing the two-dimensional feature map, the point cloud data feature map and the initial fusion feature map again to obtain a three-dimensional fusion feature map; Step 7: Add the position code to the 3D fusion feature map to maintain the position information in the spatial domain, and restore the 3D fusion feature map with the position code added to the 3D model.
4. The method according to claim 3, characterized in that The step one comprises: Obtaining an edge computing node layout drawing of the first area, wherein the layout drawing includes a layout position of each edge computing node in the target building; Using a camera to collect multiple two-dimensional images of the first area at different angles, and performing image preprocessing; Use an unmanned aerial vehicle and a ground point cloud acquisition device to acquire point cloud data of the first area.
5. The method according to claim 4, characterized in that The step 4 of projecting the two-dimensional feature map into a three-dimensional space image feature map includes: Construct the voxel structure of the two-dimensional image to generate spatial dense features; project the center coordinates of each voxel into the two-dimensional feature map; adjust the projection position of the center point of the projected voxel in the two-dimensional image by the offset; obtain the weights of the four adjacent pixels at this position through linear interpolation, combine the pixels according to the weights, and obtain the corresponding voxels, that is, obtain the three-dimensional spatial image feature map.
6. The method according to claim 5, characterized in that The step 5 of adaptively fusing the point cloud data feature map with the three-dimensional space image feature map is specifically as follows: The point cloud data feature map and the three-dimensional space image feature map are connected in series, and then input into a 3*3 convolution layer, and an attention map is generated using a sigmoid function, and the attention map is multiplied by the three-dimensional space image feature map to obtain a three-dimensional space camera feature map after the attention map; the attention map is multiplied by the point cloud data feature map to obtain a point cloud data feature map after the attention map; wherein the attention map multiplied by the three-dimensional space image feature map and the attention map multiplied by the three-dimensional space image feature map are performed using an element-wise product operation; Subsequently, the 3D camera feature map after the attention map and the point cloud data feature map after the attention map are fused to obtain the initial fused feature map.
7. The method according to claim 6, characterized in that The step 7, adding the position code to the 3D fusion feature map to maintain the position information in the spatial domain, and restoring the 3D fusion feature map to which the position code is added to the 3D model, comprises: A linear function is used to project the 3D fused feature map with position encoding into the 3D output space to obtain a 3D volume, and then the 3D volume is reconstructed and grouped to obtain the final 3D model.
8. An adaptive resource scheduling system, characterized in that: The adaptive resource scheduling system is deployed in a target building, and the adaptive resource scheduling system includes a camera, an edge computing node, and a mobile robot; the target building is installed with multiple cameras, and a first area of the target building is provided with M edge computing nodes and N mobile robots, and the M edge computing nodes are networked and communicated with the N mobile robots, where M and N are positive integers, and the adaptive resource scheduling system is used to perform the following method steps: The M edge computing nodes acquire image data of the first area through the multiple cameras; constructing a real-time three-dimensional model of the first area based on the image data; The M edge computing nodes detect the current computing load; If the computing load is greater than a preset threshold, the following steps are performed: Clustering the crowd in the first area based on the real-time three-dimensional model to obtain E crowd gathering areas; Determine the center points corresponding to the E crowd gathering areas; The M edge computing nodes obtain the locations of the connected terminals; Clustering the positions of the connected terminals to obtain F terminal clustering areas; Determine the center points corresponding to the F terminal gathering areas; Determine the distance between the center points corresponding to the E crowd gathering areas and the center points corresponding to the F terminal gathering areas; Filter out A matching areas whose distance is less than a preset distance threshold; Determining the number X of mobile robots required based on the calculated load and the A matching areas; Determine the arrangement positions of the X mobile robots based on the shapes of the crowd gathering areas corresponding to the A matching areas; Planning moving paths of the X mobile robots based on the arrangement positions and the three-dimensional model; The mobile robot moves to the deployment location based on the movement path; When the mobile robot is located at the deployment position, the mobile robot is in communication connection with K edge computing nodes, the K edge computing nodes are different from the M edge computing nodes, the K edge computing nodes are located outside the first area, and the distances between the K edge computing nodes and the A matching areas are greater than the distances between the M edge computing nodes and the A matching areas; The M edge computing nodes and the K edge computing nodes jointly process the terminal data processing requests of the A matching areas, and the K edge computing nodes are communicatively connected with the terminals of the A matching areas through the mobile robot.
9. An electronic device, characterized in that: include: a processor adapted to implement one or more instructions; and, A computer storage medium storing one or more instructions, wherein the one or more instructions are suitable for being loaded by the processor and executing the adaptive resource scheduling method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the adaptive resource scheduling method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Edge computing node optimal configuration method and device and cloud computing center
CN113590307A
Methods and Systems for Intelligent Distribution of Workloads to Multi-Access Edge Compute Nodes on a Communication Network
US20200351336A1
