A real-time image processing method and system based on edge computing
Through the heterogeneous resource virtualization and multi-dimensional resource portrait model of edge computing technology, the resource management and task decomposition problems of real-time image processing in the edge computing environment are solved, efficient image processing pipelines and parameter scheduling are realized, and processing accuracy is improved. and system reliability.
Patent Information
- Application Number
- CN202410920327.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-10
AI Technical Summary
Real-time image processing in an edge computing environment faces the challenges of heterogeneous resource management and computing-intensive task decomposition. Network latency is high, bandwidth consumption is large, and it is difficult to achieve efficient data transmission and collaborative processing.
Through heterogeneous resource virtualization, multi-dimensional resource portrait models, task decomposition and parallel reconstruction, topology optimization, dynamic balancing and adaptive compression transmission, load balancing between edge devices and cloud collaborative processing are achieved, and image processing pipelines and parameters are optimized. Scheduling.
It improves the accuracy and system reliability of real-time image processing, realizes flexible scheduling and efficient utilization of resources, reduces delay and bandwidth consumption, and ensures the continuity and accuracy of processing.
Smart Images

Figure CN118467181B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a real-time image processing method and system based on edge computing. Background Art
[0002] With the rapid development of IoT technology and 5G networks, edge computing is rapidly emerging as an emerging distributed computing model. In the field of real-time image processing, traditional cloud computing models face challenges such as high network latency, high bandwidth consumption, and privacy and security risks, making it difficult to meet the growing demand for real-time and low latency. Edge computing can effectively reduce data transmission latency and improve processing efficiency by sinking computing resources to the edge of the network, providing a new technical direction for real-time image processing.
[0003] However, real-time image processing in edge computing environments still faces many challenges. Edge devices are usually heterogeneous and resource-constrained, and how to effectively manage and schedule these heterogeneous resources is a key issue. Secondly, real-time image processing tasks are often computationally intensive, and how to achieve efficient task decomposition and parallel processing under limited edge resources is also a difficult problem that needs to be solved. In addition, the collaborative processing between edge devices and the cloud and how to achieve efficient data transmission under limited bandwidth are also important issues that need to be considered. Summary of the invention
[0004] The present application provides a real-time image processing method and system based on edge computing, which is used to improve the accuracy of real-time image processing by using edge computing.
[0005] In a first aspect, the present application provides a real-time image processing method based on edge computing, and the real-time image processing method based on edge computing includes:
[0006] Virtualize heterogeneous resources on multiple edge devices to obtain an edge computing grid;
[0007] Based on the edge computing grid, real-time monitoring of node performance and network status of the multiple edge devices is performed to build a multi-dimensional resource portrait model;
[0008] Through the multi-dimensional resource portrait model, the image processing operator of each edge device is task-decomposed and parallelized to obtain a task dependency graph;
[0009] Based on the task dependency graph, topologically optimize the task execution order of the multiple edge devices to obtain a distributed image processing pipeline;
[0010] Based on the distributed image processing pipeline, the image data flow and computing load of each edge device are dynamically balanced to obtain a target task scheduling strategy;
[0011] According to the target task scheduling strategy, the image processing results of the multiple edge devices are adaptively compressed, transmitted and collaboratively fed back to the edge and cloud to obtain an image processing parameter set.
[0012] In a second aspect, the present application provides a real-time image processing system based on edge computing, and the real-time image processing system based on edge computing includes:
[0013] A virtualization module is used to virtualize heterogeneous resources of multiple edge devices to obtain an edge computing grid;
[0014] A real-time monitoring module, used to perform real-time monitoring of node performance and network status of the multiple edge devices based on the edge computing grid, and to build a multi-dimensional resource portrait model;
[0015] A task decomposition module is used to perform task decomposition and parallel reconstruction on the image processing operator of each edge device through the multi-dimensional resource portrait model to obtain a task dependency graph;
[0016] A topology optimization module, configured to perform topology optimization on the task execution order of the plurality of edge devices based on the task dependency graph to obtain a distributed image processing pipeline;
[0017] A dynamic balancing module, used to dynamically balance the image data flow and computing load of each edge device based on the distributed image processing pipeline to obtain a target task scheduling strategy;
[0018] The feedback module is used to adaptively compress, transmit and collaboratively feedback the image processing results of the multiple edge devices according to the target task scheduling strategy to obtain an image processing parameter set.
[0019] The third aspect of the present application provides a real-time image processing device based on edge computing, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the real-time image processing device based on edge computing executes the above-mentioned real-time image processing method based on edge computing.
[0020] The fourth aspect of the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computer, it enables the computer to execute the above-mentioned real-time image processing method based on edge computing.
[0021] In the technical solution provided by the present application, the hardware resources of multiple edge devices are abstracted and virtualized to achieve unified management and scheduling of heterogeneous edge devices, thereby improving resource utilization efficiency. Based on the multi-dimensional resource portrait model, real-time monitoring of edge device node performance and network status is achieved. By decomposing and reconstructing the tasks of image processing operators in parallel, the parallel processing capabilities of edge devices are fully utilized. Based on the topological optimization of the task dependency graph, the task execution order of multiple edge devices is reasonably arranged. By dynamically balancing the image data flow and computing load, load balancing between edge devices is achieved. According to the network bandwidth and image importance, adaptive compression transmission of image processing results is achieved. Through the collaborative processing of edge devices and the cloud, the powerful computing power of the cloud is fully utilized. Based on the edge-cloud fusion analysis results, the image processing parameters are iteratively optimized to achieve adaptive adjustment of processing parameters. Through the multi-level computing resource pool and elastic network topology, flexible scheduling and efficient utilization of edge computing resources are achieved. Through the node fault prediction model and load balancing optimization, the reliability and fault tolerance of the system are improved, the continuity of real-time image processing is guaranteed, and the accuracy of real-time image processing is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] 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 creative work.
[0023] Figure 1 A schematic diagram of an embodiment of a real-time image processing method based on edge computing in an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of an embodiment of a real-time image processing system based on edge computing in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The embodiments of the present application provide a real-time image processing method and system based on edge computing. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the real-time image processing method based on edge computing in the embodiment of the present application includes:
[0027] Step S101: Virtualize heterogeneous resources on multiple edge devices to obtain an edge computing grid;
[0028] It is understandable that the execution subject of the present application can be a real-time image processing system based on edge computing, or a terminal or a server, which is not limited here. The embodiment of the present application is described by taking the server as the execution subject as an example.
[0029] Specifically, the hardware resources of multiple edge devices are abstracted to obtain the resource descriptor of each edge device. The resource descriptor describes the key performance indicators of each edge device, such as computing power, storage capacity, and network bandwidth. Based on the resource descriptor, the computing power of multiple edge devices is quantitatively evaluated to obtain the device performance index. The device performance index provides a standardized measurement indicator for the computing power of each edge device, so that the performance of different devices can be directly compared and evaluated. Based on the device performance index, multiple edge devices are hierarchically clustered to form a multi-level computing resource pool. Hierarchical clustering builds multiple levels of computing resource pools by clustering devices with similar performance together. The devices in each resource pool have similar computing power, which can provide more refined resource management in the allocation and scheduling of computing tasks. Multiple edge devices in the multi-level computing resource pool are virtualized and encapsulated to obtain a schedulable computing container. The computing container abstracts the computing resources of physical devices into logical resources through virtualization technology, so that these resources can be flexibly scheduled and managed. Based on the computing container, the network topology of multiple edge devices is dynamically reconstructed to obtain an elastic network topology structure. The elastic network topology dynamically adjusts the network connection between edge devices to ensure efficient data transmission under various network conditions. Based on the elastic network topology, the communication protocol of the computing container is optimized to obtain a lightweight data transmission mechanism. The lightweight data transmission mechanism simplifies the communication protocol, reduces the overhead and delay of data transmission, and improves the efficiency of data exchange between edge devices. According to the lightweight data transmission mechanism, the computing container is subjected to resource scheduling strategy analysis and integrity enhancement processing to obtain an edge computing grid. Resource scheduling strategy analysis analyzes the resource usage and task requirements of the computing container to develop an efficient resource scheduling plan to ensure that the computing task can run on the appropriate computing container and maximize resource utilization. The integrity enhancement processing ensures the security and integrity of the tasks and data running in the edge computing grid by strengthening the security protection measures for the computing container.
[0030] Step S102: Based on the edge computing grid, real-time monitoring of node performance and network status of multiple edge devices is performed to build a multi-dimensional resource portrait model;
[0031] Specifically, resource detection is performed on multiple device nodes in the edge computing grid to obtain the original resource data set of each device node. These data sets include basic performance indicators such as computing power, storage capacity, and network bandwidth of the device. The computing power index of each device node is generated based on the original resource data set to accurately evaluate the processing power of the device. Based on the computing power index, the storage capacity of multiple device nodes is classified and classified to obtain a storage resource matrix. The matrix describes the storage resource distribution of each device node. The data access pattern of the storage resource matrix is analyzed to obtain the I / O performance feature vector of each device node. The I / O performance feature vector reflects the input and output performance of the device under different operations. According to the I / O performance feature vector, the bandwidth of the network connection between multiple device nodes is tested to obtain a network topology diagram. The network topology diagram shows the network structure and connection mode between device nodes. Based on the network topology diagram, the communication delay between multiple device nodes is statistically modeled to obtain a delay distribution function. The delay distribution function provides the probability distribution of communication delay between device nodes, which helps to optimize network communication. The energy efficiency of each device node is dynamically evaluated according to the delay distribution function to obtain an energy efficiency curve. The energy efficiency curve shows the energy consumption of the device under different loads. The energy efficiency curve is fitted with a polynomial to obtain a relationship model between node load and energy consumption. Based on the relationship model, the reliability of each device node is analyzed probabilistically to obtain a node failure prediction model. This model can predict the failure probability of device nodes in future operations, which helps to take preventive measures in advance to ensure the stable operation of the system. On this basis, multi-dimensional feature extraction and fusion are performed to integrate performance data of different dimensions to obtain a comprehensive multi-dimensional resource portrait model.
[0032] Step S103: Through the multi-dimensional resource portrait model, the image processing operator of each edge device is decomposed and parallelized to obtain a task dependency graph;
[0033] Specifically, the image processing algorithm is divided into functional modules to obtain an initial operator set. The initial operator set includes the basic functional modules in the image processing algorithm. By analyzing the data dependencies between these modules, an original dependency graph is constructed. The original dependency graph shows the dependencies between the operators, which helps to understand the overall structure and data flow of the algorithm. Based on the original dependency graph, the computational complexity of the image processing operator is evaluated to generate an operator weight matrix. The operator weight matrix describes the computational complexity of each operator. According to the operator weight matrix, the image processing operator of each edge device is granularly optimized and merged to form an optimized operator set. By merging operators with lower computational complexity, the number of operators is reduced while maintaining the overall function of the algorithm. The optimized operator set is analyzed for parallelism to identify potential parallel execution paths. By analyzing the independence between the operators, it is determined which operators can be executed in parallel to form parallel task blocks. Based on the potential parallel execution paths, the image processing operators of each edge device are grouped to ensure that the computing power of the device can be fully utilized in actual operation. According to the parallel task blocks, the multi-dimensional resource portrait model is matched and analyzed to generate a resource affinity matrix. The resource affinity matrix reflects the matching degree between the parallel task blocks and each edge device. Through this matrix, the most suitable device for executing each task block is found. Based on the resource affinity matrix, the parallel task blocks are assigned to devices to form an initial task mapping scheme. The initial task mapping scheme assigns appropriate edge devices to each task block to achieve efficient task execution. The initial task mapping scheme is optimized for load balancing. By analyzing the load of each edge device, the task allocation scheme is adjusted to ensure the balanced distribution of the computing load of each device, thereby improving the operating efficiency of the overall system. According to the balanced task distribution strategy, a task dependency graph is generated. The task dependency graph shows the dependencies between task blocks and their respective execution order.
[0034] Step S104: Based on the task dependency graph, topological optimization is performed on the task execution order of multiple edge devices to obtain a distributed image processing pipeline;
[0035] Specifically, a critical path analysis is performed on the task dependency graph to identify all critical task sequences that affect the overall task execution time, and a task parallelism matrix is constructed. The task parallelism matrix is used to represent the parallel execution capabilities of each task under different conditions, helping to identify tasks that can be executed simultaneously to maximize resource utilization. Based on the task parallelism matrix, the tasks are hierarchically clustered to obtain a task hierarchy diagram. The task hierarchy diagram shows the hierarchical relationship and dependency between tasks, making the organization of tasks clearer. On this basis, the task hierarchy diagram is identified for key resources, and a resource competition hotspot list is generated. The resource competition hotspot list marks the competition between multiple tasks for specific resources, and points out possible bottlenecks and conflict points. According to the resource competition hotspot list, the task execution order of multiple edge devices is prioritized, and the tasks are divided into different pipeline stages to construct an initial pipeline structure. The initial pipeline structure ensures that key tasks are executed first through priority sorting and stage division, while minimizing resource competition and conflict. Based on the initial pipeline structure, data transmission between tasks is modeled to obtain a data flow diagram. The data flow diagram shows the data transmission path and data flow between tasks, helping to optimize data transmission efficiency. According to the data flow diagram, the initial pipeline structure is load balanced and the stage balance factor is calculated. The stage balance factor is used to evaluate the load balance of each pipeline stage and help identify load imbalance problems. The stage balance factor is iteratively optimized. Through multiple adjustments and optimizations, the load distribution is gradually improved to obtain a balanced pipeline configuration solution. Based on the balanced pipeline configuration solution, timing processing is performed to obtain a distributed image processing pipeline. Timing processing ensures that each task is started and executed at the appropriate time point, maximizing resource utilization efficiency and reducing waiting time.
[0036] Step S105: Based on the distributed image processing pipeline, dynamically balance the image data flow and computing load of each edge device to obtain a target task scheduling strategy;
[0037] Specifically, the distributed image processing pipeline is task-decomposed to obtain an atomic task set. The atomic task set represents the smallest executable unit of the entire image processing task, ensuring that each task can be processed independently. According to the atomic task set, the image data stream of each edge device is processed in slices to generate a data block allocation scheme for each edge device. The data block allocation scheme aims to reasonably allocate image data to each edge device to ensure the efficiency and balance of data processing. According to the data block allocation scheme, a data transmission cost model for each edge device is generated. The data transmission cost model evaluates the resources and time costs required by each device during the data transmission process, helping to optimize data flow and task allocation. On this basis, the atomic task set is initially allocated to obtain an initial task distribution map. The initial task distribution map shows the distribution of each atomic task on different edge devices. Based on the initial task distribution map, the load balance of each edge device is calculated to obtain a load imbalance index. The load imbalance index reflects the load status of each device under the current task allocation, helping to identify devices with too heavy or too light loads. A threshold judgment is performed on the load imbalance index to determine the task allocation that needs to be adjusted. Through task migration, some tasks are migrated from overloaded devices to lightly loaded devices to achieve load balancing and obtain the target task distribution plan. According to the target task distribution plan, the task execution order is adjusted to generate a task scheduling sequence. The task scheduling sequence ensures that tasks are executed in the optimal order, maximizes the use of device resources and reduces waiting time. Perform resource competition analysis on the task scheduling sequence to identify possible resource conflicts and competition situations, and generate a target task scheduling strategy based on the analysis results. The target task scheduling strategy ensures that image processing tasks run efficiently and stably in an edge computing environment by optimizing resource allocation and task execution order.
[0038] Step S106: According to the target task scheduling strategy, the image processing results of multiple edge devices are adaptively compressed, transmitted and edge-cloud collaboratively fed back to obtain an image processing parameter set.
[0039] Specifically, according to the target task scheduling strategy, the image processing results of each edge device are evaluated for quality and an image quality index matrix is generated. The image quality index matrix describes the quality parameters of the image processed by each edge device. The image region importance analysis is performed according to the image quality index matrix to obtain a region weight map. The region weight map reflects the importance of each region in the image and helps to identify key regions and secondary regions. Based on the region weight map, the image is layered encoded and entropy encoded to generate an initial compressed data stream. Layered encoding ensures that important regions are given priority and compressed with high quality, while secondary regions are compressed with lower quality, thereby optimizing the overall compression efficiency and image quality. The network bandwidth is dynamically estimated according to the initial compressed data stream to obtain an available bandwidth prediction model. The available bandwidth prediction model evaluates the available bandwidth of the current network and helps determine the optimal transmission strategy. Based on the available bandwidth prediction model, the bit allocation of the initial compressed data stream is optimized to form a layered transmission strategy. The layered transmission strategy ensures the best transmission effect under limited bandwidth by reasonably allocating bit rates, thereby maximizing the efficiency and quality of image transmission. The layered transmission strategy is subjected to transmission error analysis to obtain a data importance ranking table. The data importance ranking table lists the importance order of each data block, which helps to give priority to sending key data during the transmission process. According to the data importance ranking table, the initial compressed data stream is prioritized and a target transmission queue is generated. The target transmission queue ensures that the most important data can be transmitted first when the bandwidth is limited, improving the effectiveness and reliability of image transmission. The data in the target transmission queue is processed in collaboration with the cloud to obtain the edge-cloud fusion analysis results. The edge-cloud fusion analysis optimizes the image processing and data transmission process by combining the computing resources of edge devices and the cloud. Based on the edge-cloud fusion analysis results, the image processing parameters are iteratively optimized to finally obtain the image processing parameter set.
[0040] In the embodiment of the present application, the hardware resources of multiple edge devices are abstracted and virtualized to achieve unified management and scheduling of heterogeneous edge devices, and improve resource utilization efficiency. Based on the multi-dimensional resource portrait model, real-time monitoring of edge device node performance and network status is achieved. By decomposing and reconstructing the tasks of image processing operators in parallel, the parallel processing capability of edge devices is fully utilized. Based on the topological optimization of the task dependency graph, the task execution order of multiple edge devices is reasonably arranged. By dynamically balancing the image data flow and computing load, load balancing between edge devices is achieved. According to the network bandwidth and image importance, adaptive compression transmission of image processing results is achieved. Through the collaborative processing of edge devices and the cloud, the powerful computing power of the cloud is fully utilized. Based on the edge-cloud fusion analysis results, the image processing parameters are iteratively optimized to achieve adaptive adjustment of processing parameters. Through the multi-level computing resource pool and elastic network topology, flexible scheduling and efficient utilization of edge computing resources are achieved. Through the node fault prediction model and load balancing optimization, the reliability and fault tolerance of the system are improved, the continuity of real-time image processing is guaranteed, and the accuracy of real-time image processing is improved.
[0041] In a specific embodiment, the process of executing step S101 may specifically include the following steps:
[0042] (1) Abstract the hardware resources of multiple edge devices to obtain the resource descriptor of each edge device, and quantitatively evaluate the computing power of multiple edge devices based on the resource descriptors to obtain the device performance index;
[0043] (2) Based on the device performance index, multiple edge devices are hierarchically clustered to obtain a multi-level computing resource pool, and multiple edge devices in the multi-level computing resource pool are virtualized and encapsulated to obtain a schedulable computing container;
[0044] (3) Based on the computing container, the network topology of multiple edge devices is dynamically reconstructed to obtain an elastic network topology structure, and the communication protocol of the computing container is optimized based on the elastic network topology structure to obtain a lightweight data transmission mechanism;
[0045] (4) Based on the lightweight data transmission mechanism, the resource scheduling strategy and security enhancement processing of the computing container are performed to obtain the edge computing grid.
[0046] Specifically, the hardware resources of each device are analyzed and abstracted to obtain a resource descriptor. The resource descriptor is a description of the hardware resources of the device, such as computing power, storage capacity, and network bandwidth, and can uniformly represent the resource conditions of different devices. The resource descriptor can be expressed in vector form, such as ,in, Indicates The resource descriptor of a device. Indicates the computing power of a device, usually measured in instructions executed per second (MIPS); Indicates the storage capacity of a device, usually measured in gigabytes (GB); Indicates the network bandwidth of the device, usually measured in megabits per second (Mbps). The computing power of multiple edge devices is quantitatively evaluated based on the resource descriptor to obtain the device performance index. The device performance index is a comprehensive indicator to measure the overall performance of each device. In order to calculate the device performance index, a formula can be defined: ,in, Indicates Performance index of each device; , and γ are weight coefficients of computing power, storage capacity, and network bandwidth, respectively, and can be adjusted according to actual application requirements. This formula combines the computing power, storage capacity, and network bandwidth of the device, and can reflect the overall performance of the device. Based on the calculated device performance index, multiple edge devices are hierarchically clustered to form a multi-level computing resource pool. Hierarchical clustering is to cluster devices with similar performance indexes together to form computing resource pools at different levels. Hierarchical clustering algorithms, such as agglomerative hierarchical clustering, can be used to perform clustering by calculating the similarity between device performance indexes. The multi-level computing resource pool can be expressed as ,in, Indicates The computing resource pool includes Device resource descriptors with similar performance indices. Multiple edge devices in the multi-level computing resource pool are virtualized and encapsulated to obtain schedulable computing containers. Virtualization encapsulation is to abstract the resources of physical devices into logical resources so that these resources can be flexibly scheduled and managed. Computing containers are the result of virtualization encapsulation. Each computing container can be represented as ,in, Indicates Compute containers, Indicates virtual computing capacity, Indicates the virtual storage capacity, Represents the virtual network bandwidth. Through virtualization encapsulation, computing containers can span different physical devices to achieve dynamic allocation and scheduling of resources. Based on computing containers, the network topology of multiple edge devices is dynamically reconstructed to obtain an elastic network topology. Dynamic network topology reconstruction is to adjust the network connection between devices so that the network topology can adapt to different application requirements and network status. The elastic network topology can be expressed as ,in, Represents a collection of device nodes. Represents a collection of connections between device nodes. The connection in can optimize the transmission efficiency and reliability of the network. After obtaining the elastic network topology, the communication protocol of the computing container is optimized based on the structure to obtain a lightweight data transmission mechanism. The communication protocol optimization is to reduce the overhead and delay of data transmission by simplifying the communication protocol. The lightweight data transmission mechanism can be expressed as ,in, Represents a simplified communication protocol, Represents the optimized transmission efficiency. Through optimization, the data transmission efficiency between edge devices can be significantly improved, and network latency and bandwidth usage can be reduced. According to the lightweight data transmission mechanism, the resource scheduling strategy analysis and security enhancement processing are performed on the computing container to obtain the edge computing grid. The resource scheduling strategy analysis is to formulate an efficient resource scheduling plan based on the resource situation and application requirements of the device. The security enhancement processing is to ensure the security and integrity of the tasks and data running in the edge computing grid by strengthening the security protection measures of the computing container. The edge computing grid can be represented as ,in, Represents a collection of computing containers. represents the elastic network topology, Represents a lightweight data transfer mechanism.
[0047] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0048] (1) Perform resource detection on multiple device nodes in the edge computing grid to obtain the original resource data set of each device node, and generate the computing power index of each device node based on the original resource data set;
[0049] (2) Based on the computing power index, the storage capacity of multiple device nodes is classified and classified to obtain a storage resource matrix, and the data access pattern of the storage resource matrix is analyzed to obtain an I / O performance feature vector;
[0050] (3) Perform bandwidth testing on the network connection between multiple device nodes according to the I / O performance characteristic vector to obtain a network topology map, and statistically model the communication delay between multiple device nodes based on the network topology map to obtain a delay distribution function;
[0051] (4) Dynamically evaluate the energy efficiency of each device node according to the delay distribution function to obtain an energy efficiency curve, and perform polynomial fitting on the energy efficiency curve to obtain a relationship model between node load and energy consumption;
[0052] (5) Perform a probability analysis on the reliability of each device node according to the relational model to obtain a node failure prediction model. Then, perform multi-dimensional feature extraction and fusion based on the node failure prediction model to obtain a multi-dimensional resource portrait model.
[0053] Specifically, perform resource detection on each device node to obtain the original resource data set. The resource detection process includes collecting key indicators such as the computing power, storage capacity, and network bandwidth of the device. Use some performance testing tools to measure the CPU performance (such as MIPS, millions of instructions per second), memory capacity (such as GB, gigabytes), storage 1 / O performance (such as IOPS, input and output operations per second), and network bandwidth (such as Mbps, megabits per second) of each node. These raw data can be expressed as ,in, Indicates The original resource data set of device nodes, is the CPU performance, is the memory capacity, is the storage I / O performance, is the network bandwidth. After obtaining the original resource data set of each device node, a computing power index is generated. The computing power index is used to quantify the computing power of each node and can be calculated by comprehensively considering various resource indicators. For example, the calculation formula is ,in, Indicates The computing power index of each device node; , , and They are the weight coefficients of CPU performance, memory capacity, storage I / O performance and network bandwidth. These weight coefficients can be adjusted according to actual needs to reflect the importance of various resources in different application scenarios. Based on the computing power index, the storage capacity of multiple device nodes is classified and classified to obtain the storage resource matrix. The storage resource matrix is used to describe the storage resource distribution of each device node, which is expressed as ,in, Indicates The node in The capacity of each storage level. Perform data access pattern analysis on the storage resource matrix. By monitoring and recording the frequency and pattern of storage 1 / O operations, the 1 / O performance characteristic vector of each node is obtained. The 1 / O performance characteristic vector is expressed as ,in, and Respectively represent The performance of read and write operations of each node. Based on the I / O performance feature vector, the bandwidth of the network connection between multiple device nodes is tested to obtain a network topology diagram. The network topology diagram shows the connection relationship and bandwidth between each node, which is expressed as ,in, is a collection of nodes, is a collection of connections, is the bandwidth set. On this basis, the communication delay between multiple device nodes is statistically modeled based on the network topology diagram to obtain the delay distribution function. The delay distribution function is expressed as ,in, is the communication delay, is a time variable. By analyzing the delay distribution function, we can better understand the characteristics and distribution of network delay. According to the delay distribution function, we dynamically evaluate the energy efficiency of each device node and obtain the energy efficiency curve. The energy efficiency curve describes the energy consumption of nodes under different loads and is expressed as ,in, It is The energy consumption of each node, is the load. In order to simplify and utilize these data, a polynomial fitting is performed on the energy efficiency curve to obtain the relationship model between node load and energy consumption. The relationship model is expressed as ,in, are the fitting coefficients, is the order of the polynomial. According to the relationship model between node load and energy consumption, the reliability of each device node is analyzed probabilistically to obtain the node failure prediction model. The failure prediction model is used to predict the failure probability of the node in future operation, which is expressed as ,in, It is The failure probability of a node, It is energy consumption. is the running time. Through this model, potential failures can be identified and prevented in advance. Based on the node failure prediction model, multi-dimensional feature extraction and fusion are performed to obtain a multi-dimensional resource portrait model. The multi-dimensional resource portrait model integrates information on the computing power, storage performance, network latency, energy efficiency, reliability, and other aspects of the device to provide a reference for resource scheduling and task allocation. The model is expressed as ,in, It is The resource portrait model of each node includes computing power indicators, storage resource matrix, network topology, energy efficiency curve and failure probability.
[0054] In a specific embodiment, the process of executing step S103 may specifically include the following steps:
[0055] (1) Divide the image processing algorithm into functional modules to obtain an initial operator set, and analyze the data dependency relationship between image processing operators based on the initial operator set to obtain an original dependency graph;
[0056] (2) Based on the original dependency graph, the computational complexity of the image processing operator is evaluated to obtain the operator weight matrix. The image processing operator of each edge device is granularly optimized and merged according to the operator weight matrix to obtain the optimized operator set.
[0057] (3) Perform parallel analysis on the optimized operator set to obtain potential parallel execution paths, and group the image processing operators of each edge device based on the potential parallel execution paths to obtain parallel task blocks;
[0058] (4) Matching and analyzing the multi-dimensional resource portrait model according to the parallel task blocks to obtain the resource affinity matrix, and then allocating equipment to the parallel task blocks based on the resource affinity matrix to obtain the initial task mapping solution;
[0059] (5) Perform load balancing optimization on the initial task mapping scheme to obtain a balanced task distribution strategy, and generate a task dependency graph based on the balanced task distribution strategy.
[0060] Specifically, the image processing algorithm is divided into functional modules, decomposed into multiple independent functional modules or operators, and an initial operator set is obtained. For example, in an image processing algorithm, it can be decomposed into multiple functional modules such as preprocessing, edge detection, feature extraction, and classification, and each module corresponds to an operator. The obtained initial operator set can be expressed as ,in, Indicates operators. Based on the initial operator set, the data dependencies between image processing operators are analyzed to construct the original dependency graph. The original dependency graph shows the data dependencies between operators, ensuring that the execution order and data transfer of operators are correct during the actual execution process. The original dependency graph can be represented as a directed graph ,in, is a set of nodes, representing image processing operators, is a set of edges, representing the data dependency between operators. Based on the original dependency graph, the computational complexity of the image processing operator is evaluated to obtain the operator weight matrix. The computational complexity can be obtained through actual testing or theoretical analysis. The operator weight matrix is expressed as ,in, Represents the slave operator To Operator The data transmission and computational complexity of the edge device are reduced. According to the operator weight matrix, the image processing operators of each edge device are granularly optimized and merged to form an optimized operator set. By merging operators with lower computational complexity, the number of operators is reduced while maintaining the overall functionality of the algorithm. The optimized operator set can be expressed as ,in, is the optimized operator. Parallelism analysis is performed on the optimized operator set to determine potential parallel execution paths. Parallelism analysis determines the operator groups that can be executed in parallel by identifying independent or weakly dependent operators. The potential parallel execution path can be expressed as ,in, Indicates Based on the potential parallel execution paths, the image processing operators of each edge device are grouped into tasks to obtain parallel task blocks. The parallel task blocks are represented as ,in, Indicates parallel task blocks. Each task block contains several operators that can be executed in parallel on the same device. According to the parallel task blocks, the multi-dimensional resource profile model is matched and analyzed to obtain the resource affinity matrix. The multi-dimensional resource profile model integrates the computing power, storage performance, network latency, energy efficiency and reliability of the device. The resource affinity matrix represents the matching degree between the device and the task block, which is expressed as ,in, Indicates the device With task blocks Based on the resource affinity matrix, the parallel task blocks are assigned to devices to obtain the initial task mapping scheme. The initial task mapping scheme is expressed as ,in, Represents a task block Assign to device . This process ensures that each task block can be assigned to the most suitable device to optimize the overall computing efficiency and resource utilization. The initial task mapping scheme is load balanced and optimized to obtain a balanced task distribution strategy. The goal of load balancing optimization is to ensure that the load of each device is as balanced as possible to avoid overloading of some devices and affecting the overall system performance. The balanced task distribution strategy can be implemented through optimization algorithms, such as genetic algorithms or simulated annealing algorithms. A task dependency graph is generated based on the balanced task distribution strategy. The task dependency graph shows the final task allocation plan and its execution order, ensuring that each task can be executed in the optimal order, maximizing the utilization of device resources and reducing waiting time.
[0061] In a specific embodiment, the process of executing step S104 may specifically include the following steps:
[0062] (1) Perform critical path analysis on the task dependency graph to obtain the initial critical task sequence, and construct the task parallelism matrix based on the initial critical task sequence;
[0063] (2) Perform hierarchical clustering of tasks based on the task parallelism matrix to obtain a task hierarchy diagram, identify key resources in the task hierarchy diagram, and obtain a list of resource competition hotspots;
[0064] (3) Prioritize the task execution order of multiple edge devices and divide the pipeline stages according to the resource competition hotspot list to obtain the initial pipeline structure;
[0065] (4) Based on the initial pipeline structure, the data transmission between tasks is modeled to obtain a data flow graph, and the load balancing analysis of the initial pipeline structure is performed based on the data flow graph to obtain the stage balance factor;
[0066] (5) Iteratively optimize the stage balance factor to obtain a balanced pipeline configuration scheme, and perform timing processing based on the balanced pipeline configuration scheme to obtain a distributed image processing pipeline.
[0067] Specifically, a critical path analysis is performed on the task dependency graph. The task dependency graph can be represented as a directed acyclic graph, where nodes represent tasks and edges represent dependencies between tasks. The purpose of critical path analysis is to find the longest path from the starting point to the end point in the task dependency graph. This path determines the shortest time to complete the task. Critical path analysis can be achieved by calculating the earliest start time and the latest start time of each task. For each task node , its earliest start time It can be calculated by the following recursive formula:
[0068] ;
[0069] in, It's a task The set of all predecessor tasks, It's a task Similarly, the latest start time It can be calculated by the following recursive formula:
[0070] ;
[0071] in, It's a task By calculating each task's and , we can determine the critical path, that is, all After obtaining the critical path, construct the initial critical task sequence. The critical task sequence is the basis of the task execution order, which determines the priority and parallelism of the task. According to the initial critical task sequence, construct the task parallelism matrix. The task parallelism matrix represents the parallel execution capability of each task under different conditions. Assume that tasks, task parallelism matrix It can be expressed as:
[0072] ;
[0073] Based on the task parallelism matrix, tasks are hierarchically clustered to obtain a task hierarchy diagram. Task hierarchical clustering forms task groups of different levels by clustering tasks with similar parallelism characteristics. The task hierarchy diagram shows the hierarchical relationship and parallelism between tasks. Based on the task hierarchy diagram, key resources are identified to obtain a list of resource competition hotspots. The resource competition hotspot list marks the competition between multiple tasks for specific resources and points out possible bottlenecks and conflict points. According to the resource competition hotspot list, the execution order of tasks of multiple edge devices is prioritized, and the tasks are divided into different pipeline stages to construct the initial pipeline structure. The initial pipeline structure ensures that key tasks are executed first through priority sorting and stage division, while minimizing resource competition and conflict. Based on the initial pipeline structure, data transmission between tasks is modeled to obtain a data flow diagram. The data flow diagram shows the data transmission path and data flow between tasks, helping to optimize data transmission efficiency. According to the data flow diagram, the initial pipeline structure is load balanced and the stage balance factor is calculated. The stage balance factor is used to evaluate the load balance of each pipeline stage and help identify load imbalance problems. The stage balance factor is iteratively optimized. Through multiple adjustments and optimizations, the load distribution is gradually improved to obtain a balanced pipeline configuration scheme. The balanced pipeline configuration scheme ensures load balancing at each stage and maximizes system performance by optimizing resource allocation and task execution order. Timing processing is performed based on the balanced pipeline configuration scheme to obtain a distributed image processing pipeline. Timing processing ensures that each task is started and executed at the appropriate time point, maximizes resource utilization efficiency and reduces waiting time. The distributed image processing pipeline improves the efficiency and performance of the overall system by executing tasks in parallel.
[0074] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0075] (1) Decompose the distributed image processing pipeline into tasks to obtain an atomic task set, and then slice the image data stream of each edge device according to the atomic task set to obtain a data block allocation plan for each edge device;
[0076] (2) Generate a data transmission cost model for each edge device based on the data block allocation scheme, and perform initial allocation of the atomic task set based on the data transmission cost model to obtain an initial task distribution map;
[0077] (3) Based on the initial task distribution map, the load balance of each edge device is calculated to obtain a load imbalance index, and threshold judgment and task migration are performed on the load imbalance index to obtain the target task distribution plan;
[0078] (4) Adjust the task execution order according to the target task distribution plan to obtain the task scheduling sequence, perform resource competition analysis on the task scheduling sequence and generate the target task scheduling strategy.
[0079] Specifically, the distributed image processing pipeline is task-decomposed to obtain a set of atomic tasks. Atomic tasks are the smallest units of image processing tasks, which can be executed independently and have clear dependencies on each other. Suppose there is an image processing pipeline, including preprocessing, feature extraction, classification and other steps, which can be decomposed into several sets of atomic tasks. The image data stream of each edge device is sliced and processed to generate a data block allocation plan for each edge device. Sliced processing is to divide large-scale image data into several small blocks, each of which can be processed independently, thereby improving processing efficiency. Based on the data block allocation plan, a data transmission cost model for each edge device is generated. The data transmission cost model evaluates the time and bandwidth required for data transmission from one device to another. Assume Indicates slave device To device Transferring data blocks The cost can be expressed by the formula:
[0080] ;
[0081] in, is the size of the data block, is the bandwidth between devices. Based on this model, the total data transmission cost of each edge device is calculated, and the atomic task set is initially allocated based on this to obtain the initial task distribution map. The initial task distribution map shows the distribution of each atomic task on different devices, so that the execution path of the task and the required resources can be identified. Based on the initial task distribution map, the load balance of each edge device is calculated to obtain the load imbalance index. The load balance is used to measure whether the load distribution of each device is balanced. The load imbalance index is expressed as ,in Yes Equipment Assume that the device The load is , the load imbalance can be calculated by the following formula:
[0082] ;
[0083] in, is the average load of all devices. By calculating the load imbalance of each device, devices with uneven load distribution can be identified and optimized. Threshold judgment and task migration are performed based on the load imbalance index to obtain the target task distribution plan. Threshold judgment is used to determine whether the load imbalance exceeds the allowable range. If it exceeds, task migration is required. Task migration achieves load balancing by transferring some tasks from overloaded devices to lightly loaded devices. The target task distribution plan shows the optimized task distribution to ensure that the load of each device is as balanced as possible. According to the target task distribution plan, the task execution order is adjusted to obtain the task scheduling sequence. The task scheduling sequence ensures that tasks are executed in the optimal order, maximizes the use of device resources and reduces waiting time. Resource competition analysis is performed on the task scheduling sequence and the target task scheduling strategy is generated. Resource competition analysis is used to identify possible resource conflicts during task execution and resolve these conflicts by adjusting the task execution order or allocating more resources.
[0084] In a specific embodiment, the process of executing step S106 may specifically include the following steps:
[0085] (1) According to the target task scheduling strategy, the image processing results of each edge device are evaluated to obtain the image quality index matrix;
[0086] (2) Analyze the importance of image regions according to the image quality index matrix to obtain a region weight map, and perform image hierarchical coding and entropy coding based on the region weight map to obtain an initial compressed data stream;
[0087] (3) Dynamically estimate the network bandwidth based on the initial compressed data stream to obtain an available bandwidth prediction model, and optimize the bit allocation of the initial compressed data stream based on the available bandwidth prediction model to obtain a layered transmission strategy;
[0088] (4) Perform transmission error analysis on the hierarchical transmission strategy to obtain a data importance ranking table, and perform priority scheduling on the initial compressed data stream according to the data importance ranking table to obtain a target transmission queue;
[0089] (5) The data in the target transmission queue is processed collaboratively with the cloud to obtain the edge-cloud fusion analysis results, and the image processing parameters are iteratively optimized based on the edge-cloud fusion analysis results to obtain the image processing parameter set.
[0090] Specifically, the image processing results of each edge device are evaluated to obtain an image quality index matrix. The image quality index matrix is used to quantify the quality of the image processed by each device, for example, by calculating indicators such as peak signal-to-noise ratio and structural similarity. Assume that there are three edge devices , its image quality index matrix can be expressed as:
[0091] ;
[0092] in, Indicates Device processing The image quality index is used to analyze the importance of image regions according to the image quality index matrix, and a regional weight map is obtained. The regional weight map reflects the importance of each region in the image, which can be determined by analyzing the image's edge, texture, brightness and other features. Assuming that an image is divided into several regions, the weight of each region can be expressed as a matrix:
[0093] ;
[0094] in, Indicates Line The weight of the column area. Based on the area weight map, the image is layered encoded and entropy encoded to obtain the initial compressed data stream. Layered encoding is to layer the image according to its importance, ensuring that important areas are given priority and compressed with high quality, while secondary areas are compressed with lower quality. Entropy coding further reduces data redundancy by utilizing the statistical characteristics of data. For example, assuming that the image is divided into three layers, the encoded data stream of each layer can be expressed as:
[0095] ;
[0096] in, Indicates The network bandwidth is dynamically estimated based on the initial compressed data stream to obtain the available bandwidth prediction model. The available bandwidth prediction model predicts the future available bandwidth by analyzing the current network status. Assuming that the network bandwidth changes over time, it can be expressed as a function:
[0097] ;
[0098] in, It's time The bandwidth of is the bandwidth amplitude, is the bandwidth change frequency, is the phase shift, is the bandwidth base value. Based on the available bandwidth prediction model, the bit allocation of the initial compressed data stream is optimized to obtain a layered transmission strategy. Bit allocation optimization is to reasonably allocate the number of bits of each layer of data stream according to the bandwidth prediction result to ensure the best transmission effect under limited bandwidth. For example, assuming the total bandwidth is , the bit allocation of each layer of data stream can be expressed as:
[0099] ;
[0100] in, It is The number of data bits in each layer. Perform transmission error analysis on the layered transmission strategy to obtain a data importance ranking table. Transmission error analysis is used to evaluate the possible data loss or errors that may occur during transmission and to rank the data according to its importance. Assume there are three data blocks , its importance ranking table can be expressed as:
[0101] ;
[0102] in, Indicates The data blocks are sorted. According to the data importance sorting table, the initial compressed data stream is prioritized to obtain the target transmission queue. Priority scheduling ensures that the most important data can be transmitted first when bandwidth is limited, improving the effectiveness and reliability of image transmission. The data in the target transmission queue is processed collaboratively with the cloud to obtain the edge-cloud fusion analysis results. Edge-cloud fusion analysis optimizes the image processing and data transmission process by combining the computing resources of edge devices and the cloud. Based on the edge-cloud fusion analysis results, the image processing parameters are iteratively optimized to obtain the image processing parameter set. Iterative optimization is to continuously adjust the processing parameters to improve the overall effect of image processing and transmission.
[0103] The above describes the real-time image processing method based on edge computing in the embodiment of the present application. The following describes the real-time image processing system based on edge computing in the embodiment of the present application. Figure 2 In the embodiment of the present application, an embodiment of a real-time image processing system based on edge computing includes:
[0104] A virtualization module 201 is used to virtualize heterogeneous resources of multiple edge devices to obtain an edge computing grid;
[0105] A real-time monitoring module 202 is used to monitor the node performance and network status of multiple edge devices in real time based on the edge computing grid, and to build a multi-dimensional resource portrait model;
[0106] The task decomposition module 203 is used to perform task decomposition and parallel reconstruction on the image processing operator of each edge device through a multi-dimensional resource portrait model to obtain a task dependency graph;
[0107] A topology optimization module 204 is used to perform topology optimization on the task execution order of multiple edge devices based on the task dependency graph to obtain a distributed image processing pipeline;
[0108] A dynamic balancing module 205 is used to dynamically balance the image data flow and computing load of each edge device based on the distributed image processing pipeline to obtain a target task scheduling strategy;
[0109] The feedback module 206 is used to perform adaptive compression transmission and edge-cloud collaborative feedback on the image processing results of multiple edge devices according to the target task scheduling strategy to obtain an image processing parameter set.
[0110] Through the collaboration of the above components, the hardware resources of multiple edge devices are abstracted and virtualized to achieve unified management and scheduling of heterogeneous edge devices, and improve resource utilization efficiency. Based on the multi-dimensional resource portrait model, real-time monitoring of edge device node performance and network status is achieved. Through the task decomposition and parallel reconstruction of image processing operators, the parallel processing capabilities of edge devices are fully utilized. Based on the topological optimization of the task dependency graph, the task execution order of multiple edge devices is reasonably arranged. Through the dynamic balance of image data flow and computing load, load balancing between edge devices is achieved. According to the network bandwidth and image importance, adaptive compression transmission of image processing results is achieved. Through the collaborative processing of edge devices and the cloud, the powerful computing power of the cloud is fully utilized. Based on the edge-cloud fusion analysis results, the image processing parameters are iteratively optimized to achieve adaptive adjustment of processing parameters. Through the multi-level computing resource pool and elastic network topology structure, flexible scheduling and efficient utilization of edge computing resources are achieved. Through the node fault prediction model and load balancing optimization, the reliability and fault tolerance of the system are improved, the continuity of real-time image processing is guaranteed, and the accuracy of real-time image processing is improved.
[0111] The present application also provides a real-time image processing device based on edge computing, which includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the real-time image processing method based on edge computing in the above-mentioned embodiments.
[0112] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the real-time image processing method based on edge computing.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0114] 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), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0115] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A real-time image processing method based on edge computing, characterized in that: The method comprises: Virtualize heterogeneous resources on multiple edge devices to obtain an edge computing grid; Based on the edge computing grid, real-time monitoring of node performance and network status of the multiple edge devices is performed to build a multi-dimensional resource portrait model; Through the multi-dimensional resource portrait model, the image processing operator of each edge device is task-decomposed and parallelized to obtain a task dependency graph; Based on the task dependency graph, topologically optimize the task execution order of the multiple edge devices to obtain a distributed image processing pipeline; Based on the distributed image processing pipeline, the image data flow and computing load of each edge device are dynamically balanced to obtain a target task scheduling strategy; According to the target task scheduling strategy, the image processing results of the multiple edge devices are adaptively compressed, transmitted and collaboratively fed back to the edge and cloud to obtain an image processing parameter set.
2. The real-time image processing method based on edge computing according to claim 1, characterized in that: The heterogeneous resource virtualization of multiple edge devices is performed to obtain an edge computing grid, including: Abstracting the hardware resources of multiple edge devices to obtain a resource descriptor for each edge device, and quantitatively evaluating the computing capabilities of the multiple edge devices according to the resource descriptors to obtain a device performance index; Based on the device performance index, the plurality of edge devices are hierarchically clustered to obtain a multi-level computing resource pool, and the plurality of edge devices in the multi-level computing resource pool are virtualized and encapsulated to obtain a schedulable computing container; Dynamically reconstructing the network topology of the multiple edge devices based on the computing container to obtain an elastic network topology structure, and optimizing the communication protocol of the computing container based on the elastic network topology structure to obtain a lightweight data transmission mechanism; The resource scheduling strategy analysis and integrity enhancement processing are performed on the computing container according to the lightweight data transmission mechanism to obtain an edge computing grid.
3. The real-time image processing method based on edge computing according to claim 2 is characterized in that: The real-time monitoring of node performance and network status of the plurality of edge devices based on the edge computing grid and the construction of a multi-dimensional resource portrait model include: Performing resource detection on multiple device nodes in the edge computing grid to obtain an original resource data set of each device node, and generating a computing capacity indicator of each device node according to the original resource data set; Based on the computing capability index, the storage capacity of the plurality of device nodes is classified and classified to obtain a storage resource matrix, and data access pattern analysis is performed on the storage resource matrix to obtain an I / O performance feature vector; Performing bandwidth testing on the network connection between the plurality of device nodes according to the I / O performance characteristic vector to obtain a network topology diagram, and performing statistical modeling on the communication delay between the plurality of device nodes based on the network topology diagram to obtain a delay distribution function; Dynamically evaluate the energy efficiency of each device node according to the delay distribution function to obtain an energy efficiency curve, and perform polynomial fitting on the energy efficiency curve to obtain a relationship model between node load and energy consumption; The reliability of each device node is probability analyzed according to the relationship model to obtain a node fault prediction model, and multi-dimensional feature extraction and fusion are performed based on the node fault prediction model to obtain a multi-dimensional resource portrait model.
4. The real-time image processing method based on edge computing according to claim 1, characterized in that: The multi-dimensional resource portrait model is used to perform task decomposition and parallel reconstruction on the image processing operator of each edge device to obtain a task dependency graph, including: Dividing the image processing algorithm into functional modules to obtain an initial operator set, and analyzing the data dependency relationship between the image processing operators based on the initial operator set to obtain an original dependency graph; Based on the original dependency graph, the computational complexity of the image processing operator is evaluated to obtain an operator weight matrix, and the image processing operator of each edge device is granularly optimized and merged according to the operator weight matrix to obtain an optimized operator set; Performing parallelism analysis on the optimization operator set to obtain potential parallel execution paths, and grouping tasks of the image processing operators of each edge device based on the potential parallel execution paths to obtain parallel task blocks; According to the parallel task blocks, the multi-dimensional resource portrait model is matched and analyzed to obtain a resource affinity matrix, and based on the resource affinity matrix, the parallel task blocks are assigned devices to obtain an initial task mapping solution; The initial task mapping scheme is load-balanced optimized to obtain a balanced task distribution strategy, and a task dependency graph is generated according to the balanced task distribution strategy.
5. The real-time image processing method based on edge computing according to claim 1, characterized in that: The topological optimization of the task execution order of the plurality of edge devices based on the task dependency graph to obtain a distributed image processing pipeline includes: Performing a critical path analysis on the task dependency graph to obtain an initial critical task sequence, and constructing a task parallelism matrix based on the initial critical task sequence; Performing hierarchical clustering of tasks based on the task parallelism matrix to obtain a task hierarchy diagram, and identifying key resources on the task hierarchy diagram to obtain a resource competition hotspot list; Prioritizing the task execution order of the plurality of edge devices and dividing the pipeline stages according to the resource competition hotspot list to obtain an initial pipeline structure; Based on the initial pipeline structure, data transmission modeling is performed between tasks to obtain a data flow diagram, and load balancing analysis is performed on the initial pipeline structure according to the data flow diagram to obtain a stage balance factor; The stage balance factor is iteratively optimized to obtain a balanced pipeline configuration scheme, and timing processing is performed based on the balanced pipeline configuration scheme to obtain a distributed image processing pipeline.
6. The real-time image processing method based on edge computing according to claim 1, characterized in that: Based on the distributed image processing pipeline, the image data flow and computing load of each edge device are dynamically balanced to obtain a target task scheduling strategy, including: Decomposing the distributed image processing pipeline into tasks to obtain an atomic task set, and slicing the image data stream of each edge device according to the atomic task set to obtain a data block allocation plan for each edge device; Generate a data transmission cost model for each edge device according to the data block allocation scheme, and initially allocate the atomic task set according to the data transmission cost model to obtain an initial task distribution map; Calculating the load balance of each edge device based on the initial task distribution graph to obtain a load imbalance index, performing threshold judgment and task migration on the load imbalance index to obtain a target task distribution plan; The task execution order is adjusted according to the target task distribution scheme to obtain a task scheduling sequence, and resource competition analysis is performed on the task scheduling sequence to generate a target task scheduling strategy.
7. The real-time image processing method based on edge computing according to claim 1, characterized in that: According to the target task scheduling strategy, the image processing results of the multiple edge devices are adaptively compressed and transmitted and edge-cloud collaboratively fed back to obtain an image processing parameter set, including: According to the target task scheduling strategy, the image processing result of each edge device is evaluated for quality to obtain an image quality index matrix; Performing image region importance analysis according to the image quality index matrix to obtain a region weight map, and performing image hierarchical coding and entropy coding based on the region weight map to obtain an initial compressed data stream; Dynamically estimate the network bandwidth according to the initial compressed data stream to obtain an available bandwidth prediction model, and optimize the bit allocation of the initial compressed data stream based on the available bandwidth prediction model to obtain a layered transmission strategy; Performing transmission error analysis on the hierarchical transmission strategy to obtain a data importance ranking table, and performing priority scheduling on the initial compressed data stream according to the data importance ranking table to obtain a target transmission queue; The data in the target transmission queue is collaboratively processed with the cloud to obtain edge-cloud fusion analysis results, and the image processing parameters are iteratively optimized based on the edge-cloud fusion analysis results to obtain an image processing parameter set.
8. A real-time image processing system based on edge computing, used to execute the real-time image processing method based on edge computing as described in any one of claims 1 to 7, characterized in that: The system comprises: A virtualization module is used to virtualize heterogeneous resources of multiple edge devices to obtain an edge computing grid; A real-time monitoring module, used to perform real-time monitoring of node performance and network status of the multiple edge devices based on the edge computing grid, and to build a multi-dimensional resource portrait model; A task decomposition module is used to perform task decomposition and parallel reconstruction on the image processing operator of each edge device through the multi-dimensional resource portrait model to obtain a task dependency graph; A topology optimization module, configured to perform topology optimization on the task execution order of the plurality of edge devices based on the task dependency graph to obtain a distributed image processing pipeline; A dynamic balancing module, used to dynamically balance the image data flow and computing load of each edge device based on the distributed image processing pipeline to obtain a target task scheduling strategy; The feedback module is used to adaptively compress, transmit and collaboratively feedback the image processing results of the multiple edge devices according to the target task scheduling strategy to obtain an image processing parameter set.
9. A real-time image processing device based on edge computing, characterized in that: The real-time image processing device based on edge computing includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory so that the edge computing-based real-time image processing device executes the edge computing-based real-time image processing method as described in any one of claims 1-7.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the real-time image processing method based on edge computing as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Cloud-side-end cooperative unloading method and system based on assembly line
CN111913723A
Lightweight application adaptation method for edge computing heterogeneous environment
CN113687913A
Cooperative scheduling system, method and device for computing power resources and storage medium
CN115562824A
Joint scheduling and unloading method based on task dependency relationship
CN116521345A
Graph-based model division edge-end collaborative reasoning method and system
CN117707795A
